language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef COMPUTER_H #define COMPUTER_H #include <QtSql> #include <string> using namespace std; class Computer { public: Computer(); Computer(string name, int year, string type, string built); Computer(int id, string name, int year, string type, string built); string getName() const; //Gets private member variables int getYear() const; string getType() const; string getBuilt() const; int getNameSize2(); int getTypeSize(); int getId() const; private: int _id; //Private member variables string _name; int _year; string _type; string _built; }; #endif // COMPUTER_H
24.11
27
(translation_unit) "#ifndef COMPUTER_H\n#define COMPUTER_H\n#include <QtSql>\n#include <string>\n\nusing namespace std;\n\nclass Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n};\n\n#endif // COMPUTER_H\n" (preproc_ifdef) "#ifndef COMPUTER_H\n#define COMPUTER_H\n#include <QtSql>\n#include <string>\n\nusing namespace std;\n\nclass Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "COMPUTER_H" (preproc_def) "#define COMPUTER_H\n" (#define) "#define" (identifier) "COMPUTER_H" (preproc_include) "#include <QtSql>\n" (#include) "#include" (system_lib_string) "<QtSql>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (function_definition) "class Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n}" (type_identifier) "class" (identifier) "Computer" (compound_statement) "{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n}" ({) "{" (labeled_statement) "public:\n Computer();" (statement_identifier) "public" (:) ":" (expression_statement) "Computer();" (call_expression) "Computer()" (identifier) "Computer" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Computer(string name, int year, string type, string built);" (macro_type_specifier) "Computer(string" (identifier) "Computer" (() "(" (type_descriptor) "string" (type_identifier) "string" ()) "" (identifier) "name" (,) "," (ERROR) "int" (identifier) "int" (identifier) "year" (,) "," (identifier) "string" (ERROR) "type" (identifier) "type" (,) "," (identifier) "string" (ERROR) "built)" (identifier) "built" ()) ")" (;) ";" (declaration) "Computer(int id, string name, int year, string type, string built);" (macro_type_specifier) "Computer(int" (identifier) "Computer" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "id" (,) "," (identifier) "string" (ERROR) "name" (identifier) "name" (,) "," (ERROR) "int" (identifier) "int" (identifier) "year" (,) "," (identifier) "string" (ERROR) "type" (identifier) "type" (,) "," (identifier) "string" (ERROR) "built)" (identifier) "built" ()) ")" (;) ";" (ERROR) "string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;" (type_identifier) "string" (function_declarator) "getName()" (identifier) "getName" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "//Gets private member variables" (primitive_type) "int" (ERROR) "getYear() const;\n string getType() const;\n string getBuilt() const;\n int" (function_declarator) "getYear() const" (identifier) "getYear" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "string" (function_declarator) "getType() const" (identifier) "getType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "string" (function_declarator) "getBuilt() const" (identifier) "getBuilt" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "int" (function_declarator) "getNameSize2()" (identifier) "getNameSize2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int getTypeSize();" (primitive_type) "int" (function_declarator) "getTypeSize()" (identifier) "getTypeSize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int getId() const;\n\nprivate:\n int _id;" (primitive_type) "int" (ERROR) "getId() const;\n\nprivate:\n int" (function_declarator) "getId() const" (identifier) "getId" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "private" (:) ":" (primitive_type) "int" (identifier) "_id" (;) ";" (comment) "//Private member variables" (declaration) "string _name;" (type_identifier) "string" (identifier) "_name" (;) ";" (declaration) "int _year;" (primitive_type) "int" (identifier) "_year" (;) ";" (declaration) "string _type;" (type_identifier) "string" (identifier) "_type" (;) ";" (declaration) "string _built;" (type_identifier) "string" (identifier) "_built" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// COMPUTER_H"
172
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.11, "nodes": 105, "errors": 0, "source_hash": "cb449fc5f208c52e03a82135b339b40e56653e0af820190a9b1c32c2561e792e", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COMPUTER_H\n#define COMPUTER_H\n#include <QtSql>\n#include <string>\n\nusing namespace std;\n\nclass Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 104], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "COMPUTER_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define COMPUTER_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "COMPUTER_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <QtSql>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QtSql>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<string>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "declaration", "text": "using namespace std;", "parent": 0, "children": [13, 14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 20}}, {"id": 13, "type": "type_identifier", "text": "using", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 5}}, {"id": 14, "type": "identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "ERROR", "text": "std", "parent": 12, "children": [16], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 19}}, {"id": 16, "type": "identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 19}}, {"id": 17, "type": "function_definition", "text": "class Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n}", "parent": 0, "children": [18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 18, "type": "identifier", "text": "Computer", "parent": 17, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 14}}, {"id": 19, "type": "labeled_statement", "text": "public:\n Computer();", "parent": 17, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 15}}, {"id": 20, "type": "call_expression", "text": "Computer()", "parent": 19, "children": [21, 22], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 14}}, {"id": 21, "type": "identifier", "text": "Computer", "parent": 20, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 22, "type": "argument_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 14}}, {"id": 23, "type": "declaration", "text": "Computer(string name, int year, string type, string built);", "parent": 17, "children": [24, 28, 29, 31, 32, 33, 35, 36], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 63}}, {"id": 24, "type": "macro_type_specifier", "text": "Computer(string", "parent": 23, "children": [25, 26], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 19}}, {"id": 25, "type": "identifier", "text": "Computer", "parent": 24, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 26, "type": "type_descriptor", "text": "string", "parent": 24, "children": [27], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 19}}, {"id": 27, "type": "type_identifier", "text": "string", "parent": 26, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 19}}, {"id": 28, "type": "identifier", "text": "name", "parent": 23, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 29, "type": "ERROR", "text": "int", "parent": 23, "children": [30], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 29}}, {"id": 30, "type": "identifier", "text": "int", "parent": 29, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 29}}, {"id": 31, "type": "identifier", "text": "year", "parent": 23, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 34}}, {"id": 32, "type": "identifier", "text": "string", "parent": 23, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 42}}, {"id": 33, "type": "ERROR", "text": "type", "parent": 23, "children": [34], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 47}}, {"id": 34, "type": "identifier", "text": "type", "parent": 33, "children": [], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 47}}, {"id": 35, "type": "identifier", "text": "string", "parent": 23, "children": [], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 55}}, {"id": 36, "type": "ERROR", "text": "built)", "parent": 23, "children": [37], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 62}}, {"id": 37, "type": "identifier", "text": "built", "parent": 36, "children": [], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 61}}, {"id": 38, "type": "declaration", "text": "Computer(int id, string name, int year, string type, string built);", "parent": 17, "children": [39, 43, 44, 45, 47, 49, 50, 51, 53, 54], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 71}}, {"id": 39, "type": "macro_type_specifier", "text": "Computer(int", "parent": 38, "children": [40, 41], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 16}}, {"id": 40, "type": "identifier", "text": "Computer", "parent": 39, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 41, "type": "type_descriptor", "text": "int", "parent": 39, "children": [42], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 16}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 16}}, {"id": 43, "type": "identifier", "text": "id", "parent": 38, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 19}}, {"id": 44, "type": "identifier", "text": "string", "parent": 38, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 27}}, {"id": 45, "type": "ERROR", "text": "name", "parent": 38, "children": [46], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 32}}, {"id": 46, "type": "identifier", "text": "name", "parent": 45, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 32}}, {"id": 47, "type": "ERROR", "text": "int", "parent": 38, "children": [48], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 37}}, {"id": 48, "type": "identifier", "text": "int", "parent": 47, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 37}}, {"id": 49, "type": "identifier", "text": "year", "parent": 38, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 42}}, {"id": 50, "type": "identifier", "text": "string", "parent": 38, "children": [], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 50}}, {"id": 51, "type": "ERROR", "text": "type", "parent": 38, "children": [52], "start_point": {"row": 12, "column": 51}, "end_point": {"row": 12, "column": 55}}, {"id": 52, "type": "identifier", "text": "type", "parent": 51, "children": [], "start_point": {"row": 12, "column": 51}, "end_point": {"row": 12, "column": 55}}, {"id": 53, "type": "identifier", "text": "string", "parent": 38, "children": [], "start_point": {"row": 12, "column": 57}, "end_point": {"row": 12, "column": 63}}, {"id": 54, "type": "ERROR", "text": "built)", "parent": 38, "children": [55], "start_point": {"row": 12, "column": 64}, "end_point": {"row": 12, "column": 70}}, {"id": 55, "type": "identifier", "text": "built", "parent": 54, "children": [], "start_point": {"row": 12, "column": 64}, "end_point": {"row": 12, "column": 69}}, {"id": 56, "type": "ERROR", "text": "string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;", "parent": 17, "children": [57, 58, 61, 79, 84, 92, 95, 98, 101], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 28, "column": 18}}, {"id": 57, "type": "type_identifier", "text": "string", "parent": 56, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 58, "type": "function_declarator", "text": "getName()", "parent": 56, "children": [59, 60], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 59, "type": "identifier", "text": "getName", "parent": 58, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 18}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 20}}, {"id": 61, "type": "declaration", "text": "const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();", "parent": 56, "children": [62, 63, 76], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 19, "column": 23}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 63, "type": "ERROR", "text": "getYear() const;\n string getType() const;\n string getBuilt() const;\n int", "parent": 61, "children": [64, 67, 68, 71, 72, 75], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 19, "column": 7}}, {"id": 64, "type": "function_declarator", "text": "getYear() const", "parent": 63, "children": [65, 66], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 23}}, {"id": 65, "type": "identifier", "text": "getYear", "parent": 64, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 15}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 17}}, {"id": 67, "type": "identifier", "text": "string", "parent": 63, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 68, "type": "function_declarator", "text": "getType() const", "parent": 63, "children": [69, 70], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 26}}, {"id": 69, "type": "identifier", "text": "getType", "parent": 68, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 18}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 20}}, {"id": 71, "type": "identifier", "text": "string", "parent": 63, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 72, "type": "function_declarator", "text": "getBuilt() const", "parent": 63, "children": [73, 74], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 27}}, {"id": 73, "type": "identifier", "text": "getBuilt", "parent": 72, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 19}}, {"id": 74, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 21}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 63, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 7}}, {"id": 76, "type": "function_declarator", "text": "getNameSize2()", "parent": 61, "children": [77, 78], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 77, "type": "identifier", "text": "getNameSize2", "parent": 76, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 20}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 22}}, {"id": 79, "type": "declaration", "text": "int getTypeSize();", "parent": 56, "children": [80, 81], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 22}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 79, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 7}}, {"id": 81, "type": "function_declarator", "text": "getTypeSize()", "parent": 79, "children": [82, 83], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 82, "type": "identifier", "text": "getTypeSize", "parent": 81, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 19}}, {"id": 83, "type": "parameter_list", "text": "()", "parent": 81, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 21}}, {"id": 84, "type": "declaration", "text": "int getId() const;\n\nprivate:\n int _id;", "parent": 56, "children": [85, 86, 91], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 85, "type": "primitive_type", "text": "int", "parent": 84, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 86, "type": "ERROR", "text": "getId() const;\n\nprivate:\n int", "parent": 84, "children": [87, 90], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 24, "column": 7}}, {"id": 87, "type": "function_declarator", "text": "getId() const", "parent": 86, "children": [88, 89], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 21}}, {"id": 88, "type": "identifier", "text": "getId", "parent": 87, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 15}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 7}}, {"id": 91, "type": "identifier", "text": "_id", "parent": 84, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 11}}, {"id": 92, "type": "declaration", "text": "string _name;", "parent": 56, "children": [93, 94], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 17}}, {"id": 93, "type": "type_identifier", "text": "string", "parent": 92, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 94, "type": "identifier", "text": "_name", "parent": 92, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 16}}, {"id": 95, "type": "declaration", "text": "int _year;", "parent": 56, "children": [96, 97], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 14}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 97, "type": "identifier", "text": "_year", "parent": 95, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 13}}, {"id": 98, "type": "declaration", "text": "string _type;", "parent": 56, "children": [99, 100], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 17}}, {"id": 99, "type": "type_identifier", "text": "string", "parent": 98, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 10}}, {"id": 100, "type": "identifier", "text": "_type", "parent": 98, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 16}}, {"id": 101, "type": "declaration", "text": "string _built;", "parent": 56, "children": [102, 103], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 18}}, {"id": 102, "type": "type_identifier", "text": "string", "parent": 101, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 103, "type": "identifier", "text": "_built", "parent": 101, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 17}}, {"id": 104, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 58, 64, 68, 72, 76, 81, 87], "variables": [12, 23, 38, 61, 79, 84, 92, 95, 98, 101], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [20], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 18, 21, 24, 25, 27, 28, 30, 31, 32, 34, 35, 37, 39, 40, 43, 44, 46, 48, 49, 50, 52, 53, 55, 57, 59, 65, 67, 69, 71, 73, 77, 82, 88, 91, 93, 94, 97, 99, 100, 102, 103, 104], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "Computer", "text_snippet": "class Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string bui"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "getName()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "getYear() const"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "getType() const"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "getBuilt() const"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "getNameSize2()"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "getTypeSize()"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "getId() const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QtSql>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef COMPUTER_H\n#define COMPUTER_H\n#include <QtSql>\n#include <string>\n\nusing namespace std;\n\nclass Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string getName() const; //Gets private member variables\n int getYear() const;\n string getType() const;\n string getBuilt() const;\n int getNameSize2();\n int getTypeSize();\n int getId() const;\n\nprivate:\n int _id; //Private member variables\n string _name;\n int _year;\n string _type;\n string _built;\n};\n\n#endif // COMPUTER_H\n"}
81,000
c
/****************************************************************************** * Copyright 2017 - 2018, Opulinks Technology Ltd. * --------------------------------------------------------------------------- * --------------------------------------------------------------------------- * Statement: * ---------- * This software is protected by Copyright and the information contained * herein is confidential. The software may not be copied and the information * contained herein may not be used or disclosed except with the written * permission of Opulinks Technology Ltd. (C) 2018 ******************************************************************************/ #include "OPL1000_pin_mux_define.h" T_OPL1000_Periph OPL1000_periph = { 0,{{UART_IDX_MAX, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, 0, DATA_BIT_8, PARITY_NONE, STOP_BIT_1, UART_SIMPLE}, {UART_IDX_MAX, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, 0, DATA_BIT_8, PARITY_NONE, STOP_BIT_1, UART_SIMPLE}}, 1,{I2C_SPEED_STANDARD, OPL1000_IO10_PIN, OPL1000_IO11_PIN, I2C_07BIT, 0x50, MASTER_NO_STOP}, 0,{{SPI_IDX_MAX, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, 0, SPI_CLK_PLOAR_HIGH_ACT, SPI_CLK_PHASE_START, SPI_FMT_MOTOROLA, SPI_DFS_08_bit, QMODE_DISABLE}, {SPI_IDX_MAX, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, BLANK_PIN, 0, SPI_CLK_PLOAR_HIGH_ACT, SPI_CLK_PHASE_START, SPI_FMT_MOTOROLA, SPI_DFS_08_bit, QMODE_DISABLE}}, 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}, {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}, {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}, {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}, {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}, {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}}, 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN}, 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}, {BLANK_PIN,IO_OUTPUT,PULL_UP}} };
31.13
91
(translation_unit) "/******************************************************************************\n* Copyright 2017 - 2018, Opulinks Technology Ltd.\n* ---------------------------------------------------------------------------\n* ---------------------------------------------------------------------------\n* Statement: \n* ----------\n* This software is protected by Copyright and the information contained\n* herein is confidential. The software may not be copied and the information\n* contained herein may not be used or disclosed except with the written\n* permission of Opulinks Technology Ltd. (C) 2018\n******************************************************************************/ \n\n#include "OPL1000_pin_mux_define.h" \n\nT_OPL1000_Periph OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n};\n" (comment) "/******************************************************************************\n* Copyright 2017 - 2018, Opulinks Technology Ltd.\n* ---------------------------------------------------------------------------\n* ---------------------------------------------------------------------------\n* Statement: \n* ----------\n* This software is protected by Copyright and the information contained\n* herein is confidential. The software may not be copied and the information\n* contained herein may not be used or disclosed except with the written\n* permission of Opulinks Technology Ltd. (C) 2018\n******************************************************************************/" (preproc_include) "#include "OPL1000_pin_mux_define.h"" (#include) "#include" (string_literal) ""OPL1000_pin_mux_define.h"" (") """ (string_content) "OPL1000_pin_mux_define.h" (") """ (declaration) "T_OPL1000_Periph OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n};" (type_identifier) "T_OPL1000_Periph" (init_declarator) "OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n}" (identifier) "OPL1000_periph" (=) "=" (initializer_list) "{\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n}" ({) "{" (number_literal) "0" (,) "," (initializer_list) "{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}}" ({) "{" (initializer_list) "{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}" ({) "{" (identifier) "UART_IDX_MAX" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (number_literal) "0" (,) "," (identifier) "DATA_BIT_8" (,) "," (identifier) "PARITY_NONE" (,) "," (identifier) "STOP_BIT_1" (,) "," (identifier) "UART_SIMPLE" (}) "}" (,) "," (initializer_list) "{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}" ({) "{" (identifier) "UART_IDX_MAX" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (number_literal) "0" (,) "," (identifier) "DATA_BIT_8" (,) "," (identifier) "PARITY_NONE" (,) "," (identifier) "STOP_BIT_1" (,) "," (identifier) "UART_SIMPLE" (}) "}" (}) "}" (,) "," (number_literal) "1" (,) "," (initializer_list) "{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP}" ({) "{" (identifier) "I2C_SPEED_STANDARD" (,) "," (identifier) "OPL1000_IO10_PIN" (,) "," (identifier) "OPL1000_IO11_PIN" (,) "," (identifier) "I2C_07BIT" (,) "," (number_literal) "0x50" (,) "," (identifier) "MASTER_NO_STOP" (}) "}" (,) "," (number_literal) "0" (,) "," (initializer_list) "{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}}" ({) "{" (initializer_list) "{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}" ({) "{" (identifier) "SPI_IDX_MAX" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (number_literal) "0" (,) "," (identifier) "SPI_CLK_PLOAR_HIGH_ACT" (,) "," (identifier) "SPI_CLK_PHASE_START" (,) "," (identifier) "SPI_FMT_MOTOROLA" (,) "," (identifier) "SPI_DFS_08_bit" (,) "," (identifier) "QMODE_DISABLE" (}) "}" (,) "," (initializer_list) "{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}" ({) "{" (identifier) "SPI_IDX_MAX" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (number_literal) "0" (,) "," (identifier) "SPI_CLK_PLOAR_HIGH_ACT" (,) "," (identifier) "SPI_CLK_PHASE_START" (,) "," (identifier) "SPI_FMT_MOTOROLA" (,) "," (identifier) "SPI_DFS_08_bit" (,) "," (identifier) "QMODE_DISABLE" (}) "}" (}) "}" (,) "," (number_literal) "0" (,) "," (initializer_list) "{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}}" ({) "{" (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "CLK_32KHz" (,) "," (identifier) "CFG_SIMPLE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (}) "}" (,) "," (number_literal) "0" (,) "," (initializer_list) "{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (,) "," (identifier) "BLANK_PIN" (}) "}" (,) "," (number_literal) "0" (,) "," (initializer_list) "{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}" ({) "{" (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (,) "," (initializer_list) "{BLANK_PIN,IO_OUTPUT,PULL_UP}" ({) "{" (identifier) "BLANK_PIN" (,) "," (identifier) "IO_OUTPUT" (,) "," (identifier) "PULL_UP" (}) "}" (}) "}" (}) "}" (;) ";"
506
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 31.13, "nodes": 237, "errors": 0, "source_hash": "6cef2e321a555ae8519fcc69f13ae5c5496e1c8faf7011ff438e428f1a9b3722", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"OPL1000_pin_mux_define.h\"", "parent": null, "children": [1, 2], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 35}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"OPL1000_pin_mux_define.h\"", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 35}}, {"id": 3, "type": "declaration", "text": "T_OPL1000_Periph OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n};", "parent": null, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 92, "column": 2}}, {"id": 4, "type": "type_identifier", "text": "T_OPL1000_Periph", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 16}}, {"id": 5, "type": "init_declarator", "text": "OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n}", "parent": 3, "children": [6, 7, 8], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 92, "column": 1}}, {"id": 6, "type": "identifier", "text": "OPL1000_periph", "parent": 5, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 31}}, {"id": 7, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 8, "type": "initializer_list", "text": "{\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n}", "parent": 5, "children": [9, 10, 33, 34, 41, 42, 71, 72, 151, 152, 163, 164], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 92, "column": 1}}, {"id": 9, "type": "number_literal", "text": "0", "parent": 8, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 10, "type": "initializer_list", "text": "{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}}", "parent": 8, "children": [11, 22], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 34, "column": 20}}, {"id": 11, "type": "initializer_list", "text": "{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}", "parent": 10, "children": [12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 24, "column": 19}}, {"id": 12, "type": "identifier", "text": "UART_IDX_MAX", "parent": 11, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 18}}, {"id": 13, "type": "identifier", "text": "BLANK_PIN", "parent": 11, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 16}}, {"id": 14, "type": "identifier", "text": "BLANK_PIN", "parent": 11, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 15, "type": "identifier", "text": "BLANK_PIN", "parent": 11, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 16}}, {"id": 16, "type": "identifier", "text": "BLANK_PIN", "parent": 11, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 16}}, {"id": 17, "type": "number_literal", "text": "0", "parent": 11, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 8}}, {"id": 18, "type": "identifier", "text": "DATA_BIT_8", "parent": 11, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 17}}, {"id": 19, "type": "identifier", "text": "PARITY_NONE", "parent": 11, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 18}}, {"id": 20, "type": "identifier", "text": "STOP_BIT_1", "parent": 11, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 17}}, {"id": 21, "type": "identifier", "text": "UART_SIMPLE", "parent": 11, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 18}}, {"id": 22, "type": "initializer_list", "text": "{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}", "parent": 10, "children": [23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 34, "column": 19}}, {"id": 23, "type": "identifier", "text": "UART_IDX_MAX", "parent": 22, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 20}}, {"id": 24, "type": "identifier", "text": "BLANK_PIN", "parent": 22, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 16}}, {"id": 25, "type": "identifier", "text": "BLANK_PIN", "parent": 22, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 16}}, {"id": 26, "type": "identifier", "text": "BLANK_PIN", "parent": 22, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 16}}, {"id": 27, "type": "identifier", "text": "BLANK_PIN", "parent": 22, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 16}}, {"id": 28, "type": "number_literal", "text": "0", "parent": 22, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 29, "type": "identifier", "text": "DATA_BIT_8", "parent": 22, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 17}}, {"id": 30, "type": "identifier", "text": "PARITY_NONE", "parent": 22, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 18}}, {"id": 31, "type": "identifier", "text": "STOP_BIT_1", "parent": 22, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 17}}, {"id": 32, "type": "identifier", "text": "UART_SIMPLE", "parent": 22, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 18}}, {"id": 33, "type": "number_literal", "text": "1", "parent": 8, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 3}}, {"id": 34, "type": "initializer_list", "text": "{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP}", "parent": 8, "children": [35, 36, 37, 38, 39, 40], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 40, "column": 22}}, {"id": 35, "type": "identifier", "text": "I2C_SPEED_STANDARD", "parent": 34, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 23}}, {"id": 36, "type": "identifier", "text": "OPL1000_IO10_PIN", "parent": 34, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 23}}, {"id": 37, "type": "identifier", "text": "OPL1000_IO11_PIN", "parent": 34, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 23}}, {"id": 38, "type": "identifier", "text": "I2C_07BIT", "parent": 34, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 16}}, {"id": 39, "type": "number_literal", "text": "0x50", "parent": 34, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 40, "type": "identifier", "text": "MASTER_NO_STOP", "parent": 34, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 21}}, {"id": 41, "type": "number_literal", "text": "0", "parent": 8, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 3}}, {"id": 42, "type": "initializer_list", "text": "{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}}", "parent": 8, "children": [43, 57], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 66, "column": 22}}, {"id": 43, "type": "initializer_list", "text": "{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}", "parent": 42, "children": [44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 53, "column": 21}}, {"id": 44, "type": "identifier", "text": "SPI_IDX_MAX", "parent": 43, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 17}}, {"id": 45, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 16}}, {"id": 46, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 16}}, {"id": 47, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 16}}, {"id": 48, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 16}}, {"id": 49, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 16}}, {"id": 50, "type": "identifier", "text": "BLANK_PIN", "parent": 43, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 16}}, {"id": 51, "type": "number_literal", "text": "0", "parent": 43, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 52, "type": "identifier", "text": "SPI_CLK_PLOAR_HIGH_ACT", "parent": 43, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 29}}, {"id": 53, "type": "identifier", "text": "SPI_CLK_PHASE_START", "parent": 43, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 26}}, {"id": 54, "type": "identifier", "text": "SPI_FMT_MOTOROLA", "parent": 43, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 23}}, {"id": 55, "type": "identifier", "text": "SPI_DFS_08_bit", "parent": 43, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 21}}, {"id": 56, "type": "identifier", "text": "QMODE_DISABLE", "parent": 43, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 20}}, {"id": 57, "type": "initializer_list", "text": "{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}", "parent": 42, "children": [58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 66, "column": 21}}, {"id": 58, "type": "identifier", "text": "SPI_IDX_MAX", "parent": 57, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 19}}, {"id": 59, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 16}}, {"id": 60, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 16}}, {"id": 61, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 16}}, {"id": 62, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 16}}, {"id": 63, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 16}}, {"id": 64, "type": "identifier", "text": "BLANK_PIN", "parent": 57, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 16}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 66, "type": "identifier", "text": "SPI_CLK_PLOAR_HIGH_ACT", "parent": 57, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 29}}, {"id": 67, "type": "identifier", "text": "SPI_CLK_PHASE_START", "parent": 57, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 26}}, {"id": 68, "type": "identifier", "text": "SPI_FMT_MOTOROLA", "parent": 57, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 23}}, {"id": 69, "type": "identifier", "text": "SPI_DFS_08_bit", "parent": 57, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 21}}, {"id": 70, "type": "identifier", "text": "QMODE_DISABLE", "parent": 57, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 20}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 8, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 3}}, {"id": 72, "type": "initializer_list", "text": "{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}}", "parent": 8, "children": [73, 86, 99, 112, 125, 138], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 72, "column": 58}}, {"id": 73, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 55}}, {"id": 74, "type": "identifier", "text": "BLANK_PIN", "parent": 73, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 15}}, {"id": 75, "type": "identifier", "text": "CLK_32KHz", "parent": 73, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 25}}, {"id": 76, "type": "identifier", "text": "CFG_SIMPLE", "parent": 73, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 36}}, {"id": 77, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 37}, "end_point": {"row": 67, "column": 38}}, {"id": 78, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 40}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 42}}, {"id": 80, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 44}}, {"id": 81, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 46}}, {"id": 82, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 47}, "end_point": {"row": 67, "column": 48}}, {"id": 83, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 49}, "end_point": {"row": 67, "column": 50}}, {"id": 84, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 51}, "end_point": {"row": 67, "column": 52}}, {"id": 85, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 54}}, {"id": 86, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 57}}, {"id": 87, "type": "identifier", "text": "BLANK_PIN", "parent": 86, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 17}}, {"id": 88, "type": "identifier", "text": "CLK_32KHz", "parent": 86, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 27}}, {"id": 89, "type": "identifier", "text": "CFG_SIMPLE", "parent": 86, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 38}}, {"id": 90, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 40}}, {"id": 91, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 42}}, {"id": 92, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 44}}, {"id": 93, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 46}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 47}, "end_point": {"row": 68, "column": 48}}, {"id": 95, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 49}, "end_point": {"row": 68, "column": 50}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 52}}, {"id": 97, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 53}, "end_point": {"row": 68, "column": 54}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 56}}, {"id": 99, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 57}}, {"id": 100, "type": "identifier", "text": "BLANK_PIN", "parent": 99, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 17}}, {"id": 101, "type": "identifier", "text": "CLK_32KHz", "parent": 99, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 27}}, {"id": 102, "type": "identifier", "text": "CFG_SIMPLE", "parent": 99, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 38}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 40}}, {"id": 104, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 42}}, {"id": 105, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 44}}, {"id": 106, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 46}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 47}, "end_point": {"row": 69, "column": 48}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 50}}, {"id": 109, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 51}, "end_point": {"row": 69, "column": 52}}, {"id": 110, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 53}, "end_point": {"row": 69, "column": 54}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 69, "column": 55}, "end_point": {"row": 69, "column": 56}}, {"id": 112, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 57}}, {"id": 113, "type": "identifier", "text": "BLANK_PIN", "parent": 112, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 17}}, {"id": 114, "type": "identifier", "text": "CLK_32KHz", "parent": 112, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 27}}, {"id": 115, "type": "identifier", "text": "CFG_SIMPLE", "parent": 112, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 38}}, {"id": 116, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 40}}, {"id": 117, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 42}}, {"id": 118, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 44}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 46}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 47}, "end_point": {"row": 70, "column": 48}}, {"id": 121, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 49}, "end_point": {"row": 70, "column": 50}}, {"id": 122, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 51}, "end_point": {"row": 70, "column": 52}}, {"id": 123, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 53}, "end_point": {"row": 70, "column": 54}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 70, "column": 55}, "end_point": {"row": 70, "column": 56}}, {"id": 125, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 57}}, {"id": 126, "type": "identifier", "text": "BLANK_PIN", "parent": 125, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 17}}, {"id": 127, "type": "identifier", "text": "CLK_32KHz", "parent": 125, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 27}}, {"id": 128, "type": "identifier", "text": "CFG_SIMPLE", "parent": 125, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 38}}, {"id": 129, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 40}}, {"id": 130, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 42}}, {"id": 131, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 44}}, {"id": 132, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 46}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 47}, "end_point": {"row": 71, "column": 48}}, {"id": 134, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 50}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 51}, "end_point": {"row": 71, "column": 52}}, {"id": 136, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 53}, "end_point": {"row": 71, "column": 54}}, {"id": 137, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 71, "column": 55}, "end_point": {"row": 71, "column": 56}}, {"id": 138, "type": "initializer_list", "text": "{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}", "parent": 72, "children": [139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 57}}, {"id": 139, "type": "identifier", "text": "BLANK_PIN", "parent": 138, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 17}}, {"id": 140, "type": "identifier", "text": "CLK_32KHz", "parent": 138, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 27}}, {"id": 141, "type": "identifier", "text": "CFG_SIMPLE", "parent": 138, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 38}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 40}}, {"id": 143, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 41}, "end_point": {"row": 72, "column": 42}}, {"id": 144, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 44}}, {"id": 145, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 46}}, {"id": 146, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 47}, "end_point": {"row": 72, "column": 48}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 49}, "end_point": {"row": 72, "column": 50}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 51}, "end_point": {"row": 72, "column": 52}}, {"id": 149, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 53}, "end_point": {"row": 72, "column": 54}}, {"id": 150, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 72, "column": 55}, "end_point": {"row": 72, "column": 56}}, {"id": 151, "type": "number_literal", "text": "0", "parent": 8, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 3}}, {"id": 152, "type": "initializer_list", "text": "{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN}", "parent": 8, "children": [153, 154, 155, 156, 157, 158, 159, 160, 161, 162], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 105}}, {"id": 153, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 14}}, {"id": 154, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 24}}, {"id": 155, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 34}}, {"id": 156, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 44}}, {"id": 157, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 54}}, {"id": 158, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 64}}, {"id": 159, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 65}, "end_point": {"row": 73, "column": 74}}, {"id": 160, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 75}, "end_point": {"row": 73, "column": 84}}, {"id": 161, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 85}, "end_point": {"row": 73, "column": 94}}, {"id": 162, "type": "identifier", "text": "BLANK_PIN", "parent": 152, "children": [], "start_point": {"row": 73, "column": 95}, "end_point": {"row": 73, "column": 104}}, {"id": 163, "type": "number_literal", "text": "0", "parent": 8, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 3}}, {"id": 164, "type": "initializer_list", "text": "{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}", "parent": 8, "children": [165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 91, "column": 37}}, {"id": 165, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [166, 167, 168], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 34}}, {"id": 166, "type": "identifier", "text": "BLANK_PIN", "parent": 165, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 15}}, {"id": 167, "type": "identifier", "text": "IO_OUTPUT", "parent": 165, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 25}}, {"id": 168, "type": "identifier", "text": "PULL_UP", "parent": 165, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 33}}, {"id": 169, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [170, 171, 172], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 36}}, {"id": 170, "type": "identifier", "text": "BLANK_PIN", "parent": 169, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 17}}, {"id": 171, "type": "identifier", "text": "IO_OUTPUT", "parent": 169, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 27}}, {"id": 172, "type": "identifier", "text": "PULL_UP", "parent": 169, "children": [], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 35}}, {"id": 173, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [174, 175, 176], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 36}}, {"id": 174, "type": "identifier", "text": "BLANK_PIN", "parent": 173, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 17}}, {"id": 175, "type": "identifier", "text": "IO_OUTPUT", "parent": 173, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 27}}, {"id": 176, "type": "identifier", "text": "PULL_UP", "parent": 173, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 35}}, {"id": 177, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [178, 179, 180], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 36}}, {"id": 178, "type": "identifier", "text": "BLANK_PIN", "parent": 177, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 17}}, {"id": 179, "type": "identifier", "text": "IO_OUTPUT", "parent": 177, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 27}}, {"id": 180, "type": "identifier", "text": "PULL_UP", "parent": 177, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 35}}, {"id": 181, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [182, 183, 184], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 36}}, {"id": 182, "type": "identifier", "text": "BLANK_PIN", "parent": 181, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 17}}, {"id": 183, "type": "identifier", "text": "IO_OUTPUT", "parent": 181, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 27}}, {"id": 184, "type": "identifier", "text": "PULL_UP", "parent": 181, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 35}}, {"id": 185, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [186, 187, 188], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 36}}, {"id": 186, "type": "identifier", "text": "BLANK_PIN", "parent": 185, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 17}}, {"id": 187, "type": "identifier", "text": "IO_OUTPUT", "parent": 185, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 27}}, {"id": 188, "type": "identifier", "text": "PULL_UP", "parent": 185, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 35}}, {"id": 189, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [190, 191, 192], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 36}}, {"id": 190, "type": "identifier", "text": "BLANK_PIN", "parent": 189, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 17}}, {"id": 191, "type": "identifier", "text": "IO_OUTPUT", "parent": 189, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 27}}, {"id": 192, "type": "identifier", "text": "PULL_UP", "parent": 189, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 35}}, {"id": 193, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [194, 195, 196], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 36}}, {"id": 194, "type": "identifier", "text": "BLANK_PIN", "parent": 193, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 17}}, {"id": 195, "type": "identifier", "text": "IO_OUTPUT", "parent": 193, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 27}}, {"id": 196, "type": "identifier", "text": "PULL_UP", "parent": 193, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 35}}, {"id": 197, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [198, 199, 200], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 36}}, {"id": 198, "type": "identifier", "text": "BLANK_PIN", "parent": 197, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 17}}, {"id": 199, "type": "identifier", "text": "IO_OUTPUT", "parent": 197, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 27}}, {"id": 200, "type": "identifier", "text": "PULL_UP", "parent": 197, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 35}}, {"id": 201, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [202, 203, 204], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 36}}, {"id": 202, "type": "identifier", "text": "BLANK_PIN", "parent": 201, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 17}}, {"id": 203, "type": "identifier", "text": "IO_OUTPUT", "parent": 201, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 27}}, {"id": 204, "type": "identifier", "text": "PULL_UP", "parent": 201, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 35}}, {"id": 205, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [206, 207, 208], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 36}}, {"id": 206, "type": "identifier", "text": "BLANK_PIN", "parent": 205, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 17}}, {"id": 207, "type": "identifier", "text": "IO_OUTPUT", "parent": 205, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 27}}, {"id": 208, "type": "identifier", "text": "PULL_UP", "parent": 205, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 35}}, {"id": 209, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [210, 211, 212], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 36}}, {"id": 210, "type": "identifier", "text": "BLANK_PIN", "parent": 209, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 17}}, {"id": 211, "type": "identifier", "text": "IO_OUTPUT", "parent": 209, "children": [], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 27}}, {"id": 212, "type": "identifier", "text": "PULL_UP", "parent": 209, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 35}}, {"id": 213, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [214, 215, 216], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 36}}, {"id": 214, "type": "identifier", "text": "BLANK_PIN", "parent": 213, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 17}}, {"id": 215, "type": "identifier", "text": "IO_OUTPUT", "parent": 213, "children": [], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 27}}, {"id": 216, "type": "identifier", "text": "PULL_UP", "parent": 213, "children": [], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 35}}, {"id": 217, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [218, 219, 220], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 36}}, {"id": 218, "type": "identifier", "text": "BLANK_PIN", "parent": 217, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 17}}, {"id": 219, "type": "identifier", "text": "IO_OUTPUT", "parent": 217, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 27}}, {"id": 220, "type": "identifier", "text": "PULL_UP", "parent": 217, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 35}}, {"id": 221, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [222, 223, 224], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 36}}, {"id": 222, "type": "identifier", "text": "BLANK_PIN", "parent": 221, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 17}}, {"id": 223, "type": "identifier", "text": "IO_OUTPUT", "parent": 221, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 27}}, {"id": 224, "type": "identifier", "text": "PULL_UP", "parent": 221, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 35}}, {"id": 225, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [226, 227, 228], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 36}}, {"id": 226, "type": "identifier", "text": "BLANK_PIN", "parent": 225, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 17}}, {"id": 227, "type": "identifier", "text": "IO_OUTPUT", "parent": 225, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 27}}, {"id": 228, "type": "identifier", "text": "PULL_UP", "parent": 225, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 35}}, {"id": 229, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [230, 231, 232], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 36}}, {"id": 230, "type": "identifier", "text": "BLANK_PIN", "parent": 229, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 17}}, {"id": 231, "type": "identifier", "text": "IO_OUTPUT", "parent": 229, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 27}}, {"id": 232, "type": "identifier", "text": "PULL_UP", "parent": 229, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 35}}, {"id": 233, "type": "initializer_list", "text": "{BLANK_PIN,IO_OUTPUT,PULL_UP}", "parent": 164, "children": [234, 235, 236], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 36}}, {"id": 234, "type": "identifier", "text": "BLANK_PIN", "parent": 233, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 17}}, {"id": 235, "type": "identifier", "text": "IO_OUTPUT", "parent": 233, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 27}}, {"id": 236, "type": "identifier", "text": "PULL_UP", "parent": 233, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 35}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 12, 13, 14, 15, 16, 18, 19, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 35, 36, 37, 38, 40, 44, 45, 46, 47, 48, 49, 50, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70, 74, 75, 76, 87, 88, 89, 100, 101, 102, 113, 114, 115, 126, 127, 128, 139, 140, 141, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 166, 167, 168, 170, 171, 172, 174, 175, 176, 178, 179, 180, 182, 183, 184, 186, 187, 188, 190, 191, 192, 194, 195, 196, 198, 199, 200, 202, 203, 204, 206, 207, 208, 210, 211, 212, 214, 215, 216, 218, 219, 220, 222, 223, 224, 226, 227, 228, 230, 231, 232, 234, 235, 236], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 9, 17, 28, 33, 39, 41, 51, 65, 71, 77, 78, 79, 80, 81, 82, 83, 84, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98, 103, 104, 105, 106, 107, 108, 109, 110, 111, 116, 117, 118, 119, 120, 121, 122, 123, 124, 129, 130, 131, 132, 133, 134, 135, 136, 137, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 163], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"OPL1000_pin_mux_define.h\""}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/******************************************************************************\n* Copyright 2017 - 2018, Opulinks Technology Ltd.\n* ---------------------------------------------------------------------------\n* ---------------------------------------------------------------------------\n* Statement: \n* ----------\n* This software is protected by Copyright and the information contained\n* herein is confidential. The software may not be copied and the information\n* contained herein may not be used or disclosed except with the written\n* permission of Opulinks Technology Ltd. (C) 2018\n******************************************************************************/ \n\n#include \"OPL1000_pin_mux_define.h\" \n\nT_OPL1000_Periph OPL1000_periph = {\n 0,{{UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE},\n {UART_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n DATA_BIT_8,\n PARITY_NONE,\n STOP_BIT_1,\n UART_SIMPLE}},\n 1,{I2C_SPEED_STANDARD,\n OPL1000_IO10_PIN,\n OPL1000_IO11_PIN,\n I2C_07BIT,\n 0x50,\n MASTER_NO_STOP},\n 0,{{SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE},\n {SPI_IDX_MAX,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n BLANK_PIN,\n 0,\n SPI_CLK_PLOAR_HIGH_ACT,\n SPI_CLK_PHASE_START,\n SPI_FMT_MOTOROLA,\n SPI_DFS_08_bit,\n QMODE_DISABLE}},\n 0,{{BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0},\n {BLANK_PIN,CLK_32KHz,CFG_SIMPLE,0,0,0,0,0,0,0,0,0}},\n 0,{BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN,BLANK_PIN},\n 0,{{BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP},\n {BLANK_PIN,IO_OUTPUT,PULL_UP}}\n};\n"}
81,001
c
#include <stdio.h> #include <stdlib.h> #define IM_W 20 #define IM_H 20 // convert MNIST training label file to Text // first 20x20 labels are output. int main() { // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/ char fileName[] = "train-labels.idx1-ubyte"; // open MNIST image file FILE *fp = fopen( fileName, "rb" ); if( fp == NULL ){ fprintf( stderr, "ERROR: Cannot open %s.\n", fileName ); fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" ); return 1; } // read magic number 0x0000 char magic[2]; int sz = fread( magic, 1, 2, fp ); if( sz != 2 ){ fprintf( stderr, "ERROR: read error %s.\n", fileName ); return 1; } if( magic[0] != 0 || magic[1] != 0 ){ fprintf( stderr, "ERROR: file format error %s.\n", fileName ); return 1; } fprintf( stderr, "INFO: magic number=0x0000.\n" ); // read datatype char datatype; sz = fread( &datatype, 1, 1, fp ); if( sz != 1 ){ fprintf( stderr, "ERROR: read error %s.\n", fileName ); return 1; } if( datatype != 0x08 ){ fprintf( stderr, "ERROR: file format error %s.\n", fileName ); return 1; } fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype ); // read dimension char dim; sz = fread( &dim, 1, 1, fp ); if( sz != 1 ){ fprintf( stderr, "ERROR: read error %s.\n", fileName ); return 1; } if( dim != 0x01 ){ fprintf( stderr, "ERROR: file format error %s.\n", fileName ); return 1; } fprintf( stderr, "INFO: dimension=%d.\n", (int)dim ); // read size in dimensions char dims[4]; int N[1]; for( int i=0; i<1; i++ ){ sz = fread( dims, 1, 4, fp ); if( sz != 4 ){ fprintf( stderr, "ERROR: read error %s.\n", fileName ); return 1; } N[i] = 0; for( int j=0; j<4; j++ ){ N[i] = (N[i] << 8) | (dims[j] & 0xff); } fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] ); } // read data int totalLength = N[0]; char *data = (char *) malloc( totalLength); if( data == NULL ){ fprintf( stderr, "ERROR: malloc.\n" ); return 1; } sz = fread( data, 1, totalLength, fp ); if( sz != totalLength ){ fprintf( stderr, "ERROR: read error %s.\n", fileName ); return 1; } // output Text for( int imY = 0; imY < IM_H; imY++ ){ for( int imX = 0; imX < IM_W; imX++ ){ int imIdx = imY * IM_W + imX; printf( "%c", '0' + data[imIdx] ); } printf( "\n" ); } fclose( fp ); }
26.59
91
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define IM_W 20\n#define IM_H 20\n\n// convert MNIST training label file to Text\n// first 20x20 labels are output.\nint main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = "train-labels.idx1-ubyte";\n\n // open MNIST image file\n FILE *fp = fopen( fileName, "rb" );\n if( fp == NULL ){\n fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );\n fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );\n return 1;\n }\n\n // read magic number 0x0000\n char magic[2];\n int sz = fread( magic, 1, 2, fp );\n if( sz != 2 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: magic number=0x0000.\n" );\n\n // read datatype\n char datatype;\n sz = fread( &datatype, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( datatype != 0x08 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype );\n\n\n // read dimension\n char dim;\n sz = fread( &dim, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( dim != 0x01 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: dimension=%d.\n", (int)dim );\n\n // read size in dimensions\n char dims[4];\n int N[1];\n for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );\n }\n\n // read data\n int totalLength = N[0];\n char *data = (char *) malloc( totalLength);\n if( data == NULL ){\n fprintf( stderr, "ERROR: malloc.\n" );\n return 1;\n }\n sz = fread( data, 1, totalLength, fp );\n if( sz != totalLength ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n\n // output Text\n for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }\n printf( "\n" );\n }\n fclose( fp );\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_def) "#define IM_W 20\n" (#define) "#define" (identifier) "IM_W" (preproc_arg) "20" (preproc_def) "#define IM_H 20\n" (#define) "#define" (identifier) "IM_H" (preproc_arg) "20" (comment) "// convert MNIST training label file to Text" (comment) "// first 20x20 labels are output." (function_definition) "int main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = "train-labels.idx1-ubyte";\n\n // open MNIST image file\n FILE *fp = fopen( fileName, "rb" );\n if( fp == NULL ){\n fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );\n fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );\n return 1;\n }\n\n // read magic number 0x0000\n char magic[2];\n int sz = fread( magic, 1, 2, fp );\n if( sz != 2 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: magic number=0x0000.\n" );\n\n // read datatype\n char datatype;\n sz = fread( &datatype, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( datatype != 0x08 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype );\n\n\n // read dimension\n char dim;\n sz = fread( &dim, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( dim != 0x01 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: dimension=%d.\n", (int)dim );\n\n // read size in dimensions\n char dims[4];\n int N[1];\n for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );\n }\n\n // read data\n int totalLength = N[0];\n char *data = (char *) malloc( totalLength);\n if( data == NULL ){\n fprintf( stderr, "ERROR: malloc.\n" );\n return 1;\n }\n sz = fread( data, 1, totalLength, fp );\n if( sz != totalLength ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n\n // output Text\n for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }\n printf( "\n" );\n }\n fclose( fp );\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = "train-labels.idx1-ubyte";\n\n // open MNIST image file\n FILE *fp = fopen( fileName, "rb" );\n if( fp == NULL ){\n fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );\n fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );\n return 1;\n }\n\n // read magic number 0x0000\n char magic[2];\n int sz = fread( magic, 1, 2, fp );\n if( sz != 2 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: magic number=0x0000.\n" );\n\n // read datatype\n char datatype;\n sz = fread( &datatype, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( datatype != 0x08 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype );\n\n\n // read dimension\n char dim;\n sz = fread( &dim, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n if( dim != 0x01 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }\n fprintf( stderr, "INFO: dimension=%d.\n", (int)dim );\n\n // read size in dimensions\n char dims[4];\n int N[1];\n for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );\n }\n\n // read data\n int totalLength = N[0];\n char *data = (char *) malloc( totalLength);\n if( data == NULL ){\n fprintf( stderr, "ERROR: malloc.\n" );\n return 1;\n }\n sz = fread( data, 1, totalLength, fp );\n if( sz != totalLength ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n\n // output Text\n for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }\n printf( "\n" );\n }\n fclose( fp );\n}" ({) "{" (comment) "// MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/" (declaration) "char fileName[] = "train-labels.idx1-ubyte";" (primitive_type) "char" (init_declarator) "fileName[] = "train-labels.idx1-ubyte"" (array_declarator) "fileName[]" (identifier) "fileName" ([) "[" (]) "]" (=) "=" (string_literal) ""train-labels.idx1-ubyte"" (") """ (string_content) "train-labels.idx1-ubyte" (") """ (;) ";" (comment) "// open MNIST image file" (declaration) "FILE *fp = fopen( fileName, "rb" );" (type_identifier) "FILE" (init_declarator) "*fp = fopen( fileName, "rb" )" (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (=) "=" (call_expression) "fopen( fileName, "rb" )" (identifier) "fopen" (argument_list) "( fileName, "rb" )" (() "(" (identifier) "fileName" (,) "," (string_literal) ""rb"" (") """ (string_content) "rb" (") """ ()) ")" (;) ";" (if_statement) "if( fp == NULL ){\n fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );\n fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );\n return 1;\n }" (if) "if" (parenthesized_expression) "( fp == NULL )" (() "(" (binary_expression) "fp == NULL" (identifier) "fp" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );\n fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: Cannot open %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: Cannot open %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: Cannot open %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: Cannot open %s.\n"" (") """ (string_content) "ERROR: Cannot open %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (expression_statement) "fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" );" (call_expression) "fprintf( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" )" (identifier) "fprintf" (argument_list) "( stderr, "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n" )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\n"" (") """ (string_content) "MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "// read magic number 0x0000" (declaration) "char magic[2];" (primitive_type) "char" (array_declarator) "magic[2]" (identifier) "magic" ([) "[" (number_literal) "2" (]) "]" (;) ";" (declaration) "int sz = fread( magic, 1, 2, fp );" (primitive_type) "int" (init_declarator) "sz = fread( magic, 1, 2, fp )" (identifier) "sz" (=) "=" (call_expression) "fread( magic, 1, 2, fp )" (identifier) "fread" (argument_list) "( magic, 1, 2, fp )" (() "(" (identifier) "magic" (,) "," (number_literal) "1" (,) "," (number_literal) "2" (,) "," (identifier) "fp" ()) ")" (;) ";" (if_statement) "if( sz != 2 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( sz != 2 )" (() "(" (binary_expression) "sz != 2" (identifier) "sz" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: read error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: read error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: read error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: read error %s.\n"" (") """ (string_content) "ERROR: read error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( magic[0] != 0 || magic[1] != 0 )" (() "(" (binary_expression) "magic[0] != 0 || magic[1] != 0" (binary_expression) "magic[0] != 0" (subscript_expression) "magic[0]" (identifier) "magic" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" (||) "||" (binary_expression) "magic[1] != 0" (subscript_expression) "magic[1]" (identifier) "magic" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: file format error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: file format error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: file format error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: file format error %s.\n"" (") """ (string_content) "ERROR: file format error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "fprintf( stderr, "INFO: magic number=0x0000.\n" );" (call_expression) "fprintf( stderr, "INFO: magic number=0x0000.\n" )" (identifier) "fprintf" (argument_list) "( stderr, "INFO: magic number=0x0000.\n" )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""INFO: magic number=0x0000.\n"" (") """ (string_content) "INFO: magic number=0x0000." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (comment) "// read datatype" (declaration) "char datatype;" (primitive_type) "char" (identifier) "datatype" (;) ";" (expression_statement) "sz = fread( &datatype, 1, 1, fp );" (assignment_expression) "sz = fread( &datatype, 1, 1, fp )" (identifier) "sz" (=) "=" (call_expression) "fread( &datatype, 1, 1, fp )" (identifier) "fread" (argument_list) "( &datatype, 1, 1, fp )" (() "(" (pointer_expression) "&datatype" (&) "&" (identifier) "datatype" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (identifier) "fp" ()) ")" (;) ";" (if_statement) "if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( sz != 1 )" (() "(" (binary_expression) "sz != 1" (identifier) "sz" (!=) "!=" (number_literal) "1" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: read error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: read error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: read error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: read error %s.\n"" (") """ (string_content) "ERROR: read error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if( datatype != 0x08 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( datatype != 0x08 )" (() "(" (binary_expression) "datatype != 0x08" (identifier) "datatype" (!=) "!=" (number_literal) "0x08" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: file format error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: file format error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: file format error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: file format error %s.\n"" (") """ (string_content) "ERROR: file format error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype );" (call_expression) "fprintf( stderr, "INFO: datatype=%d.\n", (int)datatype )" (identifier) "fprintf" (argument_list) "( stderr, "INFO: datatype=%d.\n", (int)datatype )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""INFO: datatype=%d.\n"" (") """ (string_content) "INFO: datatype=%d." (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(int)datatype" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "datatype" ()) ")" (;) ";" (comment) "// read dimension" (declaration) "char dim;" (primitive_type) "char" (identifier) "dim" (;) ";" (expression_statement) "sz = fread( &dim, 1, 1, fp );" (assignment_expression) "sz = fread( &dim, 1, 1, fp )" (identifier) "sz" (=) "=" (call_expression) "fread( &dim, 1, 1, fp )" (identifier) "fread" (argument_list) "( &dim, 1, 1, fp )" (() "(" (pointer_expression) "&dim" (&) "&" (identifier) "dim" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (identifier) "fp" ()) ")" (;) ";" (if_statement) "if( sz != 1 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( sz != 1 )" (() "(" (binary_expression) "sz != 1" (identifier) "sz" (!=) "!=" (number_literal) "1" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: read error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: read error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: read error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: read error %s.\n"" (") """ (string_content) "ERROR: read error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if( dim != 0x01 ){\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( dim != 0x01 )" (() "(" (binary_expression) "dim != 0x01" (identifier) "dim" (!=) "!=" (number_literal) "0x01" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: file format error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: file format error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: file format error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: file format error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: file format error %s.\n"" (") """ (string_content) "ERROR: file format error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "fprintf( stderr, "INFO: dimension=%d.\n", (int)dim );" (call_expression) "fprintf( stderr, "INFO: dimension=%d.\n", (int)dim )" (identifier) "fprintf" (argument_list) "( stderr, "INFO: dimension=%d.\n", (int)dim )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""INFO: dimension=%d.\n"" (") """ (string_content) "INFO: dimension=%d." (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(int)dim" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "dim" ()) ")" (;) ";" (comment) "// read size in dimensions" (declaration) "char dims[4];" (primitive_type) "char" (array_declarator) "dims[4]" (identifier) "dims" ([) "[" (number_literal) "4" (]) "]" (;) ";" (declaration) "int N[1];" (primitive_type) "int" (array_declarator) "N[1]" (identifier) "N" ([) "[" (number_literal) "1" (]) "]" (;) ";" (for_statement) "for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<1" (identifier) "i" (<) "<" (number_literal) "1" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );\n }" ({) "{" (expression_statement) "sz = fread( dims, 1, 4, fp );" (assignment_expression) "sz = fread( dims, 1, 4, fp )" (identifier) "sz" (=) "=" (call_expression) "fread( dims, 1, 4, fp )" (identifier) "fread" (argument_list) "( dims, 1, 4, fp )" (() "(" (identifier) "dims" (,) "," (number_literal) "1" (,) "," (number_literal) "4" (,) "," (identifier) "fp" ()) ")" (;) ";" (if_statement) "if( sz != 4 ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( sz != 4 )" (() "(" (binary_expression) "sz != 4" (identifier) "sz" (!=) "!=" (number_literal) "4" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: read error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: read error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: read error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: read error %s.\n"" (") """ (string_content) "ERROR: read error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "N[i] = 0;" (assignment_expression) "N[i] = 0" (subscript_expression) "N[i]" (identifier) "N" ([) "[" (identifier) "i" (]) "]" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }" (for) "for" (() "(" (declaration) "int j=0;" (primitive_type) "int" (init_declarator) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j<4" (identifier) "j" (<) "<" (number_literal) "4" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }" ({) "{" (expression_statement) "N[i] = (N[i] << 8) | (dims[j] & 0xff);" (assignment_expression) "N[i] = (N[i] << 8) | (dims[j] & 0xff)" (subscript_expression) "N[i]" (identifier) "N" ([) "[" (identifier) "i" (]) "]" (=) "=" (binary_expression) "(N[i] << 8) | (dims[j] & 0xff)" (parenthesized_expression) "(N[i] << 8)" (() "(" (binary_expression) "N[i] << 8" (subscript_expression) "N[i]" (identifier) "N" ([) "[" (identifier) "i" (]) "]" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (parenthesized_expression) "(dims[j] & 0xff)" (() "(" (binary_expression) "dims[j] & 0xff" (subscript_expression) "dims[j]" (identifier) "dims" ([) "[" (identifier) "j" (]) "]" (&) "&" (number_literal) "0xff" ()) ")" (;) ";" (}) "}" (expression_statement) "fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] );" (call_expression) "fprintf( stderr, "INFO: dimension %d length=%d.\n", i, N[i] )" (identifier) "fprintf" (argument_list) "( stderr, "INFO: dimension %d length=%d.\n", i, N[i] )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""INFO: dimension %d length=%d.\n"" (") """ (string_content) "INFO: dimension %d length=%d." (escape_sequence) "\n" (") """ (,) "," (identifier) "i" (,) "," (subscript_expression) "N[i]" (identifier) "N" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (comment) "// read data" (declaration) "int totalLength = N[0];" (primitive_type) "int" (init_declarator) "totalLength = N[0]" (identifier) "totalLength" (=) "=" (subscript_expression) "N[0]" (identifier) "N" ([) "[" (number_literal) "0" (]) "]" (;) ";" (declaration) "char *data = (char *) malloc( totalLength);" (primitive_type) "char" (init_declarator) "*data = (char *) malloc( totalLength)" (pointer_declarator) "*data" (*) "*" (identifier) "data" (=) "=" (cast_expression) "(char *) malloc( totalLength)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc( totalLength)" (identifier) "malloc" (argument_list) "( totalLength)" (() "(" (identifier) "totalLength" ()) ")" (;) ";" (if_statement) "if( data == NULL ){\n fprintf( stderr, "ERROR: malloc.\n" );\n return 1;\n }" (if) "if" (parenthesized_expression) "( data == NULL )" (() "(" (binary_expression) "data == NULL" (identifier) "data" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: malloc.\n" );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: malloc.\n" );" (call_expression) "fprintf( stderr, "ERROR: malloc.\n" )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: malloc.\n" )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: malloc.\n"" (") """ (string_content) "ERROR: malloc." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "sz = fread( data, 1, totalLength, fp );" (assignment_expression) "sz = fread( data, 1, totalLength, fp )" (identifier) "sz" (=) "=" (call_expression) "fread( data, 1, totalLength, fp )" (identifier) "fread" (argument_list) "( data, 1, totalLength, fp )" (() "(" (identifier) "data" (,) "," (number_literal) "1" (,) "," (identifier) "totalLength" (,) "," (identifier) "fp" ()) ")" (;) ";" (if_statement) "if( sz != totalLength ){\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" (if) "if" (parenthesized_expression) "( sz != totalLength )" (() "(" (binary_expression) "sz != totalLength" (identifier) "sz" (!=) "!=" (identifier) "totalLength" ()) ")" (compound_statement) "{\n fprintf( stderr, "ERROR: read error %s.\n", fileName );\n return 1;\n }" ({) "{" (expression_statement) "fprintf( stderr, "ERROR: read error %s.\n", fileName );" (call_expression) "fprintf( stderr, "ERROR: read error %s.\n", fileName )" (identifier) "fprintf" (argument_list) "( stderr, "ERROR: read error %s.\n", fileName )" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ERROR: read error %s.\n"" (") """ (string_content) "ERROR: read error %s." (escape_sequence) "\n" (") """ (,) "," (identifier) "fileName" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "// output Text" (for_statement) "for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }\n printf( "\n" );\n }" (for) "for" (() "(" (declaration) "int imY = 0;" (primitive_type) "int" (init_declarator) "imY = 0" (identifier) "imY" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "imY < IM_H" (identifier) "imY" (<) "<" (identifier) "IM_H" (;) ";" (update_expression) "imY++" (identifier) "imY" (++) "++" ()) ")" (compound_statement) "{\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }\n printf( "\n" );\n }" ({) "{" (for_statement) "for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }" (for) "for" (() "(" (declaration) "int imX = 0;" (primitive_type) "int" (init_declarator) "imX = 0" (identifier) "imX" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "imX < IM_W" (identifier) "imX" (<) "<" (identifier) "IM_W" (;) ";" (update_expression) "imX++" (identifier) "imX" (++) "++" ()) ")" (compound_statement) "{\n int imIdx = imY * IM_W + imX;\n printf( "%c", '0' + data[imIdx] );\n }" ({) "{" (declaration) "int imIdx = imY * IM_W + imX;" (primitive_type) "int" (init_declarator) "imIdx = imY * IM_W + imX" (identifier) "imIdx" (=) "=" (binary_expression) "imY * IM_W + imX" (binary_expression) "imY * IM_W" (identifier) "imY" (*) "*" (identifier) "IM_W" (+) "+" (identifier) "imX" (;) ";" (expression_statement) "printf( "%c", '0' + data[imIdx] );" (call_expression) "printf( "%c", '0' + data[imIdx] )" (identifier) "printf" (argument_list) "( "%c", '0' + data[imIdx] )" (() "(" (string_literal) ""%c"" (") """ (string_content) "%c" (") """ (,) "," (binary_expression) "'0' + data[imIdx]" (char_literal) "'0'" (') "'" (character) "0" (') "'" (+) "+" (subscript_expression) "data[imIdx]" (identifier) "data" ([) "[" (identifier) "imIdx" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "printf( "\n" );" (call_expression) "printf( "\n" )" (identifier) "printf" (argument_list) "( "\n" )" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "fclose( fp );" (call_expression) "fclose( fp )" (identifier) "fclose" (argument_list) "( fp )" (() "(" (identifier) "fp" ()) ")" (;) ";" (}) "}"
833
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 26.59, "nodes": 455, "errors": 0, "source_hash": "4cb13fee5651978e057ff913d24ee8b91aa79e2a59f2031c73370ad7ccd522c8", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_def", "text": "#define IM_W 20\n", "parent": null, "children": [7, 8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "identifier", "text": "IM_W", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 9, "type": "preproc_arg", "text": "20", "parent": 6, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 15}}, {"id": 10, "type": "preproc_def", "text": "#define IM_H 20\n", "parent": null, "children": [11, 12, 13], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 12, "type": "identifier", "text": "IM_H", "parent": 10, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 13, "type": "preproc_arg", "text": "20", "parent": 10, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 15}}, {"id": 14, "type": "function_definition", "text": "int main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = \"train-labels.idx1-ubyte\";\n\n // open MNIST image file\n FILE *fp = fopen( fileName, \"rb\" );\n if( fp == NULL ){\n fprintf( stderr, \"ERROR: Cannot open %s.\\n\", fileName );\n fprintf( stderr, \"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\" );\n return 1;\n }\n\n // read magic number 0x0000\n char magic[2];\n int sz = fread( magic, 1, 2, fp );\n if( sz != 2 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: magic number=0x0000.\\n\" );\n\n // read datatype\n char datatype;\n sz = fread( &datatype, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( datatype != 0x08 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: datatype=%d.\\n\", (int)datatype );\n\n\n // read dimension\n char dim;\n sz = fread( &dim, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( dim != 0x01 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: dimension=%d.\\n\", (int)dim );\n\n // read size in dimensions\n char dims[4];\n int N[1];\n for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, \"INFO: dimension %d length=%d.\\n\", i, N[i] );\n }\n\n // read data\n int totalLength = N[0];\n char *data = (char *) malloc( totalLength);\n if( data == NULL ){\n fprintf( stderr, \"ERROR: malloc.\\n\" );\n return 1;\n }\n sz = fread( data, 1, totalLength, fp );\n if( sz != totalLength ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n\n // output Text\n for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( \"%c\", '0' + data[imIdx] );\n }\n printf( \"\\n\" );\n }\n fclose( fp );\n}", "parent": null, "children": [15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 16, "type": "function_declarator", "text": "main()", "parent": 14, "children": [17, 18], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 10}}, {"id": 17, "type": "identifier", "text": "main", "parent": 16, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 10}}, {"id": 19, "type": "declaration", "text": "char fileName[] = \"train-labels.idx1-ubyte\";", "parent": 14, "children": [20, 21], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 46}}, {"id": 20, "type": "primitive_type", "text": "char", "parent": 19, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 6}}, {"id": 21, "type": "init_declarator", "text": "fileName[] = \"train-labels.idx1-ubyte\"", "parent": 19, "children": [22, 24, 25], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 45}}, {"id": 22, "type": "array_declarator", "text": "fileName[]", "parent": 21, "children": [23], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 17}}, {"id": 23, "type": "identifier", "text": "fileName", "parent": 22, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 15}}, {"id": 24, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 25, "type": "string_literal", "text": "\"train-labels.idx1-ubyte\"", "parent": 21, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 45}}, {"id": 26, "type": "declaration", "text": "FILE *fp = fopen( fileName, \"rb\" );", "parent": 14, "children": [27, 28], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 37}}, {"id": 27, "type": "type_identifier", "text": "FILE", "parent": 26, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 6}}, {"id": 28, "type": "init_declarator", "text": "*fp = fopen( fileName, \"rb\" )", "parent": 26, "children": [29, 32, 33], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 36}}, {"id": 29, "type": "pointer_declarator", "text": "*fp", "parent": 28, "children": [30, 31], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 10}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 8}}, {"id": 31, "type": "identifier", "text": "fp", "parent": 29, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 10}}, {"id": 32, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 33, "type": "call_expression", "text": "fopen( fileName, \"rb\" )", "parent": 28, "children": [34, 35], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 36}}, {"id": 34, "type": "identifier", "text": "fopen", "parent": 33, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 18}}, {"id": 35, "type": "argument_list", "text": "( fileName, \"rb\" )", "parent": 33, "children": [36, 37], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 36}}, {"id": 36, "type": "identifier", "text": "fileName", "parent": 35, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 28}}, {"id": 37, "type": "string_literal", "text": "\"rb\"", "parent": 35, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 34}}, {"id": 38, "type": "if_statement", "text": "if( fp == NULL ){\n fprintf( stderr, \"ERROR: Cannot open %s.\\n\", fileName );\n fprintf( stderr, \"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\" );\n return 1;\n }", "parent": 14, "children": [39], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 19, "column": 3}}, {"id": 39, "type": "parenthesized_expression", "text": "( fp == NULL )", "parent": 38, "children": [40], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 18}}, {"id": 40, "type": "binary_expression", "text": "fp == NULL", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 16}}, {"id": 41, "type": "identifier", "text": "fp", "parent": 40, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 8}}, {"id": 42, "type": "==", "text": "==", "parent": 40, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 11}}, {"id": 43, "type": "null", "text": "NULL", "parent": 40, "children": [44], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 16}}, {"id": 44, "type": "NULL", "text": "NULL", "parent": 43, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 16}}, {"id": 45, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: Cannot open %s.\\n\", fileName )", "parent": 38, "children": [46, 47], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 59}}, {"id": 46, "type": "identifier", "text": "fprintf", "parent": 45, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 47, "type": "argument_list", "text": "( stderr, \"ERROR: Cannot open %s.\\n\", fileName )", "parent": 45, "children": [48, 49, 51], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 59}}, {"id": 48, "type": "identifier", "text": "stderr", "parent": 47, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 19}}, {"id": 49, "type": "string_literal", "text": "\"ERROR: Cannot open %s.\\n\"", "parent": 47, "children": [50], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 47}}, {"id": 50, "type": "escape_sequence", "text": "\\n", "parent": 49, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 46}}, {"id": 51, "type": "identifier", "text": "fileName", "parent": 47, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 57}}, {"id": 52, "type": "call_expression", "text": "fprintf( stderr, \"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\" )", "parent": 38, "children": [53, 54], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 100}}, {"id": 53, "type": "identifier", "text": "fprintf", "parent": 52, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 54, "type": "argument_list", "text": "( stderr, \"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\" )", "parent": 52, "children": [55, 56], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 100}}, {"id": 55, "type": "identifier", "text": "stderr", "parent": 54, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 19}}, {"id": 56, "type": "string_literal", "text": "\"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\"", "parent": 54, "children": [57], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 98}}, {"id": 57, "type": "escape_sequence", "text": "\\n", "parent": 56, "children": [], "start_point": {"row": 17, "column": 95}, "end_point": {"row": 17, "column": 97}}, {"id": 58, "type": "return_statement", "text": "return 1;", "parent": 38, "children": [59], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 59, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 60, "type": "declaration", "text": "char magic[2];", "parent": 14, "children": [61, 62], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 16}}, {"id": 61, "type": "primitive_type", "text": "char", "parent": 60, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 62, "type": "array_declarator", "text": "magic[2]", "parent": 60, "children": [63, 64], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 63, "type": "identifier", "text": "magic", "parent": 62, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 12}}, {"id": 64, "type": "number_literal", "text": "2", "parent": 62, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 14}}, {"id": 65, "type": "declaration", "text": "int sz = fread( magic, 1, 2, fp );", "parent": 14, "children": [66, 67], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 36}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 67, "type": "init_declarator", "text": "sz = fread( magic, 1, 2, fp )", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 35}}, {"id": 68, "type": "identifier", "text": "sz", "parent": 67, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 8}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 70, "type": "call_expression", "text": "fread( magic, 1, 2, fp )", "parent": 67, "children": [71, 72], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 35}}, {"id": 71, "type": "identifier", "text": "fread", "parent": 70, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 16}}, {"id": 72, "type": "argument_list", "text": "( magic, 1, 2, fp )", "parent": 70, "children": [73, 74, 75, 76], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 35}}, {"id": 73, "type": "identifier", "text": "magic", "parent": 72, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 23}}, {"id": 74, "type": "number_literal", "text": "1", "parent": 72, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 75, "type": "number_literal", "text": "2", "parent": 72, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 76, "type": "identifier", "text": "fp", "parent": 72, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 33}}, {"id": 77, "type": "if_statement", "text": "if( sz != 2 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [78], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 27, "column": 3}}, {"id": 78, "type": "parenthesized_expression", "text": "( sz != 2 )", "parent": 77, "children": [79], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 79, "type": "binary_expression", "text": "sz != 2", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 13}}, {"id": 80, "type": "identifier", "text": "sz", "parent": 79, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 8}}, {"id": 81, "type": "!=", "text": "!=", "parent": 79, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 11}}, {"id": 82, "type": "number_literal", "text": "2", "parent": 79, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 83, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 77, "children": [84, 85], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 58}}, {"id": 84, "type": "identifier", "text": "fprintf", "parent": 83, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 85, "type": "argument_list", "text": "( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 83, "children": [86, 87, 89], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 58}}, {"id": 86, "type": "identifier", "text": "stderr", "parent": 85, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 19}}, {"id": 87, "type": "string_literal", "text": "\"ERROR: read error %s.\\n\"", "parent": 85, "children": [88], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 46}}, {"id": 88, "type": "escape_sequence", "text": "\\n", "parent": 87, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 45}}, {"id": 89, "type": "identifier", "text": "fileName", "parent": 85, "children": [], "start_point": {"row": 25, "column": 48}, "end_point": {"row": 25, "column": 56}}, {"id": 90, "type": "return_statement", "text": "return 1;", "parent": 77, "children": [91], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 13}}, {"id": 91, "type": "number_literal", "text": "1", "parent": 90, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 92, "type": "if_statement", "text": "if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [93], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 31, "column": 3}}, {"id": 93, "type": "parenthesized_expression", "text": "( magic[0] != 0 || magic[1] != 0 )", "parent": 92, "children": [94], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 38}}, {"id": 94, "type": "binary_expression", "text": "magic[0] != 0 || magic[1] != 0", "parent": 93, "children": [95, 101, 102], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 36}}, {"id": 95, "type": "binary_expression", "text": "magic[0] != 0", "parent": 94, "children": [96, 99, 100], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 19}}, {"id": 96, "type": "subscript_expression", "text": "magic[0]", "parent": 95, "children": [97, 98], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 14}}, {"id": 97, "type": "identifier", "text": "magic", "parent": 96, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 11}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 96, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 99, "type": "!=", "text": "!=", "parent": 95, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 17}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 19}}, {"id": 101, "type": "||", "text": "||", "parent": 94, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 22}}, {"id": 102, "type": "binary_expression", "text": "magic[1] != 0", "parent": 94, "children": [103, 106, 107], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 36}}, {"id": 103, "type": "subscript_expression", "text": "magic[1]", "parent": 102, "children": [104, 105], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 31}}, {"id": 104, "type": "identifier", "text": "magic", "parent": 103, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 28}}, {"id": 105, "type": "number_literal", "text": "1", "parent": 103, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 30}}, {"id": 106, "type": "!=", "text": "!=", "parent": 102, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 36}}, {"id": 108, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 92, "children": [109, 110], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 65}}, {"id": 109, "type": "identifier", "text": "fprintf", "parent": 108, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 110, "type": "argument_list", "text": "( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 108, "children": [111, 112, 114], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 65}}, {"id": 111, "type": "identifier", "text": "stderr", "parent": 110, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 19}}, {"id": 112, "type": "string_literal", "text": "\"ERROR: file format error %s.\\n\"", "parent": 110, "children": [113], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 53}}, {"id": 113, "type": "escape_sequence", "text": "\\n", "parent": 112, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 52}}, {"id": 114, "type": "identifier", "text": "fileName", "parent": 110, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 63}}, {"id": 115, "type": "return_statement", "text": "return 1;", "parent": 92, "children": [116], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 116, "type": "number_literal", "text": "1", "parent": 115, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 117, "type": "call_expression", "text": "fprintf( stderr, \"INFO: magic number=0x0000.\\n\" )", "parent": 14, "children": [118, 119], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 51}}, {"id": 118, "type": "identifier", "text": "fprintf", "parent": 117, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 9}}, {"id": 119, "type": "argument_list", "text": "( stderr, \"INFO: magic number=0x0000.\\n\" )", "parent": 117, "children": [120, 121], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 51}}, {"id": 120, "type": "identifier", "text": "stderr", "parent": 119, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 17}}, {"id": 121, "type": "string_literal", "text": "\"INFO: magic number=0x0000.\\n\"", "parent": 119, "children": [122], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 49}}, {"id": 122, "type": "escape_sequence", "text": "\\n", "parent": 121, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 48}}, {"id": 123, "type": "declaration", "text": "char datatype;", "parent": 14, "children": [124, 125], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 16}}, {"id": 124, "type": "primitive_type", "text": "char", "parent": 123, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 125, "type": "identifier", "text": "datatype", "parent": 123, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 15}}, {"id": 126, "type": "assignment_expression", "text": "sz = fread( &datatype, 1, 1, fp )", "parent": 14, "children": [127, 128, 129], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 35}}, {"id": 127, "type": "identifier", "text": "sz", "parent": 126, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 4}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 129, "type": "call_expression", "text": "fread( &datatype, 1, 1, fp )", "parent": 126, "children": [130, 131], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 35}}, {"id": 130, "type": "identifier", "text": "fread", "parent": 129, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 12}}, {"id": 131, "type": "argument_list", "text": "( &datatype, 1, 1, fp )", "parent": 129, "children": [132, 134, 135, 136], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 35}}, {"id": 132, "type": "pointer_expression", "text": "&datatype", "parent": 131, "children": [133], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 23}}, {"id": 133, "type": "identifier", "text": "datatype", "parent": 132, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 23}}, {"id": 134, "type": "number_literal", "text": "1", "parent": 131, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 26}}, {"id": 135, "type": "number_literal", "text": "1", "parent": 131, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 29}}, {"id": 136, "type": "identifier", "text": "fp", "parent": 131, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 33}}, {"id": 137, "type": "if_statement", "text": "if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [138], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 138, "type": "parenthesized_expression", "text": "( sz != 1 )", "parent": 137, "children": [139], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 139, "type": "binary_expression", "text": "sz != 1", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 13}}, {"id": 140, "type": "identifier", "text": "sz", "parent": 139, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 8}}, {"id": 141, "type": "!=", "text": "!=", "parent": 139, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 11}}, {"id": 142, "type": "number_literal", "text": "1", "parent": 139, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 143, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 137, "children": [144, 145], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 58}}, {"id": 144, "type": "identifier", "text": "fprintf", "parent": 143, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 11}}, {"id": 145, "type": "argument_list", "text": "( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 143, "children": [146, 147, 149], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 58}}, {"id": 146, "type": "identifier", "text": "stderr", "parent": 145, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 19}}, {"id": 147, "type": "string_literal", "text": "\"ERROR: read error %s.\\n\"", "parent": 145, "children": [148], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 46}}, {"id": 148, "type": "escape_sequence", "text": "\\n", "parent": 147, "children": [], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 45}}, {"id": 149, "type": "identifier", "text": "fileName", "parent": 145, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 56}}, {"id": 150, "type": "return_statement", "text": "return 1;", "parent": 137, "children": [151], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 13}}, {"id": 151, "type": "number_literal", "text": "1", "parent": 150, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 152, "type": "if_statement", "text": "if( datatype != 0x08 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [153], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 44, "column": 3}}, {"id": 153, "type": "parenthesized_expression", "text": "( datatype != 0x08 )", "parent": 152, "children": [154], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 24}}, {"id": 154, "type": "binary_expression", "text": "datatype != 0x08", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 22}}, {"id": 155, "type": "identifier", "text": "datatype", "parent": 154, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 14}}, {"id": 156, "type": "!=", "text": "!=", "parent": 154, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 17}}, {"id": 157, "type": "number_literal", "text": "0x08", "parent": 154, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 22}}, {"id": 158, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 152, "children": [159, 160], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 65}}, {"id": 159, "type": "identifier", "text": "fprintf", "parent": 158, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 160, "type": "argument_list", "text": "( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 158, "children": [161, 162, 164], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 65}}, {"id": 161, "type": "identifier", "text": "stderr", "parent": 160, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 19}}, {"id": 162, "type": "string_literal", "text": "\"ERROR: file format error %s.\\n\"", "parent": 160, "children": [163], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 53}}, {"id": 163, "type": "escape_sequence", "text": "\\n", "parent": 162, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 52}}, {"id": 164, "type": "identifier", "text": "fileName", "parent": 160, "children": [], "start_point": {"row": 42, "column": 55}, "end_point": {"row": 42, "column": 63}}, {"id": 165, "type": "return_statement", "text": "return 1;", "parent": 152, "children": [166], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 166, "type": "number_literal", "text": "1", "parent": 165, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 12}}, {"id": 167, "type": "call_expression", "text": "fprintf( stderr, \"INFO: datatype=%d.\\n\", (int)datatype )", "parent": 14, "children": [168, 169], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 58}}, {"id": 168, "type": "identifier", "text": "fprintf", "parent": 167, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 169, "type": "argument_list", "text": "( stderr, \"INFO: datatype=%d.\\n\", (int)datatype )", "parent": 167, "children": [170, 171, 173], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 58}}, {"id": 170, "type": "identifier", "text": "stderr", "parent": 169, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 17}}, {"id": 171, "type": "string_literal", "text": "\"INFO: datatype=%d.\\n\"", "parent": 169, "children": [172], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 41}}, {"id": 172, "type": "escape_sequence", "text": "\\n", "parent": 171, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 40}}, {"id": 173, "type": "cast_expression", "text": "(int)datatype", "parent": 169, "children": [174, 176], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 56}}, {"id": 174, "type": "type_descriptor", "text": "int", "parent": 173, "children": [175], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 47}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 47}}, {"id": 176, "type": "identifier", "text": "datatype", "parent": 173, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 56}}, {"id": 177, "type": "declaration", "text": "char dim;", "parent": 14, "children": [178, 179], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 11}}, {"id": 178, "type": "primitive_type", "text": "char", "parent": 177, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 6}}, {"id": 179, "type": "identifier", "text": "dim", "parent": 177, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 10}}, {"id": 180, "type": "assignment_expression", "text": "sz = fread( &dim, 1, 1, fp )", "parent": 14, "children": [181, 182, 183], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 30}}, {"id": 181, "type": "identifier", "text": "sz", "parent": 180, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 4}}, {"id": 182, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 6}}, {"id": 183, "type": "call_expression", "text": "fread( &dim, 1, 1, fp )", "parent": 180, "children": [184, 185], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 30}}, {"id": 184, "type": "identifier", "text": "fread", "parent": 183, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 12}}, {"id": 185, "type": "argument_list", "text": "( &dim, 1, 1, fp )", "parent": 183, "children": [186, 188, 189, 190], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 30}}, {"id": 186, "type": "pointer_expression", "text": "&dim", "parent": 185, "children": [187], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 18}}, {"id": 187, "type": "identifier", "text": "dim", "parent": 186, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 18}}, {"id": 188, "type": "number_literal", "text": "1", "parent": 185, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 21}}, {"id": 189, "type": "number_literal", "text": "1", "parent": 185, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 24}}, {"id": 190, "type": "identifier", "text": "fp", "parent": 185, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 28}}, {"id": 191, "type": "if_statement", "text": "if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [192], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 54, "column": 3}}, {"id": 192, "type": "parenthesized_expression", "text": "( sz != 1 )", "parent": 191, "children": [193], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 15}}, {"id": 193, "type": "binary_expression", "text": "sz != 1", "parent": 192, "children": [194, 195, 196], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 13}}, {"id": 194, "type": "identifier", "text": "sz", "parent": 193, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 8}}, {"id": 195, "type": "!=", "text": "!=", "parent": 193, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 11}}, {"id": 196, "type": "number_literal", "text": "1", "parent": 193, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 13}}, {"id": 197, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 191, "children": [198, 199], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 58}}, {"id": 198, "type": "identifier", "text": "fprintf", "parent": 197, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 11}}, {"id": 199, "type": "argument_list", "text": "( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 197, "children": [200, 201, 203], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 58}}, {"id": 200, "type": "identifier", "text": "stderr", "parent": 199, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 19}}, {"id": 201, "type": "string_literal", "text": "\"ERROR: read error %s.\\n\"", "parent": 199, "children": [202], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 46}}, {"id": 202, "type": "escape_sequence", "text": "\\n", "parent": 201, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 45}}, {"id": 203, "type": "identifier", "text": "fileName", "parent": 199, "children": [], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 56}}, {"id": 204, "type": "return_statement", "text": "return 1;", "parent": 191, "children": [205], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 13}}, {"id": 205, "type": "number_literal", "text": "1", "parent": 204, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 12}}, {"id": 206, "type": "if_statement", "text": "if( dim != 0x01 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [207], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 58, "column": 3}}, {"id": 207, "type": "parenthesized_expression", "text": "( dim != 0x01 )", "parent": 206, "children": [208], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 19}}, {"id": 208, "type": "binary_expression", "text": "dim != 0x01", "parent": 207, "children": [209, 210, 211], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 17}}, {"id": 209, "type": "identifier", "text": "dim", "parent": 208, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 9}}, {"id": 210, "type": "!=", "text": "!=", "parent": 208, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 12}}, {"id": 211, "type": "number_literal", "text": "0x01", "parent": 208, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 212, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 206, "children": [213, 214], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 65}}, {"id": 213, "type": "identifier", "text": "fprintf", "parent": 212, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 214, "type": "argument_list", "text": "( stderr, \"ERROR: file format error %s.\\n\", fileName )", "parent": 212, "children": [215, 216, 218], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 65}}, {"id": 215, "type": "identifier", "text": "stderr", "parent": 214, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 19}}, {"id": 216, "type": "string_literal", "text": "\"ERROR: file format error %s.\\n\"", "parent": 214, "children": [217], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 53}}, {"id": 217, "type": "escape_sequence", "text": "\\n", "parent": 216, "children": [], "start_point": {"row": 56, "column": 50}, "end_point": {"row": 56, "column": 52}}, {"id": 218, "type": "identifier", "text": "fileName", "parent": 214, "children": [], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 63}}, {"id": 219, "type": "return_statement", "text": "return 1;", "parent": 206, "children": [220], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 13}}, {"id": 220, "type": "number_literal", "text": "1", "parent": 219, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 221, "type": "call_expression", "text": "fprintf( stderr, \"INFO: dimension=%d.\\n\", (int)dim )", "parent": 14, "children": [222, 223], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 54}}, {"id": 222, "type": "identifier", "text": "fprintf", "parent": 221, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 9}}, {"id": 223, "type": "argument_list", "text": "( stderr, \"INFO: dimension=%d.\\n\", (int)dim )", "parent": 221, "children": [224, 225, 227], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 54}}, {"id": 224, "type": "identifier", "text": "stderr", "parent": 223, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 17}}, {"id": 225, "type": "string_literal", "text": "\"INFO: dimension=%d.\\n\"", "parent": 223, "children": [226], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 42}}, {"id": 226, "type": "escape_sequence", "text": "\\n", "parent": 225, "children": [], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 41}}, {"id": 227, "type": "cast_expression", "text": "(int)dim", "parent": 223, "children": [228, 230], "start_point": {"row": 59, "column": 44}, "end_point": {"row": 59, "column": 52}}, {"id": 228, "type": "type_descriptor", "text": "int", "parent": 227, "children": [229], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 48}}, {"id": 229, "type": "primitive_type", "text": "int", "parent": 228, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 48}}, {"id": 230, "type": "identifier", "text": "dim", "parent": 227, "children": [], "start_point": {"row": 59, "column": 49}, "end_point": {"row": 59, "column": 52}}, {"id": 231, "type": "declaration", "text": "char dims[4];", "parent": 14, "children": [232, 233], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 15}}, {"id": 232, "type": "primitive_type", "text": "char", "parent": 231, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 6}}, {"id": 233, "type": "array_declarator", "text": "dims[4]", "parent": 231, "children": [234, 235], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 14}}, {"id": 234, "type": "identifier", "text": "dims", "parent": 233, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 11}}, {"id": 235, "type": "number_literal", "text": "4", "parent": 233, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 236, "type": "declaration", "text": "int N[1];", "parent": 14, "children": [237, 238], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 11}}, {"id": 237, "type": "primitive_type", "text": "int", "parent": 236, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 5}}, {"id": 238, "type": "array_declarator", "text": "N[1]", "parent": 236, "children": [239, 240], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 10}}, {"id": 239, "type": "identifier", "text": "N", "parent": 238, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 7}}, {"id": 240, "type": "number_literal", "text": "1", "parent": 238, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 241, "type": "for_statement", "text": "for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, \"INFO: dimension %d length=%d.\\n\", i, N[i] );\n }", "parent": 14, "children": [242, 248, 252], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 242, "type": "declaration", "text": "int i=0;", "parent": 241, "children": [243, 244], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 15}}, {"id": 243, "type": "primitive_type", "text": "int", "parent": 242, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 10}}, {"id": 244, "type": "init_declarator", "text": "i=0", "parent": 242, "children": [245, 246, 247], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 14}}, {"id": 245, "type": "identifier", "text": "i", "parent": 244, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 12}}, {"id": 246, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 247, "type": "number_literal", "text": "0", "parent": 244, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 14}}, {"id": 248, "type": "binary_expression", "text": "i<1", "parent": 241, "children": [249, 250, 251], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 19}}, {"id": 249, "type": "identifier", "text": "i", "parent": 248, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 17}}, {"id": 250, "type": "<", "text": "<", "parent": 248, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 251, "type": "number_literal", "text": "1", "parent": 248, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 19}}, {"id": 252, "type": "update_expression", "text": "i++", "parent": 241, "children": [253, 254], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 24}}, {"id": 253, "type": "identifier", "text": "i", "parent": 252, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 22}}, {"id": 254, "type": "++", "text": "++", "parent": 252, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 24}}, {"id": 255, "type": "assignment_expression", "text": "sz = fread( dims, 1, 4, fp )", "parent": 241, "children": [256, 257, 258], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 32}}, {"id": 256, "type": "identifier", "text": "sz", "parent": 255, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 6}}, {"id": 257, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 8}}, {"id": 258, "type": "call_expression", "text": "fread( dims, 1, 4, fp )", "parent": 255, "children": [259, 260], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 32}}, {"id": 259, "type": "identifier", "text": "fread", "parent": 258, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 14}}, {"id": 260, "type": "argument_list", "text": "( dims, 1, 4, fp )", "parent": 258, "children": [261, 262, 263, 264], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 32}}, {"id": 261, "type": "identifier", "text": "dims", "parent": 260, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 20}}, {"id": 262, "type": "number_literal", "text": "1", "parent": 260, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 263, "type": "number_literal", "text": "4", "parent": 260, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 26}}, {"id": 264, "type": "identifier", "text": "fp", "parent": 260, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 30}}, {"id": 265, "type": "if_statement", "text": "if( sz != 4 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }", "parent": 241, "children": [266], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 266, "type": "parenthesized_expression", "text": "( sz != 4 )", "parent": 265, "children": [267], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 17}}, {"id": 267, "type": "binary_expression", "text": "sz != 4", "parent": 266, "children": [268, 269, 270], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 15}}, {"id": 268, "type": "identifier", "text": "sz", "parent": 267, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 10}}, {"id": 269, "type": "!=", "text": "!=", "parent": 267, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 13}}, {"id": 270, "type": "number_literal", "text": "4", "parent": 267, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 271, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 265, "children": [272, 273], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 60}}, {"id": 272, "type": "identifier", "text": "fprintf", "parent": 271, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 13}}, {"id": 273, "type": "argument_list", "text": "( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 271, "children": [274, 275, 277], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 60}}, {"id": 274, "type": "identifier", "text": "stderr", "parent": 273, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 21}}, {"id": 275, "type": "string_literal", "text": "\"ERROR: read error %s.\\n\"", "parent": 273, "children": [276], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 48}}, {"id": 276, "type": "escape_sequence", "text": "\\n", "parent": 275, "children": [], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 47}}, {"id": 277, "type": "identifier", "text": "fileName", "parent": 273, "children": [], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 67, "column": 58}}, {"id": 278, "type": "return_statement", "text": "return 1;", "parent": 265, "children": [279], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 15}}, {"id": 279, "type": "number_literal", "text": "1", "parent": 278, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 14}}, {"id": 280, "type": "assignment_expression", "text": "N[i] = 0", "parent": 241, "children": [281, 284, 285], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 12}}, {"id": 281, "type": "subscript_expression", "text": "N[i]", "parent": 280, "children": [282, 283], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 282, "type": "identifier", "text": "N", "parent": 281, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 283, "type": "identifier", "text": "i", "parent": 281, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 284, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 285, "type": "number_literal", "text": "0", "parent": 280, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 12}}, {"id": 286, "type": "for_statement", "text": "for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }", "parent": 241, "children": [287, 293, 297], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 287, "type": "declaration", "text": "int j=0;", "parent": 286, "children": [288, 289], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 17}}, {"id": 288, "type": "primitive_type", "text": "int", "parent": 287, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 12}}, {"id": 289, "type": "init_declarator", "text": "j=0", "parent": 287, "children": [290, 291, 292], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 16}}, {"id": 290, "type": "identifier", "text": "j", "parent": 289, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 14}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 15}}, {"id": 292, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 16}}, {"id": 293, "type": "binary_expression", "text": "j<4", "parent": 286, "children": [294, 295, 296], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 21}}, {"id": 294, "type": "identifier", "text": "j", "parent": 293, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 19}}, {"id": 295, "type": "<", "text": "<", "parent": 293, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 20}}, {"id": 296, "type": "number_literal", "text": "4", "parent": 293, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 21}}, {"id": 297, "type": "update_expression", "text": "j++", "parent": 286, "children": [298, 299], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 26}}, {"id": 298, "type": "identifier", "text": "j", "parent": 297, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 24}}, {"id": 299, "type": "++", "text": "++", "parent": 297, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 26}}, {"id": 300, "type": "assignment_expression", "text": "N[i] = (N[i] << 8) | (dims[j] & 0xff)", "parent": 286, "children": [301, 304, 305], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 43}}, {"id": 301, "type": "subscript_expression", "text": "N[i]", "parent": 300, "children": [302, 303], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 10}}, {"id": 302, "type": "identifier", "text": "N", "parent": 301, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 7}}, {"id": 303, "type": "identifier", "text": "i", "parent": 301, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 304, "type": "=", "text": "=", "parent": 300, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 12}}, {"id": 305, "type": "binary_expression", "text": "(N[i] << 8) | (dims[j] & 0xff)", "parent": 300, "children": [306, 313], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 43}}, {"id": 306, "type": "parenthesized_expression", "text": "(N[i] << 8)", "parent": 305, "children": [307], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 24}}, {"id": 307, "type": "binary_expression", "text": "N[i] << 8", "parent": 306, "children": [308, 311, 312], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 23}}, {"id": 308, "type": "subscript_expression", "text": "N[i]", "parent": 307, "children": [309, 310], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 18}}, {"id": 309, "type": "identifier", "text": "N", "parent": 308, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 310, "type": "identifier", "text": "i", "parent": 308, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 17}}, {"id": 311, "type": "<<", "text": "<<", "parent": 307, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 21}}, {"id": 312, "type": "number_literal", "text": "8", "parent": 307, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 23}}, {"id": 313, "type": "parenthesized_expression", "text": "(dims[j] & 0xff)", "parent": 305, "children": [314], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 43}}, {"id": 314, "type": "binary_expression", "text": "dims[j] & 0xff", "parent": 313, "children": [315, 318], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 42}}, {"id": 315, "type": "subscript_expression", "text": "dims[j]", "parent": 314, "children": [316, 317], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 35}}, {"id": 316, "type": "identifier", "text": "dims", "parent": 315, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 32}}, {"id": 317, "type": "identifier", "text": "j", "parent": 315, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 34}}, {"id": 318, "type": "number_literal", "text": "0xff", "parent": 314, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 42}}, {"id": 319, "type": "call_expression", "text": "fprintf( stderr, \"INFO: dimension %d length=%d.\\n\", i, N[i] )", "parent": 241, "children": [320, 321], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 65}}, {"id": 320, "type": "identifier", "text": "fprintf", "parent": 319, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 321, "type": "argument_list", "text": "( stderr, \"INFO: dimension %d length=%d.\\n\", i, N[i] )", "parent": 319, "children": [322, 323, 325, 326], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 65}}, {"id": 322, "type": "identifier", "text": "stderr", "parent": 321, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 19}}, {"id": 323, "type": "string_literal", "text": "\"INFO: dimension %d length=%d.\\n\"", "parent": 321, "children": [324], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 54}}, {"id": 324, "type": "escape_sequence", "text": "\\n", "parent": 323, "children": [], "start_point": {"row": 74, "column": 51}, "end_point": {"row": 74, "column": 53}}, {"id": 325, "type": "identifier", "text": "i", "parent": 321, "children": [], "start_point": {"row": 74, "column": 56}, "end_point": {"row": 74, "column": 57}}, {"id": 326, "type": "subscript_expression", "text": "N[i]", "parent": 321, "children": [327, 328], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 63}}, {"id": 327, "type": "identifier", "text": "N", "parent": 326, "children": [], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 60}}, {"id": 328, "type": "identifier", "text": "i", "parent": 326, "children": [], "start_point": {"row": 74, "column": 61}, "end_point": {"row": 74, "column": 62}}, {"id": 329, "type": "declaration", "text": "int totalLength = N[0];", "parent": 14, "children": [330, 331], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 25}}, {"id": 330, "type": "primitive_type", "text": "int", "parent": 329, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 5}}, {"id": 331, "type": "init_declarator", "text": "totalLength = N[0]", "parent": 329, "children": [332, 333, 334], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 24}}, {"id": 332, "type": "identifier", "text": "totalLength", "parent": 331, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 17}}, {"id": 333, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 19}}, {"id": 334, "type": "subscript_expression", "text": "N[0]", "parent": 331, "children": [335, 336], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 24}}, {"id": 335, "type": "identifier", "text": "N", "parent": 334, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 21}}, {"id": 336, "type": "number_literal", "text": "0", "parent": 334, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 23}}, {"id": 337, "type": "declaration", "text": "char *data = (char *) malloc( totalLength);", "parent": 14, "children": [338, 339], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 45}}, {"id": 338, "type": "primitive_type", "text": "char", "parent": 337, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 6}}, {"id": 339, "type": "init_declarator", "text": "*data = (char *) malloc( totalLength)", "parent": 337, "children": [340, 343, 344], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 44}}, {"id": 340, "type": "pointer_declarator", "text": "*data", "parent": 339, "children": [341, 342], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 12}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 8}}, {"id": 342, "type": "identifier", "text": "data", "parent": 340, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 343, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 14}}, {"id": 344, "type": "cast_expression", "text": "(char *) malloc( totalLength)", "parent": 339, "children": [345, 349], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 44}}, {"id": 345, "type": "type_descriptor", "text": "char *", "parent": 344, "children": [346, 347], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 22}}, {"id": 346, "type": "primitive_type", "text": "char", "parent": 345, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 20}}, {"id": 347, "type": "abstract_pointer_declarator", "text": "*", "parent": 345, "children": [348], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 22}}, {"id": 348, "type": "*", "text": "*", "parent": 347, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 22}}, {"id": 349, "type": "call_expression", "text": "malloc( totalLength)", "parent": 344, "children": [350, 351], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 44}}, {"id": 350, "type": "identifier", "text": "malloc", "parent": 349, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 30}}, {"id": 351, "type": "argument_list", "text": "( totalLength)", "parent": 349, "children": [352], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 44}}, {"id": 352, "type": "identifier", "text": "totalLength", "parent": 351, "children": [], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 43}}, {"id": 353, "type": "if_statement", "text": "if( data == NULL ){\n fprintf( stderr, \"ERROR: malloc.\\n\" );\n return 1;\n }", "parent": 14, "children": [354], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 83, "column": 3}}, {"id": 354, "type": "parenthesized_expression", "text": "( data == NULL )", "parent": 353, "children": [355], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 20}}, {"id": 355, "type": "binary_expression", "text": "data == NULL", "parent": 354, "children": [356, 357, 358], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 18}}, {"id": 356, "type": "identifier", "text": "data", "parent": 355, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 10}}, {"id": 357, "type": "==", "text": "==", "parent": 355, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 13}}, {"id": 358, "type": "null", "text": "NULL", "parent": 355, "children": [359], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 18}}, {"id": 359, "type": "NULL", "text": "NULL", "parent": 358, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 18}}, {"id": 360, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: malloc.\\n\" )", "parent": 353, "children": [361, 362], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 43}}, {"id": 361, "type": "identifier", "text": "fprintf", "parent": 360, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 13}}, {"id": 362, "type": "argument_list", "text": "( stderr, \"ERROR: malloc.\\n\" )", "parent": 360, "children": [363, 364], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 43}}, {"id": 363, "type": "identifier", "text": "stderr", "parent": 362, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 21}}, {"id": 364, "type": "string_literal", "text": "\"ERROR: malloc.\\n\"", "parent": 362, "children": [365], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 41}}, {"id": 365, "type": "escape_sequence", "text": "\\n", "parent": 364, "children": [], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 40}}, {"id": 366, "type": "return_statement", "text": "return 1;", "parent": 353, "children": [367], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 15}}, {"id": 367, "type": "number_literal", "text": "1", "parent": 366, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 14}}, {"id": 368, "type": "assignment_expression", "text": "sz = fread( data, 1, totalLength, fp )", "parent": 14, "children": [369, 370, 371], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 40}}, {"id": 369, "type": "identifier", "text": "sz", "parent": 368, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 4}}, {"id": 370, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 6}}, {"id": 371, "type": "call_expression", "text": "fread( data, 1, totalLength, fp )", "parent": 368, "children": [372, 373], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 40}}, {"id": 372, "type": "identifier", "text": "fread", "parent": 371, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 12}}, {"id": 373, "type": "argument_list", "text": "( data, 1, totalLength, fp )", "parent": 371, "children": [374, 375, 376, 377], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 40}}, {"id": 374, "type": "identifier", "text": "data", "parent": 373, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 18}}, {"id": 375, "type": "number_literal", "text": "1", "parent": 373, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 21}}, {"id": 376, "type": "identifier", "text": "totalLength", "parent": 373, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 34}}, {"id": 377, "type": "identifier", "text": "fp", "parent": 373, "children": [], "start_point": {"row": 84, "column": 36}, "end_point": {"row": 84, "column": 38}}, {"id": 378, "type": "if_statement", "text": "if( sz != totalLength ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }", "parent": 14, "children": [379], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 88, "column": 3}}, {"id": 379, "type": "parenthesized_expression", "text": "( sz != totalLength )", "parent": 378, "children": [380], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 25}}, {"id": 380, "type": "binary_expression", "text": "sz != totalLength", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 23}}, {"id": 381, "type": "identifier", "text": "sz", "parent": 380, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 8}}, {"id": 382, "type": "!=", "text": "!=", "parent": 380, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 11}}, {"id": 383, "type": "identifier", "text": "totalLength", "parent": 380, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 23}}, {"id": 384, "type": "call_expression", "text": "fprintf( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 378, "children": [385, 386], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 58}}, {"id": 385, "type": "identifier", "text": "fprintf", "parent": 384, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 11}}, {"id": 386, "type": "argument_list", "text": "( stderr, \"ERROR: read error %s.\\n\", fileName )", "parent": 384, "children": [387, 388, 390], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 58}}, {"id": 387, "type": "identifier", "text": "stderr", "parent": 386, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 19}}, {"id": 388, "type": "string_literal", "text": "\"ERROR: read error %s.\\n\"", "parent": 386, "children": [389], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 46}}, {"id": 389, "type": "escape_sequence", "text": "\\n", "parent": 388, "children": [], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 45}}, {"id": 390, "type": "identifier", "text": "fileName", "parent": 386, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 56}}, {"id": 391, "type": "return_statement", "text": "return 1;", "parent": 378, "children": [392], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 13}}, {"id": 392, "type": "number_literal", "text": "1", "parent": 391, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 12}}, {"id": 393, "type": "for_statement", "text": "for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( \"%c\", '0' + data[imIdx] );\n }\n printf( \"\\n\" );\n }", "parent": 14, "children": [394, 400, 404], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 97, "column": 3}}, {"id": 394, "type": "declaration", "text": "int imY = 0;", "parent": 393, "children": [395, 396], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 19}}, {"id": 395, "type": "primitive_type", "text": "int", "parent": 394, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 10}}, {"id": 396, "type": "init_declarator", "text": "imY = 0", "parent": 394, "children": [397, 398, 399], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 18}}, {"id": 397, "type": "identifier", "text": "imY", "parent": 396, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 14}}, {"id": 398, "type": "=", "text": "=", "parent": 396, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 16}}, {"id": 399, "type": "number_literal", "text": "0", "parent": 396, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 18}}, {"id": 400, "type": "binary_expression", "text": "imY < IM_H", "parent": 393, "children": [401, 402, 403], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 30}}, {"id": 401, "type": "identifier", "text": "imY", "parent": 400, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 23}}, {"id": 402, "type": "<", "text": "<", "parent": 400, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 25}}, {"id": 403, "type": "identifier", "text": "IM_H", "parent": 400, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 30}}, {"id": 404, "type": "update_expression", "text": "imY++", "parent": 393, "children": [405, 406], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 37}}, {"id": 405, "type": "identifier", "text": "imY", "parent": 404, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 35}}, {"id": 406, "type": "++", "text": "++", "parent": 404, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 37}}, {"id": 407, "type": "for_statement", "text": "for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( \"%c\", '0' + data[imIdx] );\n }", "parent": 393, "children": [408, 414, 418], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 408, "type": "declaration", "text": "int imX = 0;", "parent": 407, "children": [409, 410], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 21}}, {"id": 409, "type": "primitive_type", "text": "int", "parent": 408, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 12}}, {"id": 410, "type": "init_declarator", "text": "imX = 0", "parent": 408, "children": [411, 412, 413], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 20}}, {"id": 411, "type": "identifier", "text": "imX", "parent": 410, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 16}}, {"id": 412, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 18}}, {"id": 413, "type": "number_literal", "text": "0", "parent": 410, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 20}}, {"id": 414, "type": "binary_expression", "text": "imX < IM_W", "parent": 407, "children": [415, 416, 417], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 32}}, {"id": 415, "type": "identifier", "text": "imX", "parent": 414, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 25}}, {"id": 416, "type": "<", "text": "<", "parent": 414, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 27}}, {"id": 417, "type": "identifier", "text": "IM_W", "parent": 414, "children": [], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 32}}, {"id": 418, "type": "update_expression", "text": "imX++", "parent": 407, "children": [419, 420], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 39}}, {"id": 419, "type": "identifier", "text": "imX", "parent": 418, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 37}}, {"id": 420, "type": "++", "text": "++", "parent": 418, "children": [], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 39}}, {"id": 421, "type": "declaration", "text": "int imIdx = imY * IM_W + imX;", "parent": 407, "children": [422, 423], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 35}}, {"id": 422, "type": "primitive_type", "text": "int", "parent": 421, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 9}}, {"id": 423, "type": "init_declarator", "text": "imIdx = imY * IM_W + imX", "parent": 421, "children": [424, 425, 426], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 34}}, {"id": 424, "type": "identifier", "text": "imIdx", "parent": 423, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 15}}, {"id": 425, "type": "=", "text": "=", "parent": 423, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 17}}, {"id": 426, "type": "binary_expression", "text": "imY * IM_W + imX", "parent": 423, "children": [427, 431, 432], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 34}}, {"id": 427, "type": "binary_expression", "text": "imY * IM_W", "parent": 426, "children": [428, 429, 430], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 28}}, {"id": 428, "type": "identifier", "text": "imY", "parent": 427, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 21}}, {"id": 429, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 23}}, {"id": 430, "type": "identifier", "text": "IM_W", "parent": 427, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 28}}, {"id": 431, "type": "+", "text": "+", "parent": 426, "children": [], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 30}}, {"id": 432, "type": "identifier", "text": "imX", "parent": 426, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 34}}, {"id": 433, "type": "call_expression", "text": "printf( \"%c\", '0' + data[imIdx] )", "parent": 407, "children": [434, 435], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 39}}, {"id": 434, "type": "identifier", "text": "printf", "parent": 433, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 12}}, {"id": 435, "type": "argument_list", "text": "( \"%c\", '0' + data[imIdx] )", "parent": 433, "children": [436, 437], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 39}}, {"id": 436, "type": "string_literal", "text": "\"%c\"", "parent": 435, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 18}}, {"id": 437, "type": "binary_expression", "text": "'0' + data[imIdx]", "parent": 435, "children": [438, 442, 443], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 37}}, {"id": 438, "type": "char_literal", "text": "'0'", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 23}}, {"id": 439, "type": "'", "text": "'", "parent": 438, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 440, "type": "character", "text": "0", "parent": 438, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 22}}, {"id": 441, "type": "'", "text": "'", "parent": 438, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 23}}, {"id": 442, "type": "+", "text": "+", "parent": 437, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 25}}, {"id": 443, "type": "subscript_expression", "text": "data[imIdx]", "parent": 437, "children": [444, 445], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 37}}, {"id": 444, "type": "identifier", "text": "data", "parent": 443, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 30}}, {"id": 445, "type": "identifier", "text": "imIdx", "parent": 443, "children": [], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 36}}, {"id": 446, "type": "call_expression", "text": "printf( \"\\n\" )", "parent": 393, "children": [447, 448], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 18}}, {"id": 447, "type": "identifier", "text": "printf", "parent": 446, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 10}}, {"id": 448, "type": "argument_list", "text": "( \"\\n\" )", "parent": 446, "children": [449], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 18}}, {"id": 449, "type": "string_literal", "text": "\"\\n\"", "parent": 448, "children": [450], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 16}}, {"id": 450, "type": "escape_sequence", "text": "\\n", "parent": 449, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 15}}, {"id": 451, "type": "call_expression", "text": "fclose( fp )", "parent": 14, "children": [452, 453], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 14}}, {"id": 452, "type": "identifier", "text": "fclose", "parent": 451, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 8}}, {"id": 453, "type": "argument_list", "text": "( fp )", "parent": 451, "children": [454], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 454, "type": "identifier", "text": "fp", "parent": 453, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 12}}]}, "node_categories": {"declarations": {"functions": [14, 16], "variables": [19, 26, 60, 65, 123, 177, 231, 236, 242, 287, 329, 337, 394, 408, 421], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [33, 39, 40, 45, 52, 70, 78, 79, 83, 93, 94, 95, 96, 102, 103, 108, 117, 129, 132, 138, 139, 143, 153, 154, 158, 167, 173, 183, 186, 192, 193, 197, 207, 208, 212, 221, 227, 248, 252, 258, 266, 267, 271, 281, 293, 297, 301, 305, 306, 307, 308, 313, 314, 315, 319, 326, 334, 344, 349, 354, 355, 360, 371, 379, 380, 384, 400, 404, 414, 418, 426, 427, 433, 437, 443, 446, 451], "assignments": [126, 180, 255, 280, 300, 368], "loops": [241, 286, 393, 407], "conditionals": [8, 12, 17, 23, 27, 31, 34, 36, 38, 41, 46, 48, 51, 53, 55, 63, 68, 71, 73, 76, 77, 80, 84, 86, 89, 92, 97, 104, 109, 111, 114, 118, 120, 125, 127, 130, 133, 136, 137, 140, 144, 146, 149, 152, 155, 159, 161, 164, 168, 170, 176, 179, 181, 184, 187, 190, 191, 194, 198, 200, 203, 206, 209, 213, 215, 218, 222, 224, 230, 234, 239, 245, 249, 253, 256, 259, 261, 264, 265, 268, 272, 274, 277, 282, 283, 290, 294, 298, 302, 303, 309, 310, 316, 317, 320, 322, 325, 327, 328, 332, 335, 342, 350, 352, 353, 356, 361, 363, 369, 372, 374, 376, 377, 378, 381, 383, 385, 387, 390, 397, 401, 403, 405, 411, 415, 417, 419, 424, 428, 430, 432, 434, 444, 445, 447, 452, 454], "returns": [58, 90, 115, 150, 165, 204, 219, 278, 366, 391], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 25, 37, 49, 56, 59, 64, 74, 75, 82, 87, 91, 98, 100, 105, 107, 112, 116, 121, 134, 135, 142, 147, 151, 157, 162, 166, 171, 188, 189, 196, 201, 205, 211, 216, 220, 225, 235, 240, 247, 251, 262, 263, 270, 275, 279, 285, 292, 296, 312, 318, 323, 336, 364, 367, 375, 388, 392, 399, 413, 436, 438, 449], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n cha"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\n#define IM_W 20\n#define IM_H 20\n\n// convert MNIST training label file to Text\n// first 20x20 labels are output.\nint main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = \"train-labels.idx1-ubyte\";\n\n // open MNIST image file\n FILE *fp = fopen( fileName, \"rb\" );\n if( fp == NULL ){\n fprintf( stderr, \"ERROR: Cannot open %s.\\n\", fileName );\n fprintf( stderr, \"MNIST data files can be downloaded from http://yann.lecun.com/exdb/mnist/\\n\" );\n return 1;\n }\n\n // read magic number 0x0000\n char magic[2];\n int sz = fread( magic, 1, 2, fp );\n if( sz != 2 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( magic[0] != 0 || magic[1] != 0 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: magic number=0x0000.\\n\" );\n\n // read datatype\n char datatype;\n sz = fread( &datatype, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( datatype != 0x08 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: datatype=%d.\\n\", (int)datatype );\n\n\n // read dimension\n char dim;\n sz = fread( &dim, 1, 1, fp );\n if( sz != 1 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n if( dim != 0x01 ){\n fprintf( stderr, \"ERROR: file format error %s.\\n\", fileName );\n return 1;\n }\n fprintf( stderr, \"INFO: dimension=%d.\\n\", (int)dim );\n\n // read size in dimensions\n char dims[4];\n int N[1];\n for( int i=0; i<1; i++ ){\n sz = fread( dims, 1, 4, fp );\n if( sz != 4 ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n N[i] = 0;\n for( int j=0; j<4; j++ ){\n N[i] = (N[i] << 8) | (dims[j] & 0xff);\n }\n fprintf( stderr, \"INFO: dimension %d length=%d.\\n\", i, N[i] );\n }\n\n // read data\n int totalLength = N[0];\n char *data = (char *) malloc( totalLength);\n if( data == NULL ){\n fprintf( stderr, \"ERROR: malloc.\\n\" );\n return 1;\n }\n sz = fread( data, 1, totalLength, fp );\n if( sz != totalLength ){\n fprintf( stderr, \"ERROR: read error %s.\\n\", fileName );\n return 1;\n }\n\n // output Text\n for( int imY = 0; imY < IM_H; imY++ ){\n for( int imX = 0; imX < IM_W; imX++ ){\n int imIdx = imY * IM_W + imX;\n printf( \"%c\", '0' + data[imIdx] );\n }\n printf( \"\\n\" );\n }\n fclose( fp );\n}\n"}
81,002
c
// // InfiniteBanner.h // InfiniteBanner // // Created by LLeven on 2019/6/3. // Copyright © 2019 lianleven. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for InfiniteBanner. FOUNDATION_EXPORT double InfiniteBannerVersionNumber; //! Project version string for InfiniteBanner. FOUNDATION_EXPORT const unsigned char InfiniteBannerVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <InfiniteBanner/PublicHeader.h>
39.62
13
(translation_unit) "//\n// InfiniteBanner.h\n// InfiniteBanner\n//\n// Created by LLeven on 2019/6/3.\n// Copyright © 2019 lianleven. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for InfiniteBanner.\nFOUNDATION_EXPORT double InfiniteBannerVersionNumber;\n\n//! Project version string for InfiniteBanner.\nFOUNDATION_EXPORT const unsigned char InfiniteBannerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <InfiniteBanner/PublicHeader.h>\n\n\n" (comment) "//" (comment) "// InfiniteBanner.h" (comment) "// InfiniteBanner" (comment) "//" (comment) "// Created by LLeven on 2019/6/3." (comment) "// Copyright © 2019 lianleven. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Foundation/Foundation.h>\n\n" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (comment) "/! Project version number for InfiniteBanner.\n" (declaration) "OUNDATION_EXPORT double InfiniteBannerVersionNumber;\n" (type_identifier) "OUNDATION_EXPORT " (ERROR) "ouble " (identifier) "ouble " (identifier) "nfiniteBannerVersionNumber;" (;) "\n" (comment) "/! Project version string for InfiniteBanner.\n" (declaration) "OUNDATION_EXPORT const unsigned " (type_identifier) "OUNDATION_EXPORT " (type_qualifier) "onst " (const) "onst " (identifier) "nsigned " (;) "" (declaration) "har InfiniteBannerVersionString[];\n" (primitive_type) "har " (array_declarator) "nfiniteBannerVersionString[];" (identifier) "nfiniteBannerVersionString[" ([) "]" (]) ";" (;) "\n" (comment) "/ In this header, you should import all the public headers of your framework using statements like #import <InfiniteBanner/PublicHeader.h>\n"
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.62, "nodes": 15, "errors": 0, "source_hash": "9cb940cbfeda182a4cc8814ede0da6029718c41acb42df2f3799cd51050567b6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Foundation/Foundation.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "Foundation/Foundation.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 2, "type": "declaration", "text": "OUNDATION_EXPORT double InfiniteBannerVersionNumber;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 53}}, {"id": 3, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 2, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 4, "type": "ERROR", "text": "ouble ", "parent": 2, "children": [5], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 5, "type": "identifier", "text": "ouble ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "nfiniteBannerVersionNumber;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 52}}, {"id": 7, "type": "declaration", "text": "OUNDATION_EXPORT const unsigned ", "parent": null, "children": [8, 9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 8, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "type_qualifier", "text": "onst ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 10, "type": "identifier", "text": "nsigned ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "har InfiniteBannerVersionString[];\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 68}}, {"id": 12, "type": "primitive_type", "text": "har ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "nfiniteBannerVersionString[];", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 67}}, {"id": 14, "type": "identifier", "text": "nfiniteBannerVersionString[", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 65}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 7, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// InfiniteBanner.h\n// InfiniteBanner\n//\n// Created by LLeven on 2019/6/3.\n// Copyright \u00a9 2019 lianleven. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for InfiniteBanner.\nFOUNDATION_EXPORT double InfiniteBannerVersionNumber;\n\n//! Project version string for InfiniteBanner.\nFOUNDATION_EXPORT const unsigned char InfiniteBannerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <InfiniteBanner/PublicHeader.h>\n\n\n"}
81,003
c
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ ///////////////////////////////////////////////////////////////////////// //PCM8K <=> CVSD ///////////////////////////////////////////////////////////////////////// #ifndef _PCM8K_CVSD_H_ #define _PCM8K_CVSD_H_ //max num of input samples #define MAXNUMOFSAMPLES 128 //resample delay #define RESAMPLE_DELAY 32 void Pcm8k_CvsdInit(void); void Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample); void CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag); #endif
27.95
20
(translation_unit) "/*\n * Copyright (C) 2015-2020 Alibaba Group Holding Limited\n */\n/////////////////////////////////////////////////////////////////////////\n//PCM8K <=> CVSD\n/////////////////////////////////////////////////////////////////////////\n#ifndef _PCM8K_CVSD_H_\n#define _PCM8K_CVSD_H_\n\n\n\n//max num of input samples\n#define MAXNUMOFSAMPLES 128\n\n\n//resample delay\n#define RESAMPLE_DELAY 32\n\n\nvoid Pcm8k_CvsdInit(void);\nvoid Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);\nvoid CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);\n\n\n#endif\n\n\n\n\n\n\n\n\n\n\n\n\n" (comment) "/*\n * Copyright (C) 2015-2020 Alibaba Group Holding Limited\n */" (comment) "/////////////////////////////////////////////////////////////////////////" (comment) "//PCM8K <=> CVSD" (comment) "/////////////////////////////////////////////////////////////////////////" (preproc_ifdef) "#ifndef _PCM8K_CVSD_H_\n#define _PCM8K_CVSD_H_\n\n\n\n//max num of input samples\n#define MAXNUMOFSAMPLES 128\n\n\n//resample delay\n#define RESAMPLE_DELAY 32\n\n\nvoid Pcm8k_CvsdInit(void);\nvoid Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);\nvoid CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "_PCM8K_CVSD_H_" (preproc_def) "#define _PCM8K_CVSD_H_\n" (#define) "#define" (identifier) "_PCM8K_CVSD_H_" (comment) "//max num of input samples" (preproc_def) "#define MAXNUMOFSAMPLES 128\n" (#define) "#define" (identifier) "MAXNUMOFSAMPLES" (preproc_arg) "128" (comment) "//resample delay" (preproc_def) "#define RESAMPLE_DELAY 32\n" (#define) "#define" (identifier) "RESAMPLE_DELAY" (preproc_arg) "32" (declaration) "void Pcm8k_CvsdInit(void);" (primitive_type) "void" (function_declarator) "Pcm8k_CvsdInit(void)" (identifier) "Pcm8k_CvsdInit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);" (primitive_type) "void" (function_declarator) "Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample)" (identifier) "Pcm8kToCvsd" (parameter_list) "(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample)" (() "(" (parameter_declaration) "short *PcmInBuf" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "*PcmInBuf" (*) "*" (identifier) "PcmInBuf" (,) "," (parameter_declaration) "unsigned char *CvsdOutBuf" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*CvsdOutBuf" (*) "*" (identifier) "CvsdOutBuf" (,) "," (parameter_declaration) "int numsample" (primitive_type) "int" (identifier) "numsample" ()) ")" (;) ";" (declaration) "void CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);" (primitive_type) "void" (function_declarator) "CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag)" (identifier) "CvsdToPcm8k" (parameter_list) "(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag)" (() "(" (parameter_declaration) "unsigned char *CvsdInBuf" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*CvsdInBuf" (*) "*" (identifier) "CvsdInBuf" (,) "," (parameter_declaration) "short *PcmOutBuf" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "*PcmOutBuf" (*) "*" (identifier) "PcmOutBuf" (,) "," (parameter_declaration) "int numsample" (primitive_type) "int" (identifier) "numsample" (,) "," (parameter_declaration) "int LossFlag" (primitive_type) "int" (identifier) "LossFlag" ()) ")" (;) ";" (#endif) "#endif"
88
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.95, "nodes": 67, "errors": 0, "source_hash": "9f5dc45f1062c95633ee38018d15c9c8032b969e7517218ef29ad9d6449316cf", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _PCM8K_CVSD_H_\n#define _PCM8K_CVSD_H_\n\n\n\n//max num of input samples\n#define MAXNUMOFSAMPLES 128\n\n\n//resample delay\n#define RESAMPLE_DELAY 32\n\n\nvoid Pcm8k_CvsdInit(void);\nvoid Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);\nvoid CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 21, 42, 66], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "identifier", "text": "_PCM8K_CVSD_H_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define _PCM8K_CVSD_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 5, "type": "identifier", "text": "_PCM8K_CVSD_H_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 22}}, {"id": 6, "type": "preproc_def", "text": "#define MAXNUMOFSAMPLES 128\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 8, "type": "identifier", "text": "MAXNUMOFSAMPLES", "parent": 6, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 23}}, {"id": 9, "type": "preproc_arg", "text": "128", "parent": 6, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 27}}, {"id": 10, "type": "preproc_def", "text": "#define RESAMPLE_DELAY 32\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 12, "type": "identifier", "text": "RESAMPLE_DELAY", "parent": 10, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 22}}, {"id": 13, "type": "preproc_arg", "text": "32", "parent": 10, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 25}}, {"id": 14, "type": "declaration", "text": "void Pcm8k_CvsdInit(void);", "parent": 0, "children": [15, 16], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 26}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 16, "type": "function_declarator", "text": "Pcm8k_CvsdInit(void)", "parent": 14, "children": [17, 18], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 25}}, {"id": 17, "type": "identifier", "text": "Pcm8k_CvsdInit", "parent": 16, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 19}}, {"id": 18, "type": "parameter_list", "text": "(void)", "parent": 16, "children": [19], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 25}}, {"id": 19, "type": "parameter_declaration", "text": "void", "parent": 18, "children": [20], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 24}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 24}}, {"id": 21, "type": "declaration", "text": "void Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);", "parent": 0, "children": [22, 23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 76}}, {"id": 22, "type": "primitive_type", "text": "void", "parent": 21, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 23, "type": "function_declarator", "text": "Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample)", "parent": 21, "children": [24, 25], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 75}}, {"id": 24, "type": "identifier", "text": "Pcm8kToCvsd", "parent": 23, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 16}}, {"id": 25, "type": "parameter_list", "text": "(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample)", "parent": 23, "children": [26, 32, 39], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 75}}, {"id": 26, "type": "parameter_declaration", "text": "short *PcmInBuf", "parent": 25, "children": [27, 29], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 32}}, {"id": 27, "type": "sized_type_specifier", "text": "short", "parent": 26, "children": [28], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 22}}, {"id": 28, "type": "short", "text": "short", "parent": 27, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 22}}, {"id": 29, "type": "pointer_declarator", "text": "*PcmInBuf", "parent": 26, "children": [30, 31], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 32}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 31, "type": "identifier", "text": "PcmInBuf", "parent": 29, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 32}}, {"id": 32, "type": "parameter_declaration", "text": "unsigned char *CvsdOutBuf", "parent": 25, "children": [33, 36], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 59}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned char", "parent": 32, "children": [34, 35], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 47}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 42}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 47}}, {"id": 36, "type": "pointer_declarator", "text": "*CvsdOutBuf", "parent": 32, "children": [37, 38], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 59}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 49}}, {"id": 38, "type": "identifier", "text": "CvsdOutBuf", "parent": 36, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 59}}, {"id": 39, "type": "parameter_declaration", "text": "int numsample", "parent": 25, "children": [40, 41], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 74}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 64}}, {"id": 41, "type": "identifier", "text": "numsample", "parent": 39, "children": [], "start_point": {"row": 20, "column": 65}, "end_point": {"row": 20, "column": 74}}, {"id": 42, "type": "declaration", "text": "void CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);", "parent": 0, "children": [43, 44], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 90}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 44, "type": "function_declarator", "text": "CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag)", "parent": 42, "children": [45, 46], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 89}}, {"id": 45, "type": "identifier", "text": "CvsdToPcm8k", "parent": 44, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 16}}, {"id": 46, "type": "parameter_list", "text": "(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag)", "parent": 44, "children": [47, 54, 60, 63], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 89}}, {"id": 47, "type": "parameter_declaration", "text": "unsigned char *CvsdInBuf", "parent": 46, "children": [48, 51], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 41}}, {"id": 48, "type": "sized_type_specifier", "text": "unsigned char", "parent": 47, "children": [49, 50], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 30}}, {"id": 49, "type": "unsigned", "text": "unsigned", "parent": 48, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 25}}, {"id": 50, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 30}}, {"id": 51, "type": "pointer_declarator", "text": "*CvsdInBuf", "parent": 47, "children": [52, 53], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 41}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 32}}, {"id": 53, "type": "identifier", "text": "CvsdInBuf", "parent": 51, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 41}}, {"id": 54, "type": "parameter_declaration", "text": "short *PcmOutBuf", "parent": 46, "children": [55, 57], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 59}}, {"id": 55, "type": "sized_type_specifier", "text": "short", "parent": 54, "children": [56], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 48}}, {"id": 56, "type": "short", "text": "short", "parent": 55, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 48}}, {"id": 57, "type": "pointer_declarator", "text": "*PcmOutBuf", "parent": 54, "children": [58, 59], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 59}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 50}}, {"id": 59, "type": "identifier", "text": "PcmOutBuf", "parent": 57, "children": [], "start_point": {"row": 21, "column": 50}, "end_point": {"row": 21, "column": 59}}, {"id": 60, "type": "parameter_declaration", "text": "int numsample", "parent": 46, "children": [61, 62], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 74}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 64}}, {"id": 62, "type": "identifier", "text": "numsample", "parent": 60, "children": [], "start_point": {"row": 21, "column": 65}, "end_point": {"row": 21, "column": 74}}, {"id": 63, "type": "parameter_declaration", "text": "int LossFlag", "parent": 46, "children": [64, 65], "start_point": {"row": 21, "column": 76}, "end_point": {"row": 21, "column": 88}}, {"id": 64, "type": "primitive_type", "text": "int", "parent": 63, "children": [], "start_point": {"row": 21, "column": 76}, "end_point": {"row": 21, "column": 79}}, {"id": 65, "type": "identifier", "text": "LossFlag", "parent": 63, "children": [], "start_point": {"row": 21, "column": 80}, "end_point": {"row": 21, "column": 88}}, {"id": 66, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}]}, "node_categories": {"declarations": {"functions": [16, 23, 44], "variables": [14, 19, 21, 26, 32, 39, 42, 47, 54, 60, 63], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 17, 24, 27, 31, 33, 38, 41, 45, 48, 53, 55, 59, 62, 65, 66], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "Pcm8k_CvsdInit(void)"}, {"node_id": 23, "universal_type": "function", "name": "numsample)", "text_snippet": "Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample)"}, {"node_id": 44, "universal_type": "function", "name": "numsample,", "text_snippet": "CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * Copyright (C) 2015-2020 Alibaba Group Holding Limited\n */\n/////////////////////////////////////////////////////////////////////////\n//PCM8K <=> CVSD\n/////////////////////////////////////////////////////////////////////////\n#ifndef _PCM8K_CVSD_H_\n#define _PCM8K_CVSD_H_\n\n\n\n//max num of input samples\n#define MAXNUMOFSAMPLES 128\n\n\n//resample delay\n#define RESAMPLE_DELAY 32\n\n\nvoid Pcm8k_CvsdInit(void);\nvoid Pcm8kToCvsd(short *PcmInBuf, unsigned char *CvsdOutBuf, int numsample);\nvoid CvsdToPcm8k(unsigned char *CvsdInBuf, short *PcmOutBuf, int numsample, int LossFlag);\n\n\n#endif\n\n\n\n\n\n\n\n\n\n\n\n\n"}
81,004
c
#ifndef CODEDISPLAY_H #define CODEDISPLAY_H #include "multifilecomment.h" #include <QObject> #include <QPlainTextEdit> class CodeDisplay : public QPlainTextEdit { Q_OBJECT public: CodeDisplay(QWidget *parent = nullptr); void lineNumberAreaPaintEvent(QPaintEvent *event); int lineNumberAreaWidth(); bool isMouseOver(); void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile); void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile); virtual void enterEvent(QEnterEvent *event) override; virtual void leaveEvent(QEvent * event) override; protected: void resizeEvent(QResizeEvent *event) override; private slots: void updateLineNumberAreaWidth(int newBlockCount); void updateLineNumberArea(const QRect &rect, int dy); private: QWidget *lineNumberArea; bool mouseOver = false; }; #endif // CODEDISPLAY_H
32.59
27
(translation_unit) "#ifndef CODEDISPLAY_H\n#define CODEDISPLAY_H\n\n#include "multifilecomment.h"\n\n#include <QObject>\n#include <QPlainTextEdit>\n\nclass CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n};\n\n#endif // CODEDISPLAY_H\n" (preproc_ifdef) "#ifndef CODEDISPLAY_H\n#define CODEDISPLAY_H\n\n#include "multifilecomment.h"\n\n#include <QObject>\n#include <QPlainTextEdit>\n\nclass CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CODEDISPLAY_H" (preproc_def) "#define CODEDISPLAY_H\n" (#define) "#define" (identifier) "CODEDISPLAY_H" (preproc_include) "#include "multifilecomment.h"\n" (#include) "#include" (string_literal) ""multifilecomment.h"" (") """ (string_content) "multifilecomment.h" (") """ (preproc_include) "#include <QObject>\n" (#include) "#include" (system_lib_string) "<QObject>" (preproc_include) "#include <QPlainTextEdit>\n" (#include) "#include" (system_lib_string) "<QPlainTextEdit>" (function_definition) "class CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n}" (type_identifier) "class" (ERROR) "CodeDisplay : public" (identifier) "CodeDisplay" (:) ":" (identifier) "public" (identifier) "QPlainTextEdit" (compound_statement) "{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n}" ({) "{" (declaration) "Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (init_declarator) "CodeDisplay(QWidget *parent = nullptr" (function_declarator) "CodeDisplay(QWidget *parent" (identifier) "CodeDisplay" (parameter_list) "(QWidget *parent" (() "(" (parameter_declaration) "QWidget *parent" (type_identifier) "QWidget" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "void lineNumberAreaPaintEvent(QPaintEvent *event);" (primitive_type) "void" (function_declarator) "lineNumberAreaPaintEvent(QPaintEvent *event)" (identifier) "lineNumberAreaPaintEvent" (parameter_list) "(QPaintEvent *event)" (() "(" (parameter_declaration) "QPaintEvent *event" (type_identifier) "QPaintEvent" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "int lineNumberAreaWidth();" (primitive_type) "int" (function_declarator) "lineNumberAreaWidth()" (identifier) "lineNumberAreaWidth" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool isMouseOver();" (primitive_type) "bool" (function_declarator) "isMouseOver()" (identifier) "isMouseOver" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);" (primitive_type) "void" (function_declarator) "loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile)" (identifier) "loadSelectedLines" (parameter_list) "(MultiFileComment &multiFileComment, QString selectedFile)" (() "(" (parameter_declaration) "MultiFileComment &multiFileComment" (type_identifier) "MultiFileComment" (ERROR) "&" (&) "&" (identifier) "multiFileComment" (,) "," (parameter_declaration) "QString selectedFile" (type_identifier) "QString" (identifier) "selectedFile" ()) ")" (;) ";" (declaration) "void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);" (primitive_type) "void" (function_declarator) "processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile)" (identifier) "processCurrentLine" (parameter_list) "(MultiFileComment &multiFileComment, QString selectedFile)" (() "(" (parameter_declaration) "MultiFileComment &multiFileComment" (type_identifier) "MultiFileComment" (ERROR) "&" (&) "&" (identifier) "multiFileComment" (,) "," (parameter_declaration) "QString selectedFile" (type_identifier) "QString" (identifier) "selectedFile" ()) ")" (;) ";" (ERROR) "virtual void enterEvent(QEnterEvent *event) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "enterEvent(QEnterEvent *event) override" (identifier) "enterEvent" (parameter_list) "(QEnterEvent *event)" (() "(" (parameter_declaration) "QEnterEvent *event" (type_identifier) "QEnterEvent" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "virtual void leaveEvent(QEvent * event) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "leaveEvent(QEvent * event) override" (identifier) "leaveEvent" (parameter_list) "(QEvent * event)" (() "(" (parameter_declaration) "QEvent * event" (type_identifier) "QEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "protected:\n void resizeEvent(QResizeEvent *event) override;" (statement_identifier) "protected" (:) ":" (ERROR) "void resizeEvent(QResizeEvent *event) override" (primitive_type) "void" (function_declarator) "resizeEvent(QResizeEvent *event) override" (identifier) "resizeEvent" (parameter_list) "(QResizeEvent *event)" (() "(" (parameter_declaration) "QResizeEvent *event" (type_identifier) "QResizeEvent" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "private slots:" (type_identifier) "private" (identifier) "slots" (:) ":" (declaration) "void updateLineNumberAreaWidth(int newBlockCount);" (primitive_type) "void" (function_declarator) "updateLineNumberAreaWidth(int newBlockCount)" (identifier) "updateLineNumberAreaWidth" (parameter_list) "(int newBlockCount)" (() "(" (parameter_declaration) "int newBlockCount" (primitive_type) "int" (identifier) "newBlockCount" ()) ")" (;) ";" (declaration) "void updateLineNumberArea(const QRect &rect, int dy);" (primitive_type) "void" (function_declarator) "updateLineNumberArea(const QRect &rect, int dy)" (identifier) "updateLineNumberArea" (parameter_list) "(const QRect &rect, int dy)" (() "(" (parameter_declaration) "const QRect &rect" (type_qualifier) "const" (const) "const" (type_identifier) "QRect" (ERROR) "&" (&) "&" (identifier) "rect" (,) "," (parameter_declaration) "int dy" (primitive_type) "int" (identifier) "dy" ()) ")" (;) ";" (labeled_statement) "private:\n QWidget *lineNumberArea;" (statement_identifier) "private" (:) ":" (declaration) "QWidget *lineNumberArea;" (type_identifier) "QWidget" (pointer_declarator) "*lineNumberArea" (*) "*" (identifier) "lineNumberArea" (;) ";" (declaration) "bool mouseOver = false;" (primitive_type) "bool" (init_declarator) "mouseOver = false" (identifier) "mouseOver" (=) "=" (false) "false" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// CODEDISPLAY_H"
220
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.59, "nodes": 148, "errors": 0, "source_hash": "1dda3f00e1295402aaf4bcf0a5a3906c29a3c7352f4369cfe7d356398c03b65e", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CODEDISPLAY_H\n#define CODEDISPLAY_H\n\n#include \"multifilecomment.h\"\n\n#include <QObject>\n#include <QPlainTextEdit>\n\nclass CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 147], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "CODEDISPLAY_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define CODEDISPLAY_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "CODEDISPLAY_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"multifilecomment.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"multifilecomment.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 29}}, {"id": 9, "type": "preproc_include", "text": "#include <QObject>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<QObject>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <QPlainTextEdit>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QPlainTextEdit>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 25}}, {"id": 15, "type": "function_definition", "text": "class CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n}", "parent": 0, "children": [16, 18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 16, "type": "ERROR", "text": "CodeDisplay : public", "parent": 15, "children": [17], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 26}}, {"id": 17, "type": "identifier", "text": "CodeDisplay", "parent": 16, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 17}}, {"id": 18, "type": "identifier", "text": "QPlainTextEdit", "parent": 15, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 41}}, {"id": 19, "type": "declaration", "text": "Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);", "parent": 15, "children": [20, 21, 22], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 13, "column": 43}}, {"id": 20, "type": "type_identifier", "text": "Q_OBJECT", "parent": 19, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 21, "type": "ERROR", "text": "public:", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 22, "type": "init_declarator", "text": "CodeDisplay(QWidget *parent = nullptr", "parent": 19, "children": [23, 31, 32], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 41}}, {"id": 23, "type": "function_declarator", "text": "CodeDisplay(QWidget *parent", "parent": 22, "children": [24, 25], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 31}}, {"id": 24, "type": "identifier", "text": "CodeDisplay", "parent": 23, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 15}}, {"id": 25, "type": "parameter_list", "text": "(QWidget *parent", "parent": 23, "children": [26], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 31}}, {"id": 26, "type": "parameter_declaration", "text": "QWidget *parent", "parent": 25, "children": [27, 28], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 31}}, {"id": 27, "type": "type_identifier", "text": "QWidget", "parent": 26, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 23}}, {"id": 28, "type": "pointer_declarator", "text": "*parent", "parent": 26, "children": [29, 30], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 31}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 25}}, {"id": 30, "type": "identifier", "text": "parent", "parent": 28, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 31}}, {"id": 31, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 33}}, {"id": 32, "type": "null", "text": "nullptr", "parent": 22, "children": [33], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 41}}, {"id": 33, "type": "nullptr", "text": "nullptr", "parent": 32, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 41}}, {"id": 34, "type": "declaration", "text": "void lineNumberAreaPaintEvent(QPaintEvent *event);", "parent": 15, "children": [35, 36], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 54}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 36, "type": "function_declarator", "text": "lineNumberAreaPaintEvent(QPaintEvent *event)", "parent": 34, "children": [37, 38], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 53}}, {"id": 37, "type": "identifier", "text": "lineNumberAreaPaintEvent", "parent": 36, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 33}}, {"id": 38, "type": "parameter_list", "text": "(QPaintEvent *event)", "parent": 36, "children": [39], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 53}}, {"id": 39, "type": "parameter_declaration", "text": "QPaintEvent *event", "parent": 38, "children": [40, 41], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 52}}, {"id": 40, "type": "type_identifier", "text": "QPaintEvent", "parent": 39, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 45}}, {"id": 41, "type": "pointer_declarator", "text": "*event", "parent": 39, "children": [42, 43], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 52}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 47}}, {"id": 43, "type": "identifier", "text": "event", "parent": 41, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 52}}, {"id": 44, "type": "declaration", "text": "int lineNumberAreaWidth();", "parent": 15, "children": [45, 46], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 30}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 46, "type": "function_declarator", "text": "lineNumberAreaWidth()", "parent": 44, "children": [47, 48], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 29}}, {"id": 47, "type": "identifier", "text": "lineNumberAreaWidth", "parent": 46, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 27}}, {"id": 48, "type": "parameter_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 29}}, {"id": 49, "type": "declaration", "text": "bool isMouseOver();", "parent": 15, "children": [50, 51], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 23}}, {"id": 50, "type": "primitive_type", "text": "bool", "parent": 49, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 51, "type": "function_declarator", "text": "isMouseOver()", "parent": 49, "children": [52, 53], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 22}}, {"id": 52, "type": "identifier", "text": "isMouseOver", "parent": 51, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 22}}, {"id": 54, "type": "declaration", "text": "void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);", "parent": 15, "children": [55, 56], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 85}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 56, "type": "function_declarator", "text": "loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile)", "parent": 54, "children": [57, 58], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 84}}, {"id": 57, "type": "identifier", "text": "loadSelectedLines", "parent": 56, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 58, "type": "parameter_list", "text": "(MultiFileComment &multiFileComment, QString selectedFile)", "parent": 56, "children": [59, 62], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 84}}, {"id": 59, "type": "parameter_declaration", "text": "MultiFileComment &multiFileComment", "parent": 58, "children": [60, 61], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 61}}, {"id": 60, "type": "type_identifier", "text": "MultiFileComment", "parent": 59, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 43}}, {"id": 61, "type": "identifier", "text": "multiFileComment", "parent": 59, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 61}}, {"id": 62, "type": "parameter_declaration", "text": "QString selectedFile", "parent": 58, "children": [63, 64], "start_point": {"row": 19, "column": 63}, "end_point": {"row": 19, "column": 83}}, {"id": 63, "type": "type_identifier", "text": "QString", "parent": 62, "children": [], "start_point": {"row": 19, "column": 63}, "end_point": {"row": 19, "column": 70}}, {"id": 64, "type": "identifier", "text": "selectedFile", "parent": 62, "children": [], "start_point": {"row": 19, "column": 71}, "end_point": {"row": 19, "column": 83}}, {"id": 65, "type": "declaration", "text": "void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);", "parent": 15, "children": [66, 67], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 86}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 67, "type": "function_declarator", "text": "processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile)", "parent": 65, "children": [68, 69], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 85}}, {"id": 68, "type": "identifier", "text": "processCurrentLine", "parent": 67, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 27}}, {"id": 69, "type": "parameter_list", "text": "(MultiFileComment &multiFileComment, QString selectedFile)", "parent": 67, "children": [70, 73], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 85}}, {"id": 70, "type": "parameter_declaration", "text": "MultiFileComment &multiFileComment", "parent": 69, "children": [71, 72], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 62}}, {"id": 71, "type": "type_identifier", "text": "MultiFileComment", "parent": 70, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 44}}, {"id": 72, "type": "identifier", "text": "multiFileComment", "parent": 70, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 62}}, {"id": 73, "type": "parameter_declaration", "text": "QString selectedFile", "parent": 69, "children": [74, 75], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 84}}, {"id": 74, "type": "type_identifier", "text": "QString", "parent": 73, "children": [], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 71}}, {"id": 75, "type": "identifier", "text": "selectedFile", "parent": 73, "children": [], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 84}}, {"id": 76, "type": "ERROR", "text": "virtual void enterEvent(QEnterEvent *event) override", "parent": 15, "children": [77, 78, 80], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 56}}, {"id": 77, "type": "type_identifier", "text": "virtual", "parent": 76, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 78, "type": "ERROR", "text": "void", "parent": 76, "children": [79], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 79, "type": "identifier", "text": "void", "parent": 78, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 80, "type": "function_declarator", "text": "enterEvent(QEnterEvent *event) override", "parent": 76, "children": [81, 82, 88], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 56}}, {"id": 81, "type": "identifier", "text": "enterEvent", "parent": 80, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 27}}, {"id": 82, "type": "parameter_list", "text": "(QEnterEvent *event)", "parent": 80, "children": [83], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 47}}, {"id": 83, "type": "parameter_declaration", "text": "QEnterEvent *event", "parent": 82, "children": [84, 85], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 46}}, {"id": 84, "type": "type_identifier", "text": "QEnterEvent", "parent": 83, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 39}}, {"id": 85, "type": "pointer_declarator", "text": "*event", "parent": 83, "children": [86, 87], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 46}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 87, "type": "identifier", "text": "event", "parent": 85, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 46}}, {"id": 88, "type": "identifier", "text": "override", "parent": 80, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 56}}, {"id": 89, "type": "ERROR", "text": "virtual void leaveEvent(QEvent * event) override", "parent": 15, "children": [90, 91, 93], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 52}}, {"id": 90, "type": "type_identifier", "text": "virtual", "parent": 89, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 91, "type": "ERROR", "text": "void", "parent": 89, "children": [92], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 16}}, {"id": 92, "type": "identifier", "text": "void", "parent": 91, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 16}}, {"id": 93, "type": "function_declarator", "text": "leaveEvent(QEvent * event) override", "parent": 89, "children": [94, 95, 101], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 52}}, {"id": 94, "type": "identifier", "text": "leaveEvent", "parent": 93, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 27}}, {"id": 95, "type": "parameter_list", "text": "(QEvent * event)", "parent": 93, "children": [96], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 43}}, {"id": 96, "type": "parameter_declaration", "text": "QEvent * event", "parent": 95, "children": [97, 98], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 42}}, {"id": 97, "type": "type_identifier", "text": "QEvent", "parent": 96, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 34}}, {"id": 98, "type": "pointer_declarator", "text": "* event", "parent": 96, "children": [99, 100], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 42}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 36}}, {"id": 100, "type": "identifier", "text": "event", "parent": 98, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 42}}, {"id": 101, "type": "identifier", "text": "override", "parent": 93, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 52}}, {"id": 102, "type": "labeled_statement", "text": "protected:\n void resizeEvent(QResizeEvent *event) override;", "parent": 15, "children": [103], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 51}}, {"id": 103, "type": "ERROR", "text": "void resizeEvent(QResizeEvent *event) override", "parent": 102, "children": [104, 105], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 50}}, {"id": 104, "type": "primitive_type", "text": "void", "parent": 103, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 8}}, {"id": 105, "type": "function_declarator", "text": "resizeEvent(QResizeEvent *event) override", "parent": 103, "children": [106, 107, 113], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 50}}, {"id": 106, "type": "identifier", "text": "resizeEvent", "parent": 105, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 20}}, {"id": 107, "type": "parameter_list", "text": "(QResizeEvent *event)", "parent": 105, "children": [108], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 41}}, {"id": 108, "type": "parameter_declaration", "text": "QResizeEvent *event", "parent": 107, "children": [109, 110], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 40}}, {"id": 109, "type": "type_identifier", "text": "QResizeEvent", "parent": 108, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 33}}, {"id": 110, "type": "pointer_declarator", "text": "*event", "parent": 108, "children": [111, 112], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 40}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 112, "type": "identifier", "text": "event", "parent": 110, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 40}}, {"id": 113, "type": "identifier", "text": "override", "parent": 105, "children": [], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 50}}, {"id": 114, "type": "ERROR", "text": "private slots:", "parent": 15, "children": [115], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 14}}, {"id": 115, "type": "identifier", "text": "slots", "parent": 114, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 116, "type": "declaration", "text": "void updateLineNumberAreaWidth(int newBlockCount);", "parent": 15, "children": [117, 118], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 54}}, {"id": 117, "type": "primitive_type", "text": "void", "parent": 116, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 118, "type": "function_declarator", "text": "updateLineNumberAreaWidth(int newBlockCount)", "parent": 116, "children": [119, 120], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 53}}, {"id": 119, "type": "identifier", "text": "updateLineNumberAreaWidth", "parent": 118, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 34}}, {"id": 120, "type": "parameter_list", "text": "(int newBlockCount)", "parent": 118, "children": [121], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 53}}, {"id": 121, "type": "parameter_declaration", "text": "int newBlockCount", "parent": 120, "children": [122, 123], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 52}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 38}}, {"id": 123, "type": "identifier", "text": "newBlockCount", "parent": 121, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 52}}, {"id": 124, "type": "declaration", "text": "void updateLineNumberArea(const QRect &rect, int dy);", "parent": 15, "children": [125, 126], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 57}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 124, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 126, "type": "function_declarator", "text": "updateLineNumberArea(const QRect &rect, int dy)", "parent": 124, "children": [127, 128], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 56}}, {"id": 127, "type": "identifier", "text": "updateLineNumberArea", "parent": 126, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 29}}, {"id": 128, "type": "parameter_list", "text": "(const QRect &rect, int dy)", "parent": 126, "children": [129, 132], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 56}}, {"id": 129, "type": "parameter_declaration", "text": "const QRect &rect", "parent": 128, "children": [130, 131], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 47}}, {"id": 130, "type": "type_identifier", "text": "QRect", "parent": 129, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 41}}, {"id": 131, "type": "identifier", "text": "rect", "parent": 129, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 47}}, {"id": 132, "type": "parameter_declaration", "text": "int dy", "parent": 128, "children": [133, 134], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 55}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 52}}, {"id": 134, "type": "identifier", "text": "dy", "parent": 132, "children": [], "start_point": {"row": 30, "column": 53}, "end_point": {"row": 30, "column": 55}}, {"id": 135, "type": "labeled_statement", "text": "private:\n QWidget *lineNumberArea;", "parent": 15, "children": [136], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 28}}, {"id": 136, "type": "declaration", "text": "QWidget *lineNumberArea;", "parent": 135, "children": [137, 138], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 28}}, {"id": 137, "type": "type_identifier", "text": "QWidget", "parent": 136, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 138, "type": "pointer_declarator", "text": "*lineNumberArea", "parent": 136, "children": [139, 140], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 27}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 140, "type": "identifier", "text": "lineNumberArea", "parent": 138, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 27}}, {"id": 141, "type": "declaration", "text": "bool mouseOver = false;", "parent": 15, "children": [142, 143], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 27}}, {"id": 142, "type": "primitive_type", "text": "bool", "parent": 141, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 143, "type": "init_declarator", "text": "mouseOver = false", "parent": 141, "children": [144, 145, 146], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 26}}, {"id": 144, "type": "identifier", "text": "mouseOver", "parent": 143, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 18}}, {"id": 145, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 146, "type": "false", "text": "false", "parent": 143, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 26}}, {"id": 147, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 23, 36, 46, 51, 56, 67, 80, 93, 105, 118, 126], "variables": [19, 26, 34, 39, 44, 49, 54, 59, 62, 65, 70, 73, 83, 96, 108, 116, 121, 124, 129, 132, 136, 141], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 18, 20, 24, 27, 30, 37, 40, 43, 47, 52, 57, 60, 61, 63, 64, 68, 71, 72, 74, 75, 77, 79, 81, 84, 87, 88, 90, 92, 94, 97, 100, 101, 106, 109, 112, 113, 115, 119, 123, 127, 130, 131, 134, 137, 140, 144, 147], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "CodeDisplay", "text_snippet": "class CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = "}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "CodeDisplay(QWidget *parent"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "lineNumberAreaPaintEvent(QPaintEvent *event)"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "lineNumberAreaWidth()"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "isMouseOver()"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile)"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "enterEvent(QEnterEvent *event) override"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "leaveEvent(QEvent * event) override"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "resizeEvent(QResizeEvent *event) override"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "updateLineNumberAreaWidth(int newBlockCount)"}, {"node_id": 126, "universal_type": "function", "name": "dy)", "text_snippet": "updateLineNumberArea(const QRect &rect, int dy)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"multifilecomment.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QObject>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QPlainTextEdit>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef CODEDISPLAY_H\n#define CODEDISPLAY_H\n\n#include \"multifilecomment.h\"\n\n#include <QObject>\n#include <QPlainTextEdit>\n\nclass CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event);\n int lineNumberAreaWidth();\n bool isMouseOver();\n\n void loadSelectedLines(MultiFileComment &multiFileComment, QString selectedFile);\n void processCurrentLine(MultiFileComment &multiFileComment, QString selectedFile);\n\n virtual void enterEvent(QEnterEvent *event) override;\n virtual void leaveEvent(QEvent * event) override;\n\nprotected:\n void resizeEvent(QResizeEvent *event) override;\n\nprivate slots:\n void updateLineNumberAreaWidth(int newBlockCount);\n void updateLineNumberArea(const QRect &rect, int dy);\n\nprivate:\n QWidget *lineNumberArea;\n bool mouseOver = false;\n};\n\n#endif // CODEDISPLAY_H\n"}
81,005
c
#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_ #define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_ #include "has/mmbr/func/DefaultCodeValue.h" #include "../../../defn/type/sys/code/Value.h" #include <type_traits> namespace basic { namespace err { namespace sys { namespace tmpl { namespace categ { template<typename TCategoryTrait> inline typename std::enable_if<has::mmbr::func:: DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code:: Value>::type DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept { return categ_trait.DefaultCodeValue(); } template<typename TCategoryTrait> inline typename std::enable_if<!has::mmbr::func:: DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code:: Value>::type DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept { return 0; } } //!categ } //!tmpl } //!sys } //!err } //!basic #endif //!BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_
24.68
37
(translation_unit) "#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n\n#include "has/mmbr/func/DefaultCodeValue.h"\n#include "../../../defn/type/sys/code/Value.h"\n\n#include <type_traits>\n\nnamespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n} //!err\n\n} //!basic\n\n#endif //!BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n" (preproc_ifdef) "#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n\n#include "has/mmbr/func/DefaultCodeValue.h"\n#include "../../../defn/type/sys/code/Value.h"\n\n#include <type_traits>\n\nnamespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n} //!err\n\n} //!basic\n\n#endif" (#ifndef) "#ifndef" (identifier) "BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_" (preproc_def) "#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n" (#define) "#define" (identifier) "BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_" (preproc_include) "#include "has/mmbr/func/DefaultCodeValue.h"\n" (#include) "#include" (string_literal) ""has/mmbr/func/DefaultCodeValue.h"" (") """ (string_content) "has/mmbr/func/DefaultCodeValue.h" (") """ (preproc_include) "#include "../../../defn/type/sys/code/Value.h"\n" (#include) "#include" (string_literal) ""../../../defn/type/sys/code/Value.h"" (") """ (string_content) "../../../defn/type/sys/code/Value.h" (") """ (preproc_include) "#include <type_traits>\n" (#include) "#include" (system_lib_string) "<type_traits>" (function_definition) "namespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n}" (type_identifier) "namespace" (identifier) "basic" (compound_statement) "{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n}" ({) "{" (function_definition) "namespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n}" (type_identifier) "namespace" (identifier) "err" (compound_statement) "{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n}" ({) "{" (function_definition) "namespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n}" (type_identifier) "namespace" (identifier) "sys" (compound_statement) "{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n}" ({) "{" (function_definition) "namespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n}" (type_identifier) "namespace" (identifier) "tmpl" (compound_statement) "{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n}" ({) "{" (function_definition) "namespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}" (type_identifier) "namespace" (identifier) "categ" (compound_statement) "{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}" ({) "{" (expression_statement) "template<typename TCategoryTrait>\ninline" (binary_expression) "template<typename TCategoryTrait>\ninline" (binary_expression) "template<typename TCategoryTrait" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "TCategoryTrait" (>) ">" (identifier) "inline" (;) "" (declaration) "typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();" (type_identifier) "typename" (ERROR) "std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::" (identifier) "std" (:) ":" (:) ":" (identifier) "enable_if" (<) "<" (identifier) "has" (:) ":" (:) ":" (identifier) "mmbr" (:) ":" (:) ":" (identifier) "func" (:) ":" (:) ":" (identifier) "DefaultCodeValue" (<) "<" (identifier) "TCategoryTrait" (>) ">" (:) ":" (:) ":" (identifier) "Value" (,) "," (ERROR) "err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait." (identifier) "err" (:) ":" (:) ":" (identifier) "defn" (:) ":" (:) ":" (identifier) "type" (:) ":" (:) ":" (identifier) "sys" (:) ":" (:) ":" (identifier) "code" (:) ":" (:) ":" (identifier) "Value" (>) ">" (:) ":" (:) ":" (identifier) "type" (function_declarator) "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept" (identifier) "DefaultCodeValue" (parameter_list) "(const TCategoryTrait & categ_trait)" (() "(" (parameter_declaration) "const TCategoryTrait & categ_trait" (type_qualifier) "const" (const) "const" (type_identifier) "TCategoryTrait" (ERROR) "&" (&) "&" (identifier) "categ_trait" ()) ")" (identifier) "noexcept" ({) "{" (return) "return" (identifier) "categ_trait" (.) "." (function_declarator) "DefaultCodeValue()" (identifier) "DefaultCodeValue" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename TCategoryTrait>\ninline" (binary_expression) "template<typename TCategoryTrait>\ninline" (binary_expression) "template<typename TCategoryTrait" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "TCategoryTrait" (>) ">" (identifier) "inline" (;) "" (ERROR) "typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept" (type_identifier) "typename" (ERROR) "std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::" (identifier) "std" (:) ":" (:) ":" (identifier) "enable_if" (<) "<" (!) "!" (identifier) "has" (:) ":" (:) ":" (identifier) "mmbr" (:) ":" (:) ":" (identifier) "func" (:) ":" (:) ":" (identifier) "DefaultCodeValue" (<) "<" (identifier) "TCategoryTrait" (>) ">" (:) ":" (:) ":" (identifier) "Value" (,) "," (ERROR) "err::defn::type::sys::code::\n Value>::type" (identifier) "err" (:) ":" (:) ":" (identifier) "defn" (:) ":" (:) ":" (identifier) "type" (:) ":" (:) ":" (identifier) "sys" (:) ":" (:) ":" (identifier) "code" (:) ":" (:) ":" (identifier) "Value" (>) ">" (:) ":" (:) ":" (identifier) "type" (function_declarator) "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept" (identifier) "DefaultCodeValue" (parameter_list) "(const TCategoryTrait & categ_trait)" (() "(" (parameter_declaration) "const TCategoryTrait & categ_trait" (type_qualifier) "const" (const) "const" (type_identifier) "TCategoryTrait" (ERROR) "&" (&) "&" (identifier) "categ_trait" ()) ")" (identifier) "noexcept" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (comment) "//!categ" (}) "}" (comment) "//!tmpl" (}) "}" (comment) "//!sys" (}) "}" (comment) "//!err" (ERROR) "}" (}) "}" (comment) "//!basic" (#endif) "#endif" (comment) "//!BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_"
219
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.68, "nodes": 116, "errors": 0, "source_hash": "9dd5c36d408e5fe7f1bbe11e435f6667b04a7bd287756b738900df950fce0f6a", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n\n#include \"has/mmbr/func/DefaultCodeValue.h\"\n#include \"../../../defn/type/sys/code/Value.h\"\n\n#include <type_traits>\n\nnamespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n} //!err\n\n} //!basic\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 115], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 52}}, {"id": 3, "type": "preproc_def", "text": "#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 52}}, {"id": 6, "type": "preproc_include", "text": "#include \"has/mmbr/func/DefaultCodeValue.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"has/mmbr/func/DefaultCodeValue.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 43}}, {"id": 9, "type": "preproc_include", "text": "#include \"../../../defn/type/sys/code/Value.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"../../../defn/type/sys/code/Value.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 46}}, {"id": 12, "type": "preproc_include", "text": "#include <type_traits>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<type_traits>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 22}}, {"id": 15, "type": "function_definition", "text": "namespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 17, "type": "identifier", "text": "basic", "parent": 15, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 15}}, {"id": 18, "type": "function_definition", "text": "namespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n}", "parent": 15, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 20, "type": "identifier", "text": "err", "parent": 18, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 13}}, {"id": 21, "type": "function_definition", "text": "namespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 23, "type": "identifier", "text": "sys", "parent": 21, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 13}}, {"id": 24, "type": "function_definition", "text": "namespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n}", "parent": 21, "children": [25, 26], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 26, "type": "identifier", "text": "tmpl", "parent": 24, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 27, "type": "function_definition", "text": "namespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}", "parent": 24, "children": [28, 29], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 29, "type": "identifier", "text": "categ", "parent": 27, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 15}}, {"id": 30, "type": "binary_expression", "text": "template<typename TCategoryTrait>\ninline", "parent": 27, "children": [31, 37, 38], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 31, "type": "binary_expression", "text": "template<typename TCategoryTrait", "parent": 30, "children": [32, 33, 34, 36], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 32}}, {"id": 32, "type": "identifier", "text": "template", "parent": 31, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 33, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 34, "type": "ERROR", "text": "typename", "parent": 31, "children": [35], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 35, "type": "identifier", "text": "typename", "parent": 34, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 36, "type": "identifier", "text": "TCategoryTrait", "parent": 31, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 32}}, {"id": 37, "type": ">", "text": ">", "parent": 30, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 33}}, {"id": 38, "type": "identifier", "text": "inline", "parent": 30, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 39, "type": "declaration", "text": "typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();", "parent": 27, "children": [40, 41, 52, 53, 70], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 25, "column": 42}}, {"id": 40, "type": "type_identifier", "text": "typename", "parent": 39, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 15}}, {"id": 41, "type": "ERROR", "text": "std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::", "parent": 39, "children": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 21, "column": 38}}, {"id": 42, "type": "identifier", "text": "std", "parent": 41, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 19}}, {"id": 43, "type": "identifier", "text": "enable_if", "parent": 41, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 30}}, {"id": 44, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 31}}, {"id": 45, "type": "identifier", "text": "has", "parent": 41, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 34}}, {"id": 46, "type": "identifier", "text": "mmbr", "parent": 41, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 40}}, {"id": 47, "type": "identifier", "text": "func", "parent": 41, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 46}}, {"id": 48, "type": "identifier", "text": "DefaultCodeValue", "parent": 41, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 20}}, {"id": 49, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 21}}, {"id": 50, "type": "identifier", "text": "TCategoryTrait", "parent": 41, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 35}}, {"id": 51, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 52, "type": "identifier", "text": "Value", "parent": 39, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 43}}, {"id": 53, "type": "ERROR", "text": "err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.", "parent": 39, "children": [54, 55, 56, 57, 58, 59, 60, 61, 62, 69], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 25, "column": 23}}, {"id": 54, "type": "identifier", "text": "err", "parent": 53, "children": [], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 48}}, {"id": 55, "type": "identifier", "text": "defn", "parent": 53, "children": [], "start_point": {"row": 21, "column": 50}, "end_point": {"row": 21, "column": 54}}, {"id": 56, "type": "identifier", "text": "type", "parent": 53, "children": [], "start_point": {"row": 21, "column": 56}, "end_point": {"row": 21, "column": 60}}, {"id": 57, "type": "identifier", "text": "sys", "parent": 53, "children": [], "start_point": {"row": 21, "column": 62}, "end_point": {"row": 21, "column": 65}}, {"id": 58, "type": "identifier", "text": "code", "parent": 53, "children": [], "start_point": {"row": 21, "column": 67}, "end_point": {"row": 21, "column": 71}}, {"id": 59, "type": "identifier", "text": "Value", "parent": 53, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 9}}, {"id": 60, "type": ">", "text": ">", "parent": 53, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 61, "type": "identifier", "text": "type", "parent": 53, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 62, "type": "function_declarator", "text": "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept", "parent": 53, "children": [63, 64, 68], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 61}}, {"id": 63, "type": "identifier", "text": "DefaultCodeValue", "parent": 62, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 16}}, {"id": 64, "type": "parameter_list", "text": "(const TCategoryTrait & categ_trait)", "parent": 62, "children": [65], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 52}}, {"id": 65, "type": "parameter_declaration", "text": "const TCategoryTrait & categ_trait", "parent": 64, "children": [66, 67], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 51}}, {"id": 66, "type": "type_identifier", "text": "TCategoryTrait", "parent": 65, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 37}}, {"id": 67, "type": "identifier", "text": "categ_trait", "parent": 65, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 51}}, {"id": 68, "type": "identifier", "text": "noexcept", "parent": 62, "children": [], "start_point": {"row": 23, "column": 53}, "end_point": {"row": 23, "column": 61}}, {"id": 69, "type": "identifier", "text": "categ_trait", "parent": 53, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 22}}, {"id": 70, "type": "function_declarator", "text": "DefaultCodeValue()", "parent": 39, "children": [71, 72], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 41}}, {"id": 71, "type": "identifier", "text": "DefaultCodeValue", "parent": 70, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 39}}, {"id": 72, "type": "parameter_list", "text": "()", "parent": 70, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 41}}, {"id": 73, "type": "binary_expression", "text": "template<typename TCategoryTrait>\ninline", "parent": 24, "children": [74, 80, 81], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 74, "type": "binary_expression", "text": "template<typename TCategoryTrait", "parent": 73, "children": [75, 76, 77, 79], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 32}}, {"id": 75, "type": "identifier", "text": "template", "parent": 74, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 76, "type": "<", "text": "<", "parent": 74, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 77, "type": "ERROR", "text": "typename", "parent": 74, "children": [78], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 17}}, {"id": 78, "type": "identifier", "text": "typename", "parent": 77, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 17}}, {"id": 79, "type": "identifier", "text": "TCategoryTrait", "parent": 74, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 32}}, {"id": 80, "type": ">", "text": ">", "parent": 73, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 33}}, {"id": 81, "type": "identifier", "text": "inline", "parent": 73, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 82, "type": "ERROR", "text": "typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept", "parent": 24, "children": [83, 84, 96, 97, 106], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 32, "column": 61}}, {"id": 83, "type": "type_identifier", "text": "typename", "parent": 82, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 15}}, {"id": 84, "type": "ERROR", "text": "std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::", "parent": 82, "children": [85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 30, "column": 38}}, {"id": 85, "type": "identifier", "text": "std", "parent": 84, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 19}}, {"id": 86, "type": "identifier", "text": "enable_if", "parent": 84, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 30}}, {"id": 87, "type": "<", "text": "<", "parent": 84, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 31}}, {"id": 88, "type": "!", "text": "!", "parent": 84, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 32}}, {"id": 89, "type": "identifier", "text": "has", "parent": 84, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 35}}, {"id": 90, "type": "identifier", "text": "mmbr", "parent": 84, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 41}}, {"id": 91, "type": "identifier", "text": "func", "parent": 84, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 47}}, {"id": 92, "type": "identifier", "text": "DefaultCodeValue", "parent": 84, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 20}}, {"id": 93, "type": "<", "text": "<", "parent": 84, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 21}}, {"id": 94, "type": "identifier", "text": "TCategoryTrait", "parent": 84, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 35}}, {"id": 95, "type": ">", "text": ">", "parent": 84, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 36}}, {"id": 96, "type": "identifier", "text": "Value", "parent": 82, "children": [], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 43}}, {"id": 97, "type": "ERROR", "text": "err::defn::type::sys::code::\n Value>::type", "parent": 82, "children": [98, 99, 100, 101, 102, 103, 104, 105], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 31, "column": 16}}, {"id": 98, "type": "identifier", "text": "err", "parent": 97, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 48}}, {"id": 99, "type": "identifier", "text": "defn", "parent": 97, "children": [], "start_point": {"row": 30, "column": 50}, "end_point": {"row": 30, "column": 54}}, {"id": 100, "type": "identifier", "text": "type", "parent": 97, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 60}}, {"id": 101, "type": "identifier", "text": "sys", "parent": 97, "children": [], "start_point": {"row": 30, "column": 62}, "end_point": {"row": 30, "column": 65}}, {"id": 102, "type": "identifier", "text": "code", "parent": 97, "children": [], "start_point": {"row": 30, "column": 67}, "end_point": {"row": 30, "column": 71}}, {"id": 103, "type": "identifier", "text": "Value", "parent": 97, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 9}}, {"id": 104, "type": ">", "text": ">", "parent": 97, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 105, "type": "identifier", "text": "type", "parent": 97, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 16}}, {"id": 106, "type": "function_declarator", "text": "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept", "parent": 82, "children": [107, 108, 112], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 61}}, {"id": 107, "type": "identifier", "text": "DefaultCodeValue", "parent": 106, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 16}}, {"id": 108, "type": "parameter_list", "text": "(const TCategoryTrait & categ_trait)", "parent": 106, "children": [109], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 52}}, {"id": 109, "type": "parameter_declaration", "text": "const TCategoryTrait & categ_trait", "parent": 108, "children": [110, 111], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 51}}, {"id": 110, "type": "type_identifier", "text": "TCategoryTrait", "parent": 109, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 37}}, {"id": 111, "type": "identifier", "text": "categ_trait", "parent": 109, "children": [], "start_point": {"row": 32, "column": 40}, "end_point": {"row": 32, "column": 51}}, {"id": 112, "type": "identifier", "text": "noexcept", "parent": 106, "children": [], "start_point": {"row": 32, "column": 53}, "end_point": {"row": 32, "column": 61}}, {"id": 113, "type": "return_statement", "text": "return 0;", "parent": 24, "children": [114], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 114, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 115, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 21, 24, 27, 62, 70, 106], "variables": [39, 65, 109], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [30, 31, 73, 74], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 32, 35, 36, 38, 40, 42, 43, 45, 46, 47, 48, 50, 52, 54, 55, 56, 57, 58, 59, 61, 63, 66, 67, 68, 69, 71, 75, 78, 79, 81, 83, 85, 86, 89, 90, 91, 92, 94, 96, 98, 99, 100, 101, 102, 103, 105, 107, 110, 111, 112, 115], "returns": [113], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 114], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "namespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typen"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "namespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "namespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typenam"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "namespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "namespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func:"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "DefaultCodeValue()"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "DefaultCodeValue(const TCategoryTrait & categ_trait) noexcept"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"has/mmbr/func/DefaultCodeValue.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"../../../defn/type/sys/code/Value.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <type_traits>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n\n#include \"has/mmbr/func/DefaultCodeValue.h\"\n#include \"../../../defn/type/sys/code/Value.h\"\n\n#include <type_traits>\n\nnamespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmpl\n{\nnamespace categ\n{\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return categ_trait.DefaultCodeValue();\n}\n\ntemplate<typename TCategoryTrait>\ninline typename std::enable_if<!has::mmbr::func::\n DefaultCodeValue<TCategoryTrait>::Value, err::defn::type::sys::code::\n Value>::type \nDefaultCodeValue(const TCategoryTrait & categ_trait) noexcept\n{\n return 0;\n}\n\n} //!categ\n\n} //!tmpl\n\n} //!sys\n\n} //!err\n\n} //!basic\n\n#endif //!BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n"}
81,006
c
#include <stdio.h> #include <stdlib.h> int main() { int pessoaAtual = 0; int idadeAtual; int menores21 = 0; int maiores50 = 0; do{ pessoaAtual++; printf("Idade da pessoa %02d: ", pessoaAtual); scanf("%d", &idadeAtual); if(idadeAtual < 21 && idadeAtual > -1){ menores21++; } else if(idadeAtual > 50){ maiores50++; } } while(idadeAtual >= 0); printf("Total de pessoas menores de 21 anos: %d\n", menores21); printf("Total de pessoas com mais de 50 anos: %d", maiores50); return 0; }
27
21
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);\n\n printf("Total de pessoas menores de 21 anos: %d\n", menores21);\n printf("Total de pessoas com mais de 50 anos: %d", maiores50);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "int main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);\n\n printf("Total de pessoas menores de 21 anos: %d\n", menores21);\n printf("Total de pessoas com mais de 50 anos: %d", maiores50);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);\n\n printf("Total de pessoas menores de 21 anos: %d\n", menores21);\n printf("Total de pessoas com mais de 50 anos: %d", maiores50);\n return 0;\n}" ({) "{" (declaration) "int pessoaAtual = 0;" (primitive_type) "int" (init_declarator) "pessoaAtual = 0" (identifier) "pessoaAtual" (=) "=" (number_literal) "0" (;) ";" (declaration) "int idadeAtual;" (primitive_type) "int" (identifier) "idadeAtual" (;) ";" (declaration) "int menores21 = 0;" (primitive_type) "int" (init_declarator) "menores21 = 0" (identifier) "menores21" (=) "=" (number_literal) "0" (;) ";" (declaration) "int maiores50 = 0;" (primitive_type) "int" (init_declarator) "maiores50 = 0" (identifier) "maiores50" (=) "=" (number_literal) "0" (;) ";" (do_statement) "do{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);" (do) "do" (compound_statement) "{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n }" ({) "{" (expression_statement) "pessoaAtual++;" (update_expression) "pessoaAtual++" (identifier) "pessoaAtual" (++) "++" (;) ";" (expression_statement) "printf("Idade da pessoa %02d: ", pessoaAtual);" (call_expression) "printf("Idade da pessoa %02d: ", pessoaAtual)" (identifier) "printf" (argument_list) "("Idade da pessoa %02d: ", pessoaAtual)" (() "(" (string_literal) ""Idade da pessoa %02d: "" (") """ (string_content) "Idade da pessoa %02d: " (") """ (,) "," (identifier) "pessoaAtual" ()) ")" (;) ";" (expression_statement) "scanf("%d", &idadeAtual);" (call_expression) "scanf("%d", &idadeAtual)" (identifier) "scanf" (argument_list) "("%d", &idadeAtual)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&idadeAtual" (&) "&" (identifier) "idadeAtual" ()) ")" (;) ";" (if_statement) "if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }" (if) "if" (parenthesized_expression) "(idadeAtual < 21 && idadeAtual > -1)" (() "(" (binary_expression) "idadeAtual < 21 && idadeAtual > -1" (binary_expression) "idadeAtual < 21" (identifier) "idadeAtual" (<) "<" (number_literal) "21" (&&) "&&" (binary_expression) "idadeAtual > -1" (identifier) "idadeAtual" (>) ">" (number_literal) "-1" ()) ")" (compound_statement) "{\n menores21++;\n }" ({) "{" (expression_statement) "menores21++;" (update_expression) "menores21++" (identifier) "menores21" (++) "++" (;) ";" (}) "}" (else_clause) "else if(idadeAtual > 50){\n maiores50++;\n }" (else) "else" (if_statement) "if(idadeAtual > 50){\n maiores50++;\n }" (if) "if" (parenthesized_expression) "(idadeAtual > 50)" (() "(" (binary_expression) "idadeAtual > 50" (identifier) "idadeAtual" (>) ">" (number_literal) "50" ()) ")" (compound_statement) "{\n maiores50++;\n }" ({) "{" (expression_statement) "maiores50++;" (update_expression) "maiores50++" (identifier) "maiores50" (++) "++" (;) ";" (}) "}" (}) "}" (while) "while" (parenthesized_expression) "(idadeAtual >= 0)" (() "(" (binary_expression) "idadeAtual >= 0" (identifier) "idadeAtual" (>=) ">=" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "printf("Total de pessoas menores de 21 anos: %d\n", menores21);" (call_expression) "printf("Total de pessoas menores de 21 anos: %d\n", menores21)" (identifier) "printf" (argument_list) "("Total de pessoas menores de 21 anos: %d\n", menores21)" (() "(" (string_literal) ""Total de pessoas menores de 21 anos: %d\n"" (") """ (string_content) "Total de pessoas menores de 21 anos: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "menores21" ()) ")" (;) ";" (expression_statement) "printf("Total de pessoas com mais de 50 anos: %d", maiores50);" (call_expression) "printf("Total de pessoas com mais de 50 anos: %d", maiores50)" (identifier) "printf" (argument_list) "("Total de pessoas com mais de 50 anos: %d", maiores50)" (() "(" (string_literal) ""Total de pessoas com mais de 50 anos: %d"" (") """ (string_content) "Total de pessoas com mais de 50 anos: %d" (") """ (,) "," (identifier) "maiores50" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
162
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.0, "nodes": 90, "errors": 0, "source_hash": "5d24486057ef733b55107b0aedaef5848ff3d3d7e39c853860a804208c1b8789", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "function_definition", "text": "int main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf(\"Idade da pessoa %02d: \", pessoaAtual);\n scanf(\"%d\", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);\n\n printf(\"Total de pessoas menores de 21 anos: %d\\n\", menores21);\n printf(\"Total de pessoas com mais de 50 anos: %d\", maiores50);\n return 0;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "main()", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 10}}, {"id": 9, "type": "identifier", "text": "main", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 8}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 10}}, {"id": 11, "type": "declaration", "text": "int pessoaAtual = 0;", "parent": 6, "children": [12, 13], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 24}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 7}}, {"id": 13, "type": "init_declarator", "text": "pessoaAtual = 0", "parent": 11, "children": [14, 15, 16], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 23}}, {"id": 14, "type": "identifier", "text": "pessoaAtual", "parent": 13, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 19}}, {"id": 15, "type": "=", "text": "=", "parent": 13, "children": [], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 21}}, {"id": 16, "type": "number_literal", "text": "0", "parent": 13, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 23}}, {"id": 17, "type": "declaration", "text": "int idadeAtual;", "parent": 6, "children": [18, 19], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 19}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 19, "type": "identifier", "text": "idadeAtual", "parent": 17, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 20, "type": "declaration", "text": "int menores21 = 0;", "parent": 6, "children": [21, 22], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 22, "type": "init_declarator", "text": "menores21 = 0", "parent": 20, "children": [23, 24, 25], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 21}}, {"id": 23, "type": "identifier", "text": "menores21", "parent": 22, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 19}}, {"id": 25, "type": "number_literal", "text": "0", "parent": 22, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 21}}, {"id": 26, "type": "declaration", "text": "int maiores50 = 0;", "parent": 6, "children": [27, 28], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 22}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 28, "type": "init_declarator", "text": "maiores50 = 0", "parent": 26, "children": [29, 30, 31], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 29, "type": "identifier", "text": "maiores50", "parent": 28, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 17}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 19}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 28, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 21}}, {"id": 32, "type": "do_statement", "text": "do{\n pessoaAtual++;\n printf(\"Idade da pessoa %02d: \", pessoaAtual);\n scanf(\"%d\", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);", "parent": 6, "children": [72], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 19, "column": 29}}, {"id": 33, "type": "update_expression", "text": "pessoaAtual++", "parent": 32, "children": [34, 35], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 21}}, {"id": 34, "type": "identifier", "text": "pessoaAtual", "parent": 33, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 19}}, {"id": 35, "type": "++", "text": "++", "parent": 33, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 21}}, {"id": 36, "type": "call_expression", "text": "printf(\"Idade da pessoa %02d: \", pessoaAtual)", "parent": 32, "children": [37, 38], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 53}}, {"id": 37, "type": "identifier", "text": "printf", "parent": 36, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 38, "type": "argument_list", "text": "(\"Idade da pessoa %02d: \", pessoaAtual)", "parent": 36, "children": [39, 40], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 53}}, {"id": 39, "type": "string_literal", "text": "\"Idade da pessoa %02d: \"", "parent": 38, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 39}}, {"id": 40, "type": "identifier", "text": "pessoaAtual", "parent": 38, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 52}}, {"id": 41, "type": "call_expression", "text": "scanf(\"%d\", &idadeAtual)", "parent": 32, "children": [42, 43], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 32}}, {"id": 42, "type": "identifier", "text": "scanf", "parent": 41, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 13}}, {"id": 43, "type": "argument_list", "text": "(\"%d\", &idadeAtual)", "parent": 41, "children": [44, 45], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 32}}, {"id": 44, "type": "string_literal", "text": "\"%d\"", "parent": 43, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 18}}, {"id": 45, "type": "pointer_expression", "text": "&idadeAtual", "parent": 43, "children": [46], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 31}}, {"id": 46, "type": "identifier", "text": "idadeAtual", "parent": 45, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 31}}, {"id": 47, "type": "if_statement", "text": "if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }", "parent": 32, "children": [48, 62], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 48, "type": "parenthesized_expression", "text": "(idadeAtual < 21 && idadeAtual > -1)", "parent": 47, "children": [49], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 46}}, {"id": 49, "type": "binary_expression", "text": "idadeAtual < 21 && idadeAtual > -1", "parent": 48, "children": [50, 54, 55], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 45}}, {"id": 50, "type": "binary_expression", "text": "idadeAtual < 21", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 26}}, {"id": 51, "type": "identifier", "text": "idadeAtual", "parent": 50, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 21}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 53, "type": "number_literal", "text": "21", "parent": 50, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 26}}, {"id": 54, "type": "&&", "text": "&&", "parent": 49, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 29}}, {"id": 55, "type": "binary_expression", "text": "idadeAtual > -1", "parent": 49, "children": [56, 57, 58], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 45}}, {"id": 56, "type": "identifier", "text": "idadeAtual", "parent": 55, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 40}}, {"id": 57, "type": ">", "text": ">", "parent": 55, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 42}}, {"id": 58, "type": "number_literal", "text": "-1", "parent": 55, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 45}}, {"id": 59, "type": "update_expression", "text": "menores21++", "parent": 47, "children": [60, 61], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 23}}, {"id": 60, "type": "identifier", "text": "menores21", "parent": 59, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 21}}, {"id": 61, "type": "++", "text": "++", "parent": 59, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 23}}, {"id": 62, "type": "else_clause", "text": "else if(idadeAtual > 50){\n maiores50++;\n }", "parent": 47, "children": [63], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 18, "column": 9}}, {"id": 63, "type": "if_statement", "text": "if(idadeAtual > 50){\n maiores50++;\n }", "parent": 62, "children": [64], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 18, "column": 9}}, {"id": 64, "type": "parenthesized_expression", "text": "(idadeAtual > 50)", "parent": 63, "children": [65], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 34}}, {"id": 65, "type": "binary_expression", "text": "idadeAtual > 50", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 33}}, {"id": 66, "type": "identifier", "text": "idadeAtual", "parent": 65, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 28}}, {"id": 67, "type": ">", "text": ">", "parent": 65, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 30}}, {"id": 68, "type": "number_literal", "text": "50", "parent": 65, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 33}}, {"id": 69, "type": "update_expression", "text": "maiores50++", "parent": 63, "children": [70, 71], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 23}}, {"id": 70, "type": "identifier", "text": "maiores50", "parent": 69, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 21}}, {"id": 71, "type": "++", "text": "++", "parent": 69, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 23}}, {"id": 72, "type": "parenthesized_expression", "text": "(idadeAtual >= 0)", "parent": 32, "children": [73], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 28}}, {"id": 73, "type": "binary_expression", "text": "idadeAtual >= 0", "parent": 72, "children": [74, 75, 76], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 27}}, {"id": 74, "type": "identifier", "text": "idadeAtual", "parent": 73, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 22}}, {"id": 75, "type": ">=", "text": ">=", "parent": 73, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 25}}, {"id": 76, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 77, "type": "call_expression", "text": "printf(\"Total de pessoas menores de 21 anos: %d\\n\", menores21)", "parent": 6, "children": [78, 79], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 66}}, {"id": 78, "type": "identifier", "text": "printf", "parent": 77, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 79, "type": "argument_list", "text": "(\"Total de pessoas menores de 21 anos: %d\\n\", menores21)", "parent": 77, "children": [80, 82], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 66}}, {"id": 80, "type": "string_literal", "text": "\"Total de pessoas menores de 21 anos: %d\\n\"", "parent": 79, "children": [81], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 54}}, {"id": 81, "type": "escape_sequence", "text": "\\n", "parent": 80, "children": [], "start_point": {"row": 21, "column": 51}, "end_point": {"row": 21, "column": 53}}, {"id": 82, "type": "identifier", "text": "menores21", "parent": 79, "children": [], "start_point": {"row": 21, "column": 56}, "end_point": {"row": 21, "column": 65}}, {"id": 83, "type": "call_expression", "text": "printf(\"Total de pessoas com mais de 50 anos: %d\", maiores50)", "parent": 6, "children": [84, 85], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 65}}, {"id": 84, "type": "identifier", "text": "printf", "parent": 83, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 85, "type": "argument_list", "text": "(\"Total de pessoas com mais de 50 anos: %d\", maiores50)", "parent": 83, "children": [86, 87], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 65}}, {"id": 86, "type": "string_literal", "text": "\"Total de pessoas com mais de 50 anos: %d\"", "parent": 85, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 53}}, {"id": 87, "type": "identifier", "text": "maiores50", "parent": 85, "children": [], "start_point": {"row": 22, "column": 55}, "end_point": {"row": 22, "column": 64}}, {"id": 88, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [89], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 88, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 17, 20, 26], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [33, 36, 41, 45, 48, 49, 50, 55, 59, 64, 65, 69, 72, 73, 77, 83], "assignments": [], "loops": [], "conditionals": [9, 14, 19, 23, 29, 34, 37, 40, 42, 46, 47, 51, 56, 60, 63, 66, 70, 74, 78, 82, 84, 87], "returns": [88], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 16, 25, 31, 39, 44, 53, 58, 68, 76, 80, 86, 89], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 ="}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf(\"Idade da pessoa %02d: \", pessoaAtual);\n scanf(\"%d\", &idadeAtual);\n\n if(idadeAtual < 21 && idadeAtual > -1){\n menores21++;\n } else if(idadeAtual > 50){\n maiores50++;\n }\n } while(idadeAtual >= 0);\n\n printf(\"Total de pessoas menores de 21 anos: %d\\n\", menores21);\n printf(\"Total de pessoas com mais de 50 anos: %d\", maiores50);\n return 0;\n}\n"}
81,007
c
#ifndef SIGMA_ARCH_X86_64_GDT #define SIGMA_ARCH_X86_64_GDT #include <Sigma/common.h> #include <Sigma/arch/x86_64/tss.h> #include <klibc/string.h> #include <klibc/stdio.h> namespace x86_64::gdt { struct PACKED_ATTRIBUTE entry { explicit entry(uint64_t ent): ent(ent) {} entry() = default; uint64_t ent; }; struct PACKED_ATTRIBUTE pointer { void update_gdtr(){ asm("lgdt %0" : : "m"(*this) : "memory"); } uint16_t size; uint64_t pointer; }; constexpr uint64_t entry_read_write_bit = (1ULL << 41); constexpr uint64_t entry_conforming_bit = (1ULL << 42); constexpr uint64_t entry_executable_bit = (1ULL << 43); constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44); constexpr uint64_t entry_privilege = (1ULL << 45); constexpr uint64_t entry_present_bit = (1ULL << 47); constexpr uint64_t entry_64bit_code_bit = (1ULL << 53); constexpr uint64_t entry_32bit_bit = (1ULL << 54); constexpr uint64_t max_entries = 10; // Maximum usable GDT entries constexpr uint64_t hardware_max_entries = 255; static_assert(max_entries < hardware_max_entries); class gdt { public: gdt(); void init(); uint64_t add_entry(uint64_t flags); uint64_t add_tss(x86_64::tss::table& tss); uint64_t get_offset_by_index(uint64_t index); x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){ return entries[offset / 8]; } void update_pointer(){ this->pointer.update_gdtr(); } private: x86_64::gdt::entry entries[x86_64::gdt::max_entries]; x86_64::gdt::pointer pointer; uint64_t entry_index; }; constexpr uint16_t kernel_data_selector = 0x0; constexpr uint16_t kernel_code_selector = 0x08; // Manually update this constexpr uint16_t user_data_selector = 0x18; constexpr uint16_t user_code_selector = 0x10; // Manually update this } // x86_64::gdt #endif
33.9
60
(translation_unit) "#ifndef SIGMA_ARCH_X86_64_GDT\n#define SIGMA_ARCH_X86_64_GDT\n\n#include <Sigma/common.h>\n\n#include <Sigma/arch/x86_64/tss.h>\n\n#include <klibc/string.h>\n#include <klibc/stdio.h>\n\nnamespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n} // x86_64::gdt\n\n\n\n#endif" (preproc_ifdef) "#ifndef SIGMA_ARCH_X86_64_GDT\n#define SIGMA_ARCH_X86_64_GDT\n\n#include <Sigma/common.h>\n\n#include <Sigma/arch/x86_64/tss.h>\n\n#include <klibc/string.h>\n#include <klibc/stdio.h>\n\nnamespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n} // x86_64::gdt\n\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "SIGMA_ARCH_X86_64_GDT" (preproc_def) "#define SIGMA_ARCH_X86_64_GDT\n" (#define) "#define" (identifier) "SIGMA_ARCH_X86_64_GDT" (preproc_include) "#include <Sigma/common.h>\n" (#include) "#include" (system_lib_string) "<Sigma/common.h>" (preproc_include) "#include <Sigma/arch/x86_64/tss.h>\n" (#include) "#include" (system_lib_string) "<Sigma/arch/x86_64/tss.h>" (preproc_include) "#include <klibc/string.h>\n" (#include) "#include" (system_lib_string) "<klibc/string.h>" (preproc_include) "#include <klibc/stdio.h>\n" (#include) "#include" (system_lib_string) "<klibc/stdio.h>" (function_definition) "namespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n}" (type_identifier) "namespace" (identifier) "x86_64" (ERROR) "::gdt" (:) ":" (:) ":" (identifier) "gdt" (compound_statement) "{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n}" ({) "{" (function_definition) "struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n }" (struct_specifier) "struct PACKED_ATTRIBUTE" (struct) "struct" (type_identifier) "PACKED_ATTRIBUTE" (identifier) "entry" (compound_statement) "{\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n }" ({) "{" (function_definition) "explicit entry(uint64_t ent): ent(ent) {}" (type_identifier) "explicit" (function_declarator) "entry(uint64_t ent): ent(ent)" (identifier) "entry" (parameter_list) "(uint64_t ent)" (() "(" (parameter_declaration) "uint64_t ent" (primitive_type) "uint64_t" (identifier) "ent" ()) ")" (ERROR) ":" (:) ":" (call_expression) "ent(ent)" (identifier) "ent" (argument_list) "(ent)" (() "(" (identifier) "ent" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "entry() = default;" (assignment_expression) "entry() = default" (call_expression) "entry()" (identifier) "entry" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (declaration) "uint64_t ent;" (primitive_type) "uint64_t" (identifier) "ent" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n }" (struct_specifier) "struct PACKED_ATTRIBUTE" (struct) "struct" (type_identifier) "PACKED_ATTRIBUTE" (identifier) "pointer" (compound_statement) "{\n void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }\n uint16_t size;\n uint64_t pointer;\n }" ({) "{" (function_definition) "void update_gdtr(){\n asm("lgdt %0" : : "m"(*this) : "memory");\n }" (primitive_type) "void" (function_declarator) "update_gdtr()" (identifier) "update_gdtr" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n asm("lgdt %0" : : "m"(*this) : "memory");\n }" ({) "{" (expression_statement) "asm("lgdt %0" : : "m"(*this) : "memory");" (gnu_asm_expression) "asm("lgdt %0" : : "m"(*this) : "memory")" (asm) "asm" (() "(" (string_literal) ""lgdt %0"" (") """ (string_content) "lgdt %0" (") """ (gnu_asm_output_operand_list) ":" (:) ":" (gnu_asm_input_operand_list) ": "m"(*this)" (:) ":" (gnu_asm_input_operand) ""m"(*this)" (string_literal) ""m"" (") """ (string_content) "m" (") """ (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" ()) ")" (gnu_asm_clobber_list) ": "memory"" (:) ":" (string_literal) ""memory"" (") """ (string_content) "memory" (") """ ()) ")" (;) ";" (}) "}" (declaration) "uint16_t size;" (primitive_type) "uint16_t" (identifier) "size" (;) ";" (declaration) "uint64_t pointer;" (primitive_type) "uint64_t" (identifier) "pointer" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "constexpr uint64_t entry_read_write_bit = (1ULL << 41);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_read_write_bit = (1ULL << 41)" (identifier) "entry_read_write_bit" (=) "=" (parenthesized_expression) "(1ULL << 41)" (() "(" (binary_expression) "1ULL << 41" (number_literal) "1ULL" (<<) "<<" (number_literal) "41" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_conforming_bit = (1ULL << 42);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_conforming_bit = (1ULL << 42)" (identifier) "entry_conforming_bit" (=) "=" (parenthesized_expression) "(1ULL << 42)" (() "(" (binary_expression) "1ULL << 42" (number_literal) "1ULL" (<<) "<<" (number_literal) "42" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_executable_bit = (1ULL << 43);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_executable_bit = (1ULL << 43)" (identifier) "entry_executable_bit" (=) "=" (parenthesized_expression) "(1ULL << 43)" (() "(" (binary_expression) "1ULL << 43" (number_literal) "1ULL" (<<) "<<" (number_literal) "43" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_descriptor_type_bit = (1ULL << 44)" (identifier) "entry_descriptor_type_bit" (=) "=" (parenthesized_expression) "(1ULL << 44)" (() "(" (binary_expression) "1ULL << 44" (number_literal) "1ULL" (<<) "<<" (number_literal) "44" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_privilege = (1ULL << 45);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_privilege = (1ULL << 45)" (identifier) "entry_privilege" (=) "=" (parenthesized_expression) "(1ULL << 45)" (() "(" (binary_expression) "1ULL << 45" (number_literal) "1ULL" (<<) "<<" (number_literal) "45" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_present_bit = (1ULL << 47);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_present_bit = (1ULL << 47)" (identifier) "entry_present_bit" (=) "=" (parenthesized_expression) "(1ULL << 47)" (() "(" (binary_expression) "1ULL << 47" (number_literal) "1ULL" (<<) "<<" (number_literal) "47" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_64bit_code_bit = (1ULL << 53)" (identifier) "entry_64bit_code_bit" (=) "=" (parenthesized_expression) "(1ULL << 53)" (() "(" (binary_expression) "1ULL << 53" (number_literal) "1ULL" (<<) "<<" (number_literal) "53" ()) ")" (;) ";" (declaration) "constexpr uint64_t entry_32bit_bit = (1ULL << 54);" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "entry_32bit_bit = (1ULL << 54)" (identifier) "entry_32bit_bit" (=) "=" (parenthesized_expression) "(1ULL << 54)" (() "(" (binary_expression) "1ULL << 54" (number_literal) "1ULL" (<<) "<<" (number_literal) "54" ()) ")" (;) ";" (declaration) "constexpr uint64_t max_entries = 10;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "max_entries = 10" (identifier) "max_entries" (=) "=" (number_literal) "10" (;) ";" (comment) "// Maximum usable GDT entries" (declaration) "constexpr uint64_t hardware_max_entries = 255;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint64_t" (init_declarator) "hardware_max_entries = 255" (identifier) "hardware_max_entries" (=) "=" (number_literal) "255" (;) ";" (expression_statement) "static_assert(max_entries < hardware_max_entries);" (call_expression) "static_assert(max_entries < hardware_max_entries)" (identifier) "static_assert" (argument_list) "(max_entries < hardware_max_entries)" (() "(" (binary_expression) "max_entries < hardware_max_entries" (identifier) "max_entries" (<) "<" (identifier) "hardware_max_entries" ()) ")" (;) ";" (function_definition) "class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n }" (type_identifier) "class" (identifier) "gdt" (compound_statement) "{\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n }" ({) "{" (labeled_statement) "public:\n gdt();" (statement_identifier) "public" (:) ":" (expression_statement) "gdt();" (call_expression) "gdt()" (identifier) "gdt" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void init();" (primitive_type) "void" (function_declarator) "init()" (identifier) "init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "uint64_t add_entry(uint64_t flags);" (primitive_type) "uint64_t" (function_declarator) "add_entry(uint64_t flags)" (identifier) "add_entry" (parameter_list) "(uint64_t flags)" (() "(" (parameter_declaration) "uint64_t flags" (primitive_type) "uint64_t" (identifier) "flags" ()) ")" (;) ";" (declaration) "uint64_t add_tss(x86_64::tss::table& tss);" (primitive_type) "uint64_t" (function_declarator) "add_tss(x86_64::tss::table& tss)" (identifier) "add_tss" (parameter_list) "(x86_64::tss::table& tss)" (() "(" (parameter_declaration) "x86_64::tss::table& tss" (type_identifier) "x86_64" (ERROR) "::tss::table&" (:) ":" (:) ":" (identifier) "tss" (:) ":" (:) ":" (identifier) "table" (&) "&" (identifier) "tss" ()) ")" (;) ";" (declaration) "uint64_t get_offset_by_index(uint64_t index);" (primitive_type) "uint64_t" (function_declarator) "get_offset_by_index(uint64_t index)" (identifier) "get_offset_by_index" (parameter_list) "(uint64_t index)" (() "(" (parameter_declaration) "uint64_t index" (primitive_type) "uint64_t" (identifier) "index" ()) ")" (;) ";" (labeled_statement) "x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }" (statement_identifier) "x86_64" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }" (statement_identifier) "gdt" (:) ":" (ERROR) ":entry& get_entry_by_offset(uint64_t offset)" (:) ":" (binary_expression) "entry& get_entry_by_offset(uint64_t offset)" (identifier) "entry" (&) "&" (call_expression) "get_entry_by_offset(uint64_t offset)" (identifier) "get_entry_by_offset" (argument_list) "(uint64_t offset)" (() "(" (identifier) "uint64_t" (ERROR) "offset" (identifier) "offset" ()) ")" (compound_statement) "{\n return entries[offset / 8];\n }" ({) "{" (return_statement) "return entries[offset / 8];" (return) "return" (subscript_expression) "entries[offset / 8]" (identifier) "entries" ([) "[" (binary_expression) "offset / 8" (identifier) "offset" (/) "/" (number_literal) "8" (]) "]" (;) ";" (}) "}" (function_definition) "void update_pointer(){\n this->pointer.update_gdtr();\n }" (primitive_type) "void" (function_declarator) "update_pointer()" (identifier) "update_pointer" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n this->pointer.update_gdtr();\n }" ({) "{" (expression_statement) "this->pointer.update_gdtr();" (call_expression) "this->pointer.update_gdtr()" (field_expression) "this->pointer.update_gdtr" (field_expression) "this->pointer" (identifier) "this" (->) "->" (field_identifier) "pointer" (.) "." (field_identifier) "update_gdtr" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];" (statement_identifier) "private" (:) ":" (labeled_statement) "x86_64::gdt::entry entries[x86_64::gdt::max_entries];" (statement_identifier) "x86_64" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "gdt::entry entries[x86_64::gdt::max_entries];" (statement_identifier) "gdt" (ERROR) "::entry entries[x86_64:" (:) ":" (:) ":" (type_identifier) "entry" (identifier) "entries" ([) "[" (identifier) "x86_64" (:) ":" (:) ":" (labeled_statement) "gdt::max_entries];" (statement_identifier) "gdt" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "max_entries];" (identifier) "max_entries" (ERROR) "]" (]) "]" (;) ";" (labeled_statement) "x86_64::gdt::pointer pointer;" (statement_identifier) "x86_64" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "gdt::pointer pointer;" (statement_identifier) "gdt" (:) ":" (ERROR) ":" (:) ":" (declaration) "pointer pointer;" (type_identifier) "pointer" (identifier) "pointer" (;) ";" (declaration) "uint64_t entry_index;" (primitive_type) "uint64_t" (identifier) "entry_index" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "constexpr uint16_t kernel_data_selector = 0x0;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint16_t" (init_declarator) "kernel_data_selector = 0x0" (identifier) "kernel_data_selector" (=) "=" (number_literal) "0x0" (;) ";" (declaration) "constexpr uint16_t kernel_code_selector = 0x08;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint16_t" (init_declarator) "kernel_code_selector = 0x08" (identifier) "kernel_code_selector" (=) "=" (number_literal) "0x08" (;) ";" (comment) "// Manually update this" (declaration) "constexpr uint16_t user_data_selector = 0x18;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint16_t" (init_declarator) "user_data_selector = 0x18" (identifier) "user_data_selector" (=) "=" (number_literal) "0x18" (;) ";" (declaration) "constexpr uint16_t user_code_selector = 0x10;" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint16_t" (init_declarator) "user_code_selector = 0x10" (identifier) "user_code_selector" (=) "=" (number_literal) "0x10" (;) ";" (comment) "// Manually update this" (}) "}" (comment) "// x86_64::gdt" (#endif) "#endif"
494
12
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.9, "nodes": 320, "errors": 0, "source_hash": "fb2378ad6ddf62123eeb97ee0f99cf38a7c3a73f0281e9e944e154445787c8bb", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SIGMA_ARCH_X86_64_GDT\n#define SIGMA_ARCH_X86_64_GDT\n\n#include <Sigma/common.h>\n\n#include <Sigma/arch/x86_64/tss.h>\n\n#include <klibc/string.h>\n#include <klibc/stdio.h>\n\nnamespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n} // x86_64::gdt\n\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 319], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "SIGMA_ARCH_X86_64_GDT", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define SIGMA_ARCH_X86_64_GDT\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "SIGMA_ARCH_X86_64_GDT", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include <Sigma/common.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<Sigma/common.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <Sigma/arch/x86_64/tss.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Sigma/arch/x86_64/tss.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 34}}, {"id": 12, "type": "preproc_include", "text": "#include <klibc/string.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<klibc/string.h>", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <klibc/stdio.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<klibc/stdio.h>", "parent": 15, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 24}}, {"id": 18, "type": "function_definition", "text": "namespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n}", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 20, "type": "identifier", "text": "x86_64", "parent": 18, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 16}}, {"id": 21, "type": "ERROR", "text": "::gdt", "parent": 18, "children": [22], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 21}}, {"id": 22, "type": "identifier", "text": "gdt", "parent": 21, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 21}}, {"id": 23, "type": "function_definition", "text": "struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n }", "parent": 18, "children": [24, 27], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 24, "type": "struct_specifier", "text": "struct PACKED_ATTRIBUTE", "parent": 23, "children": [25, 26], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 27}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 26, "type": "type_identifier", "text": "PACKED_ATTRIBUTE", "parent": 24, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 27}}, {"id": 27, "type": "identifier", "text": "entry", "parent": 23, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 33}}, {"id": 28, "type": "function_definition", "text": "explicit entry(uint64_t ent): ent(ent) {}", "parent": 23, "children": [29, 30], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 49}}, {"id": 29, "type": "type_identifier", "text": "explicit", "parent": 28, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 16}}, {"id": 30, "type": "function_declarator", "text": "entry(uint64_t ent): ent(ent)", "parent": 28, "children": [31, 32, 36], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 46}}, {"id": 31, "type": "identifier", "text": "entry", "parent": 30, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 22}}, {"id": 32, "type": "parameter_list", "text": "(uint64_t ent)", "parent": 30, "children": [33], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 36}}, {"id": 33, "type": "parameter_declaration", "text": "uint64_t ent", "parent": 32, "children": [34, 35], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 35}}, {"id": 34, "type": "primitive_type", "text": "uint64_t", "parent": 33, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 31}}, {"id": 35, "type": "identifier", "text": "ent", "parent": 33, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 35}}, {"id": 36, "type": "call_expression", "text": "ent(ent)", "parent": 30, "children": [37, 38], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 46}}, {"id": 37, "type": "identifier", "text": "ent", "parent": 36, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 41}}, {"id": 38, "type": "argument_list", "text": "(ent)", "parent": 36, "children": [39], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 46}}, {"id": 39, "type": "identifier", "text": "ent", "parent": 38, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 45}}, {"id": 40, "type": "assignment_expression", "text": "entry() = default", "parent": 23, "children": [41, 44, 45], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 25}}, {"id": 41, "type": "call_expression", "text": "entry()", "parent": 40, "children": [42, 43], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 42, "type": "identifier", "text": "entry", "parent": 41, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 13}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 15}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 17}}, {"id": 45, "type": "identifier", "text": "default", "parent": 40, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 25}}, {"id": 46, "type": "declaration", "text": "uint64_t ent;", "parent": 23, "children": [47, 48], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 21}}, {"id": 47, "type": "primitive_type", "text": "uint64_t", "parent": 46, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 48, "type": "identifier", "text": "ent", "parent": 46, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 20}}, {"id": 49, "type": "function_definition", "text": "struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }\n uint16_t size;\n uint64_t pointer;\n }", "parent": 18, "children": [50, 53], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 50, "type": "struct_specifier", "text": "struct PACKED_ATTRIBUTE", "parent": 49, "children": [51, 52], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 27}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 52, "type": "type_identifier", "text": "PACKED_ATTRIBUTE", "parent": 50, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 27}}, {"id": 53, "type": "identifier", "text": "pointer", "parent": 49, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 35}}, {"id": 54, "type": "function_definition", "text": "void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }", "parent": 49, "children": [55, 56], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 56, "type": "function_declarator", "text": "update_gdtr()", "parent": 54, "children": [57, 58], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 26}}, {"id": 57, "type": "identifier", "text": "update_gdtr", "parent": 56, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 24}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 26}}, {"id": 59, "type": "gnu_asm_expression", "text": "asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\")", "parent": 54, "children": [60, 61, 62, 68], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 52}}, {"id": 60, "type": "asm", "text": "asm", "parent": 59, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 15}}, {"id": 61, "type": "string_literal", "text": "\"lgdt %0\"", "parent": 59, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 25}}, {"id": 62, "type": "gnu_asm_input_operand_list", "text": ": \"m\"(*this)", "parent": 59, "children": [63], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 40}}, {"id": 63, "type": "gnu_asm_input_operand", "text": "\"m\"(*this)", "parent": 62, "children": [64, 65], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 40}}, {"id": 64, "type": "string_literal", "text": "\"m\"", "parent": 63, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 33}}, {"id": 65, "type": "pointer_expression", "text": "*this", "parent": 63, "children": [66, 67], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 39}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 67, "type": "identifier", "text": "this", "parent": 65, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 39}}, {"id": 68, "type": "gnu_asm_clobber_list", "text": ": \"memory\"", "parent": 59, "children": [69], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 51}}, {"id": 69, "type": "string_literal", "text": "\"memory\"", "parent": 68, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 51}}, {"id": 70, "type": "declaration", "text": "uint16_t size;", "parent": 49, "children": [71, 72], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 22}}, {"id": 71, "type": "primitive_type", "text": "uint16_t", "parent": 70, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 16}}, {"id": 72, "type": "identifier", "text": "size", "parent": 70, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 73, "type": "declaration", "text": "uint64_t pointer;", "parent": 49, "children": [74, 75], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 25}}, {"id": 74, "type": "primitive_type", "text": "uint64_t", "parent": 73, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 16}}, {"id": 75, "type": "identifier", "text": "pointer", "parent": 73, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 24}}, {"id": 76, "type": "declaration", "text": "constexpr uint64_t entry_read_write_bit = (1ULL << 41);", "parent": 18, "children": [77, 79, 80], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 59}}, {"id": 77, "type": "type_qualifier", "text": "constexpr", "parent": 76, "children": [78], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 13}}, {"id": 78, "type": "constexpr", "text": "constexpr", "parent": 77, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 13}}, {"id": 79, "type": "primitive_type", "text": "uint64_t", "parent": 76, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 22}}, {"id": 80, "type": "init_declarator", "text": "entry_read_write_bit = (1ULL << 41)", "parent": 76, "children": [81, 82, 83], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 58}}, {"id": 81, "type": "identifier", "text": "entry_read_write_bit", "parent": 80, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 43}}, {"id": 82, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 45}}, {"id": 83, "type": "parenthesized_expression", "text": "(1ULL << 41)", "parent": 80, "children": [84], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 58}}, {"id": 84, "type": "binary_expression", "text": "1ULL << 41", "parent": 83, "children": [85, 86, 87], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 57}}, {"id": 85, "type": "number_literal", "text": "1ULL", "parent": 84, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 51}}, {"id": 86, "type": "<<", "text": "<<", "parent": 84, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 54}}, {"id": 87, "type": "number_literal", "text": "41", "parent": 84, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 57}}, {"id": 88, "type": "declaration", "text": "constexpr uint64_t entry_conforming_bit = (1ULL << 42);", "parent": 18, "children": [89, 91, 92], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 59}}, {"id": 89, "type": "type_qualifier", "text": "constexpr", "parent": 88, "children": [90], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 90, "type": "constexpr", "text": "constexpr", "parent": 89, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 91, "type": "primitive_type", "text": "uint64_t", "parent": 88, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 22}}, {"id": 92, "type": "init_declarator", "text": "entry_conforming_bit = (1ULL << 42)", "parent": 88, "children": [93, 94, 95], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 58}}, {"id": 93, "type": "identifier", "text": "entry_conforming_bit", "parent": 92, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 43}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 45}}, {"id": 95, "type": "parenthesized_expression", "text": "(1ULL << 42)", "parent": 92, "children": [96], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 58}}, {"id": 96, "type": "binary_expression", "text": "1ULL << 42", "parent": 95, "children": [97, 98, 99], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 57}}, {"id": 97, "type": "number_literal", "text": "1ULL", "parent": 96, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 51}}, {"id": 98, "type": "<<", "text": "<<", "parent": 96, "children": [], "start_point": {"row": 30, "column": 52}, "end_point": {"row": 30, "column": 54}}, {"id": 99, "type": "number_literal", "text": "42", "parent": 96, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 57}}, {"id": 100, "type": "declaration", "text": "constexpr uint64_t entry_executable_bit = (1ULL << 43);", "parent": 18, "children": [101, 103, 104], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 59}}, {"id": 101, "type": "type_qualifier", "text": "constexpr", "parent": 100, "children": [102], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 102, "type": "constexpr", "text": "constexpr", "parent": 101, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 103, "type": "primitive_type", "text": "uint64_t", "parent": 100, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 22}}, {"id": 104, "type": "init_declarator", "text": "entry_executable_bit = (1ULL << 43)", "parent": 100, "children": [105, 106, 107], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 58}}, {"id": 105, "type": "identifier", "text": "entry_executable_bit", "parent": 104, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 43}}, {"id": 106, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 31, "column": 44}, "end_point": {"row": 31, "column": 45}}, {"id": 107, "type": "parenthesized_expression", "text": "(1ULL << 43)", "parent": 104, "children": [108], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 58}}, {"id": 108, "type": "binary_expression", "text": "1ULL << 43", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 57}}, {"id": 109, "type": "number_literal", "text": "1ULL", "parent": 108, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 51}}, {"id": 110, "type": "<<", "text": "<<", "parent": 108, "children": [], "start_point": {"row": 31, "column": 52}, "end_point": {"row": 31, "column": 54}}, {"id": 111, "type": "number_literal", "text": "43", "parent": 108, "children": [], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 57}}, {"id": 112, "type": "declaration", "text": "constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);", "parent": 18, "children": [113, 115, 116], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 64}}, {"id": 113, "type": "type_qualifier", "text": "constexpr", "parent": 112, "children": [114], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 13}}, {"id": 114, "type": "constexpr", "text": "constexpr", "parent": 113, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 13}}, {"id": 115, "type": "primitive_type", "text": "uint64_t", "parent": 112, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 22}}, {"id": 116, "type": "init_declarator", "text": "entry_descriptor_type_bit = (1ULL << 44)", "parent": 112, "children": [117, 118, 119], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 63}}, {"id": 117, "type": "identifier", "text": "entry_descriptor_type_bit", "parent": 116, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 48}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 50}}, {"id": 119, "type": "parenthesized_expression", "text": "(1ULL << 44)", "parent": 116, "children": [120], "start_point": {"row": 32, "column": 51}, "end_point": {"row": 32, "column": 63}}, {"id": 120, "type": "binary_expression", "text": "1ULL << 44", "parent": 119, "children": [121, 122, 123], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 62}}, {"id": 121, "type": "number_literal", "text": "1ULL", "parent": 120, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 56}}, {"id": 122, "type": "<<", "text": "<<", "parent": 120, "children": [], "start_point": {"row": 32, "column": 57}, "end_point": {"row": 32, "column": 59}}, {"id": 123, "type": "number_literal", "text": "44", "parent": 120, "children": [], "start_point": {"row": 32, "column": 60}, "end_point": {"row": 32, "column": 62}}, {"id": 124, "type": "declaration", "text": "constexpr uint64_t entry_privilege = (1ULL << 45);", "parent": 18, "children": [125, 127, 128], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 54}}, {"id": 125, "type": "type_qualifier", "text": "constexpr", "parent": 124, "children": [126], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 126, "type": "constexpr", "text": "constexpr", "parent": 125, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 127, "type": "primitive_type", "text": "uint64_t", "parent": 124, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 22}}, {"id": 128, "type": "init_declarator", "text": "entry_privilege = (1ULL << 45)", "parent": 124, "children": [129, 130, 131], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 53}}, {"id": 129, "type": "identifier", "text": "entry_privilege", "parent": 128, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 38}}, {"id": 130, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 40}}, {"id": 131, "type": "parenthesized_expression", "text": "(1ULL << 45)", "parent": 128, "children": [132], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 53}}, {"id": 132, "type": "binary_expression", "text": "1ULL << 45", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 52}}, {"id": 133, "type": "number_literal", "text": "1ULL", "parent": 132, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 46}}, {"id": 134, "type": "<<", "text": "<<", "parent": 132, "children": [], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 49}}, {"id": 135, "type": "number_literal", "text": "45", "parent": 132, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 52}}, {"id": 136, "type": "declaration", "text": "constexpr uint64_t entry_present_bit = (1ULL << 47);", "parent": 18, "children": [137, 139, 140], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 56}}, {"id": 137, "type": "type_qualifier", "text": "constexpr", "parent": 136, "children": [138], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 138, "type": "constexpr", "text": "constexpr", "parent": 137, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 139, "type": "primitive_type", "text": "uint64_t", "parent": 136, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 22}}, {"id": 140, "type": "init_declarator", "text": "entry_present_bit = (1ULL << 47)", "parent": 136, "children": [141, 142, 143], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 55}}, {"id": 141, "type": "identifier", "text": "entry_present_bit", "parent": 140, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 40}}, {"id": 142, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 42}}, {"id": 143, "type": "parenthesized_expression", "text": "(1ULL << 47)", "parent": 140, "children": [144], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 55}}, {"id": 144, "type": "binary_expression", "text": "1ULL << 47", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 54}}, {"id": 145, "type": "number_literal", "text": "1ULL", "parent": 144, "children": [], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 48}}, {"id": 146, "type": "<<", "text": "<<", "parent": 144, "children": [], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 51}}, {"id": 147, "type": "number_literal", "text": "47", "parent": 144, "children": [], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 54}}, {"id": 148, "type": "declaration", "text": "constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);", "parent": 18, "children": [149, 151, 152], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 59}}, {"id": 149, "type": "type_qualifier", "text": "constexpr", "parent": 148, "children": [150], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 13}}, {"id": 150, "type": "constexpr", "text": "constexpr", "parent": 149, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 13}}, {"id": 151, "type": "primitive_type", "text": "uint64_t", "parent": 148, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 22}}, {"id": 152, "type": "init_declarator", "text": "entry_64bit_code_bit = (1ULL << 53)", "parent": 148, "children": [153, 154, 155], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 58}}, {"id": 153, "type": "identifier", "text": "entry_64bit_code_bit", "parent": 152, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 43}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 45}}, {"id": 155, "type": "parenthesized_expression", "text": "(1ULL << 53)", "parent": 152, "children": [156], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 58}}, {"id": 156, "type": "binary_expression", "text": "1ULL << 53", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 57}}, {"id": 157, "type": "number_literal", "text": "1ULL", "parent": 156, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 51}}, {"id": 158, "type": "<<", "text": "<<", "parent": 156, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 54}}, {"id": 159, "type": "number_literal", "text": "53", "parent": 156, "children": [], "start_point": {"row": 35, "column": 55}, "end_point": {"row": 35, "column": 57}}, {"id": 160, "type": "declaration", "text": "constexpr uint64_t entry_32bit_bit = (1ULL << 54);", "parent": 18, "children": [161, 163, 164], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 54}}, {"id": 161, "type": "type_qualifier", "text": "constexpr", "parent": 160, "children": [162], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 162, "type": "constexpr", "text": "constexpr", "parent": 161, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 163, "type": "primitive_type", "text": "uint64_t", "parent": 160, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 22}}, {"id": 164, "type": "init_declarator", "text": "entry_32bit_bit = (1ULL << 54)", "parent": 160, "children": [165, 166, 167], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 53}}, {"id": 165, "type": "identifier", "text": "entry_32bit_bit", "parent": 164, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 38}}, {"id": 166, "type": "=", "text": "=", "parent": 164, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 40}}, {"id": 167, "type": "parenthesized_expression", "text": "(1ULL << 54)", "parent": 164, "children": [168], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 53}}, {"id": 168, "type": "binary_expression", "text": "1ULL << 54", "parent": 167, "children": [169, 170, 171], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 52}}, {"id": 169, "type": "number_literal", "text": "1ULL", "parent": 168, "children": [], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 46}}, {"id": 170, "type": "<<", "text": "<<", "parent": 168, "children": [], "start_point": {"row": 36, "column": 47}, "end_point": {"row": 36, "column": 49}}, {"id": 171, "type": "number_literal", "text": "54", "parent": 168, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 52}}, {"id": 172, "type": "declaration", "text": "constexpr uint64_t max_entries = 10;", "parent": 18, "children": [173, 175, 176], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 40}}, {"id": 173, "type": "type_qualifier", "text": "constexpr", "parent": 172, "children": [174], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 13}}, {"id": 174, "type": "constexpr", "text": "constexpr", "parent": 173, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 13}}, {"id": 175, "type": "primitive_type", "text": "uint64_t", "parent": 172, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 22}}, {"id": 176, "type": "init_declarator", "text": "max_entries = 10", "parent": 172, "children": [177, 178, 179], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 39}}, {"id": 177, "type": "identifier", "text": "max_entries", "parent": 176, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 34}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 36}}, {"id": 179, "type": "number_literal", "text": "10", "parent": 176, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 39}}, {"id": 180, "type": "declaration", "text": "constexpr uint64_t hardware_max_entries = 255;", "parent": 18, "children": [181, 183, 184], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 50}}, {"id": 181, "type": "type_qualifier", "text": "constexpr", "parent": 180, "children": [182], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 13}}, {"id": 182, "type": "constexpr", "text": "constexpr", "parent": 181, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 13}}, {"id": 183, "type": "primitive_type", "text": "uint64_t", "parent": 180, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 22}}, {"id": 184, "type": "init_declarator", "text": "hardware_max_entries = 255", "parent": 180, "children": [185, 186, 187], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 49}}, {"id": 185, "type": "identifier", "text": "hardware_max_entries", "parent": 184, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 43}}, {"id": 186, "type": "=", "text": "=", "parent": 184, "children": [], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 45}}, {"id": 187, "type": "number_literal", "text": "255", "parent": 184, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 49}}, {"id": 188, "type": "call_expression", "text": "static_assert(max_entries < hardware_max_entries)", "parent": 18, "children": [189, 190], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 53}}, {"id": 189, "type": "identifier", "text": "static_assert", "parent": 188, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 17}}, {"id": 190, "type": "argument_list", "text": "(max_entries < hardware_max_entries)", "parent": 188, "children": [191], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 53}}, {"id": 191, "type": "binary_expression", "text": "max_entries < hardware_max_entries", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 52}}, {"id": 192, "type": "identifier", "text": "max_entries", "parent": 191, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 29}}, {"id": 193, "type": "<", "text": "<", "parent": 191, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 31}}, {"id": 194, "type": "identifier", "text": "hardware_max_entries", "parent": 191, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 52}}, {"id": 195, "type": "function_definition", "text": "class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n }", "parent": 18, "children": [196], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 196, "type": "identifier", "text": "gdt", "parent": 195, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 13}}, {"id": 197, "type": "labeled_statement", "text": "public:\n gdt();", "parent": 195, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 198, "type": "call_expression", "text": "gdt()", "parent": 197, "children": [199, 200], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 17}}, {"id": 199, "type": "identifier", "text": "gdt", "parent": 198, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 15}}, {"id": 200, "type": "argument_list", "text": "()", "parent": 198, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 17}}, {"id": 201, "type": "declaration", "text": "void init();", "parent": 195, "children": [202, 203], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 24}}, {"id": 202, "type": "primitive_type", "text": "void", "parent": 201, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 203, "type": "function_declarator", "text": "init()", "parent": 201, "children": [204, 205], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 23}}, {"id": 204, "type": "identifier", "text": "init", "parent": 203, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 21}}, {"id": 205, "type": "parameter_list", "text": "()", "parent": 203, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 23}}, {"id": 206, "type": "declaration", "text": "uint64_t add_entry(uint64_t flags);", "parent": 195, "children": [207, 208], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 47}}, {"id": 207, "type": "primitive_type", "text": "uint64_t", "parent": 206, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 20}}, {"id": 208, "type": "function_declarator", "text": "add_entry(uint64_t flags)", "parent": 206, "children": [209, 210], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 46}}, {"id": 209, "type": "identifier", "text": "add_entry", "parent": 208, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 30}}, {"id": 210, "type": "parameter_list", "text": "(uint64_t flags)", "parent": 208, "children": [211], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 46}}, {"id": 211, "type": "parameter_declaration", "text": "uint64_t flags", "parent": 210, "children": [212, 213], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 45}}, {"id": 212, "type": "primitive_type", "text": "uint64_t", "parent": 211, "children": [], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 39}}, {"id": 213, "type": "identifier", "text": "flags", "parent": 211, "children": [], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 45}}, {"id": 214, "type": "declaration", "text": "uint64_t add_tss(x86_64::tss::table& tss);", "parent": 195, "children": [215, 216], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 54}}, {"id": 215, "type": "primitive_type", "text": "uint64_t", "parent": 214, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 20}}, {"id": 216, "type": "function_declarator", "text": "add_tss(x86_64::tss::table& tss)", "parent": 214, "children": [217, 218], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 53}}, {"id": 217, "type": "identifier", "text": "add_tss", "parent": 216, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 28}}, {"id": 218, "type": "parameter_list", "text": "(x86_64::tss::table& tss)", "parent": 216, "children": [219], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 53}}, {"id": 219, "type": "parameter_declaration", "text": "x86_64::tss::table& tss", "parent": 218, "children": [220, 221, 224], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 52}}, {"id": 220, "type": "type_identifier", "text": "x86_64", "parent": 219, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 35}}, {"id": 221, "type": "ERROR", "text": "::tss::table&", "parent": 219, "children": [222, 223], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 51, "column": 48}}, {"id": 222, "type": "identifier", "text": "tss", "parent": 221, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 40}}, {"id": 223, "type": "identifier", "text": "table", "parent": 221, "children": [], "start_point": {"row": 51, "column": 42}, "end_point": {"row": 51, "column": 47}}, {"id": 224, "type": "identifier", "text": "tss", "parent": 219, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 52}}, {"id": 225, "type": "declaration", "text": "uint64_t get_offset_by_index(uint64_t index);", "parent": 195, "children": [226, 227], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 57}}, {"id": 226, "type": "primitive_type", "text": "uint64_t", "parent": 225, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 20}}, {"id": 227, "type": "function_declarator", "text": "get_offset_by_index(uint64_t index)", "parent": 225, "children": [228, 229], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 56}}, {"id": 228, "type": "identifier", "text": "get_offset_by_index", "parent": 227, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 40}}, {"id": 229, "type": "parameter_list", "text": "(uint64_t index)", "parent": 227, "children": [230], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 56}}, {"id": 230, "type": "parameter_declaration", "text": "uint64_t index", "parent": 229, "children": [231, 232], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 55}}, {"id": 231, "type": "primitive_type", "text": "uint64_t", "parent": 230, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 49}}, {"id": 232, "type": "identifier", "text": "index", "parent": 230, "children": [], "start_point": {"row": 52, "column": 50}, "end_point": {"row": 52, "column": 55}}, {"id": 233, "type": "labeled_statement", "text": "x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }", "parent": 195, "children": [234, 235], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 234, "type": "statement_identifier", "text": "x86_64", "parent": 233, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 18}}, {"id": 235, "type": "labeled_statement", "text": "gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }", "parent": 233, "children": [236, 237], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 55, "column": 13}}, {"id": 236, "type": "statement_identifier", "text": "gdt", "parent": 235, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 23}}, {"id": 237, "type": "ERROR", "text": ":entry& get_entry_by_offset(uint64_t offset)", "parent": 235, "children": [238], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 68}}, {"id": 238, "type": "binary_expression", "text": "entry& get_entry_by_offset(uint64_t offset)", "parent": 237, "children": [239, 240], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 68}}, {"id": 239, "type": "identifier", "text": "entry", "parent": 238, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 30}}, {"id": 240, "type": "call_expression", "text": "get_entry_by_offset(uint64_t offset)", "parent": 238, "children": [241, 242], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 68}}, {"id": 241, "type": "identifier", "text": "get_entry_by_offset", "parent": 240, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 51}}, {"id": 242, "type": "argument_list", "text": "(uint64_t offset)", "parent": 240, "children": [243, 244], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 68}}, {"id": 243, "type": "identifier", "text": "uint64_t", "parent": 242, "children": [], "start_point": {"row": 53, "column": 52}, "end_point": {"row": 53, "column": 60}}, {"id": 244, "type": "ERROR", "text": "offset", "parent": 242, "children": [245], "start_point": {"row": 53, "column": 61}, "end_point": {"row": 53, "column": 67}}, {"id": 245, "type": "identifier", "text": "offset", "parent": 244, "children": [], "start_point": {"row": 53, "column": 61}, "end_point": {"row": 53, "column": 67}}, {"id": 246, "type": "return_statement", "text": "return entries[offset / 8];", "parent": 235, "children": [247], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 43}}, {"id": 247, "type": "subscript_expression", "text": "entries[offset / 8]", "parent": 246, "children": [248, 249], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 42}}, {"id": 248, "type": "identifier", "text": "entries", "parent": 247, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 30}}, {"id": 249, "type": "binary_expression", "text": "offset / 8", "parent": 247, "children": [250, 251, 252], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 41}}, {"id": 250, "type": "identifier", "text": "offset", "parent": 249, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 37}}, {"id": 251, "type": "/", "text": "/", "parent": 249, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 39}}, {"id": 252, "type": "number_literal", "text": "8", "parent": 249, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 41}}, {"id": 253, "type": "function_definition", "text": "void update_pointer(){\n this->pointer.update_gdtr();\n }", "parent": 195, "children": [254, 255], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 59, "column": 13}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 16}}, {"id": 255, "type": "function_declarator", "text": "update_pointer()", "parent": 253, "children": [256, 257], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 33}}, {"id": 256, "type": "identifier", "text": "update_pointer", "parent": 255, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 31}}, {"id": 257, "type": "parameter_list", "text": "()", "parent": 255, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 33}}, {"id": 258, "type": "call_expression", "text": "this->pointer.update_gdtr()", "parent": 253, "children": [259, 264], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 43}}, {"id": 259, "type": "field_expression", "text": "this->pointer.update_gdtr", "parent": 258, "children": [260, 263], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 41}}, {"id": 260, "type": "field_expression", "text": "this->pointer", "parent": 259, "children": [261, 262], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 29}}, {"id": 261, "type": "identifier", "text": "this", "parent": 260, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 20}}, {"id": 262, "type": "field_identifier", "text": "pointer", "parent": 260, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 29}}, {"id": 263, "type": "field_identifier", "text": "update_gdtr", "parent": 259, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 41}}, {"id": 264, "type": "argument_list", "text": "()", "parent": 258, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 43}}, {"id": 265, "type": "labeled_statement", "text": "private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];", "parent": 195, "children": [266], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 61, "column": 65}}, {"id": 266, "type": "labeled_statement", "text": "x86_64::gdt::entry entries[x86_64::gdt::max_entries];", "parent": 265, "children": [267, 268], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 65}}, {"id": 267, "type": "statement_identifier", "text": "x86_64", "parent": 266, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 18}}, {"id": 268, "type": "labeled_statement", "text": "gdt::entry entries[x86_64::gdt::max_entries];", "parent": 266, "children": [269, 270, 274], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 65}}, {"id": 269, "type": "statement_identifier", "text": "gdt", "parent": 268, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 23}}, {"id": 270, "type": "ERROR", "text": "::entry entries[x86_64:", "parent": 268, "children": [271, 272, 273], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 46}}, {"id": 271, "type": "type_identifier", "text": "entry", "parent": 270, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 30}}, {"id": 272, "type": "identifier", "text": "entries", "parent": 270, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 38}}, {"id": 273, "type": "identifier", "text": "x86_64", "parent": 270, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 45}}, {"id": 274, "type": "labeled_statement", "text": "gdt::max_entries];", "parent": 268, "children": [275], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 65}}, {"id": 275, "type": "statement_identifier", "text": "gdt", "parent": 274, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 50}}, {"id": 276, "type": "identifier", "text": "max_entries", "parent": 274, "children": [], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 63}}, {"id": 277, "type": "labeled_statement", "text": "x86_64::gdt::pointer pointer;", "parent": 195, "children": [278, 279], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 41}}, {"id": 278, "type": "statement_identifier", "text": "x86_64", "parent": 277, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 279, "type": "labeled_statement", "text": "gdt::pointer pointer;", "parent": 277, "children": [280, 281], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 41}}, {"id": 280, "type": "statement_identifier", "text": "gdt", "parent": 279, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 23}}, {"id": 281, "type": "declaration", "text": "pointer pointer;", "parent": 279, "children": [282, 283], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 41}}, {"id": 282, "type": "type_identifier", "text": "pointer", "parent": 281, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 32}}, {"id": 283, "type": "identifier", "text": "pointer", "parent": 281, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 40}}, {"id": 284, "type": "declaration", "text": "uint64_t entry_index;", "parent": 195, "children": [285, 286], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 33}}, {"id": 285, "type": "primitive_type", "text": "uint64_t", "parent": 284, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 286, "type": "identifier", "text": "entry_index", "parent": 284, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 32}}, {"id": 287, "type": "declaration", "text": "constexpr uint16_t kernel_data_selector = 0x0;", "parent": 18, "children": [288, 290, 291], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 50}}, {"id": 288, "type": "type_qualifier", "text": "constexpr", "parent": 287, "children": [289], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 13}}, {"id": 289, "type": "constexpr", "text": "constexpr", "parent": 288, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 13}}, {"id": 290, "type": "primitive_type", "text": "uint16_t", "parent": 287, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 22}}, {"id": 291, "type": "init_declarator", "text": "kernel_data_selector = 0x0", "parent": 287, "children": [292, 293, 294], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 49}}, {"id": 292, "type": "identifier", "text": "kernel_data_selector", "parent": 291, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 43}}, {"id": 293, "type": "=", "text": "=", "parent": 291, "children": [], "start_point": {"row": 67, "column": 44}, "end_point": {"row": 67, "column": 45}}, {"id": 294, "type": "number_literal", "text": "0x0", "parent": 291, "children": [], "start_point": {"row": 67, "column": 46}, "end_point": {"row": 67, "column": 49}}, {"id": 295, "type": "declaration", "text": "constexpr uint16_t kernel_code_selector = 0x08;", "parent": 18, "children": [296, 298, 299], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 51}}, {"id": 296, "type": "type_qualifier", "text": "constexpr", "parent": 295, "children": [297], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 297, "type": "constexpr", "text": "constexpr", "parent": 296, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 298, "type": "primitive_type", "text": "uint16_t", "parent": 295, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 22}}, {"id": 299, "type": "init_declarator", "text": "kernel_code_selector = 0x08", "parent": 295, "children": [300, 301, 302], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 50}}, {"id": 300, "type": "identifier", "text": "kernel_code_selector", "parent": 299, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 43}}, {"id": 301, "type": "=", "text": "=", "parent": 299, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 45}}, {"id": 302, "type": "number_literal", "text": "0x08", "parent": 299, "children": [], "start_point": {"row": 68, "column": 46}, "end_point": {"row": 68, "column": 50}}, {"id": 303, "type": "declaration", "text": "constexpr uint16_t user_data_selector = 0x18;", "parent": 18, "children": [304, 306, 307], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 49}}, {"id": 304, "type": "type_qualifier", "text": "constexpr", "parent": 303, "children": [305], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 13}}, {"id": 305, "type": "constexpr", "text": "constexpr", "parent": 304, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 13}}, {"id": 306, "type": "primitive_type", "text": "uint16_t", "parent": 303, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 22}}, {"id": 307, "type": "init_declarator", "text": "user_data_selector = 0x18", "parent": 303, "children": [308, 309, 310], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 48}}, {"id": 308, "type": "identifier", "text": "user_data_selector", "parent": 307, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 41}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 70, "column": 42}, "end_point": {"row": 70, "column": 43}}, {"id": 310, "type": "number_literal", "text": "0x18", "parent": 307, "children": [], "start_point": {"row": 70, "column": 44}, "end_point": {"row": 70, "column": 48}}, {"id": 311, "type": "declaration", "text": "constexpr uint16_t user_code_selector = 0x10;", "parent": 18, "children": [312, 314, 315], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 49}}, {"id": 312, "type": "type_qualifier", "text": "constexpr", "parent": 311, "children": [313], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 13}}, {"id": 313, "type": "constexpr", "text": "constexpr", "parent": 312, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 13}}, {"id": 314, "type": "primitive_type", "text": "uint16_t", "parent": 311, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 22}}, {"id": 315, "type": "init_declarator", "text": "user_code_selector = 0x10", "parent": 311, "children": [316, 317, 318], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 48}}, {"id": 316, "type": "identifier", "text": "user_code_selector", "parent": 315, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 41}}, {"id": 317, "type": "=", "text": "=", "parent": 315, "children": [], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 43}}, {"id": 318, "type": "number_literal", "text": "0x10", "parent": 315, "children": [], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 48}}, {"id": 319, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 23, 28, 30, 49, 54, 56, 195, 203, 208, 216, 227, 253, 255], "variables": [33, 46, 70, 73, 76, 88, 100, 112, 124, 136, 148, 160, 172, 180, 201, 206, 211, 214, 219, 225, 230, 281, 284, 287, 295, 303, 311], "classes": [24, 25, 50, 51], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [36, 41, 59, 65, 83, 84, 95, 96, 107, 108, 119, 120, 131, 132, 143, 144, 155, 156, 167, 168, 188, 191, 198, 238, 240, 247, 249, 258, 259, 260], "assignments": [40], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 26, 27, 29, 31, 35, 37, 39, 42, 45, 48, 52, 53, 57, 67, 72, 75, 77, 81, 89, 93, 101, 105, 113, 117, 125, 129, 137, 141, 149, 153, 161, 165, 173, 177, 181, 185, 189, 192, 194, 196, 199, 204, 209, 213, 217, 220, 222, 223, 224, 228, 232, 234, 236, 239, 241, 243, 245, 248, 250, 256, 261, 262, 263, 267, 269, 271, 272, 273, 275, 276, 278, 280, 282, 283, 286, 288, 292, 296, 300, 304, 308, 312, 316, 319], "returns": [246], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 61, 64, 69, 85, 87, 97, 99, 109, 111, 121, 123, 133, 135, 145, 147, 157, 159, 169, 171, 179, 187, 252, 294, 302, 310, 318], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "PACKED_ATTRIBUTE", "text_snippet": "namespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): en"}, {"node_id": 23, "universal_type": "function", "name": "PACKED_ATTRIBUTE", "text_snippet": "struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = "}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "explicit entry(uint64_t ent): ent(ent) {}"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "entry(uint64_t ent): ent(ent)"}, {"node_id": 49, "universal_type": "function", "name": "PACKED_ATTRIBUTE", "text_snippet": "struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*thi"}, {"node_id": 54, "universal_type": "function", "name": "update_gdtr", "text_snippet": "void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "update_gdtr()"}, {"node_id": 195, "universal_type": "function", "name": "gdt", "text_snippet": "class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_e"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "init()"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "add_entry(uint64_t flags)"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "add_tss(x86_64::tss::table& tss)"}, {"node_id": 227, "universal_type": "function", "name": "unknown", "text_snippet": "get_offset_by_index(uint64_t index)"}, {"node_id": 253, "universal_type": "function", "name": "update_pointer", "text_snippet": "void update_pointer(){\n this->pointer.update_gdtr();\n }"}, {"node_id": 255, "universal_type": "function", "name": "unknown", "text_snippet": "update_pointer()"}], "class_declarations": [{"node_id": 24, "universal_type": "class", "name": "PACKED_ATTRIBUTE", "text_snippet": "struct PACKED_ATTRIBUTE"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 50, "universal_type": "class", "name": "PACKED_ATTRIBUTE", "text_snippet": "struct PACKED_ATTRIBUTE"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <Sigma/common.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Sigma/arch/x86_64/tss.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <klibc/string.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <klibc/stdio.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef SIGMA_ARCH_X86_64_GDT\n#define SIGMA_ARCH_X86_64_GDT\n\n#include <Sigma/common.h>\n\n#include <Sigma/arch/x86_64/tss.h>\n\n#include <klibc/string.h>\n#include <klibc/stdio.h>\n\nnamespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n entry() = default;\n\n uint64_t ent;\n };\n\n struct PACKED_ATTRIBUTE pointer {\n void update_gdtr(){\n asm(\"lgdt %0\" : : \"m\"(*this) : \"memory\");\n }\n uint16_t size;\n uint64_t pointer;\n };\n\n\n \n constexpr uint64_t entry_read_write_bit = (1ULL << 41);\n constexpr uint64_t entry_conforming_bit = (1ULL << 42);\n constexpr uint64_t entry_executable_bit = (1ULL << 43);\n constexpr uint64_t entry_descriptor_type_bit = (1ULL << 44);\n constexpr uint64_t entry_privilege = (1ULL << 45);\n constexpr uint64_t entry_present_bit = (1ULL << 47);\n constexpr uint64_t entry_64bit_code_bit = (1ULL << 53);\n constexpr uint64_t entry_32bit_bit = (1ULL << 54);\n\n constexpr uint64_t max_entries = 10; // Maximum usable GDT entries\n\n constexpr uint64_t hardware_max_entries = 255;\n\n static_assert(max_entries < hardware_max_entries);\n \n class gdt {\n public:\n gdt();\n\n void init();\n\n uint64_t add_entry(uint64_t flags);\n uint64_t add_tss(x86_64::tss::table& tss);\n uint64_t get_offset_by_index(uint64_t index);\n x86_64::gdt::entry& get_entry_by_offset(uint64_t offset){\n return entries[offset / 8];\n }\n\n void update_pointer(){\n this->pointer.update_gdtr();\n }\n private:\n x86_64::gdt::entry entries[x86_64::gdt::max_entries];\n x86_64::gdt::pointer pointer;\n uint64_t entry_index;\n \n };\n\n constexpr uint16_t kernel_data_selector = 0x0;\n constexpr uint16_t kernel_code_selector = 0x08; // Manually update this\n\n constexpr uint16_t user_data_selector = 0x18;\n constexpr uint16_t user_code_selector = 0x10; // Manually update this\n} // x86_64::gdt\n\n\n\n#endif"}
81,008
c
#ifndef CAMERA_CLASS_H #define CAMERA_CLASS_H #include <glm\glm.hpp> #include <glm\gtc\type_ptr.hpp> #include <glm\gtx\rotate_vector.hpp> #include <glm/gtx/vector_angle.hpp> #include "Shader.h" #include "Core.h" #include "PhotonRenderer.h" namespace Photon { class PHOTON_API Camera { public: Camera(int width, int height, glm::vec3 position); void UpdateMatrix(float FOVdeg, float near_plane, float far_plane); void Update(); void SetUniform(Shader& shader, const std::string& uniform); void HandleInput(); public: void SetWidth(int width) { m_width = width; } void SetHeight(int height) { m_height = height; } void SetPosition(glm::vec3 position) { m_position = position; } void SetRotation(glm::vec3 rotation) { m_rotation = rotation; } void SetSensitivity(float s) { m_sensitivity = s; } void SetSpeed(float speed) { m_speed = speed; } void SetFOV(float fov) { m_fov = fov; } void SetNearPlane(float near_plane) { m_near_plane = near_plane; } void SetFarPlane(float far_plane) { m_far_plane = far_plane; } glm::vec3 Position() { return m_position; } private: glm::vec3 m_position; glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f); glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f); glm::mat4 m_cam_matrix; //Hack glm::mat4 m_view_matrix; int m_width; int m_height; float m_speed = 0.05f; float m_sensitivity = 100.0f; float m_fov = 45.0f; float m_near_plane = 0.1f; float m_far_plane = 100.0f; bool m_first_clicked = true; }; } #endif
30.27
48
(translation_unit) "#ifndef CAMERA_CLASS_H\n#define CAMERA_CLASS_H\n#include <glm\glm.hpp>\n#include <glm\gtc\type_ptr.hpp>\n#include <glm\gtx\rotate_vector.hpp>\n#include <glm/gtx/vector_angle.hpp>\n#include "Shader.h"\n#include "Core.h"\n#include "PhotonRenderer.h"\n\nnamespace Photon\n{\n class PHOTON_API Camera\n {\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }\n void SetHeight(int height) { m_height = height; }\n void SetPosition(glm::vec3 position) { m_position = position; }\n void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n void SetSensitivity(float s) { m_sensitivity = s; }\n void SetSpeed(float speed) { m_speed = speed; }\n\n void SetFOV(float fov) { m_fov = fov; }\n void SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n void SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n glm::vec3 Position() { return m_position; }\n private:\n glm::vec3 m_position;\n glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n glm::mat4 m_cam_matrix;\n\n //Hack\n glm::mat4 m_view_matrix;\n\n int m_width;\n int m_height;\n\n float m_speed = 0.05f;\n float m_sensitivity = 100.0f;\n float m_fov = 45.0f;\n float m_near_plane = 0.1f;\n float m_far_plane = 100.0f;\n\n bool m_first_clicked = true;\n };\n}\n#endif" (preproc_ifdef) "#ifndef CAMERA_CLASS_H\n#define CAMERA_CLASS_H\n#include <glm\glm.hpp>\n#include <glm\gtc\type_ptr.hpp>\n#include <glm\gtx\rotate_vector.hpp>\n#include <glm/gtx/vector_angle.hpp>\n#include "Shader.h"\n#include "Core.h"\n#include "PhotonRenderer.h"\n\nnamespace Photon\n{\n class PHOTON_API Camera\n {\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }\n void SetHeight(int height) { m_height = height; }\n void SetPosition(glm::vec3 position) { m_position = position; }\n void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n void SetSensitivity(float s) { m_sensitivity = s; }\n void SetSpeed(float speed) { m_speed = speed; }\n\n void SetFOV(float fov) { m_fov = fov; }\n void SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n void SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n glm::vec3 Position() { return m_position; }\n private:\n glm::vec3 m_position;\n glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n glm::mat4 m_cam_matrix;\n\n //Hack\n glm::mat4 m_view_matrix;\n\n int m_width;\n int m_height;\n\n float m_speed = 0.05f;\n float m_sensitivity = 100.0f;\n float m_fov = 45.0f;\n float m_near_plane = 0.1f;\n float m_far_plane = 100.0f;\n\n bool m_first_clicked = true;\n };\n}\n#endif" (#ifndef) "#ifndef" (identifier) "CAMERA_CLASS_H" (preproc_def) "#define CAMERA_CLASS_H\n" (#define) "#define" (identifier) "CAMERA_CLASS_H" (preproc_include) "#include <glm\glm.hpp>\n" (#include) "#include" (system_lib_string) "<glm\glm.hpp>" (preproc_include) "#include <glm\gtc\type_ptr.hpp>\n" (#include) "#include" (system_lib_string) "<glm\gtc\type_ptr.hpp>" (preproc_include) "#include <glm\gtx\rotate_vector.hpp>\n" (#include) "#include" (system_lib_string) "<glm\gtx\rotate_vector.hpp>" (preproc_include) "#include <glm/gtx/vector_angle.hpp>\n" (#include) "#include" (system_lib_string) "<glm/gtx/vector_angle.hpp>" (preproc_include) "#include "Shader.h"\n" (#include) "#include" (string_literal) ""Shader.h"" (") """ (string_content) "Shader.h" (") """ (preproc_include) "#include "Core.h"\n" (#include) "#include" (string_literal) ""Core.h"" (") """ (string_content) "Core.h" (") """ (preproc_include) "#include "PhotonRenderer.h"\n" (#include) "#include" (string_literal) ""PhotonRenderer.h"" (") """ (string_content) "PhotonRenderer.h" (") """ (function_definition) "namespace Photon\n{\n class PHOTON_API Camera\n {\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }\n void SetHeight(int height) { m_height = height; }\n void SetPosition(glm::vec3 position) { m_position = position; }\n void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n void SetSensitivity(float s) { m_sensitivity = s; }\n void SetSpeed(float speed) { m_speed = speed; }\n\n void SetFOV(float fov) { m_fov = fov; }\n void SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n void SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n glm::vec3 Position() { return m_position; }\n private:\n glm::vec3 m_position;\n glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n glm::mat4 m_cam_matrix;\n\n //Hack\n glm::mat4 m_view_matrix;\n\n int m_width;\n int m_height;\n\n float m_speed = 0.05f;\n float m_sensitivity = 100.0f;\n float m_fov = 45.0f;\n float m_near_plane = 0.1f;\n float m_far_plane = 100.0f;\n\n bool m_first_clicked = true;\n }" (type_identifier) "namespace" (identifier) "Photon" (compound_statement) "{\n class PHOTON_API Camera\n {\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }\n void SetHeight(int height) { m_height = height; }\n void SetPosition(glm::vec3 position) { m_position = position; }\n void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n void SetSensitivity(float s) { m_sensitivity = s; }\n void SetSpeed(float speed) { m_speed = speed; }\n\n void SetFOV(float fov) { m_fov = fov; }\n void SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n void SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n glm::vec3 Position() { return m_position; }\n private:\n glm::vec3 m_position;\n glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n glm::mat4 m_cam_matrix;\n\n //Hack\n glm::mat4 m_view_matrix;\n\n int m_width;\n int m_height;\n\n float m_speed = 0.05f;\n float m_sensitivity = 100.0f;\n float m_fov = 45.0f;\n float m_near_plane = 0.1f;\n float m_far_plane = 100.0f;\n\n bool m_first_clicked = true;\n }" ({) "{" (function_definition) "class PHOTON_API Camera\n {\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }" (type_identifier) "class" (identifier) "PHOTON_API" (ERROR) "Camera" (identifier) "Camera" (compound_statement) "{\n public:\n Camera(int width, int height, glm::vec3 position);\n void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n void Update();\n void SetUniform(Shader& shader, const std::string& uniform);\n void HandleInput();\n public:\n void SetWidth(int width) { m_width = width; }" ({) "{" (labeled_statement) "public:\n Camera(int width, int height, glm::vec3 position);" (statement_identifier) "public" (:) ":" (declaration) "Camera(int width, int height, glm::vec3 position);" (macro_type_specifier) "Camera(int" (identifier) "Camera" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "width" (,) "," (ERROR) "int" (identifier) "int" (identifier) "height" (,) "," (ERROR) "glm::vec3" (identifier) "glm" (:) ":" (:) ":" (identifier) "vec3" (identifier) "position" (ERROR) ")" ()) ")" (;) ";" (declaration) "void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);" (primitive_type) "void" (function_declarator) "UpdateMatrix(float FOVdeg, float near_plane, float far_plane)" (identifier) "UpdateMatrix" (parameter_list) "(float FOVdeg, float near_plane, float far_plane)" (() "(" (parameter_declaration) "float FOVdeg" (primitive_type) "float" (identifier) "FOVdeg" (,) "," (parameter_declaration) "float near_plane" (primitive_type) "float" (identifier) "near_plane" (,) "," (parameter_declaration) "float far_plane" (primitive_type) "float" (identifier) "far_plane" ()) ")" (;) ";" (declaration) "void Update();" (primitive_type) "void" (function_declarator) "Update()" (identifier) "Update" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetUniform(Shader& shader, const std::string& uniform);" (primitive_type) "void" (function_declarator) "SetUniform(Shader& shader, const std::string& uniform)" (identifier) "SetUniform" (parameter_list) "(Shader& shader, const std::string& uniform)" (() "(" (parameter_declaration) "Shader& shader" (type_identifier) "Shader" (ERROR) "&" (&) "&" (identifier) "shader" (,) "," (parameter_declaration) "const std::string& uniform" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "uniform" ()) ")" (;) ";" (declaration) "void HandleInput();" (primitive_type) "void" (function_declarator) "HandleInput()" (identifier) "HandleInput" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n void SetWidth(int width) { m_width = width;" (statement_identifier) "public" (:) ":" (declaration) "void SetWidth(int width) { m_width = width;" (primitive_type) "void" (init_declarator) "SetWidth(int width) { m_width = width" (function_declarator) "SetWidth(int width)" (identifier) "SetWidth" (parameter_list) "(int width)" (() "(" (parameter_declaration) "int width" (primitive_type) "int" (identifier) "width" ()) ")" (ERROR) "{ m_width" ({) "{" (identifier) "m_width" (=) "=" (identifier) "width" (;) ";" (}) "}" (function_definition) "void SetHeight(int height) { m_height = height; }" (primitive_type) "void" (function_declarator) "SetHeight(int height)" (identifier) "SetHeight" (parameter_list) "(int height)" (() "(" (parameter_declaration) "int height" (primitive_type) "int" (identifier) "height" ()) ")" (compound_statement) "{ m_height = height; }" ({) "{" (expression_statement) "m_height = height;" (assignment_expression) "m_height = height" (identifier) "m_height" (=) "=" (identifier) "height" (;) ";" (}) "}" (function_definition) "void SetPosition(glm::vec3 position) { m_position = position; }" (primitive_type) "void" (function_declarator) "SetPosition(glm::vec3 position)" (identifier) "SetPosition" (parameter_list) "(glm::vec3 position)" (() "(" (parameter_declaration) "glm::vec3 position" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (identifier) "position" ()) ")" (compound_statement) "{ m_position = position; }" ({) "{" (expression_statement) "m_position = position;" (assignment_expression) "m_position = position" (identifier) "m_position" (=) "=" (identifier) "position" (;) ";" (}) "}" (function_definition) "void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }" (primitive_type) "void" (function_declarator) "SetRotation(glm::vec3 rotation)" (identifier) "SetRotation" (parameter_list) "(glm::vec3 rotation)" (() "(" (parameter_declaration) "glm::vec3 rotation" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (identifier) "rotation" ()) ")" (compound_statement) "{ m_rotation = rotation; }" ({) "{" (expression_statement) "m_rotation = rotation;" (assignment_expression) "m_rotation = rotation" (identifier) "m_rotation" (=) "=" (identifier) "rotation" (;) ";" (}) "}" (function_definition) "void SetSensitivity(float s) { m_sensitivity = s; }" (primitive_type) "void" (function_declarator) "SetSensitivity(float s)" (identifier) "SetSensitivity" (parameter_list) "(float s)" (() "(" (parameter_declaration) "float s" (primitive_type) "float" (identifier) "s" ()) ")" (compound_statement) "{ m_sensitivity = s; }" ({) "{" (expression_statement) "m_sensitivity = s;" (assignment_expression) "m_sensitivity = s" (identifier) "m_sensitivity" (=) "=" (identifier) "s" (;) ";" (}) "}" (function_definition) "void SetSpeed(float speed) { m_speed = speed; }" (primitive_type) "void" (function_declarator) "SetSpeed(float speed)" (identifier) "SetSpeed" (parameter_list) "(float speed)" (() "(" (parameter_declaration) "float speed" (primitive_type) "float" (identifier) "speed" ()) ")" (compound_statement) "{ m_speed = speed; }" ({) "{" (expression_statement) "m_speed = speed;" (assignment_expression) "m_speed = speed" (identifier) "m_speed" (=) "=" (identifier) "speed" (;) ";" (}) "}" (function_definition) "void SetFOV(float fov) { m_fov = fov; }" (primitive_type) "void" (function_declarator) "SetFOV(float fov)" (identifier) "SetFOV" (parameter_list) "(float fov)" (() "(" (parameter_declaration) "float fov" (primitive_type) "float" (identifier) "fov" ()) ")" (compound_statement) "{ m_fov = fov; }" ({) "{" (expression_statement) "m_fov = fov;" (assignment_expression) "m_fov = fov" (identifier) "m_fov" (=) "=" (identifier) "fov" (;) ";" (}) "}" (function_definition) "void SetNearPlane(float near_plane) { m_near_plane = near_plane; }" (primitive_type) "void" (function_declarator) "SetNearPlane(float near_plane)" (identifier) "SetNearPlane" (parameter_list) "(float near_plane)" (() "(" (parameter_declaration) "float near_plane" (primitive_type) "float" (identifier) "near_plane" ()) ")" (compound_statement) "{ m_near_plane = near_plane; }" ({) "{" (expression_statement) "m_near_plane = near_plane;" (assignment_expression) "m_near_plane = near_plane" (identifier) "m_near_plane" (=) "=" (identifier) "near_plane" (;) ";" (}) "}" (function_definition) "void SetFarPlane(float far_plane) { m_far_plane = far_plane; }" (primitive_type) "void" (function_declarator) "SetFarPlane(float far_plane)" (identifier) "SetFarPlane" (parameter_list) "(float far_plane)" (() "(" (parameter_declaration) "float far_plane" (primitive_type) "float" (identifier) "far_plane" ()) ")" (compound_statement) "{ m_far_plane = far_plane; }" ({) "{" (expression_statement) "m_far_plane = far_plane;" (assignment_expression) "m_far_plane = far_plane" (identifier) "m_far_plane" (=) "=" (identifier) "far_plane" (;) ";" (}) "}" (labeled_statement) "glm::vec3 Position() { return m_position; }" (statement_identifier) "glm" (:) ":" (ERROR) ":vec3 Position()" (:) ":" (type_identifier) "vec3" (function_declarator) "Position()" (identifier) "Position" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_position; }" ({) "{" (return_statement) "return m_position;" (return) "return" (identifier) "m_position" (;) ";" (}) "}" (labeled_statement) "private:\n glm::vec3 m_position;" (statement_identifier) "private" (:) ":" (labeled_statement) "glm::vec3 m_position;" (statement_identifier) "glm" (:) ":" (ERROR) ":" (:) ":" (declaration) "vec3 m_position;" (type_identifier) "vec3" (identifier) "m_position" (;) ";" (labeled_statement) "glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);" (statement_identifier) "glm" (ERROR) "::vec3 m_rotation = glm:" (:) ":" (:) ":" (type_identifier) "vec3" (init_declarator) "m_rotation = glm" (identifier) "m_rotation" (=) "=" (identifier) "glm" (:) ":" (:) ":" (expression_statement) "vec3(0.0f, 0.0f, -1.0f);" (call_expression) "vec3(0.0f, 0.0f, -1.0f)" (identifier) "vec3" (argument_list) "(0.0f, 0.0f, -1.0f)" (() "(" (number_literal) "0.0f" (,) "," (number_literal) "0.0f" (,) "," (number_literal) "-1.0f" ()) ")" (;) ";" (labeled_statement) "glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);" (statement_identifier) "glm" (ERROR) "::vec3 m_up = glm:" (:) ":" (:) ":" (type_identifier) "vec3" (init_declarator) "m_up = glm" (identifier) "m_up" (=) "=" (identifier) "glm" (:) ":" (:) ":" (expression_statement) "vec3(0.0f, 1.0f, 0.0f);" (call_expression) "vec3(0.0f, 1.0f, 0.0f)" (identifier) "vec3" (argument_list) "(0.0f, 1.0f, 0.0f)" (() "(" (number_literal) "0.0f" (,) "," (number_literal) "1.0f" (,) "," (number_literal) "0.0f" ()) ")" (;) ";" (labeled_statement) "glm::mat4 m_cam_matrix;" (statement_identifier) "glm" (:) ":" (ERROR) ":" (:) ":" (declaration) "mat4 m_cam_matrix;" (type_identifier) "mat4" (identifier) "m_cam_matrix" (;) ";" (comment) "//Hack" (labeled_statement) "glm::mat4 m_view_matrix;" (statement_identifier) "glm" (:) ":" (ERROR) ":" (:) ":" (declaration) "mat4 m_view_matrix;" (type_identifier) "mat4" (identifier) "m_view_matrix" (;) ";" (declaration) "int m_width;" (primitive_type) "int" (identifier) "m_width" (;) ";" (declaration) "int m_height;" (primitive_type) "int" (identifier) "m_height" (;) ";" (declaration) "float m_speed = 0.05f;" (primitive_type) "float" (init_declarator) "m_speed = 0.05f" (identifier) "m_speed" (=) "=" (number_literal) "0.05f" (;) ";" (declaration) "float m_sensitivity = 100.0f;" (primitive_type) "float" (init_declarator) "m_sensitivity = 100.0f" (identifier) "m_sensitivity" (=) "=" (number_literal) "100.0f" (;) ";" (declaration) "float m_fov = 45.0f;" (primitive_type) "float" (init_declarator) "m_fov = 45.0f" (identifier) "m_fov" (=) "=" (number_literal) "45.0f" (;) ";" (declaration) "float m_near_plane = 0.1f;" (primitive_type) "float" (init_declarator) "m_near_plane = 0.1f" (identifier) "m_near_plane" (=) "=" (number_literal) "0.1f" (;) ";" (declaration) "float m_far_plane = 100.0f;" (primitive_type) "float" (init_declarator) "m_far_plane = 100.0f" (identifier) "m_far_plane" (=) "=" (number_literal) "100.0f" (;) ";" (declaration) "bool m_first_clicked = true;" (primitive_type) "bool" (init_declarator) "m_first_clicked = true" (identifier) "m_first_clicked" (=) "=" (true) "true" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (#endif) "#endif"
467
16
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 30.27, "nodes": 295, "errors": 0, "source_hash": "1d772cc0a8f039778112e87153b8dfc24f59c1189dbc866f0d9f9312c2e20bc5", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CAMERA_CLASS_H\n#define CAMERA_CLASS_H\n#include <glm\\glm.hpp>\n#include <glm\\gtc\\type_ptr.hpp>\n#include <glm\\gtx\\rotate_vector.hpp>\n#include <glm/gtx/vector_angle.hpp>\n#include \"Shader.h\"\n#include \"Core.h\"\n#include \"PhotonRenderer.h\"\n\nnamespace Photon\n{\n\tclass PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 position);\n\t\tvoid UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n\t\tvoid Update();\n\t\tvoid SetUniform(Shader& shader, const std::string& uniform);\n\t\tvoid HandleInput();\n\tpublic:\n\t\tvoid SetWidth(int width) { m_width = width; }\n\t\tvoid SetHeight(int height) { m_height = height; }\n\t\tvoid SetPosition(glm::vec3 position) { m_position = position; }\n\t\tvoid SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n\t\tvoid SetSensitivity(float s) { m_sensitivity = s; }\n\t\tvoid SetSpeed(float speed) { m_speed = speed; }\n\n\t\tvoid SetFOV(float fov) { m_fov = fov; }\n\t\tvoid SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n\t\tvoid SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n\t\tglm::vec3 Position() { return m_position; }\n\tprivate:\n\t\tglm::vec3 m_position;\n\t\tglm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n\t\tglm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n\t\tglm::mat4 m_cam_matrix;\n\n\t\t//Hack\n\t\tglm::mat4 m_view_matrix;\n\n\t\tint m_width;\n\t\tint m_height;\n\n\t\tfloat m_speed = 0.05f;\n\t\tfloat m_sensitivity = 100.0f;\n\t\tfloat m_fov = 45.0f;\n\t\tfloat m_near_plane = 0.1f;\n\t\tfloat m_far_plane = 100.0f;\n\n\t\tbool m_first_clicked = true;\n\t};\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 294], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "CAMERA_CLASS_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define CAMERA_CLASS_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "CAMERA_CLASS_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <glm\\glm.hpp>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<glm\\glm.hpp>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <glm\\gtc\\type_ptr.hpp>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<glm\\gtc\\type_ptr.hpp>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 31}}, {"id": 12, "type": "preproc_include", "text": "#include <glm\\gtx\\rotate_vector.hpp>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<glm\\gtx\\rotate_vector.hpp>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 36}}, {"id": 15, "type": "preproc_include", "text": "#include <glm/gtx/vector_angle.hpp>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<glm/gtx/vector_angle.hpp>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 35}}, {"id": 18, "type": "preproc_include", "text": "#include \"Shader.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"Shader.h\"", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include \"Core.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"Core.h\"", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include \"PhotonRenderer.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"PhotonRenderer.h\"", "parent": 24, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 27}}, {"id": 27, "type": "function_definition", "text": "namespace Photon\n{\n\tclass PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 position);\n\t\tvoid UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n\t\tvoid Update();\n\t\tvoid SetUniform(Shader& shader, const std::string& uniform);\n\t\tvoid HandleInput();\n\tpublic:\n\t\tvoid SetWidth(int width) { m_width = width; }\n\t\tvoid SetHeight(int height) { m_height = height; }\n\t\tvoid SetPosition(glm::vec3 position) { m_position = position; }\n\t\tvoid SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n\t\tvoid SetSensitivity(float s) { m_sensitivity = s; }\n\t\tvoid SetSpeed(float speed) { m_speed = speed; }\n\n\t\tvoid SetFOV(float fov) { m_fov = fov; }\n\t\tvoid SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n\t\tvoid SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n\t\tglm::vec3 Position() { return m_position; }\n\tprivate:\n\t\tglm::vec3 m_position;\n\t\tglm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n\t\tglm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n\t\tglm::mat4 m_cam_matrix;\n\n\t\t//Hack\n\t\tglm::mat4 m_view_matrix;\n\n\t\tint m_width;\n\t\tint m_height;\n\n\t\tfloat m_speed = 0.05f;\n\t\tfloat m_sensitivity = 100.0f;\n\t\tfloat m_fov = 45.0f;\n\t\tfloat m_near_plane = 0.1f;\n\t\tfloat m_far_plane = 100.0f;\n\n\t\tbool m_first_clicked = true;\n\t}", "parent": 0, "children": [28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 54, "column": 2}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 29, "type": "identifier", "text": "Photon", "parent": 27, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 16}}, {"id": 30, "type": "function_definition", "text": "class PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 position);\n\t\tvoid UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n\t\tvoid Update();\n\t\tvoid SetUniform(Shader& shader, const std::string& uniform);\n\t\tvoid HandleInput();\n\tpublic:\n\t\tvoid SetWidth(int width) { m_width = width; }", "parent": 27, "children": [31, 32], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 21, "column": 47}}, {"id": 31, "type": "identifier", "text": "PHOTON_API", "parent": 30, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 17}}, {"id": 32, "type": "ERROR", "text": "Camera", "parent": 30, "children": [33], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 24}}, {"id": 33, "type": "identifier", "text": "Camera", "parent": 32, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 24}}, {"id": 34, "type": "labeled_statement", "text": "public:\n\t\tCamera(int width, int height, glm::vec3 position);", "parent": 30, "children": [35], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 15, "column": 52}}, {"id": 35, "type": "declaration", "text": "Camera(int width, int height, glm::vec3 position);", "parent": 34, "children": [36, 40, 41, 43, 44, 47], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 52}}, {"id": 36, "type": "macro_type_specifier", "text": "Camera(int", "parent": 35, "children": [37, 38], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 12}}, {"id": 37, "type": "identifier", "text": "Camera", "parent": 36, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 38, "type": "type_descriptor", "text": "int", "parent": 36, "children": [39], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 12}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 12}}, {"id": 40, "type": "identifier", "text": "width", "parent": 35, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 18}}, {"id": 41, "type": "ERROR", "text": "int", "parent": 35, "children": [42], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 42, "type": "identifier", "text": "int", "parent": 41, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 43, "type": "identifier", "text": "height", "parent": 35, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 30}}, {"id": 44, "type": "ERROR", "text": "glm::vec3", "parent": 35, "children": [45, 46], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 41}}, {"id": 45, "type": "identifier", "text": "glm", "parent": 44, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 35}}, {"id": 46, "type": "identifier", "text": "vec3", "parent": 44, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 41}}, {"id": 47, "type": "identifier", "text": "position", "parent": 35, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 50}}, {"id": 48, "type": "declaration", "text": "void UpdateMatrix(float FOVdeg, float near_plane, float far_plane);", "parent": 30, "children": [49, 50], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 69}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 6}}, {"id": 50, "type": "function_declarator", "text": "UpdateMatrix(float FOVdeg, float near_plane, float far_plane)", "parent": 48, "children": [51, 52], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 68}}, {"id": 51, "type": "identifier", "text": "UpdateMatrix", "parent": 50, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 19}}, {"id": 52, "type": "parameter_list", "text": "(float FOVdeg, float near_plane, float far_plane)", "parent": 50, "children": [53, 56, 59], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 68}}, {"id": 53, "type": "parameter_declaration", "text": "float FOVdeg", "parent": 52, "children": [54, 55], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 32}}, {"id": 54, "type": "primitive_type", "text": "float", "parent": 53, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 25}}, {"id": 55, "type": "identifier", "text": "FOVdeg", "parent": 53, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 32}}, {"id": 56, "type": "parameter_declaration", "text": "float near_plane", "parent": 52, "children": [57, 58], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 50}}, {"id": 57, "type": "primitive_type", "text": "float", "parent": 56, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 39}}, {"id": 58, "type": "identifier", "text": "near_plane", "parent": 56, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 50}}, {"id": 59, "type": "parameter_declaration", "text": "float far_plane", "parent": 52, "children": [60, 61], "start_point": {"row": 16, "column": 52}, "end_point": {"row": 16, "column": 67}}, {"id": 60, "type": "primitive_type", "text": "float", "parent": 59, "children": [], "start_point": {"row": 16, "column": 52}, "end_point": {"row": 16, "column": 57}}, {"id": 61, "type": "identifier", "text": "far_plane", "parent": 59, "children": [], "start_point": {"row": 16, "column": 58}, "end_point": {"row": 16, "column": 67}}, {"id": 62, "type": "declaration", "text": "void Update();", "parent": 30, "children": [63, 64], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 16}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 64, "type": "function_declarator", "text": "Update()", "parent": 62, "children": [65, 66], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 65, "type": "identifier", "text": "Update", "parent": 64, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 67, "type": "declaration", "text": "void SetUniform(Shader& shader, const std::string& uniform);", "parent": 30, "children": [68, 69], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 62}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 69, "type": "function_declarator", "text": "SetUniform(Shader& shader, const std::string& uniform)", "parent": 67, "children": [70, 71], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 61}}, {"id": 70, "type": "identifier", "text": "SetUniform", "parent": 69, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 17}}, {"id": 71, "type": "parameter_list", "text": "(Shader& shader, const std::string& uniform)", "parent": 69, "children": [72, 75], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 61}}, {"id": 72, "type": "parameter_declaration", "text": "Shader& shader", "parent": 71, "children": [73, 74], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 32}}, {"id": 73, "type": "type_identifier", "text": "Shader", "parent": 72, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 24}}, {"id": 74, "type": "identifier", "text": "shader", "parent": 72, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 32}}, {"id": 75, "type": "parameter_declaration", "text": "const std::string& uniform", "parent": 71, "children": [76, 77, 79], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 60}}, {"id": 76, "type": "type_identifier", "text": "std", "parent": 75, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 43}}, {"id": 77, "type": "ERROR", "text": "::string&", "parent": 75, "children": [78], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 52}}, {"id": 78, "type": "identifier", "text": "string", "parent": 77, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 51}}, {"id": 79, "type": "identifier", "text": "uniform", "parent": 75, "children": [], "start_point": {"row": 18, "column": 53}, "end_point": {"row": 18, "column": 60}}, {"id": 80, "type": "declaration", "text": "void HandleInput();", "parent": 30, "children": [81, 82], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 21}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 6}}, {"id": 82, "type": "function_declarator", "text": "HandleInput()", "parent": 80, "children": [83, 84], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 20}}, {"id": 83, "type": "identifier", "text": "HandleInput", "parent": 82, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 18}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 20}}, {"id": 85, "type": "labeled_statement", "text": "public:\n\t\tvoid SetWidth(int width) { m_width = width;", "parent": 30, "children": [86], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 45}}, {"id": 86, "type": "declaration", "text": "void SetWidth(int width) { m_width = width;", "parent": 85, "children": [87, 88], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 45}}, {"id": 87, "type": "primitive_type", "text": "void", "parent": 86, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 6}}, {"id": 88, "type": "init_declarator", "text": "SetWidth(int width) { m_width = width", "parent": 86, "children": [89, 95, 97, 98], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 44}}, {"id": 89, "type": "function_declarator", "text": "SetWidth(int width)", "parent": 88, "children": [90, 91], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 26}}, {"id": 90, "type": "identifier", "text": "SetWidth", "parent": 89, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 15}}, {"id": 91, "type": "parameter_list", "text": "(int width)", "parent": 89, "children": [92], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 26}}, {"id": 92, "type": "parameter_declaration", "text": "int width", "parent": 91, "children": [93, 94], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 25}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 19}}, {"id": 94, "type": "identifier", "text": "width", "parent": 92, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 25}}, {"id": 95, "type": "ERROR", "text": "{ m_width", "parent": 88, "children": [96], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 36}}, {"id": 96, "type": "identifier", "text": "m_width", "parent": 95, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 36}}, {"id": 97, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 38}}, {"id": 98, "type": "identifier", "text": "width", "parent": 88, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 44}}, {"id": 99, "type": "function_definition", "text": "void SetHeight(int height) { m_height = height; }", "parent": 27, "children": [100, 101], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 51}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 101, "type": "function_declarator", "text": "SetHeight(int height)", "parent": 99, "children": [102, 103], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 28}}, {"id": 102, "type": "identifier", "text": "SetHeight", "parent": 101, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 16}}, {"id": 103, "type": "parameter_list", "text": "(int height)", "parent": 101, "children": [104], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 28}}, {"id": 104, "type": "parameter_declaration", "text": "int height", "parent": 103, "children": [105, 106], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 27}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 20}}, {"id": 106, "type": "identifier", "text": "height", "parent": 104, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 27}}, {"id": 107, "type": "assignment_expression", "text": "m_height = height", "parent": 99, "children": [108, 109, 110], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 48}}, {"id": 108, "type": "identifier", "text": "m_height", "parent": 107, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 39}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 110, "type": "identifier", "text": "height", "parent": 107, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 48}}, {"id": 111, "type": "function_definition", "text": "void SetPosition(glm::vec3 position) { m_position = position; }", "parent": 27, "children": [112, 113], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 65}}, {"id": 112, "type": "primitive_type", "text": "void", "parent": 111, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 113, "type": "function_declarator", "text": "SetPosition(glm::vec3 position)", "parent": 111, "children": [114, 115], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 38}}, {"id": 114, "type": "identifier", "text": "SetPosition", "parent": 113, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 18}}, {"id": 115, "type": "parameter_list", "text": "(glm::vec3 position)", "parent": 113, "children": [116], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 38}}, {"id": 116, "type": "parameter_declaration", "text": "glm::vec3 position", "parent": 115, "children": [117, 118, 120], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 37}}, {"id": 117, "type": "type_identifier", "text": "glm", "parent": 116, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 22}}, {"id": 118, "type": "ERROR", "text": "::vec3", "parent": 116, "children": [119], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 28}}, {"id": 119, "type": "identifier", "text": "vec3", "parent": 118, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 28}}, {"id": 120, "type": "identifier", "text": "position", "parent": 116, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 37}}, {"id": 121, "type": "assignment_expression", "text": "m_position = position", "parent": 111, "children": [122, 123, 124], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 62}}, {"id": 122, "type": "identifier", "text": "m_position", "parent": 121, "children": [], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 51}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 23, "column": 52}, "end_point": {"row": 23, "column": 53}}, {"id": 124, "type": "identifier", "text": "position", "parent": 121, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 62}}, {"id": 125, "type": "function_definition", "text": "void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }", "parent": 27, "children": [126, 127], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 65}}, {"id": 126, "type": "primitive_type", "text": "void", "parent": 125, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 127, "type": "function_declarator", "text": "SetRotation(glm::vec3 rotation)", "parent": 125, "children": [128, 129], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 38}}, {"id": 128, "type": "identifier", "text": "SetRotation", "parent": 127, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 18}}, {"id": 129, "type": "parameter_list", "text": "(glm::vec3 rotation)", "parent": 127, "children": [130], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 38}}, {"id": 130, "type": "parameter_declaration", "text": "glm::vec3 rotation", "parent": 129, "children": [131, 132, 134], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 37}}, {"id": 131, "type": "type_identifier", "text": "glm", "parent": 130, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 22}}, {"id": 132, "type": "ERROR", "text": "::vec3", "parent": 130, "children": [133], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 28}}, {"id": 133, "type": "identifier", "text": "vec3", "parent": 132, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 28}}, {"id": 134, "type": "identifier", "text": "rotation", "parent": 130, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 37}}, {"id": 135, "type": "assignment_expression", "text": "m_rotation = rotation", "parent": 125, "children": [136, 137, 138], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 62}}, {"id": 136, "type": "identifier", "text": "m_rotation", "parent": 135, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 51}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 53}}, {"id": 138, "type": "identifier", "text": "rotation", "parent": 135, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 62}}, {"id": 139, "type": "function_definition", "text": "void SetSensitivity(float s) { m_sensitivity = s; }", "parent": 27, "children": [140, 141], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 53}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 141, "type": "function_declarator", "text": "SetSensitivity(float s)", "parent": 139, "children": [142, 143], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 30}}, {"id": 142, "type": "identifier", "text": "SetSensitivity", "parent": 141, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 21}}, {"id": 143, "type": "parameter_list", "text": "(float s)", "parent": 141, "children": [144], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 30}}, {"id": 144, "type": "parameter_declaration", "text": "float s", "parent": 143, "children": [145, 146], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 29}}, {"id": 145, "type": "primitive_type", "text": "float", "parent": 144, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 27}}, {"id": 146, "type": "identifier", "text": "s", "parent": 144, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 29}}, {"id": 147, "type": "assignment_expression", "text": "m_sensitivity = s", "parent": 139, "children": [148, 149, 150], "start_point": {"row": 26, "column": 33}, "end_point": {"row": 26, "column": 50}}, {"id": 148, "type": "identifier", "text": "m_sensitivity", "parent": 147, "children": [], "start_point": {"row": 26, "column": 33}, "end_point": {"row": 26, "column": 46}}, {"id": 149, "type": "=", "text": "=", "parent": 147, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 150, "type": "identifier", "text": "s", "parent": 147, "children": [], "start_point": {"row": 26, "column": 49}, "end_point": {"row": 26, "column": 50}}, {"id": 151, "type": "function_definition", "text": "void SetSpeed(float speed) { m_speed = speed; }", "parent": 27, "children": [152, 153], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 49}}, {"id": 152, "type": "primitive_type", "text": "void", "parent": 151, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 6}}, {"id": 153, "type": "function_declarator", "text": "SetSpeed(float speed)", "parent": 151, "children": [154, 155], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 28}}, {"id": 154, "type": "identifier", "text": "SetSpeed", "parent": 153, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 15}}, {"id": 155, "type": "parameter_list", "text": "(float speed)", "parent": 153, "children": [156], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 28}}, {"id": 156, "type": "parameter_declaration", "text": "float speed", "parent": 155, "children": [157, 158], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 27}}, {"id": 157, "type": "primitive_type", "text": "float", "parent": 156, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 21}}, {"id": 158, "type": "identifier", "text": "speed", "parent": 156, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 27}}, {"id": 159, "type": "assignment_expression", "text": "m_speed = speed", "parent": 151, "children": [160, 161, 162], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 46}}, {"id": 160, "type": "identifier", "text": "m_speed", "parent": 159, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 38}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 40}}, {"id": 162, "type": "identifier", "text": "speed", "parent": 159, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 46}}, {"id": 163, "type": "function_definition", "text": "void SetFOV(float fov) { m_fov = fov; }", "parent": 27, "children": [164, 165], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 41}}, {"id": 164, "type": "primitive_type", "text": "void", "parent": 163, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 165, "type": "function_declarator", "text": "SetFOV(float fov)", "parent": 163, "children": [166, 167], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 24}}, {"id": 166, "type": "identifier", "text": "SetFOV", "parent": 165, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 13}}, {"id": 167, "type": "parameter_list", "text": "(float fov)", "parent": 165, "children": [168], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 24}}, {"id": 168, "type": "parameter_declaration", "text": "float fov", "parent": 167, "children": [169, 170], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 23}}, {"id": 169, "type": "primitive_type", "text": "float", "parent": 168, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 19}}, {"id": 170, "type": "identifier", "text": "fov", "parent": 168, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 23}}, {"id": 171, "type": "assignment_expression", "text": "m_fov = fov", "parent": 163, "children": [172, 173, 174], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 38}}, {"id": 172, "type": "identifier", "text": "m_fov", "parent": 171, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 32}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 174, "type": "identifier", "text": "fov", "parent": 171, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 38}}, {"id": 175, "type": "function_definition", "text": "void SetNearPlane(float near_plane) { m_near_plane = near_plane; }", "parent": 27, "children": [176, 177], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 68}}, {"id": 176, "type": "primitive_type", "text": "void", "parent": 175, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 6}}, {"id": 177, "type": "function_declarator", "text": "SetNearPlane(float near_plane)", "parent": 175, "children": [178, 179], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 37}}, {"id": 178, "type": "identifier", "text": "SetNearPlane", "parent": 177, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 19}}, {"id": 179, "type": "parameter_list", "text": "(float near_plane)", "parent": 177, "children": [180], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 37}}, {"id": 180, "type": "parameter_declaration", "text": "float near_plane", "parent": 179, "children": [181, 182], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 36}}, {"id": 181, "type": "primitive_type", "text": "float", "parent": 180, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 25}}, {"id": 182, "type": "identifier", "text": "near_plane", "parent": 180, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 36}}, {"id": 183, "type": "assignment_expression", "text": "m_near_plane = near_plane", "parent": 175, "children": [184, 185, 186], "start_point": {"row": 30, "column": 40}, "end_point": {"row": 30, "column": 65}}, {"id": 184, "type": "identifier", "text": "m_near_plane", "parent": 183, "children": [], "start_point": {"row": 30, "column": 40}, "end_point": {"row": 30, "column": 52}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 30, "column": 53}, "end_point": {"row": 30, "column": 54}}, {"id": 186, "type": "identifier", "text": "near_plane", "parent": 183, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 65}}, {"id": 187, "type": "function_definition", "text": "void SetFarPlane(float far_plane) { m_far_plane = far_plane; }", "parent": 27, "children": [188, 189], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 64}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 189, "type": "function_declarator", "text": "SetFarPlane(float far_plane)", "parent": 187, "children": [190, 191], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 35}}, {"id": 190, "type": "identifier", "text": "SetFarPlane", "parent": 189, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 18}}, {"id": 191, "type": "parameter_list", "text": "(float far_plane)", "parent": 189, "children": [192], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 35}}, {"id": 192, "type": "parameter_declaration", "text": "float far_plane", "parent": 191, "children": [193, 194], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 34}}, {"id": 193, "type": "primitive_type", "text": "float", "parent": 192, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 24}}, {"id": 194, "type": "identifier", "text": "far_plane", "parent": 192, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 34}}, {"id": 195, "type": "assignment_expression", "text": "m_far_plane = far_plane", "parent": 187, "children": [196, 197, 198], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 61}}, {"id": 196, "type": "identifier", "text": "m_far_plane", "parent": 195, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 49}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 31, "column": 50}, "end_point": {"row": 31, "column": 51}}, {"id": 198, "type": "identifier", "text": "far_plane", "parent": 195, "children": [], "start_point": {"row": 31, "column": 52}, "end_point": {"row": 31, "column": 61}}, {"id": 199, "type": "labeled_statement", "text": "glm::vec3 Position() { return m_position; }", "parent": 27, "children": [200, 201], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 45}}, {"id": 200, "type": "statement_identifier", "text": "glm", "parent": 199, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 5}}, {"id": 201, "type": "ERROR", "text": ":vec3 Position()", "parent": 199, "children": [202, 203], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 22}}, {"id": 202, "type": "type_identifier", "text": "vec3", "parent": 201, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 203, "type": "function_declarator", "text": "Position()", "parent": 201, "children": [204, 205], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 22}}, {"id": 204, "type": "identifier", "text": "Position", "parent": 203, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 20}}, {"id": 205, "type": "parameter_list", "text": "()", "parent": 203, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 22}}, {"id": 206, "type": "return_statement", "text": "return m_position;", "parent": 199, "children": [207], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 43}}, {"id": 207, "type": "identifier", "text": "m_position", "parent": 206, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 42}}, {"id": 208, "type": "labeled_statement", "text": "private:\n\t\tglm::vec3 m_position;", "parent": 27, "children": [209], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 35, "column": 23}}, {"id": 209, "type": "labeled_statement", "text": "glm::vec3 m_position;", "parent": 208, "children": [210, 211], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 23}}, {"id": 210, "type": "statement_identifier", "text": "glm", "parent": 209, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 5}}, {"id": 211, "type": "declaration", "text": "vec3 m_position;", "parent": 209, "children": [212, 213], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 23}}, {"id": 212, "type": "type_identifier", "text": "vec3", "parent": 211, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 213, "type": "identifier", "text": "m_position", "parent": 211, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 22}}, {"id": 214, "type": "labeled_statement", "text": "glm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);", "parent": 27, "children": [215, 216], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 54}}, {"id": 215, "type": "statement_identifier", "text": "glm", "parent": 214, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 5}}, {"id": 216, "type": "ERROR", "text": "::vec3 m_rotation = glm:", "parent": 214, "children": [217, 218], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 29}}, {"id": 217, "type": "type_identifier", "text": "vec3", "parent": 216, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 11}}, {"id": 218, "type": "init_declarator", "text": "m_rotation = glm", "parent": 216, "children": [219, 220, 221], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 28}}, {"id": 219, "type": "identifier", "text": "m_rotation", "parent": 218, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 22}}, {"id": 220, "type": "=", "text": "=", "parent": 218, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 221, "type": "identifier", "text": "glm", "parent": 218, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 28}}, {"id": 222, "type": "call_expression", "text": "vec3(0.0f, 0.0f, -1.0f)", "parent": 214, "children": [223, 224], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 53}}, {"id": 223, "type": "identifier", "text": "vec3", "parent": 222, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 34}}, {"id": 224, "type": "argument_list", "text": "(0.0f, 0.0f, -1.0f)", "parent": 222, "children": [225, 226, 227], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 53}}, {"id": 225, "type": "number_literal", "text": "0.0f", "parent": 224, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 39}}, {"id": 226, "type": "number_literal", "text": "0.0f", "parent": 224, "children": [], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 45}}, {"id": 227, "type": "number_literal", "text": "-1.0f", "parent": 224, "children": [], "start_point": {"row": 36, "column": 47}, "end_point": {"row": 36, "column": 52}}, {"id": 228, "type": "labeled_statement", "text": "glm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);", "parent": 27, "children": [229, 230], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 47}}, {"id": 229, "type": "statement_identifier", "text": "glm", "parent": 228, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 5}}, {"id": 230, "type": "ERROR", "text": "::vec3 m_up = glm:", "parent": 228, "children": [231, 232], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 23}}, {"id": 231, "type": "type_identifier", "text": "vec3", "parent": 230, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 11}}, {"id": 232, "type": "init_declarator", "text": "m_up = glm", "parent": 230, "children": [233, 234, 235], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 22}}, {"id": 233, "type": "identifier", "text": "m_up", "parent": 232, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 234, "type": "=", "text": "=", "parent": 232, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 18}}, {"id": 235, "type": "identifier", "text": "glm", "parent": 232, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 22}}, {"id": 236, "type": "call_expression", "text": "vec3(0.0f, 1.0f, 0.0f)", "parent": 228, "children": [237, 238], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 46}}, {"id": 237, "type": "identifier", "text": "vec3", "parent": 236, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 28}}, {"id": 238, "type": "argument_list", "text": "(0.0f, 1.0f, 0.0f)", "parent": 236, "children": [239, 240, 241], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 46}}, {"id": 239, "type": "number_literal", "text": "0.0f", "parent": 238, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 33}}, {"id": 240, "type": "number_literal", "text": "1.0f", "parent": 238, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 39}}, {"id": 241, "type": "number_literal", "text": "0.0f", "parent": 238, "children": [], "start_point": {"row": 37, "column": 41}, "end_point": {"row": 37, "column": 45}}, {"id": 242, "type": "labeled_statement", "text": "glm::mat4 m_cam_matrix;", "parent": 27, "children": [243, 244], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 25}}, {"id": 243, "type": "statement_identifier", "text": "glm", "parent": 242, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 5}}, {"id": 244, "type": "declaration", "text": "mat4 m_cam_matrix;", "parent": 242, "children": [245, 246], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 25}}, {"id": 245, "type": "type_identifier", "text": "mat4", "parent": 244, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 246, "type": "identifier", "text": "m_cam_matrix", "parent": 244, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 24}}, {"id": 247, "type": "labeled_statement", "text": "glm::mat4 m_view_matrix;", "parent": 27, "children": [248, 249], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 26}}, {"id": 248, "type": "statement_identifier", "text": "glm", "parent": 247, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 5}}, {"id": 249, "type": "declaration", "text": "mat4 m_view_matrix;", "parent": 247, "children": [250, 251], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 26}}, {"id": 250, "type": "type_identifier", "text": "mat4", "parent": 249, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 11}}, {"id": 251, "type": "identifier", "text": "m_view_matrix", "parent": 249, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 25}}, {"id": 252, "type": "declaration", "text": "int m_width;", "parent": 27, "children": [253, 254], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 14}}, {"id": 253, "type": "primitive_type", "text": "int", "parent": 252, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 5}}, {"id": 254, "type": "identifier", "text": "m_width", "parent": 252, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 13}}, {"id": 255, "type": "declaration", "text": "int m_height;", "parent": 27, "children": [256, 257], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 15}}, {"id": 256, "type": "primitive_type", "text": "int", "parent": 255, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 5}}, {"id": 257, "type": "identifier", "text": "m_height", "parent": 255, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 14}}, {"id": 258, "type": "declaration", "text": "float m_speed = 0.05f;", "parent": 27, "children": [259, 260], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 24}}, {"id": 259, "type": "primitive_type", "text": "float", "parent": 258, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 7}}, {"id": 260, "type": "init_declarator", "text": "m_speed = 0.05f", "parent": 258, "children": [261, 262, 263], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 23}}, {"id": 261, "type": "identifier", "text": "m_speed", "parent": 260, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 262, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 263, "type": "number_literal", "text": "0.05f", "parent": 260, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 23}}, {"id": 264, "type": "declaration", "text": "float m_sensitivity = 100.0f;", "parent": 27, "children": [265, 266], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 31}}, {"id": 265, "type": "primitive_type", "text": "float", "parent": 264, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 7}}, {"id": 266, "type": "init_declarator", "text": "m_sensitivity = 100.0f", "parent": 264, "children": [267, 268, 269], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 30}}, {"id": 267, "type": "identifier", "text": "m_sensitivity", "parent": 266, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 21}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 23}}, {"id": 269, "type": "number_literal", "text": "100.0f", "parent": 266, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 30}}, {"id": 270, "type": "declaration", "text": "float m_fov = 45.0f;", "parent": 27, "children": [271, 272], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 22}}, {"id": 271, "type": "primitive_type", "text": "float", "parent": 270, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 272, "type": "init_declarator", "text": "m_fov = 45.0f", "parent": 270, "children": [273, 274, 275], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 21}}, {"id": 273, "type": "identifier", "text": "m_fov", "parent": 272, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 13}}, {"id": 274, "type": "=", "text": "=", "parent": 272, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 15}}, {"id": 275, "type": "number_literal", "text": "45.0f", "parent": 272, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 21}}, {"id": 276, "type": "declaration", "text": "float m_near_plane = 0.1f;", "parent": 27, "children": [277, 278], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 28}}, {"id": 277, "type": "primitive_type", "text": "float", "parent": 276, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 7}}, {"id": 278, "type": "init_declarator", "text": "m_near_plane = 0.1f", "parent": 276, "children": [279, 280, 281], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 27}}, {"id": 279, "type": "identifier", "text": "m_near_plane", "parent": 278, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 20}}, {"id": 280, "type": "=", "text": "=", "parent": 278, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 22}}, {"id": 281, "type": "number_literal", "text": "0.1f", "parent": 278, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 27}}, {"id": 282, "type": "declaration", "text": "float m_far_plane = 100.0f;", "parent": 27, "children": [283, 284], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 29}}, {"id": 283, "type": "primitive_type", "text": "float", "parent": 282, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 7}}, {"id": 284, "type": "init_declarator", "text": "m_far_plane = 100.0f", "parent": 282, "children": [285, 286, 287], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 28}}, {"id": 285, "type": "identifier", "text": "m_far_plane", "parent": 284, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 19}}, {"id": 286, "type": "=", "text": "=", "parent": 284, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 287, "type": "number_literal", "text": "100.0f", "parent": 284, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 28}}, {"id": 288, "type": "declaration", "text": "bool m_first_clicked = true;", "parent": 27, "children": [289, 290], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 30}}, {"id": 289, "type": "primitive_type", "text": "bool", "parent": 288, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 6}}, {"id": 290, "type": "init_declarator", "text": "m_first_clicked = true", "parent": 288, "children": [291, 292, 293], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 29}}, {"id": 291, "type": "identifier", "text": "m_first_clicked", "parent": 290, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 22}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 24}}, {"id": 293, "type": "true", "text": "true", "parent": 290, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 29}}, {"id": 294, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}]}, "node_categories": {"declarations": {"functions": [27, 30, 50, 64, 69, 82, 89, 99, 101, 111, 113, 125, 127, 139, 141, 151, 153, 163, 165, 175, 177, 187, 189, 203], "variables": [35, 48, 53, 56, 59, 62, 67, 72, 75, 80, 86, 92, 104, 116, 130, 144, 156, 168, 180, 192, 211, 244, 249, 252, 255, 258, 264, 270, 276, 282, 288], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [222, 236], "assignments": [107, 121, 135, 147, 159, 171, 183, 195], "loops": [], "conditionals": [0, 1, 2, 5, 28, 29, 31, 33, 36, 37, 40, 42, 43, 45, 46, 47, 51, 55, 58, 61, 65, 70, 73, 74, 76, 78, 79, 83, 90, 94, 96, 98, 102, 106, 108, 110, 114, 117, 119, 120, 122, 124, 128, 131, 133, 134, 136, 138, 142, 146, 148, 150, 154, 158, 160, 162, 166, 170, 172, 174, 178, 182, 184, 186, 190, 194, 196, 198, 200, 202, 204, 207, 210, 212, 213, 215, 217, 219, 221, 223, 229, 231, 233, 235, 237, 243, 245, 246, 248, 250, 251, 254, 257, 261, 267, 273, 279, 285, 291, 294], "returns": [206], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 225, 226, 227, 239, 240, 241, 263, 269, 275, 281, 287], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "PHOTON_API", "text_snippet": "namespace Photon\n{\n\tclass PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 po"}, {"node_id": 30, "universal_type": "function", "name": "PHOTON_API", "text_snippet": "class PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 position);\n\t\tvoid Upda"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateMatrix(float FOVdeg, float near_plane, float far_plane)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "Update()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "SetUniform(Shader& shader, const std::string& uniform)"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "HandleInput()"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "SetWidth(int width)"}, {"node_id": 99, "universal_type": "function", "name": "SetHeight", "text_snippet": "void SetHeight(int height) { m_height = height; }"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "SetHeight(int height)"}, {"node_id": 111, "universal_type": "function", "name": "SetPosition", "text_snippet": "void SetPosition(glm::vec3 position) { m_position = position; }"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "SetPosition(glm::vec3 position)"}, {"node_id": 125, "universal_type": "function", "name": "SetRotation", "text_snippet": "void SetRotation(glm::vec3 rotation) { m_rotation = rotation; }"}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "SetRotation(glm::vec3 rotation)"}, {"node_id": 139, "universal_type": "function", "name": "SetSensitivity", "text_snippet": "void SetSensitivity(float s) { m_sensitivity = s; }"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "SetSensitivity(float s)"}, {"node_id": 151, "universal_type": "function", "name": "SetSpeed", "text_snippet": "void SetSpeed(float speed) { m_speed = speed; }"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "SetSpeed(float speed)"}, {"node_id": 163, "universal_type": "function", "name": "SetFOV", "text_snippet": "void SetFOV(float fov) { m_fov = fov; }"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "SetFOV(float fov)"}, {"node_id": 175, "universal_type": "function", "name": "SetNearPlane", "text_snippet": "void SetNearPlane(float near_plane) { m_near_plane = near_plane; }"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "SetNearPlane(float near_plane)"}, {"node_id": 187, "universal_type": "function", "name": "SetFarPlane", "text_snippet": "void SetFarPlane(float far_plane) { m_far_plane = far_plane; }"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "SetFarPlane(float far_plane)"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "Position()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <glm\\glm.hpp>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <glm\\gtc\\type_ptr.hpp>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <glm\\gtx\\rotate_vector.hpp>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <glm/gtx/vector_angle.hpp>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"Shader.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"Core.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"PhotonRenderer.h\"\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "#ifndef CAMERA_CLASS_H\n#define CAMERA_CLASS_H\n#include <glm\\glm.hpp>\n#include <glm\\gtc\\type_ptr.hpp>\n#include <glm\\gtx\\rotate_vector.hpp>\n#include <glm/gtx/vector_angle.hpp>\n#include \"Shader.h\"\n#include \"Core.h\"\n#include \"PhotonRenderer.h\"\n\nnamespace Photon\n{\n\tclass PHOTON_API Camera\n\t{\n\tpublic:\n\t\tCamera(int width, int height, glm::vec3 position);\n\t\tvoid UpdateMatrix(float FOVdeg, float near_plane, float far_plane);\n\t\tvoid Update();\n\t\tvoid SetUniform(Shader& shader, const std::string& uniform);\n\t\tvoid HandleInput();\n\tpublic:\n\t\tvoid SetWidth(int width) { m_width = width; }\n\t\tvoid SetHeight(int height) { m_height = height; }\n\t\tvoid SetPosition(glm::vec3 position) { m_position = position; }\n\t\tvoid SetRotation(glm::vec3 rotation) { m_rotation = rotation; }\n\n\t\tvoid SetSensitivity(float s) { m_sensitivity = s; }\n\t\tvoid SetSpeed(float speed) { m_speed = speed; }\n\n\t\tvoid SetFOV(float fov) { m_fov = fov; }\n\t\tvoid SetNearPlane(float near_plane) { m_near_plane = near_plane; }\n\t\tvoid SetFarPlane(float far_plane) { m_far_plane = far_plane; }\n\n\t\tglm::vec3 Position() { return m_position; }\n\tprivate:\n\t\tglm::vec3 m_position;\n\t\tglm::vec3 m_rotation = glm::vec3(0.0f, 0.0f, -1.0f);\n\t\tglm::vec3 m_up = glm::vec3(0.0f, 1.0f, 0.0f);\n\n\t\tglm::mat4 m_cam_matrix;\n\n\t\t//Hack\n\t\tglm::mat4 m_view_matrix;\n\n\t\tint m_width;\n\t\tint m_height;\n\n\t\tfloat m_speed = 0.05f;\n\t\tfloat m_sensitivity = 100.0f;\n\t\tfloat m_fov = 45.0f;\n\t\tfloat m_near_plane = 0.1f;\n\t\tfloat m_far_plane = 100.0f;\n\n\t\tbool m_first_clicked = true;\n\t};\n}\n#endif"}
81,009
c
/* Copyright (c) 2015-2018, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef __mempeek_exceptions_h__ #define __mempeek_exceptions_h__ #include "mempeek_parser.h" #include <sstream> #include <iomanip> #include <string> #include <vector> ////////////////////////////////////////////////////////////////////////////// // class ASTNodeException ////////////////////////////////////////////////////////////////////////////// class ASTException : public std::exception { public: ~ASTException(); const char* what() const noexcept override; const char* get_location() const; protected: void loc( const yylloc_t& location ); void msg( const char* msg ); void clone( const ASTException& ex ); template< typename... ARGS > void msg( const char* msg, ARGS... varargs ); private: void create_msg( const char* msg, std::vector< std::string >& args ); template < typename... ARGS > struct argreader { static void push_args( std::vector< std::string >& args, ARGS... varargs ); }; const char* m_Location = nullptr; const char* m_What = nullptr; }; ////////////////////////////////////////////////////////////////////////////// // ASTNode exception types ////////////////////////////////////////////////////////////////////////////// class ASTControlflowException : public ASTException {}; class ASTCompileException : public ASTException {}; class ASTRuntimeException : public ASTException {}; ////////////////////////////////////////////////////////////////////////////// // ASTNode control flow exceptions ////////////////////////////////////////////////////////////////////////////// class ASTExceptionExit : public ASTControlflowException {}; class ASTExceptionBreak : public ASTControlflowException {}; class ASTExceptionQuit : public ASTControlflowException {}; class ASTExceptionTerminate : public ASTControlflowException {}; ////////////////////////////////////////////////////////////////////////////// // ASTNode compile exceptions ////////////////////////////////////////////////////////////////////////////// class ASTExceptionSyntaxError : public ASTCompileException { public: ASTExceptionSyntaxError( const yylloc_t& location ) { loc( location ); msg( "syntax error" ); } }; class ASTExceptionNamingConflict : public ASTCompileException { public: ASTExceptionNamingConflict( const yylloc_t& location, std::string name ) { loc( location ); msg( "conflicting name \"$0\"", name ); } }; class ASTExceptionUndefinedVar : public ASTCompileException { public: ASTExceptionUndefinedVar( const yylloc_t& location, std::string name ) { loc( location ); msg( "using undefined var \"$0\"", name ); } }; class ASTExceptionNoReturnValue : public ASTCompileException { public: ASTExceptionNoReturnValue( const yylloc_t& location ) { loc( location ); msg( "no return value" ); } }; class ASTExceptionMappingFailure : public ASTCompileException { public: ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address, uint64_t size, std::string device ) { loc( location ); std::ostringstream a, s; a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address; s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size; msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device ); } }; class ASTExceptionFileNotFound : public ASTCompileException { public: ASTExceptionFileNotFound( const yylloc_t& location, const char* file ) { loc( location ); msg( "file \"$0\" not found", file ); } }; class ASTExceptionNonconstExpression : public ASTCompileException { public: ASTExceptionNonconstExpression( const yylloc_t& location ) { loc( location ); msg( "illegal usage of non-const expression" ); } }; class ASTExceptionConstDivisionByZero : public ASTCompileException { public: ASTExceptionConstDivisionByZero( const ASTException& ex ) { clone( ex ); } }; ////////////////////////////////////////////////////////////////////////////// // ASTNode runtime exceptions ////////////////////////////////////////////////////////////////////////////// class ASTExceptionDivisionByZero : public ASTRuntimeException { public: ASTExceptionDivisionByZero( const yylloc_t& location ) { loc( location ); msg( "division by zero" ); } }; class ASTExceptionNoMapping : public ASTRuntimeException { public: ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size ) { loc( location ); msg( "no mapping found for $0 bit access to address $1", size * 8, address ); } }; class ASTExceptionBusError : public ASTRuntimeException { public: ASTExceptionBusError( const yylloc_t& location, void* address, size_t size ) { loc( location ); msg( "failed $0 bit access to address $1", size * 8, address ); } }; class ASTExceptionOutOfBounds : public ASTRuntimeException { public: ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size ) : ASTExceptionOutOfBounds( index, size ) { loc( location ); } ASTExceptionOutOfBounds( uint64_t index, uint64_t size ) { msg( "index $0 does not match size $1", index, size ); } ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex ) { clone( ex ); loc( location ); } }; class ASTExceptionOutOfMemory : public ASTRuntimeException { public: ASTExceptionOutOfMemory( uint64_t size ) { msg( "failed to allocate array of size $0", size ); } ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex ) { clone( ex ); loc( location ); } }; class ASTExceptionDroppedSubroutine : public ASTRuntimeException { public: ASTExceptionDroppedSubroutine( const yylloc_t& location ) { loc( location ); msg( "calling dropped subroutine" ); } }; class ASTExceptionArgTypeMismatch : public ASTRuntimeException { public: ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array ) { loc( location ); msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" ); } }; ////////////////////////////////////////////////////////////////////////////// // class ASTNodeException template functions ////////////////////////////////////////////////////////////////////////////// template< typename... ARGS > inline void ASTException::msg( const char* msg, ARGS... varargs ) { std::vector< std::string > args; argreader< ARGS... >::push_args( args, varargs... ); create_msg( msg, args ); } template< typename T > struct ASTException::argreader< T > { static void push_args( std::vector< std::string >& args, const T& t ) { std::ostringstream ostr; ostr << t; args.push_back( ostr.str() ); } }; template< typename T, typename... ARGS > struct ASTException::argreader< T, ARGS... > { static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs ) { std::ostringstream ostr; ostr << t; args.push_back( ostr.str() ); ASTException::argreader< ARGS... >::push_args( args, varargs... ); } }; #endif // __mempeek_exceptions_h__
34.25
242
(translation_unit) "/* Copyright (c) 2015-2018, <NAME>\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef __mempeek_exceptions_h__\n#define __mempeek_exceptions_h__\n\n#include "mempeek_parser.h"\n\n#include <sstream>\n#include <iomanip>\n#include <string>\n#include <vector>\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTException : public std::exception {\npublic:\n ~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n static void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode exception types\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTControlflowException : public ASTException {};\nclass ASTCompileException : public ASTException {};\nclass ASTRuntimeException : public ASTException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode control flow exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionExit : public ASTControlflowException {};\nclass ASTExceptionBreak : public ASTControlflowException {};\nclass ASTExceptionQuit : public ASTControlflowException {};\nclass ASTExceptionTerminate : public ASTControlflowException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode compile exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n ASTExceptionSyntaxError( const yylloc_t& location )\n {\n loc( location );\n msg( "syntax error" );\n }\n};\n\nclass ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n ASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }\n};\n\nclass ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }\n};\n\nclass ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( "no return value" );\n }\n};\n\nclass ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )\n {\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }\n};\n\nclass ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n ASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n {\n loc( location );\n msg( "file \"$0\" not found", file );\n }\n};\n\nclass ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( "illegal usage of non-const expression" );\n }\n};\n\nclass ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode runtime exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n ASTExceptionDivisionByZero( const yylloc_t& location )\n {\n loc( location );\n msg( "division by zero" );\n }\n};\n\nclass ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }\n};\n\nclass ASTExceptionBusError : public ASTRuntimeException {\npublic:\n ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }\n\n};\n\nclass ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }\n\n ASTExceptionOutOfBounds( uint64_t index, uint64_t size )\n {\n msg( "index $0 does not match size $1", index, size );\n }\n\n ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( "failed to allocate array of size $0", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( "calling dropped subroutine" );\n }\n};\n\nclass ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException template functions\n//////////////////////////////////////////////////////////////////////////////\n\ntemplate< typename... ARGS >\ninline void ASTException::msg( const char* msg, ARGS... varargs )\n{\n std::vector< std::string > args;\n argreader< ARGS... >::push_args( args, varargs... );\n create_msg( msg, args );\n}\n\ntemplate< typename T >\nstruct ASTException::argreader< T > {\n static void push_args( std::vector< std::string >& args, const T& t )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }\n};\n\ntemplate< typename T, typename... ARGS >\nstruct ASTException::argreader< T, ARGS... > {\n static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }\n};\n\n\n#endif // __mempeek_exceptions_h__\n" (comment) "/* Copyright (c) 2015-2018, <NAME>\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/" (preproc_ifdef) "#ifndef __mempeek_exceptions_h__\n#define __mempeek_exceptions_h__\n\n#include "mempeek_parser.h"\n\n#include <sstream>\n#include <iomanip>\n#include <string>\n#include <vector>\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTException : public std::exception {\npublic:\n ~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n static void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode exception types\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTControlflowException : public ASTException {};\nclass ASTCompileException : public ASTException {};\nclass ASTRuntimeException : public ASTException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode control flow exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionExit : public ASTControlflowException {};\nclass ASTExceptionBreak : public ASTControlflowException {};\nclass ASTExceptionQuit : public ASTControlflowException {};\nclass ASTExceptionTerminate : public ASTControlflowException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode compile exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n ASTExceptionSyntaxError( const yylloc_t& location )\n {\n loc( location );\n msg( "syntax error" );\n }\n};\n\nclass ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n ASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }\n};\n\nclass ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }\n};\n\nclass ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( "no return value" );\n }\n};\n\nclass ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )\n {\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }\n};\n\nclass ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n ASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n {\n loc( location );\n msg( "file \"$0\" not found", file );\n }\n};\n\nclass ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( "illegal usage of non-const expression" );\n }\n};\n\nclass ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode runtime exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n ASTExceptionDivisionByZero( const yylloc_t& location )\n {\n loc( location );\n msg( "division by zero" );\n }\n};\n\nclass ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }\n};\n\nclass ASTExceptionBusError : public ASTRuntimeException {\npublic:\n ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }\n\n};\n\nclass ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }\n\n ASTExceptionOutOfBounds( uint64_t index, uint64_t size )\n {\n msg( "index $0 does not match size $1", index, size );\n }\n\n ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( "failed to allocate array of size $0", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( "calling dropped subroutine" );\n }\n};\n\nclass ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException template functions\n//////////////////////////////////////////////////////////////////////////////\n\ntemplate< typename... ARGS >\ninline void ASTException::msg( const char* msg, ARGS... varargs )\n{\n std::vector< std::string > args;\n argreader< ARGS... >::push_args( args, varargs... );\n create_msg( msg, args );\n}\n\ntemplate< typename T >\nstruct ASTException::argreader< T > {\n static void push_args( std::vector< std::string >& args, const T& t )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }\n};\n\ntemplate< typename T, typename... ARGS >\nstruct ASTException::argreader< T, ARGS... > {\n static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }\n};\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "__mempeek_exceptions_h__" (preproc_def) "#define __mempeek_exceptions_h__\n" (#define) "#define" (identifier) "__mempeek_exceptions_h__" (preproc_include) "#include "mempeek_parser.h"\n" (#include) "#include" (string_literal) ""mempeek_parser.h"" (") """ (string_content) "mempeek_parser.h" (") """ (preproc_include) "#include <sstream>\n" (#include) "#include" (system_lib_string) "<sstream>" (preproc_include) "#include <iomanip>\n" (#include) "#include" (system_lib_string) "<iomanip>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// class ASTNodeException" (comment) "//////////////////////////////////////////////////////////////////////////////" (function_definition) "class ASTException : public std::exception {\npublic:\n ~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n static void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n}" (type_identifier) "class" (identifier) "ASTException" (ERROR) ": public std::exception" (:) ":" (identifier) "public" (identifier) "std" (:) ":" (:) ":" (identifier) "exception" (compound_statement) "{\npublic:\n ~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n static void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n}" ({) "{" (labeled_statement) "public:\n ~ASTException();" (statement_identifier) "public" (:) ":" (expression_statement) "~ASTException();" (unary_expression) "~ASTException()" (~) "~" (call_expression) "ASTException()" (identifier) "ASTException" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "const char* what() const noexcept override;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* what() const noexcept override" (*) "*" (function_declarator) "what() const noexcept override" (identifier) "what" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (declaration) "const char* get_location() const;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* get_location() const" (*) "*" (function_declarator) "get_location() const" (identifier) "get_location" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (labeled_statement) "protected:\n void loc( const yylloc_t& location );" (statement_identifier) "protected" (:) ":" (declaration) "void loc( const yylloc_t& location );" (primitive_type) "void" (function_declarator) "loc( const yylloc_t& location )" (identifier) "loc" (parameter_list) "( const yylloc_t& location )" (() "(" (parameter_declaration) "const yylloc_t& location" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "&" (&) "&" (identifier) "location" ()) ")" (;) ";" (declaration) "void msg( const char* msg );" (primitive_type) "void" (function_declarator) "msg( const char* msg )" (identifier) "msg" (parameter_list) "( const char* msg )" (() "(" (parameter_declaration) "const char* msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (declaration) "void clone( const ASTException& ex );" (primitive_type) "void" (function_declarator) "clone( const ASTException& ex )" (identifier) "clone" (parameter_list) "( const ASTException& ex )" (() "(" (parameter_declaration) "const ASTException& ex" (type_qualifier) "const" (const) "const" (type_identifier) "ASTException" (ERROR) "&" (&) "&" (identifier) "ex" ()) ")" (;) ";" (expression_statement) "template< typename... ARGS >\n void" (binary_expression) "template< typename... ARGS >\n void" (binary_expression) "template< typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... ARGS" (...) "..." (identifier) "ARGS" (>) ">" (identifier) "void" (;) "" (declaration) "msg( const char* msg, ARGS... varargs );" (macro_type_specifier) "msg( const char*" (identifier) "msg" (() "(" (type_descriptor) "const char*" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "msg" (,) "," (ERROR) "ARGS..." (identifier) "ARGS" (...) "..." (identifier) "varargs" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "private:\n void create_msg( const char* msg, std::vector< std::string >& args );" (statement_identifier) "private" (:) ":" (declaration) "void create_msg( const char* msg, std::vector< std::string >& args );" (primitive_type) "void" (function_declarator) "create_msg( const char* msg, std::vector< std::string >& args )" (identifier) "create_msg" (parameter_list) "( const char* msg, std::vector< std::string >& args )" (() "(" (parameter_declaration) "const char* msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "std::vector< std::string >& args" (type_identifier) "std" (ERROR) "::vector< std::string >&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "args" ()) ")" (;) ";" (ERROR) "template < typename... ARGS >\n struct argreader" (binary_expression) "template < typename... ARGS >\n struct" (binary_expression) "template < typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... ARGS" (...) "..." (identifier) "ARGS" (>) ">" (identifier) "struct" (identifier) "argreader" (compound_statement) "{\n static void push_args( std::vector< std::string >& args, ARGS... varargs );\n }" ({) "{" (declaration) "static void push_args( std::vector< std::string >& args, ARGS... varargs );" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "push_args( std::vector< std::string >& args, ARGS... varargs )" (identifier) "push_args" (parameter_list) "( std::vector< std::string >& args, ARGS... varargs )" (() "(" (parameter_declaration) "std::vector< std::string >& args" (type_identifier) "std" (ERROR) "::vector< std::string >&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "args" (,) "," (parameter_declaration) "ARGS... varargs" (type_identifier) "ARGS" (ERROR) "..." (...) "..." (identifier) "varargs" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "const char* m_Location = nullptr;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* m_Location = nullptr" (pointer_declarator) "* m_Location" (*) "*" (identifier) "m_Location" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "const char* m_What = nullptr;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* m_What = nullptr" (pointer_declarator) "* m_What" (*) "*" (identifier) "m_What" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// ASTNode exception types" (comment) "//////////////////////////////////////////////////////////////////////////////" (function_definition) "class ASTControlflowException : public ASTException {}" (type_identifier) "class" (identifier) "ASTControlflowException" (ERROR) ": public ASTException" (:) ":" (identifier) "public" (identifier) "ASTException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTCompileException : public ASTException {}" (type_identifier) "class" (identifier) "ASTCompileException" (ERROR) ": public ASTException" (:) ":" (identifier) "public" (identifier) "ASTException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTRuntimeException : public ASTException {}" (type_identifier) "class" (identifier) "ASTRuntimeException" (ERROR) ": public ASTException" (:) ":" (identifier) "public" (identifier) "ASTException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// ASTNode control flow exceptions" (comment) "//////////////////////////////////////////////////////////////////////////////" (function_definition) "class ASTExceptionExit : public ASTControlflowException {}" (type_identifier) "class" (ERROR) "ASTExceptionExit : public" (identifier) "ASTExceptionExit" (:) ":" (identifier) "public" (identifier) "ASTControlflowException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionBreak : public ASTControlflowException {}" (type_identifier) "class" (ERROR) "ASTExceptionBreak : public" (identifier) "ASTExceptionBreak" (:) ":" (identifier) "public" (identifier) "ASTControlflowException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionQuit : public ASTControlflowException {}" (type_identifier) "class" (ERROR) "ASTExceptionQuit : public" (identifier) "ASTExceptionQuit" (:) ":" (identifier) "public" (identifier) "ASTControlflowException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionTerminate : public ASTControlflowException {}" (type_identifier) "class" (ERROR) "ASTExceptionTerminate : public" (identifier) "ASTExceptionTerminate" (:) ":" (identifier) "public" (identifier) "ASTControlflowException" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// ASTNode compile exceptions" (comment) "//////////////////////////////////////////////////////////////////////////////" (function_definition) "class ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n ASTExceptionSyntaxError( const yylloc_t& location )\n {\n loc( location );\n msg( "syntax error" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionSyntaxError" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionSyntaxError( const yylloc_t& location )\n {\n loc( location );\n msg( "syntax error" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionSyntaxError( const yylloc_t& location )\n {\n loc( location );\n msg( "syntax error" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionSyntaxError( const yylloc_t& location )" (macro_type_specifier) "ASTExceptionSyntaxError( const yylloc_t& location )" (identifier) "ASTExceptionSyntaxError" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "& location" (&) "&" (identifier) "location" ()) ")" (compound_statement) "{\n loc( location );\n msg( "syntax error" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "syntax error" );" (call_expression) "msg( "syntax error" )" (identifier) "msg" (argument_list) "( "syntax error" )" (() "(" (string_literal) ""syntax error"" (") """ (string_content) "syntax error" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n ASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionNamingConflict" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionNamingConflict( const yylloc_t& location, std::string name )" (comma_expression) "ASTExceptionNamingConflict( const yylloc_t& location, std" (binary_expression) "ASTExceptionNamingConflict( const yylloc_t& location" (identifier) "ASTExceptionNamingConflict" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (identifier) "std" (:) ":" (:) ":" (type_identifier) "string" (identifier) "name" ()) ")" (compound_statement) "{\n loc( location );\n msg( "conflicting name \"$0\"", name );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "conflicting name \"$0\"", name );" (call_expression) "msg( "conflicting name \"$0\"", name )" (identifier) "msg" (argument_list) "( "conflicting name \"$0\"", name )" (() "(" (string_literal) ""conflicting name \"$0\""" (") """ (string_content) "conflicting name " (escape_sequence) "\"" (string_content) "$0" (escape_sequence) "\"" (") """ (,) "," (identifier) "name" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionUndefinedVar" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n {\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )" (comma_expression) "ASTExceptionUndefinedVar( const yylloc_t& location, std" (binary_expression) "ASTExceptionUndefinedVar( const yylloc_t& location" (identifier) "ASTExceptionUndefinedVar" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (identifier) "std" (:) ":" (:) ":" (type_identifier) "string" (identifier) "name" ()) ")" (compound_statement) "{\n loc( location );\n msg( "using undefined var \"$0\"", name );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "using undefined var \"$0\"", name );" (call_expression) "msg( "using undefined var \"$0\"", name )" (identifier) "msg" (argument_list) "( "using undefined var \"$0\"", name )" (() "(" (string_literal) ""using undefined var \"$0\""" (") """ (string_content) "using undefined var " (escape_sequence) "\"" (string_content) "$0" (escape_sequence) "\"" (") """ (,) "," (identifier) "name" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( "no return value" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionNoReturnValue" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( "no return value" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( "no return value" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionNoReturnValue( const yylloc_t& location )" (macro_type_specifier) "ASTExceptionNoReturnValue( const yylloc_t& location )" (identifier) "ASTExceptionNoReturnValue" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "& location" (&) "&" (identifier) "location" ()) ")" (compound_statement) "{\n loc( location );\n msg( "no return value" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "no return value" );" (call_expression) "msg( "no return value" )" (identifier) "msg" (argument_list) "( "no return value" )" (() "(" (string_literal) ""no return value"" (") """ (string_content) "no return value" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )\n {\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionMappingFailure" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )\n {\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )\n {\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std::string device )" (comma_expression) "ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n uint64_t size, std" (binary_expression) "ASTExceptionMappingFailure( const yylloc_t& location" (identifier) "ASTExceptionMappingFailure" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (comma_expression) "uint64_t address,\n uint64_t size, std" (identifier) "uint64_t" (ERROR) "address" (identifier) "address" (,) "," (comma_expression) "uint64_t size, std" (identifier) "uint64_t" (ERROR) "size" (identifier) "size" (,) "," (identifier) "std" (:) ":" (:) ":" (identifier) "string" (identifier) "device" ()) ")" (compound_statement) "{\n loc( location );\n std::ostringstream a, s;\n a << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (labeled_statement) "std::ostringstream a, s;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "ostringstream a, s;" (type_identifier) "ostringstream" (identifier) "a" (,) "," (identifier) "s" (;) ";" (ERROR) "a << std::hex << std::setw( sizeof(void*) * 2 ) << std::" (binary_expression) "a << std::hex << std" (binary_expression) "a << std" (identifier) "a" (<<) "<<" (identifier) "std" (ERROR) "::hex" (:) ":" (:) ":" (identifier) "hex" (<<) "<<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "setw( sizeof(void*) * 2 ) << std" (call_expression) "setw( sizeof(void*) * 2 )" (identifier) "setw" (argument_list) "( sizeof(void*) * 2 )" (() "(" (binary_expression) "sizeof(void*) * 2" (sizeof_expression) "sizeof(void*)" (sizeof) "sizeof" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (*) "*" (number_literal) "2" ()) ")" (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "setfill( '0' ) << address;" (binary_expression) "setfill( '0' ) << address" (call_expression) "setfill( '0' )" (identifier) "setfill" (argument_list) "( '0' )" (() "(" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" (<<) "<<" (identifier) "address" (;) ";" (ERROR) "s << std::hex << std::setw( sizeof(void*) * 2 ) << std::" (binary_expression) "s << std::hex << std" (binary_expression) "s << std" (identifier) "s" (<<) "<<" (identifier) "std" (ERROR) "::hex" (:) ":" (:) ":" (identifier) "hex" (<<) "<<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "setw( sizeof(void*) * 2 ) << std" (call_expression) "setw( sizeof(void*) * 2 )" (identifier) "setw" (argument_list) "( sizeof(void*) * 2 )" (() "(" (binary_expression) "sizeof(void*) * 2" (sizeof_expression) "sizeof(void*)" (sizeof) "sizeof" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (*) "*" (number_literal) "2" ()) ")" (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "setfill( '0' ) << size;" (binary_expression) "setfill( '0' ) << size" (call_expression) "setfill( '0' )" (identifier) "setfill" (argument_list) "( '0' )" (() "(" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" (<<) "<<" (identifier) "size" (;) ";" (expression_statement) "msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device );" (call_expression) "msg( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device )" (identifier) "msg" (argument_list) "( "failed to map address range $0 size $1 of device \"$2\"", a.str(), s.str(), device )" (() "(" (string_literal) ""failed to map address range $0 size $1 of device \"$2\""" (") """ (string_content) "failed to map address range $0 size $1 of device " (escape_sequence) "\"" (string_content) "$2" (escape_sequence) "\"" (") """ (,) "," (call_expression) "a.str()" (field_expression) "a.str" (identifier) "a" (.) "." (field_identifier) "str" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "s.str()" (field_expression) "s.str" (identifier) "s" (.) "." (field_identifier) "str" (argument_list) "()" (() "(" ()) ")" (,) "," (identifier) "device" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n ASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n {\n loc( location );\n msg( "file \"$0\" not found", file );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionFileNotFound" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n {\n loc( location );\n msg( "file \"$0\" not found", file );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n {\n loc( location );\n msg( "file \"$0\" not found", file );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionFileNotFound( const yylloc_t& location, const char* file )" (comma_expression) "ASTExceptionFileNotFound( const yylloc_t& location, const char* file" (binary_expression) "ASTExceptionFileNotFound( const yylloc_t& location" (identifier) "ASTExceptionFileNotFound" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (binary_expression) "const char* file" (identifier) "const" (ERROR) "char" (identifier) "char" (*) "*" (identifier) "file" ()) ")" (compound_statement) "{\n loc( location );\n msg( "file \"$0\" not found", file );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "file \"$0\" not found", file );" (call_expression) "msg( "file \"$0\" not found", file )" (identifier) "msg" (argument_list) "( "file \"$0\" not found", file )" (() "(" (string_literal) ""file \"$0\" not found"" (") """ (string_content) "file " (escape_sequence) "\"" (string_content) "$0" (escape_sequence) "\"" (string_content) " not found" (") """ (,) "," (identifier) "file" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( "illegal usage of non-const expression" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionNonconstExpression" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( "illegal usage of non-const expression" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( "illegal usage of non-const expression" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionNonconstExpression( const yylloc_t& location )" (macro_type_specifier) "ASTExceptionNonconstExpression( const yylloc_t& location )" (identifier) "ASTExceptionNonconstExpression" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "& location" (&) "&" (identifier) "location" ()) ")" (compound_statement) "{\n loc( location );\n msg( "illegal usage of non-const expression" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "illegal usage of non-const expression" );" (call_expression) "msg( "illegal usage of non-const expression" )" (identifier) "msg" (argument_list) "( "illegal usage of non-const expression" )" (() "(" (string_literal) ""illegal usage of non-const expression"" (") """ (string_content) "illegal usage of non-const expression" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionConstDivisionByZero" (ERROR) ": public ASTCompileException" (:) ":" (identifier) "public" (identifier) "ASTCompileException" (compound_statement) "{\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionConstDivisionByZero( const ASTException& ex )" (macro_type_specifier) "ASTExceptionConstDivisionByZero( const ASTException& ex )" (identifier) "ASTExceptionConstDivisionByZero" (() "(" (type_descriptor) "const ASTException" (type_qualifier) "const" (const) "const" (type_identifier) "ASTException" (ERROR) "& ex" (&) "&" (identifier) "ex" ()) ")" (compound_statement) "{\n clone( ex );\n }" ({) "{" (expression_statement) "clone( ex );" (call_expression) "clone( ex )" (identifier) "clone" (argument_list) "( ex )" (() "(" (identifier) "ex" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// ASTNode runtime exceptions" (comment) "//////////////////////////////////////////////////////////////////////////////" (function_definition) "class ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n ASTExceptionDivisionByZero( const yylloc_t& location )\n {\n loc( location );\n msg( "division by zero" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionDivisionByZero" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionDivisionByZero( const yylloc_t& location )\n {\n loc( location );\n msg( "division by zero" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionDivisionByZero( const yylloc_t& location )\n {\n loc( location );\n msg( "division by zero" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionDivisionByZero( const yylloc_t& location )" (macro_type_specifier) "ASTExceptionDivisionByZero( const yylloc_t& location )" (identifier) "ASTExceptionDivisionByZero" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "& location" (&) "&" (identifier) "location" ()) ")" (compound_statement) "{\n loc( location );\n msg( "division by zero" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "division by zero" );" (call_expression) "msg( "division by zero" )" (identifier) "msg" (argument_list) "( "division by zero" )" (() "(" (string_literal) ""division by zero"" (") """ (string_content) "division by zero" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionNoMapping" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )" (comma_expression) "ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t" (binary_expression) "ASTExceptionNoMapping( const yylloc_t& location" (identifier) "ASTExceptionNoMapping" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (comma_expression) "void* address, size_t" (binary_expression) "void* address" (identifier) "void" (*) "*" (identifier) "address" (,) "," (identifier) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n loc( location );\n msg( "no mapping found for $0 bit access to address $1", size * 8, address );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "no mapping found for $0 bit access to address $1", size * 8, address );" (call_expression) "msg( "no mapping found for $0 bit access to address $1", size * 8, address )" (identifier) "msg" (argument_list) "( "no mapping found for $0 bit access to address $1", size * 8, address )" (() "(" (string_literal) ""no mapping found for $0 bit access to address $1"" (") """ (string_content) "no mapping found for $0 bit access to address $1" (") """ (,) "," (binary_expression) "size * 8" (identifier) "size" (*) "*" (number_literal) "8" (,) "," (identifier) "address" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionBusError : public ASTRuntimeException {\npublic:\n ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }\n\n}" (type_identifier) "class" (identifier) "ASTExceptionBusError" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }\n\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n {\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )" (comma_expression) "ASTExceptionBusError( const yylloc_t& location, void* address, size_t" (binary_expression) "ASTExceptionBusError( const yylloc_t& location" (identifier) "ASTExceptionBusError" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (comma_expression) "void* address, size_t" (binary_expression) "void* address" (identifier) "void" (*) "*" (identifier) "address" (,) "," (identifier) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n loc( location );\n msg( "failed $0 bit access to address $1", size * 8, address );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "failed $0 bit access to address $1", size * 8, address );" (call_expression) "msg( "failed $0 bit access to address $1", size * 8, address )" (identifier) "msg" (argument_list) "( "failed $0 bit access to address $1", size * 8, address )" (() "(" (string_literal) ""failed $0 bit access to address $1"" (") """ (string_content) "failed $0 bit access to address $1" (") """ (,) "," (binary_expression) "size * 8" (identifier) "size" (*) "*" (number_literal) "8" (,) "," (identifier) "address" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }" (type_identifier) "class" (identifier) "ASTExceptionOutOfBounds" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }" ({) "{" (labeled_statement) "public:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );" (statement_identifier) "public" (:) ":" (expression_statement) "ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );" (comma_expression) "ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location )" (binary_expression) "ASTExceptionOutOfBounds( const yylloc_t& location" (identifier) "ASTExceptionOutOfBounds" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (comma_expression) "uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location )" (identifier) "uint64_t" (ERROR) "index" (identifier) "index" (,) "," (ERROR) "uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {" (identifier) "uint64_t" (identifier) "size" ()) ")" (:) ":" (call_expression) "ASTExceptionOutOfBounds( index, size )" (identifier) "ASTExceptionOutOfBounds" (argument_list) "( index, size )" (() "(" (identifier) "index" (,) "," (identifier) "size" ()) ")" ({) "{" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (}) "}" (ERROR) "ASTExceptionOutOfBounds( uint64_t index, uint64_t size )" (macro_type_specifier) "ASTExceptionOutOfBounds( uint64_t" (identifier) "ASTExceptionOutOfBounds" (() "(" (type_descriptor) "uint64_t" (primitive_type) "uint64_t" ()) "" (identifier) "index" (,) "," (identifier) "uint64_t" (identifier) "size" ()) ")" (compound_statement) "{\n msg( "index $0 does not match size $1", index, size );\n }" ({) "{" (expression_statement) "msg( "index $0 does not match size $1", index, size );" (call_expression) "msg( "index $0 does not match size $1", index, size )" (identifier) "msg" (argument_list) "( "index $0 does not match size $1", index, size )" (() "(" (string_literal) ""index $0 does not match size $1"" (") """ (string_content) "index $0 does not match size $1" (") """ (,) "," (identifier) "index" (,) "," (identifier) "size" ()) ")" (;) ";" (}) "}" (ERROR) "ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )" (comma_expression) "ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex" (binary_expression) "ASTExceptionOutOfBounds( const yylloc_t& location" (identifier) "ASTExceptionOutOfBounds" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "ASTExceptionOutOfBounds& ex" (identifier) "ASTExceptionOutOfBounds" (&) "&" (identifier) "ex" ()) ")" (compound_statement) "{\n clone( ex );\n loc( location );\n }" ({) "{" (expression_statement) "clone( ex );" (call_expression) "clone( ex )" (identifier) "clone" (argument_list) "( ex )" (() "(" (identifier) "ex" ()) ")" (;) ";" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( "failed to allocate array of size $0", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionOutOfMemory" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( "failed to allocate array of size $0", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( "failed to allocate array of size $0", size );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionOutOfMemory( uint64_t size )" (macro_type_specifier) "ASTExceptionOutOfMemory( uint64_t size )" (identifier) "ASTExceptionOutOfMemory" (() "(" (ERROR) "uint64_t" (primitive_type) "uint64_t" (type_descriptor) "size" (type_identifier) "size" ()) ")" (compound_statement) "{\n msg( "failed to allocate array of size $0", size );\n }" ({) "{" (expression_statement) "msg( "failed to allocate array of size $0", size );" (call_expression) "msg( "failed to allocate array of size $0", size )" (identifier) "msg" (argument_list) "( "failed to allocate array of size $0", size )" (() "(" (string_literal) ""failed to allocate array of size $0"" (") """ (string_content) "failed to allocate array of size $0" (") """ (,) "," (identifier) "size" ()) ")" (;) ";" (}) "}" (ERROR) "ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )" (comma_expression) "ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex" (binary_expression) "ASTExceptionOutOfMemory( const yylloc_t& location" (identifier) "ASTExceptionOutOfMemory" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "ASTExceptionOutOfMemory& ex" (identifier) "ASTExceptionOutOfMemory" (&) "&" (identifier) "ex" ()) ")" (compound_statement) "{\n clone( ex );\n loc( location );\n }" ({) "{" (expression_statement) "clone( ex );" (call_expression) "clone( ex )" (identifier) "clone" (argument_list) "( ex )" (() "(" (identifier) "ex" ()) ")" (;) ";" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( "calling dropped subroutine" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionDroppedSubroutine" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( "calling dropped subroutine" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( "calling dropped subroutine" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionDroppedSubroutine( const yylloc_t& location )" (macro_type_specifier) "ASTExceptionDroppedSubroutine( const yylloc_t& location )" (identifier) "ASTExceptionDroppedSubroutine" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (ERROR) "& location" (&) "&" (identifier) "location" ()) ")" (compound_statement) "{\n loc( location );\n msg( "calling dropped subroutine" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "calling dropped subroutine" );" (call_expression) "msg( "calling dropped subroutine" )" (identifier) "msg" (argument_list) "( "calling dropped subroutine" )" (() "(" (string_literal) ""calling dropped subroutine"" (") """ (string_content) "calling dropped subroutine" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }\n}" (type_identifier) "class" (identifier) "ASTExceptionArgTypeMismatch" (ERROR) ": public ASTRuntimeException" (:) ":" (identifier) "public" (identifier) "ASTRuntimeException" (compound_statement) "{\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }\n}" ({) "{" (labeled_statement) "public:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }" (statement_identifier) "public" (:) ":" (ERROR) "ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )" (comma_expression) "ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool" (binary_expression) "ASTExceptionArgTypeMismatch( const yylloc_t& location" (identifier) "ASTExceptionArgTypeMismatch" (ERROR) "( const yylloc_t" (() "(" (type_descriptor) "const yylloc_t" (type_qualifier) "const" (const) "const" (type_identifier) "yylloc_t" (&) "&" (identifier) "location" (,) "," (comma_expression) "uint64_t index, bool" (identifier) "uint64_t" (ERROR) "index" (identifier) "index" (,) "," (identifier) "bool" (identifier) "is_array" ()) ")" (compound_statement) "{\n loc( location );\n msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );\n }" ({) "{" (expression_statement) "loc( location );" (call_expression) "loc( location )" (identifier) "loc" (argument_list) "( location )" (() "(" (identifier) "location" ()) ")" (;) ";" (expression_statement) "msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" );" (call_expression) "msg( "type of vararg $0 is $1", index, is_array ? "array" : "var" )" (identifier) "msg" (argument_list) "( "type of vararg $0 is $1", index, is_array ? "array" : "var" )" (() "(" (string_literal) ""type of vararg $0 is $1"" (") """ (string_content) "type of vararg $0 is $1" (") """ (,) "," (identifier) "index" (,) "," (conditional_expression) "is_array ? "array" : "var"" (identifier) "is_array" (?) "?" (string_literal) ""array"" (") """ (string_content) "array" (") """ (:) ":" (string_literal) ""var"" (") """ (string_content) "var" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////////" (comment) "// class ASTNodeException template functions" (comment) "//////////////////////////////////////////////////////////////////////////////" (expression_statement) "template< typename... ARGS >\ninline" (binary_expression) "template< typename... ARGS >\ninline" (binary_expression) "template< typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... ARGS" (...) "..." (identifier) "ARGS" (>) ">" (identifier) "inline" (;) "" (function_definition) "void ASTException::msg( const char* msg, ARGS... varargs )\n{\n std::vector< std::string > args;\n argreader< ARGS... >::push_args( args, varargs... );\n create_msg( msg, args );\n}" (primitive_type) "void" (ERROR) "ASTException::" (identifier) "ASTException" (:) ":" (:) ":" (function_declarator) "msg( const char* msg, ARGS... varargs )" (identifier) "msg" (parameter_list) "( const char* msg, ARGS... varargs )" (() "(" (parameter_declaration) "const char* msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "ARGS... varargs" (type_identifier) "ARGS" (ERROR) "..." (...) "..." (identifier) "varargs" ()) ")" (compound_statement) "{\n std::vector< std::string > args;\n argreader< ARGS... >::push_args( args, varargs... );\n create_msg( msg, args );\n}" ({) "{" (labeled_statement) "std::vector< std::string > args;" (statement_identifier) "std" (ERROR) "::vector< std:" (:) ":" (:) ":" (binary_expression) "vector< std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string > args;" (binary_expression) "string > args" (identifier) "string" (>) ">" (identifier) "args" (;) ";" (expression_statement) "argreader< ARGS... >::push_args( args, varargs... );" (binary_expression) "argreader< ARGS... >::push_args( args, varargs... )" (binary_expression) "argreader< ARGS" (identifier) "argreader" (<) "<" (identifier) "ARGS" (ERROR) "..." (...) "..." (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "push_args( args, varargs... )" (identifier) "push_args" (argument_list) "( args, varargs... )" (() "(" (identifier) "args" (,) "," (identifier) "varargs" (ERROR) "..." (...) "..." ()) ")" (;) ";" (expression_statement) "create_msg( msg, args );" (call_expression) "create_msg( msg, args )" (identifier) "create_msg" (argument_list) "( msg, args )" (() "(" (identifier) "msg" (,) "," (identifier) "args" ()) ")" (;) ";" (}) "}" (expression_statement) "template< typename T >\nstruct" (binary_expression) "template< typename T >\nstruct" (binary_expression) "template< typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "struct" (;) "" (labeled_statement) "ASTException::argreader< T > {\n static void push_args( std::vector< std::string >& args, const T& t )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }\n}" (statement_identifier) "ASTException" (:) ":" (ERROR) ":argreader< T >" (:) ":" (binary_expression) "argreader< T" (identifier) "argreader" (<) "<" (identifier) "T" (>) ">" (compound_statement) "{\n static void push_args( std::vector< std::string >& args, const T& t )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }\n}" ({) "{" (function_definition) "static void push_args( std::vector< std::string >& args, const T& t )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "push_args( std::vector< std::string >& args, const T& t )" (identifier) "push_args" (parameter_list) "( std::vector< std::string >& args, const T& t )" (() "(" (parameter_declaration) "std::vector< std::string >& args" (type_identifier) "std" (ERROR) "::vector< std::string >&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "args" (,) "," (parameter_declaration) "const T& t" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "t" ()) ")" (compound_statement) "{\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n }" ({) "{" (labeled_statement) "std::ostringstream ostr;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "ostringstream ostr;" (type_identifier) "ostringstream" (identifier) "ostr" (;) ";" (expression_statement) "ostr << t;" (binary_expression) "ostr << t" (identifier) "ostr" (<<) "<<" (identifier) "t" (;) ";" (expression_statement) "args.push_back( ostr.str() );" (call_expression) "args.push_back( ostr.str() )" (field_expression) "args.push_back" (identifier) "args" (.) "." (field_identifier) "push_back" (argument_list) "( ostr.str() )" (() "(" (call_expression) "ostr.str()" (field_expression) "ostr.str" (identifier) "ostr" (.) "." (field_identifier) "str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "template< typename T, typename... ARGS >\nstruct" (comma_expression) "template< typename T, typename... ARGS >\nstruct" (binary_expression) "template< typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (,) "," (binary_expression) "typename... ARGS >\nstruct" (identifier) "typename" (ERROR) "... ARGS" (...) "..." (identifier) "ARGS" (>) ">" (identifier) "struct" (;) "" (labeled_statement) "ASTException::argreader< T, ARGS... > {\n static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }\n}" (statement_identifier) "ASTException" (:) ":" (ERROR) ":argreader< T, ARGS... >" (:) ":" (binary_expression) "argreader< T" (identifier) "argreader" (<) "<" (identifier) "T" (,) "," (identifier) "ARGS" (ERROR) "..." (...) "..." (>) ">" (compound_statement) "{\n static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }\n}" ({) "{" (function_definition) "static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n {\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )" (identifier) "push_args" (parameter_list) "( std::vector< std::string >& args, const T& t, ARGS... varargs )" (() "(" (parameter_declaration) "std::vector< std::string >& args" (type_identifier) "std" (ERROR) "::vector< std::string >&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "args" (,) "," (parameter_declaration) "const T& t" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "t" (,) "," (parameter_declaration) "ARGS... varargs" (type_identifier) "ARGS" (ERROR) "..." (...) "..." (identifier) "varargs" ()) ")" (compound_statement) "{\n std::ostringstream ostr;\n ostr << t;\n args.push_back( ostr.str() );\n\n ASTException::argreader< ARGS... >::push_args( args, varargs... );\n }" ({) "{" (labeled_statement) "std::ostringstream ostr;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "ostringstream ostr;" (type_identifier) "ostringstream" (identifier) "ostr" (;) ";" (expression_statement) "ostr << t;" (binary_expression) "ostr << t" (identifier) "ostr" (<<) "<<" (identifier) "t" (;) ";" (expression_statement) "args.push_back( ostr.str() );" (call_expression) "args.push_back( ostr.str() )" (field_expression) "args.push_back" (identifier) "args" (.) "." (field_identifier) "push_back" (argument_list) "( ostr.str() )" (() "(" (call_expression) "ostr.str()" (field_expression) "ostr.str" (identifier) "ostr" (.) "." (field_identifier) "str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (labeled_statement) "ASTException::argreader< ARGS... >::push_args( args, varargs... );" (statement_identifier) "ASTException" (ERROR) "::argreader< ARGS... >:" (:) ":" (:) ":" (binary_expression) "argreader< ARGS" (identifier) "argreader" (<) "<" (identifier) "ARGS" (ERROR) "..." (...) "..." (>) ">" (:) ":" (:) ":" (expression_statement) "push_args( args, varargs... );" (call_expression) "push_args( args, varargs... )" (identifier) "push_args" (argument_list) "( args, varargs... )" (() "(" (identifier) "args" (,) "," (identifier) "varargs" (ERROR) "..." (...) "..." ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// __mempeek_exceptions_h__"
1,761
104
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 34.25, "nodes": 882, "errors": 0, "source_hash": "4a2183a930a2f3f3a408cc1890145e173063a67cbfc68172f8a380b5d6181144", "categorized_nodes": 584}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __mempeek_exceptions_h__\n#define __mempeek_exceptions_h__\n\n#include \"mempeek_parser.h\"\n\n#include <sstream>\n#include <iomanip>\n#include <string>\n#include <vector>\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTException : public std::exception {\npublic:\n\t~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n \tstatic void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode exception types\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTControlflowException : public ASTException {};\nclass ASTCompileException : public ASTException {};\nclass ASTRuntimeException : public ASTException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode control flow exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionExit : public ASTControlflowException {};\nclass ASTExceptionBreak : public ASTControlflowException {};\nclass ASTExceptionQuit : public ASTControlflowException {};\nclass ASTExceptionTerminate : public ASTControlflowException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode compile exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n\tASTExceptionSyntaxError( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"syntax error\" );\n\t}\n};\n\nclass ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n\tASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"conflicting name \\\"$0\\\"\", name );\n\t}\n};\n\nclass ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n\tASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"using undefined var \\\"$0\\\"\", name );\n\t}\n};\n\nclass ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( \"no return value\" );\n }\n};\n\nclass ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n\tASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std::string device )\n\t{\n\t\tloc( location );\n\t\tstd::ostringstream a, s;\n\t\ta << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n\t s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n\t\tmsg( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device );\n\t}\n};\n\nclass ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n\tASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n\t{\n\t\tloc( location );\n\t\tmsg( \"file \\\"$0\\\" not found\", file );\n\t}\n};\n\nclass ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( \"illegal usage of non-const expression\" );\n }\n};\n\nclass ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode runtime exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n\tASTExceptionDivisionByZero( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"division by zero\" );\n\t}\n};\n\nclass ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n\tASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"no mapping found for $0 bit access to address $1\", size * 8, address );\n\t}\n};\n\nclass ASTExceptionBusError : public ASTRuntimeException {\npublic:\n\tASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"failed $0 bit access to address $1\", size * 8, address );\n\t}\n\n};\n\nclass ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }\n\n ASTExceptionOutOfBounds( uint64_t index, uint64_t size )\n {\n msg( \"index $0 does not match size $1\", index, size );\n }\n\n ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( \"failed to allocate array of size $0\", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( \"calling dropped subroutine\" );\n }\n};\n\nclass ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException template functions\n//////////////////////////////////////////////////////////////////////////////\n\ntemplate< typename... ARGS >\ninline void ASTException::msg( const char* msg, ARGS... varargs )\n{\n\tstd::vector< std::string > args;\n\targreader< ARGS... >::push_args( args, varargs... );\n\tcreate_msg( msg, args );\n}\n\ntemplate< typename T >\nstruct ASTException::argreader< T > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\t}\n};\n\ntemplate< typename T, typename... ARGS >\nstruct ASTException::argreader< T, ARGS... > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\n\t\tASTException::argreader< ARGS... >::push_args( args, varargs... );\n\t}\n};\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 161, 165, 169, 173, 177, 181, 185, 189, 209, 236, 263, 283, 402, 431, 451, 467, 487, 520, 553, 581, 595, 614, 650, 670, 712, 763, 820, 881], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 288, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 2, "type": "identifier", "text": "__mempeek_exceptions_h__", "parent": 0, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define __mempeek_exceptions_h__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 5, "type": "identifier", "text": "__mempeek_exceptions_h__", "parent": 3, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 32}}, {"id": 6, "type": "preproc_include", "text": "#include \"mempeek_parser.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"mempeek_parser.h\"", "parent": 6, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include <sstream>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<sstream>", "parent": 9, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <iomanip>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<iomanip>", "parent": 12, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string>", "parent": 15, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<vector>", "parent": 18, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 17}}, {"id": 21, "type": "function_definition", "text": "class ASTException : public std::exception {\npublic:\n\t~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n \tstatic void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 22, "type": "identifier", "text": "ASTException", "parent": 21, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 18}}, {"id": 23, "type": "ERROR", "text": ": public std::exception", "parent": 21, "children": [24, 25], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 42}}, {"id": 24, "type": "identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 31}}, {"id": 25, "type": "identifier", "text": "exception", "parent": 23, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 42}}, {"id": 26, "type": "labeled_statement", "text": "public:\n\t~ASTException();", "parent": 21, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 17}}, {"id": 27, "type": "unary_expression", "text": "~ASTException()", "parent": 26, "children": [28, 29], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 16}}, {"id": 28, "type": "~", "text": "~", "parent": 27, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 29, "type": "call_expression", "text": "ASTException()", "parent": 27, "children": [30, 31], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 16}}, {"id": 30, "type": "identifier", "text": "ASTException", "parent": 29, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 14}}, {"id": 31, "type": "argument_list", "text": "()", "parent": 29, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 16}}, {"id": 32, "type": "declaration", "text": "const char* what() const noexcept override;", "parent": 21, "children": [33, 34], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 47}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 34, "type": "pointer_declarator", "text": "* what() const noexcept override", "parent": 32, "children": [35, 36], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 46}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 36, "type": "function_declarator", "text": "what() const noexcept override", "parent": 34, "children": [37, 38, 39, 40], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 46}}, {"id": 37, "type": "identifier", "text": "what", "parent": 36, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 38, "type": "parameter_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 22}}, {"id": 39, "type": "identifier", "text": "noexcept", "parent": 36, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 37}}, {"id": 40, "type": "identifier", "text": "override", "parent": 36, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 46}}, {"id": 41, "type": "declaration", "text": "const char* get_location() const;", "parent": 21, "children": [42, 43], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 37}}, {"id": 42, "type": "primitive_type", "text": "char", "parent": 41, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 43, "type": "pointer_declarator", "text": "* get_location() const", "parent": 41, "children": [44, 45], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 36}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 45, "type": "function_declarator", "text": "get_location() const", "parent": 43, "children": [46, 47], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 36}}, {"id": 46, "type": "identifier", "text": "get_location", "parent": 45, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 28}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 30}}, {"id": 48, "type": "labeled_statement", "text": "protected:\n void loc( const yylloc_t& location );", "parent": 21, "children": [49], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 41}}, {"id": 49, "type": "declaration", "text": "void loc( const yylloc_t& location );", "parent": 48, "children": [50, 51], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 41}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 51, "type": "function_declarator", "text": "loc( const yylloc_t& location )", "parent": 49, "children": [52, 53], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 40}}, {"id": 52, "type": "identifier", "text": "loc", "parent": 51, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 12}}, {"id": 53, "type": "parameter_list", "text": "( const yylloc_t& location )", "parent": 51, "children": [54], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 40}}, {"id": 54, "type": "parameter_declaration", "text": "const yylloc_t& location", "parent": 53, "children": [55, 56], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 38}}, {"id": 55, "type": "type_identifier", "text": "yylloc_t", "parent": 54, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 28}}, {"id": 56, "type": "identifier", "text": "location", "parent": 54, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 38}}, {"id": 57, "type": "declaration", "text": "void msg( const char* msg );", "parent": 21, "children": [58, 59], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 32}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 59, "type": "function_declarator", "text": "msg( const char* msg )", "parent": 57, "children": [60, 61], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 31}}, {"id": 60, "type": "identifier", "text": "msg", "parent": 59, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 12}}, {"id": 61, "type": "parameter_list", "text": "( const char* msg )", "parent": 59, "children": [62], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 31}}, {"id": 62, "type": "parameter_declaration", "text": "const char* msg", "parent": 61, "children": [63, 64], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 29}}, {"id": 63, "type": "primitive_type", "text": "char", "parent": 62, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 24}}, {"id": 64, "type": "pointer_declarator", "text": "* msg", "parent": 62, "children": [65, 66], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 29}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 25}}, {"id": 66, "type": "identifier", "text": "msg", "parent": 64, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 29}}, {"id": 67, "type": "declaration", "text": "void clone( const ASTException& ex );", "parent": 21, "children": [68, 69], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 41}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 69, "type": "function_declarator", "text": "clone( const ASTException& ex )", "parent": 67, "children": [70, 71], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 40}}, {"id": 70, "type": "identifier", "text": "clone", "parent": 69, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 14}}, {"id": 71, "type": "parameter_list", "text": "( const ASTException& ex )", "parent": 69, "children": [72], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 40}}, {"id": 72, "type": "parameter_declaration", "text": "const ASTException& ex", "parent": 71, "children": [73, 74], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 38}}, {"id": 73, "type": "type_identifier", "text": "ASTException", "parent": 72, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 34}}, {"id": 74, "type": "identifier", "text": "ex", "parent": 72, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 38}}, {"id": 75, "type": "binary_expression", "text": "template< typename... ARGS >\n void", "parent": 21, "children": [76, 80, 82, 83], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 76, "type": "binary_expression", "text": "template< typename", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 22}}, {"id": 77, "type": "identifier", "text": "template", "parent": 76, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 12}}, {"id": 78, "type": "<", "text": "<", "parent": 76, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 79, "type": "identifier", "text": "typename", "parent": 76, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 22}}, {"id": 80, "type": "ERROR", "text": "... ARGS", "parent": 75, "children": [81], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 30}}, {"id": 81, "type": "identifier", "text": "ARGS", "parent": 80, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 30}}, {"id": 82, "type": ">", "text": ">", "parent": 75, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 83, "type": "identifier", "text": "void", "parent": 75, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 84, "type": "declaration", "text": "msg( const char* msg, ARGS... varargs );", "parent": 21, "children": [85, 91, 92, 94], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 49}}, {"id": 85, "type": "macro_type_specifier", "text": "msg( const char*", "parent": 84, "children": [86, 87], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 25}}, {"id": 86, "type": "identifier", "text": "msg", "parent": 85, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 12}}, {"id": 87, "type": "type_descriptor", "text": "const char*", "parent": 85, "children": [88, 89], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 25}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 24}}, {"id": 89, "type": "abstract_pointer_declarator", "text": "*", "parent": 87, "children": [90], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 25}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 25}}, {"id": 91, "type": "identifier", "text": "msg", "parent": 84, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 92, "type": "ERROR", "text": "ARGS...", "parent": 84, "children": [93], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 38}}, {"id": 93, "type": "identifier", "text": "ARGS", "parent": 92, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 35}}, {"id": 94, "type": "identifier", "text": "varargs", "parent": 84, "children": [], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 46}}, {"id": 95, "type": "labeled_statement", "text": "private:\n void create_msg( const char* msg, std::vector< std::string >& args );", "parent": 21, "children": [96], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 73}}, {"id": 96, "type": "declaration", "text": "void create_msg( const char* msg, std::vector< std::string >& args );", "parent": 95, "children": [97, 98], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 73}}, {"id": 97, "type": "primitive_type", "text": "void", "parent": 96, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 98, "type": "function_declarator", "text": "create_msg( const char* msg, std::vector< std::string >& args )", "parent": 96, "children": [99, 100], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 72}}, {"id": 99, "type": "identifier", "text": "create_msg", "parent": 98, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 19}}, {"id": 100, "type": "parameter_list", "text": "( const char* msg, std::vector< std::string >& args )", "parent": 98, "children": [101, 106], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 72}}, {"id": 101, "type": "parameter_declaration", "text": "const char* msg", "parent": 100, "children": [102, 103], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 36}}, {"id": 102, "type": "primitive_type", "text": "char", "parent": 101, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 31}}, {"id": 103, "type": "pointer_declarator", "text": "* msg", "parent": 101, "children": [104, 105], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 36}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 32}}, {"id": 105, "type": "identifier", "text": "msg", "parent": 103, "children": [], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 36}}, {"id": 106, "type": "parameter_declaration", "text": "std::vector< std::string >& args", "parent": 100, "children": [107, 108, 114], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 70}}, {"id": 107, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 41}}, {"id": 108, "type": "ERROR", "text": "::vector< std::string >&", "parent": 106, "children": [109, 110, 111, 112, 113], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 65}}, {"id": 109, "type": "identifier", "text": "vector", "parent": 108, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 49}}, {"id": 110, "type": "<", "text": "<", "parent": 108, "children": [], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 50}}, {"id": 111, "type": "identifier", "text": "std", "parent": 108, "children": [], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 54}}, {"id": 112, "type": "identifier", "text": "string", "parent": 108, "children": [], "start_point": {"row": 57, "column": 56}, "end_point": {"row": 57, "column": 62}}, {"id": 113, "type": ">", "text": ">", "parent": 108, "children": [], "start_point": {"row": 57, "column": 63}, "end_point": {"row": 57, "column": 64}}, {"id": 114, "type": "identifier", "text": "args", "parent": 106, "children": [], "start_point": {"row": 57, "column": 66}, "end_point": {"row": 57, "column": 70}}, {"id": 115, "type": "ERROR", "text": "template < typename... ARGS >\n struct argreader", "parent": 21, "children": [116, 125], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 60, "column": 20}}, {"id": 116, "type": "binary_expression", "text": "template < typename... ARGS >\n struct", "parent": 115, "children": [117, 121, 123, 124], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 60, "column": 10}}, {"id": 117, "type": "binary_expression", "text": "template < typename", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 23}}, {"id": 118, "type": "identifier", "text": "template", "parent": 117, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 119, "type": "<", "text": "<", "parent": 117, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 120, "type": "identifier", "text": "typename", "parent": 117, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 23}}, {"id": 121, "type": "ERROR", "text": "... ARGS", "parent": 116, "children": [122], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 31}}, {"id": 122, "type": "identifier", "text": "ARGS", "parent": 121, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 31}}, {"id": 123, "type": ">", "text": ">", "parent": 116, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 33}}, {"id": 124, "type": "identifier", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 10}}, {"id": 125, "type": "identifier", "text": "argreader", "parent": 115, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 20}}, {"id": 126, "type": "declaration", "text": "static void push_args( std::vector< std::string >& args, ARGS... varargs );", "parent": 21, "children": [127, 128], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 80}}, {"id": 127, "type": "primitive_type", "text": "void", "parent": 126, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 16}}, {"id": 128, "type": "function_declarator", "text": "push_args( std::vector< std::string >& args, ARGS... varargs )", "parent": 126, "children": [129, 130], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 79}}, {"id": 129, "type": "identifier", "text": "push_args", "parent": 128, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 26}}, {"id": 130, "type": "parameter_list", "text": "( std::vector< std::string >& args, ARGS... varargs )", "parent": 128, "children": [131, 140], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 79}}, {"id": 131, "type": "parameter_declaration", "text": "std::vector< std::string >& args", "parent": 130, "children": [132, 133, 139], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 60}}, {"id": 132, "type": "type_identifier", "text": "std", "parent": 131, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 31}}, {"id": 133, "type": "ERROR", "text": "::vector< std::string >&", "parent": 131, "children": [134, 135, 136, 137, 138], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 55}}, {"id": 134, "type": "identifier", "text": "vector", "parent": 133, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 39}}, {"id": 135, "type": "<", "text": "<", "parent": 133, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 40}}, {"id": 136, "type": "identifier", "text": "std", "parent": 133, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 44}}, {"id": 137, "type": "identifier", "text": "string", "parent": 133, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 52}}, {"id": 138, "type": ">", "text": ">", "parent": 133, "children": [], "start_point": {"row": 61, "column": 53}, "end_point": {"row": 61, "column": 54}}, {"id": 139, "type": "identifier", "text": "args", "parent": 131, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 60}}, {"id": 140, "type": "parameter_declaration", "text": "ARGS... varargs", "parent": 130, "children": [141, 142], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 61, "column": 77}}, {"id": 141, "type": "type_identifier", "text": "ARGS", "parent": 140, "children": [], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 61, "column": 66}}, {"id": 142, "type": "identifier", "text": "varargs", "parent": 140, "children": [], "start_point": {"row": 61, "column": 70}, "end_point": {"row": 61, "column": 77}}, {"id": 143, "type": "declaration", "text": "const char* m_Location = nullptr;", "parent": 21, "children": [144, 145], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 37}}, {"id": 144, "type": "primitive_type", "text": "char", "parent": 143, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 14}}, {"id": 145, "type": "init_declarator", "text": "* m_Location = nullptr", "parent": 143, "children": [146, 149, 150], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 36}}, {"id": 146, "type": "pointer_declarator", "text": "* m_Location", "parent": 145, "children": [147, 148], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 26}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 148, "type": "identifier", "text": "m_Location", "parent": 146, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 26}}, {"id": 149, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 28}}, {"id": 150, "type": "null", "text": "nullptr", "parent": 145, "children": [151], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 36}}, {"id": 151, "type": "nullptr", "text": "nullptr", "parent": 150, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 36}}, {"id": 152, "type": "declaration", "text": "const char* m_What = nullptr;", "parent": 21, "children": [153, 154], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 33}}, {"id": 153, "type": "primitive_type", "text": "char", "parent": 152, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 14}}, {"id": 154, "type": "init_declarator", "text": "* m_What = nullptr", "parent": 152, "children": [155, 158, 159], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 32}}, {"id": 155, "type": "pointer_declarator", "text": "* m_What", "parent": 154, "children": [156, 157], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 22}}, {"id": 156, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 157, "type": "identifier", "text": "m_What", "parent": 155, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 22}}, {"id": 158, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 24}}, {"id": 159, "type": "null", "text": "nullptr", "parent": 154, "children": [160], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 32}}, {"id": 160, "type": "nullptr", "text": "nullptr", "parent": 159, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 32}}, {"id": 161, "type": "function_definition", "text": "class ASTControlflowException : public ASTException {}", "parent": 0, "children": [162, 163], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 54}}, {"id": 162, "type": "identifier", "text": "ASTControlflowException", "parent": 161, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 29}}, {"id": 163, "type": "ERROR", "text": ": public ASTException", "parent": 161, "children": [164], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 51}}, {"id": 164, "type": "identifier", "text": "ASTException", "parent": 163, "children": [], "start_point": {"row": 73, "column": 39}, "end_point": {"row": 73, "column": 51}}, {"id": 165, "type": "function_definition", "text": "class ASTCompileException : public ASTException {}", "parent": 0, "children": [166, 167], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 50}}, {"id": 166, "type": "identifier", "text": "ASTCompileException", "parent": 165, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 25}}, {"id": 167, "type": "ERROR", "text": ": public ASTException", "parent": 165, "children": [168], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 47}}, {"id": 168, "type": "identifier", "text": "ASTException", "parent": 167, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 47}}, {"id": 169, "type": "function_definition", "text": "class ASTRuntimeException : public ASTException {}", "parent": 0, "children": [170, 171], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 50}}, {"id": 170, "type": "identifier", "text": "ASTRuntimeException", "parent": 169, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 25}}, {"id": 171, "type": "ERROR", "text": ": public ASTException", "parent": 169, "children": [172], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 47}}, {"id": 172, "type": "identifier", "text": "ASTException", "parent": 171, "children": [], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 47}}, {"id": 173, "type": "function_definition", "text": "class ASTExceptionExit : public ASTControlflowException {}", "parent": 0, "children": [174, 176], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 58}}, {"id": 174, "type": "ERROR", "text": "ASTExceptionExit : public", "parent": 173, "children": [175], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 31}}, {"id": 175, "type": "identifier", "text": "ASTExceptionExit", "parent": 174, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 22}}, {"id": 176, "type": "identifier", "text": "ASTControlflowException", "parent": 173, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 55}}, {"id": 177, "type": "function_definition", "text": "class ASTExceptionBreak : public ASTControlflowException {}", "parent": 0, "children": [178, 180], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 59}}, {"id": 178, "type": "ERROR", "text": "ASTExceptionBreak : public", "parent": 177, "children": [179], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 32}}, {"id": 179, "type": "identifier", "text": "ASTExceptionBreak", "parent": 178, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 23}}, {"id": 180, "type": "identifier", "text": "ASTControlflowException", "parent": 177, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 56}}, {"id": 181, "type": "function_definition", "text": "class ASTExceptionQuit : public ASTControlflowException {}", "parent": 0, "children": [182, 184], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 58}}, {"id": 182, "type": "ERROR", "text": "ASTExceptionQuit : public", "parent": 181, "children": [183], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 31}}, {"id": 183, "type": "identifier", "text": "ASTExceptionQuit", "parent": 182, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 22}}, {"id": 184, "type": "identifier", "text": "ASTControlflowException", "parent": 181, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 55}}, {"id": 185, "type": "function_definition", "text": "class ASTExceptionTerminate : public ASTControlflowException {}", "parent": 0, "children": [186, 188], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 63}}, {"id": 186, "type": "ERROR", "text": "ASTExceptionTerminate : public", "parent": 185, "children": [187], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 36}}, {"id": 187, "type": "identifier", "text": "ASTExceptionTerminate", "parent": 186, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 27}}, {"id": 188, "type": "identifier", "text": "ASTControlflowException", "parent": 185, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 60}}, {"id": 189, "type": "function_definition", "text": "class ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n\tASTExceptionSyntaxError( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"syntax error\" );\n\t}\n}", "parent": 0, "children": [190, 191], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 190, "type": "identifier", "text": "ASTExceptionSyntaxError", "parent": 189, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 29}}, {"id": 191, "type": "ERROR", "text": ": public ASTCompileException", "parent": 189, "children": [192], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 58}}, {"id": 192, "type": "identifier", "text": "ASTCompileException", "parent": 191, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 58}}, {"id": 193, "type": "labeled_statement", "text": "public:\n\tASTExceptionSyntaxError( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"syntax error\" );\n\t}", "parent": 189, "children": [194], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 98, "column": 2}}, {"id": 194, "type": "ERROR", "text": "ASTExceptionSyntaxError( const yylloc_t& location )", "parent": 193, "children": [195], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 52}}, {"id": 195, "type": "macro_type_specifier", "text": "ASTExceptionSyntaxError( const yylloc_t& location )", "parent": 194, "children": [196, 197, 199], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 52}}, {"id": 196, "type": "identifier", "text": "ASTExceptionSyntaxError", "parent": 195, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 24}}, {"id": 197, "type": "type_descriptor", "text": "const yylloc_t", "parent": 195, "children": [198], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 40}}, {"id": 198, "type": "type_identifier", "text": "yylloc_t", "parent": 197, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 40}}, {"id": 199, "type": "ERROR", "text": "& location", "parent": 195, "children": [200], "start_point": {"row": 94, "column": 40}, "end_point": {"row": 94, "column": 50}}, {"id": 200, "type": "identifier", "text": "location", "parent": 199, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 50}}, {"id": 201, "type": "call_expression", "text": "loc( location )", "parent": 193, "children": [202, 203], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 17}}, {"id": 202, "type": "identifier", "text": "loc", "parent": 201, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 5}}, {"id": 203, "type": "argument_list", "text": "( location )", "parent": 201, "children": [204], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 17}}, {"id": 204, "type": "identifier", "text": "location", "parent": 203, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 15}}, {"id": 205, "type": "call_expression", "text": "msg( \"syntax error\" )", "parent": 193, "children": [206, 207], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 23}}, {"id": 206, "type": "identifier", "text": "msg", "parent": 205, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 5}}, {"id": 207, "type": "argument_list", "text": "( \"syntax error\" )", "parent": 205, "children": [208], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 23}}, {"id": 208, "type": "string_literal", "text": "\"syntax error\"", "parent": 207, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 21}}, {"id": 209, "type": "function_definition", "text": "class ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n\tASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"conflicting name \\\"$0\\\"\", name );\n\t}\n}", "parent": 0, "children": [210, 211], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 210, "type": "identifier", "text": "ASTExceptionNamingConflict", "parent": 209, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 32}}, {"id": 211, "type": "ERROR", "text": ": public ASTCompileException", "parent": 209, "children": [212], "start_point": {"row": 101, "column": 33}, "end_point": {"row": 101, "column": 61}}, {"id": 212, "type": "identifier", "text": "ASTCompileException", "parent": 211, "children": [], "start_point": {"row": 101, "column": 42}, "end_point": {"row": 101, "column": 61}}, {"id": 213, "type": "labeled_statement", "text": "public:\n\tASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"conflicting name \\\"$0\\\"\", name );\n\t}", "parent": 209, "children": [214], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 107, "column": 2}}, {"id": 214, "type": "ERROR", "text": "ASTExceptionNamingConflict( const yylloc_t& location, std::string name )", "parent": 213, "children": [215, 223, 224], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 73}}, {"id": 215, "type": "comma_expression", "text": "ASTExceptionNamingConflict( const yylloc_t& location, std", "parent": 214, "children": [216, 222], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 58}}, {"id": 216, "type": "binary_expression", "text": "ASTExceptionNamingConflict( const yylloc_t& location", "parent": 215, "children": [217, 218, 221], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 53}}, {"id": 217, "type": "identifier", "text": "ASTExceptionNamingConflict", "parent": 216, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 27}}, {"id": 218, "type": "ERROR", "text": "( const yylloc_t", "parent": 216, "children": [219], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 43}}, {"id": 219, "type": "type_descriptor", "text": "const yylloc_t", "parent": 218, "children": [220], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 43}}, {"id": 220, "type": "type_identifier", "text": "yylloc_t", "parent": 219, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 43}}, {"id": 221, "type": "identifier", "text": "location", "parent": 216, "children": [], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 53}}, {"id": 222, "type": "identifier", "text": "std", "parent": 215, "children": [], "start_point": {"row": 103, "column": 55}, "end_point": {"row": 103, "column": 58}}, {"id": 223, "type": "type_identifier", "text": "string", "parent": 214, "children": [], "start_point": {"row": 103, "column": 60}, "end_point": {"row": 103, "column": 66}}, {"id": 224, "type": "identifier", "text": "name", "parent": 214, "children": [], "start_point": {"row": 103, "column": 67}, "end_point": {"row": 103, "column": 71}}, {"id": 225, "type": "call_expression", "text": "loc( location )", "parent": 213, "children": [226, 227], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 17}}, {"id": 226, "type": "identifier", "text": "loc", "parent": 225, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 5}}, {"id": 227, "type": "argument_list", "text": "( location )", "parent": 225, "children": [228], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 17}}, {"id": 228, "type": "identifier", "text": "location", "parent": 227, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 15}}, {"id": 229, "type": "call_expression", "text": "msg( \"conflicting name \\\"$0\\\"\", name )", "parent": 213, "children": [230, 231], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 40}}, {"id": 230, "type": "identifier", "text": "msg", "parent": 229, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 5}}, {"id": 231, "type": "argument_list", "text": "( \"conflicting name \\\"$0\\\"\", name )", "parent": 229, "children": [232, 235], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 40}}, {"id": 232, "type": "string_literal", "text": "\"conflicting name \\\"$0\\\"\"", "parent": 231, "children": [233, 234], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 32}}, {"id": 233, "type": "escape_sequence", "text": "\\\"", "parent": 232, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 27}}, {"id": 234, "type": "escape_sequence", "text": "\\\"", "parent": 232, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 31}}, {"id": 235, "type": "identifier", "text": "name", "parent": 231, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 38}}, {"id": 236, "type": "function_definition", "text": "class ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n\tASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"using undefined var \\\"$0\\\"\", name );\n\t}\n}", "parent": 0, "children": [237, 238], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 117, "column": 1}}, {"id": 237, "type": "identifier", "text": "ASTExceptionUndefinedVar", "parent": 236, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 30}}, {"id": 238, "type": "ERROR", "text": ": public ASTCompileException", "parent": 236, "children": [239], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 59}}, {"id": 239, "type": "identifier", "text": "ASTCompileException", "parent": 238, "children": [], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 59}}, {"id": 240, "type": "labeled_statement", "text": "public:\n\tASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"using undefined var \\\"$0\\\"\", name );\n\t}", "parent": 236, "children": [241], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 116, "column": 2}}, {"id": 241, "type": "ERROR", "text": "ASTExceptionUndefinedVar( const yylloc_t& location, std::string name )", "parent": 240, "children": [242, 250, 251], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 71}}, {"id": 242, "type": "comma_expression", "text": "ASTExceptionUndefinedVar( const yylloc_t& location, std", "parent": 241, "children": [243, 249], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 56}}, {"id": 243, "type": "binary_expression", "text": "ASTExceptionUndefinedVar( const yylloc_t& location", "parent": 242, "children": [244, 245, 248], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 51}}, {"id": 244, "type": "identifier", "text": "ASTExceptionUndefinedVar", "parent": 243, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 25}}, {"id": 245, "type": "ERROR", "text": "( const yylloc_t", "parent": 243, "children": [246], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 41}}, {"id": 246, "type": "type_descriptor", "text": "const yylloc_t", "parent": 245, "children": [247], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 41}}, {"id": 247, "type": "type_identifier", "text": "yylloc_t", "parent": 246, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 41}}, {"id": 248, "type": "identifier", "text": "location", "parent": 243, "children": [], "start_point": {"row": 112, "column": 43}, "end_point": {"row": 112, "column": 51}}, {"id": 249, "type": "identifier", "text": "std", "parent": 242, "children": [], "start_point": {"row": 112, "column": 53}, "end_point": {"row": 112, "column": 56}}, {"id": 250, "type": "type_identifier", "text": "string", "parent": 241, "children": [], "start_point": {"row": 112, "column": 58}, "end_point": {"row": 112, "column": 64}}, {"id": 251, "type": "identifier", "text": "name", "parent": 241, "children": [], "start_point": {"row": 112, "column": 65}, "end_point": {"row": 112, "column": 69}}, {"id": 252, "type": "call_expression", "text": "loc( location )", "parent": 240, "children": [253, 254], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 17}}, {"id": 253, "type": "identifier", "text": "loc", "parent": 252, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 5}}, {"id": 254, "type": "argument_list", "text": "( location )", "parent": 252, "children": [255], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 17}}, {"id": 255, "type": "identifier", "text": "location", "parent": 254, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 15}}, {"id": 256, "type": "call_expression", "text": "msg( \"using undefined var \\\"$0\\\"\", name )", "parent": 240, "children": [257, 258], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 43}}, {"id": 257, "type": "identifier", "text": "msg", "parent": 256, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 5}}, {"id": 258, "type": "argument_list", "text": "( \"using undefined var \\\"$0\\\"\", name )", "parent": 256, "children": [259, 262], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 43}}, {"id": 259, "type": "string_literal", "text": "\"using undefined var \\\"$0\\\"\"", "parent": 258, "children": [260, 261], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 35}}, {"id": 260, "type": "escape_sequence", "text": "\\\"", "parent": 259, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 30}}, {"id": 261, "type": "escape_sequence", "text": "\\\"", "parent": 259, "children": [], "start_point": {"row": 115, "column": 32}, "end_point": {"row": 115, "column": 34}}, {"id": 262, "type": "identifier", "text": "name", "parent": 258, "children": [], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 41}}, {"id": 263, "type": "function_definition", "text": "class ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( \"no return value\" );\n }\n}", "parent": 0, "children": [264, 265], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 126, "column": 1}}, {"id": 264, "type": "identifier", "text": "ASTExceptionNoReturnValue", "parent": 263, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 31}}, {"id": 265, "type": "ERROR", "text": ": public ASTCompileException", "parent": 263, "children": [266], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 60}}, {"id": 266, "type": "identifier", "text": "ASTCompileException", "parent": 265, "children": [], "start_point": {"row": 119, "column": 41}, "end_point": {"row": 119, "column": 60}}, {"id": 267, "type": "labeled_statement", "text": "public:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( \"no return value\" );\n }", "parent": 263, "children": [268], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 125, "column": 5}}, {"id": 268, "type": "ERROR", "text": "ASTExceptionNoReturnValue( const yylloc_t& location )", "parent": 267, "children": [269], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 57}}, {"id": 269, "type": "macro_type_specifier", "text": "ASTExceptionNoReturnValue( const yylloc_t& location )", "parent": 268, "children": [270, 271, 273], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 57}}, {"id": 270, "type": "identifier", "text": "ASTExceptionNoReturnValue", "parent": 269, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 29}}, {"id": 271, "type": "type_descriptor", "text": "const yylloc_t", "parent": 269, "children": [272], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 45}}, {"id": 272, "type": "type_identifier", "text": "yylloc_t", "parent": 271, "children": [], "start_point": {"row": 121, "column": 37}, "end_point": {"row": 121, "column": 45}}, {"id": 273, "type": "ERROR", "text": "& location", "parent": 269, "children": [274], "start_point": {"row": 121, "column": 45}, "end_point": {"row": 121, "column": 55}}, {"id": 274, "type": "identifier", "text": "location", "parent": 273, "children": [], "start_point": {"row": 121, "column": 47}, "end_point": {"row": 121, "column": 55}}, {"id": 275, "type": "call_expression", "text": "loc( location )", "parent": 267, "children": [276, 277], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 23}}, {"id": 276, "type": "identifier", "text": "loc", "parent": 275, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 11}}, {"id": 277, "type": "argument_list", "text": "( location )", "parent": 275, "children": [278], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 23}}, {"id": 278, "type": "identifier", "text": "location", "parent": 277, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 21}}, {"id": 279, "type": "call_expression", "text": "msg( \"no return value\" )", "parent": 267, "children": [280, 281], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 32}}, {"id": 280, "type": "identifier", "text": "msg", "parent": 279, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 11}}, {"id": 281, "type": "argument_list", "text": "( \"no return value\" )", "parent": 279, "children": [282], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 32}}, {"id": 282, "type": "string_literal", "text": "\"no return value\"", "parent": 281, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 30}}, {"id": 283, "type": "function_definition", "text": "class ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n\tASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std::string device )\n\t{\n\t\tloc( location );\n\t\tstd::ostringstream a, s;\n\t\ta << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n\t s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n\t\tmsg( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device );\n\t}\n}", "parent": 0, "children": [284, 285], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 284, "type": "identifier", "text": "ASTExceptionMappingFailure", "parent": 283, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 32}}, {"id": 285, "type": "ERROR", "text": ": public ASTCompileException", "parent": 283, "children": [286], "start_point": {"row": 128, "column": 33}, "end_point": {"row": 128, "column": 61}}, {"id": 286, "type": "identifier", "text": "ASTCompileException", "parent": 285, "children": [], "start_point": {"row": 128, "column": 42}, "end_point": {"row": 128, "column": 61}}, {"id": 287, "type": "labeled_statement", "text": "public:\n\tASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std::string device )\n\t{\n\t\tloc( location );\n\t\tstd::ostringstream a, s;\n\t\ta << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n\t s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n\t\tmsg( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device );\n\t}", "parent": 283, "children": [288], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 138, "column": 2}}, {"id": 288, "type": "ERROR", "text": "ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std::string device )", "parent": 287, "children": [289, 305, 306], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 131, "column": 43}}, {"id": 289, "type": "comma_expression", "text": "ASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std", "parent": 288, "children": [290, 296], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 131, "column": 26}}, {"id": 290, "type": "binary_expression", "text": "ASTExceptionMappingFailure( const yylloc_t& location", "parent": 289, "children": [291, 292, 295], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 53}}, {"id": 291, "type": "identifier", "text": "ASTExceptionMappingFailure", "parent": 290, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 27}}, {"id": 292, "type": "ERROR", "text": "( const yylloc_t", "parent": 290, "children": [293], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 43}}, {"id": 293, "type": "type_descriptor", "text": "const yylloc_t", "parent": 292, "children": [294], "start_point": {"row": 130, "column": 29}, "end_point": {"row": 130, "column": 43}}, {"id": 294, "type": "type_identifier", "text": "yylloc_t", "parent": 293, "children": [], "start_point": {"row": 130, "column": 35}, "end_point": {"row": 130, "column": 43}}, {"id": 295, "type": "identifier", "text": "location", "parent": 290, "children": [], "start_point": {"row": 130, "column": 45}, "end_point": {"row": 130, "column": 53}}, {"id": 296, "type": "comma_expression", "text": "uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std", "parent": 289, "children": [297, 298, 300], "start_point": {"row": 130, "column": 55}, "end_point": {"row": 131, "column": 26}}, {"id": 297, "type": "identifier", "text": "uint64_t", "parent": 296, "children": [], "start_point": {"row": 130, "column": 55}, "end_point": {"row": 130, "column": 63}}, {"id": 298, "type": "ERROR", "text": "address", "parent": 296, "children": [299], "start_point": {"row": 130, "column": 64}, "end_point": {"row": 130, "column": 71}}, {"id": 299, "type": "identifier", "text": "address", "parent": 298, "children": [], "start_point": {"row": 130, "column": 64}, "end_point": {"row": 130, "column": 71}}, {"id": 300, "type": "comma_expression", "text": "uint64_t size, std", "parent": 296, "children": [301, 302, 304], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 26}}, {"id": 301, "type": "identifier", "text": "uint64_t", "parent": 300, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 16}}, {"id": 302, "type": "ERROR", "text": "size", "parent": 300, "children": [303], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 21}}, {"id": 303, "type": "identifier", "text": "size", "parent": 302, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 21}}, {"id": 304, "type": "identifier", "text": "std", "parent": 300, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 26}}, {"id": 305, "type": "identifier", "text": "string", "parent": 288, "children": [], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 34}}, {"id": 306, "type": "identifier", "text": "device", "parent": 288, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 41}}, {"id": 307, "type": "call_expression", "text": "loc( location )", "parent": 287, "children": [308, 309], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 17}}, {"id": 308, "type": "identifier", "text": "loc", "parent": 307, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 5}}, {"id": 309, "type": "argument_list", "text": "( location )", "parent": 307, "children": [310], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 17}}, {"id": 310, "type": "identifier", "text": "location", "parent": 309, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 15}}, {"id": 311, "type": "labeled_statement", "text": "std::ostringstream a, s;", "parent": 287, "children": [312, 313], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 26}}, {"id": 312, "type": "statement_identifier", "text": "std", "parent": 311, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 5}}, {"id": 313, "type": "declaration", "text": "ostringstream a, s;", "parent": 311, "children": [314, 315, 316], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 26}}, {"id": 314, "type": "type_identifier", "text": "ostringstream", "parent": 313, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 20}}, {"id": 315, "type": "identifier", "text": "a", "parent": 313, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 22}}, {"id": 316, "type": "identifier", "text": "s", "parent": 313, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 25}}, {"id": 317, "type": "ERROR", "text": "a << std::hex << std::setw( sizeof(void*) * 2 ) << std::", "parent": 287, "children": [318, 327], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 58}}, {"id": 318, "type": "binary_expression", "text": "a << std::hex << std", "parent": 317, "children": [319, 323, 325, 326], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 22}}, {"id": 319, "type": "binary_expression", "text": "a << std", "parent": 318, "children": [320, 321, 322], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 10}}, {"id": 320, "type": "identifier", "text": "a", "parent": 319, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 3}}, {"id": 321, "type": "<<", "text": "<<", "parent": 319, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 6}}, {"id": 322, "type": "identifier", "text": "std", "parent": 319, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 10}}, {"id": 323, "type": "ERROR", "text": "::hex", "parent": 318, "children": [324], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 15}}, {"id": 324, "type": "identifier", "text": "hex", "parent": 323, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 15}}, {"id": 325, "type": "<<", "text": "<<", "parent": 318, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 18}}, {"id": 326, "type": "identifier", "text": "std", "parent": 318, "children": [], "start_point": {"row": 135, "column": 19}, "end_point": {"row": 135, "column": 22}}, {"id": 327, "type": "binary_expression", "text": "setw( sizeof(void*) * 2 ) << std", "parent": 317, "children": [328, 339, 340], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 56}}, {"id": 328, "type": "call_expression", "text": "setw( sizeof(void*) * 2 )", "parent": 327, "children": [329, 330], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 49}}, {"id": 329, "type": "identifier", "text": "setw", "parent": 328, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 28}}, {"id": 330, "type": "argument_list", "text": "( sizeof(void*) * 2 )", "parent": 328, "children": [331], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 135, "column": 49}}, {"id": 331, "type": "binary_expression", "text": "sizeof(void*) * 2", "parent": 330, "children": [332, 337, 338], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 135, "column": 47}}, {"id": 332, "type": "sizeof_expression", "text": "sizeof(void*)", "parent": 331, "children": [333], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 135, "column": 43}}, {"id": 333, "type": "type_descriptor", "text": "void*", "parent": 332, "children": [334, 335], "start_point": {"row": 135, "column": 37}, "end_point": {"row": 135, "column": 42}}, {"id": 334, "type": "primitive_type", "text": "void", "parent": 333, "children": [], "start_point": {"row": 135, "column": 37}, "end_point": {"row": 135, "column": 41}}, {"id": 335, "type": "abstract_pointer_declarator", "text": "*", "parent": 333, "children": [336], "start_point": {"row": 135, "column": 41}, "end_point": {"row": 135, "column": 42}}, {"id": 336, "type": "*", "text": "*", "parent": 335, "children": [], "start_point": {"row": 135, "column": 41}, "end_point": {"row": 135, "column": 42}}, {"id": 337, "type": "*", "text": "*", "parent": 331, "children": [], "start_point": {"row": 135, "column": 44}, "end_point": {"row": 135, "column": 45}}, {"id": 338, "type": "number_literal", "text": "2", "parent": 331, "children": [], "start_point": {"row": 135, "column": 46}, "end_point": {"row": 135, "column": 47}}, {"id": 339, "type": "<<", "text": "<<", "parent": 327, "children": [], "start_point": {"row": 135, "column": 50}, "end_point": {"row": 135, "column": 52}}, {"id": 340, "type": "identifier", "text": "std", "parent": 327, "children": [], "start_point": {"row": 135, "column": 53}, "end_point": {"row": 135, "column": 56}}, {"id": 341, "type": "binary_expression", "text": "setfill( '0' ) << address", "parent": 287, "children": [342, 349, 350], "start_point": {"row": 135, "column": 58}, "end_point": {"row": 135, "column": 83}}, {"id": 342, "type": "call_expression", "text": "setfill( '0' )", "parent": 341, "children": [343, 344], "start_point": {"row": 135, "column": 58}, "end_point": {"row": 135, "column": 72}}, {"id": 343, "type": "identifier", "text": "setfill", "parent": 342, "children": [], "start_point": {"row": 135, "column": 58}, "end_point": {"row": 135, "column": 65}}, {"id": 344, "type": "argument_list", "text": "( '0' )", "parent": 342, "children": [345], "start_point": {"row": 135, "column": 65}, "end_point": {"row": 135, "column": 72}}, {"id": 345, "type": "char_literal", "text": "'0'", "parent": 344, "children": [346, 347, 348], "start_point": {"row": 135, "column": 67}, "end_point": {"row": 135, "column": 70}}, {"id": 346, "type": "'", "text": "'", "parent": 345, "children": [], "start_point": {"row": 135, "column": 67}, "end_point": {"row": 135, "column": 68}}, {"id": 347, "type": "character", "text": "0", "parent": 345, "children": [], "start_point": {"row": 135, "column": 68}, "end_point": {"row": 135, "column": 69}}, {"id": 348, "type": "'", "text": "'", "parent": 345, "children": [], "start_point": {"row": 135, "column": 69}, "end_point": {"row": 135, "column": 70}}, {"id": 349, "type": "<<", "text": "<<", "parent": 341, "children": [], "start_point": {"row": 135, "column": 73}, "end_point": {"row": 135, "column": 75}}, {"id": 350, "type": "identifier", "text": "address", "parent": 341, "children": [], "start_point": {"row": 135, "column": 76}, "end_point": {"row": 135, "column": 83}}, {"id": 351, "type": "ERROR", "text": "s << std::hex << std::setw( sizeof(void*) * 2 ) << std::", "parent": 287, "children": [352, 361], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 61}}, {"id": 352, "type": "binary_expression", "text": "s << std::hex << std", "parent": 351, "children": [353, 357, 359, 360], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 25}}, {"id": 353, "type": "binary_expression", "text": "s << std", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 13}}, {"id": 354, "type": "identifier", "text": "s", "parent": 353, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 6}}, {"id": 355, "type": "<<", "text": "<<", "parent": 353, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 9}}, {"id": 356, "type": "identifier", "text": "std", "parent": 353, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 13}}, {"id": 357, "type": "ERROR", "text": "::hex", "parent": 352, "children": [358], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 18}}, {"id": 358, "type": "identifier", "text": "hex", "parent": 357, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 18}}, {"id": 359, "type": "<<", "text": "<<", "parent": 352, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 21}}, {"id": 360, "type": "identifier", "text": "std", "parent": 352, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 25}}, {"id": 361, "type": "binary_expression", "text": "setw( sizeof(void*) * 2 ) << std", "parent": 351, "children": [362, 373, 374], "start_point": {"row": 136, "column": 27}, "end_point": {"row": 136, "column": 59}}, {"id": 362, "type": "call_expression", "text": "setw( sizeof(void*) * 2 )", "parent": 361, "children": [363, 364], "start_point": {"row": 136, "column": 27}, "end_point": {"row": 136, "column": 52}}, {"id": 363, "type": "identifier", "text": "setw", "parent": 362, "children": [], "start_point": {"row": 136, "column": 27}, "end_point": {"row": 136, "column": 31}}, {"id": 364, "type": "argument_list", "text": "( sizeof(void*) * 2 )", "parent": 362, "children": [365], "start_point": {"row": 136, "column": 31}, "end_point": {"row": 136, "column": 52}}, {"id": 365, "type": "binary_expression", "text": "sizeof(void*) * 2", "parent": 364, "children": [366, 371, 372], "start_point": {"row": 136, "column": 33}, "end_point": {"row": 136, "column": 50}}, {"id": 366, "type": "sizeof_expression", "text": "sizeof(void*)", "parent": 365, "children": [367], "start_point": {"row": 136, "column": 33}, "end_point": {"row": 136, "column": 46}}, {"id": 367, "type": "type_descriptor", "text": "void*", "parent": 366, "children": [368, 369], "start_point": {"row": 136, "column": 40}, "end_point": {"row": 136, "column": 45}}, {"id": 368, "type": "primitive_type", "text": "void", "parent": 367, "children": [], "start_point": {"row": 136, "column": 40}, "end_point": {"row": 136, "column": 44}}, {"id": 369, "type": "abstract_pointer_declarator", "text": "*", "parent": 367, "children": [370], "start_point": {"row": 136, "column": 44}, "end_point": {"row": 136, "column": 45}}, {"id": 370, "type": "*", "text": "*", "parent": 369, "children": [], "start_point": {"row": 136, "column": 44}, "end_point": {"row": 136, "column": 45}}, {"id": 371, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 136, "column": 47}, "end_point": {"row": 136, "column": 48}}, {"id": 372, "type": "number_literal", "text": "2", "parent": 365, "children": [], "start_point": {"row": 136, "column": 49}, "end_point": {"row": 136, "column": 50}}, {"id": 373, "type": "<<", "text": "<<", "parent": 361, "children": [], "start_point": {"row": 136, "column": 53}, "end_point": {"row": 136, "column": 55}}, {"id": 374, "type": "identifier", "text": "std", "parent": 361, "children": [], "start_point": {"row": 136, "column": 56}, "end_point": {"row": 136, "column": 59}}, {"id": 375, "type": "binary_expression", "text": "setfill( '0' ) << size", "parent": 287, "children": [376, 383, 384], "start_point": {"row": 136, "column": 61}, "end_point": {"row": 136, "column": 83}}, {"id": 376, "type": "call_expression", "text": "setfill( '0' )", "parent": 375, "children": [377, 378], "start_point": {"row": 136, "column": 61}, "end_point": {"row": 136, "column": 75}}, {"id": 377, "type": "identifier", "text": "setfill", "parent": 376, "children": [], "start_point": {"row": 136, "column": 61}, "end_point": {"row": 136, "column": 68}}, {"id": 378, "type": "argument_list", "text": "( '0' )", "parent": 376, "children": [379], "start_point": {"row": 136, "column": 68}, "end_point": {"row": 136, "column": 75}}, {"id": 379, "type": "char_literal", "text": "'0'", "parent": 378, "children": [380, 381, 382], "start_point": {"row": 136, "column": 70}, "end_point": {"row": 136, "column": 73}}, {"id": 380, "type": "'", "text": "'", "parent": 379, "children": [], "start_point": {"row": 136, "column": 70}, "end_point": {"row": 136, "column": 71}}, {"id": 381, "type": "character", "text": "0", "parent": 379, "children": [], "start_point": {"row": 136, "column": 71}, "end_point": {"row": 136, "column": 72}}, {"id": 382, "type": "'", "text": "'", "parent": 379, "children": [], "start_point": {"row": 136, "column": 72}, "end_point": {"row": 136, "column": 73}}, {"id": 383, "type": "<<", "text": "<<", "parent": 375, "children": [], "start_point": {"row": 136, "column": 76}, "end_point": {"row": 136, "column": 78}}, {"id": 384, "type": "identifier", "text": "size", "parent": 375, "children": [], "start_point": {"row": 136, "column": 79}, "end_point": {"row": 136, "column": 83}}, {"id": 385, "type": "call_expression", "text": "msg( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device )", "parent": 287, "children": [386, 387], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 92}}, {"id": 386, "type": "identifier", "text": "msg", "parent": 385, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 5}}, {"id": 387, "type": "argument_list", "text": "( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device )", "parent": 385, "children": [388, 391, 396, 401], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 92}}, {"id": 388, "type": "string_literal", "text": "\"failed to map address range $0 size $1 of device \\\"$2\\\"\"", "parent": 387, "children": [389, 390], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 64}}, {"id": 389, "type": "escape_sequence", "text": "\\\"", "parent": 388, "children": [], "start_point": {"row": 137, "column": 57}, "end_point": {"row": 137, "column": 59}}, {"id": 390, "type": "escape_sequence", "text": "\\\"", "parent": 388, "children": [], "start_point": {"row": 137, "column": 61}, "end_point": {"row": 137, "column": 63}}, {"id": 391, "type": "call_expression", "text": "a.str()", "parent": 387, "children": [392, 395], "start_point": {"row": 137, "column": 66}, "end_point": {"row": 137, "column": 73}}, {"id": 392, "type": "field_expression", "text": "a.str", "parent": 391, "children": [393, 394], "start_point": {"row": 137, "column": 66}, "end_point": {"row": 137, "column": 71}}, {"id": 393, "type": "identifier", "text": "a", "parent": 392, "children": [], "start_point": {"row": 137, "column": 66}, "end_point": {"row": 137, "column": 67}}, {"id": 394, "type": "field_identifier", "text": "str", "parent": 392, "children": [], "start_point": {"row": 137, "column": 68}, "end_point": {"row": 137, "column": 71}}, {"id": 395, "type": "argument_list", "text": "()", "parent": 391, "children": [], "start_point": {"row": 137, "column": 71}, "end_point": {"row": 137, "column": 73}}, {"id": 396, "type": "call_expression", "text": "s.str()", "parent": 387, "children": [397, 400], "start_point": {"row": 137, "column": 75}, "end_point": {"row": 137, "column": 82}}, {"id": 397, "type": "field_expression", "text": "s.str", "parent": 396, "children": [398, 399], "start_point": {"row": 137, "column": 75}, "end_point": {"row": 137, "column": 80}}, {"id": 398, "type": "identifier", "text": "s", "parent": 397, "children": [], "start_point": {"row": 137, "column": 75}, "end_point": {"row": 137, "column": 76}}, {"id": 399, "type": "field_identifier", "text": "str", "parent": 397, "children": [], "start_point": {"row": 137, "column": 77}, "end_point": {"row": 137, "column": 80}}, {"id": 400, "type": "argument_list", "text": "()", "parent": 396, "children": [], "start_point": {"row": 137, "column": 80}, "end_point": {"row": 137, "column": 82}}, {"id": 401, "type": "identifier", "text": "device", "parent": 387, "children": [], "start_point": {"row": 137, "column": 84}, "end_point": {"row": 137, "column": 90}}, {"id": 402, "type": "function_definition", "text": "class ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n\tASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n\t{\n\t\tloc( location );\n\t\tmsg( \"file \\\"$0\\\" not found\", file );\n\t}\n}", "parent": 0, "children": [403, 404], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 148, "column": 1}}, {"id": 403, "type": "identifier", "text": "ASTExceptionFileNotFound", "parent": 402, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 30}}, {"id": 404, "type": "ERROR", "text": ": public ASTCompileException", "parent": 402, "children": [405], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 59}}, {"id": 405, "type": "identifier", "text": "ASTCompileException", "parent": 404, "children": [], "start_point": {"row": 141, "column": 40}, "end_point": {"row": 141, "column": 59}}, {"id": 406, "type": "labeled_statement", "text": "public:\n\tASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n\t{\n\t\tloc( location );\n\t\tmsg( \"file \\\"$0\\\" not found\", file );\n\t}", "parent": 402, "children": [407], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 147, "column": 2}}, {"id": 407, "type": "ERROR", "text": "ASTExceptionFileNotFound( const yylloc_t& location, const char* file )", "parent": 406, "children": [408], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 71}}, {"id": 408, "type": "comma_expression", "text": "ASTExceptionFileNotFound( const yylloc_t& location, const char* file", "parent": 407, "children": [409, 415], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 69}}, {"id": 409, "type": "binary_expression", "text": "ASTExceptionFileNotFound( const yylloc_t& location", "parent": 408, "children": [410, 411, 414], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 51}}, {"id": 410, "type": "identifier", "text": "ASTExceptionFileNotFound", "parent": 409, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 25}}, {"id": 411, "type": "ERROR", "text": "( const yylloc_t", "parent": 409, "children": [412], "start_point": {"row": 143, "column": 25}, "end_point": {"row": 143, "column": 41}}, {"id": 412, "type": "type_descriptor", "text": "const yylloc_t", "parent": 411, "children": [413], "start_point": {"row": 143, "column": 27}, "end_point": {"row": 143, "column": 41}}, {"id": 413, "type": "type_identifier", "text": "yylloc_t", "parent": 412, "children": [], "start_point": {"row": 143, "column": 33}, "end_point": {"row": 143, "column": 41}}, {"id": 414, "type": "identifier", "text": "location", "parent": 409, "children": [], "start_point": {"row": 143, "column": 43}, "end_point": {"row": 143, "column": 51}}, {"id": 415, "type": "binary_expression", "text": "const char* file", "parent": 408, "children": [416, 418, 419], "start_point": {"row": 143, "column": 53}, "end_point": {"row": 143, "column": 69}}, {"id": 416, "type": "ERROR", "text": "char", "parent": 415, "children": [417], "start_point": {"row": 143, "column": 59}, "end_point": {"row": 143, "column": 63}}, {"id": 417, "type": "identifier", "text": "char", "parent": 416, "children": [], "start_point": {"row": 143, "column": 59}, "end_point": {"row": 143, "column": 63}}, {"id": 418, "type": "*", "text": "*", "parent": 415, "children": [], "start_point": {"row": 143, "column": 63}, "end_point": {"row": 143, "column": 64}}, {"id": 419, "type": "identifier", "text": "file", "parent": 415, "children": [], "start_point": {"row": 143, "column": 65}, "end_point": {"row": 143, "column": 69}}, {"id": 420, "type": "call_expression", "text": "loc( location )", "parent": 406, "children": [421, 422], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 17}}, {"id": 421, "type": "identifier", "text": "loc", "parent": 420, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 5}}, {"id": 422, "type": "argument_list", "text": "( location )", "parent": 420, "children": [423], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 17}}, {"id": 423, "type": "identifier", "text": "location", "parent": 422, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 15}}, {"id": 424, "type": "call_expression", "text": "msg( \"file \\\"$0\\\" not found\", file )", "parent": 406, "children": [425, 426], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 38}}, {"id": 425, "type": "identifier", "text": "msg", "parent": 424, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 5}}, {"id": 426, "type": "argument_list", "text": "( \"file \\\"$0\\\" not found\", file )", "parent": 424, "children": [427, 430], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 38}}, {"id": 427, "type": "string_literal", "text": "\"file \\\"$0\\\" not found\"", "parent": 426, "children": [428, 429], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 30}}, {"id": 428, "type": "escape_sequence", "text": "\\\"", "parent": 427, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 15}}, {"id": 429, "type": "escape_sequence", "text": "\\\"", "parent": 427, "children": [], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 19}}, {"id": 430, "type": "identifier", "text": "file", "parent": 426, "children": [], "start_point": {"row": 146, "column": 32}, "end_point": {"row": 146, "column": 36}}, {"id": 431, "type": "function_definition", "text": "class ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( \"illegal usage of non-const expression\" );\n }\n}", "parent": 0, "children": [432, 433], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 432, "type": "identifier", "text": "ASTExceptionNonconstExpression", "parent": 431, "children": [], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 36}}, {"id": 433, "type": "ERROR", "text": ": public ASTCompileException", "parent": 431, "children": [434], "start_point": {"row": 150, "column": 37}, "end_point": {"row": 150, "column": 65}}, {"id": 434, "type": "identifier", "text": "ASTCompileException", "parent": 433, "children": [], "start_point": {"row": 150, "column": 46}, "end_point": {"row": 150, "column": 65}}, {"id": 435, "type": "labeled_statement", "text": "public:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( \"illegal usage of non-const expression\" );\n }", "parent": 431, "children": [436], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 156, "column": 5}}, {"id": 436, "type": "ERROR", "text": "ASTExceptionNonconstExpression( const yylloc_t& location )", "parent": 435, "children": [437], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 62}}, {"id": 437, "type": "macro_type_specifier", "text": "ASTExceptionNonconstExpression( const yylloc_t& location )", "parent": 436, "children": [438, 439, 441], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 62}}, {"id": 438, "type": "identifier", "text": "ASTExceptionNonconstExpression", "parent": 437, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 34}}, {"id": 439, "type": "type_descriptor", "text": "const yylloc_t", "parent": 437, "children": [440], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 50}}, {"id": 440, "type": "type_identifier", "text": "yylloc_t", "parent": 439, "children": [], "start_point": {"row": 152, "column": 42}, "end_point": {"row": 152, "column": 50}}, {"id": 441, "type": "ERROR", "text": "& location", "parent": 437, "children": [442], "start_point": {"row": 152, "column": 50}, "end_point": {"row": 152, "column": 60}}, {"id": 442, "type": "identifier", "text": "location", "parent": 441, "children": [], "start_point": {"row": 152, "column": 52}, "end_point": {"row": 152, "column": 60}}, {"id": 443, "type": "call_expression", "text": "loc( location )", "parent": 435, "children": [444, 445], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 23}}, {"id": 444, "type": "identifier", "text": "loc", "parent": 443, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 11}}, {"id": 445, "type": "argument_list", "text": "( location )", "parent": 443, "children": [446], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 23}}, {"id": 446, "type": "identifier", "text": "location", "parent": 445, "children": [], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 21}}, {"id": 447, "type": "call_expression", "text": "msg( \"illegal usage of non-const expression\" )", "parent": 435, "children": [448, 449], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 54}}, {"id": 448, "type": "identifier", "text": "msg", "parent": 447, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 11}}, {"id": 449, "type": "argument_list", "text": "( \"illegal usage of non-const expression\" )", "parent": 447, "children": [450], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 54}}, {"id": 450, "type": "string_literal", "text": "\"illegal usage of non-const expression\"", "parent": 449, "children": [], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 52}}, {"id": 451, "type": "function_definition", "text": "class ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n}", "parent": 0, "children": [452, 453], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 165, "column": 1}}, {"id": 452, "type": "identifier", "text": "ASTExceptionConstDivisionByZero", "parent": 451, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 37}}, {"id": 453, "type": "ERROR", "text": ": public ASTCompileException", "parent": 451, "children": [454], "start_point": {"row": 159, "column": 38}, "end_point": {"row": 159, "column": 66}}, {"id": 454, "type": "identifier", "text": "ASTCompileException", "parent": 453, "children": [], "start_point": {"row": 159, "column": 47}, "end_point": {"row": 159, "column": 66}}, {"id": 455, "type": "labeled_statement", "text": "public:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }", "parent": 451, "children": [456], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 164, "column": 5}}, {"id": 456, "type": "ERROR", "text": "ASTExceptionConstDivisionByZero( const ASTException& ex )", "parent": 455, "children": [457], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 61}}, {"id": 457, "type": "macro_type_specifier", "text": "ASTExceptionConstDivisionByZero( const ASTException& ex )", "parent": 456, "children": [458, 459, 461], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 61}}, {"id": 458, "type": "identifier", "text": "ASTExceptionConstDivisionByZero", "parent": 457, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 35}}, {"id": 459, "type": "type_descriptor", "text": "const ASTException", "parent": 457, "children": [460], "start_point": {"row": 161, "column": 37}, "end_point": {"row": 161, "column": 55}}, {"id": 460, "type": "type_identifier", "text": "ASTException", "parent": 459, "children": [], "start_point": {"row": 161, "column": 43}, "end_point": {"row": 161, "column": 55}}, {"id": 461, "type": "ERROR", "text": "& ex", "parent": 457, "children": [462], "start_point": {"row": 161, "column": 55}, "end_point": {"row": 161, "column": 59}}, {"id": 462, "type": "identifier", "text": "ex", "parent": 461, "children": [], "start_point": {"row": 161, "column": 57}, "end_point": {"row": 161, "column": 59}}, {"id": 463, "type": "call_expression", "text": "clone( ex )", "parent": 455, "children": [464, 465], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 19}}, {"id": 464, "type": "identifier", "text": "clone", "parent": 463, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 13}}, {"id": 465, "type": "argument_list", "text": "( ex )", "parent": 463, "children": [466], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 19}}, {"id": 466, "type": "identifier", "text": "ex", "parent": 465, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 17}}, {"id": 467, "type": "function_definition", "text": "class ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n\tASTExceptionDivisionByZero( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"division by zero\" );\n\t}\n}", "parent": 0, "children": [468, 469], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 179, "column": 1}}, {"id": 468, "type": "identifier", "text": "ASTExceptionDivisionByZero", "parent": 467, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 32}}, {"id": 469, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 467, "children": [470], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 61}}, {"id": 470, "type": "identifier", "text": "ASTRuntimeException", "parent": 469, "children": [], "start_point": {"row": 172, "column": 42}, "end_point": {"row": 172, "column": 61}}, {"id": 471, "type": "labeled_statement", "text": "public:\n\tASTExceptionDivisionByZero( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"division by zero\" );\n\t}", "parent": 467, "children": [472], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 178, "column": 2}}, {"id": 472, "type": "ERROR", "text": "ASTExceptionDivisionByZero( const yylloc_t& location )", "parent": 471, "children": [473], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 55}}, {"id": 473, "type": "macro_type_specifier", "text": "ASTExceptionDivisionByZero( const yylloc_t& location )", "parent": 472, "children": [474, 475, 477], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 55}}, {"id": 474, "type": "identifier", "text": "ASTExceptionDivisionByZero", "parent": 473, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 27}}, {"id": 475, "type": "type_descriptor", "text": "const yylloc_t", "parent": 473, "children": [476], "start_point": {"row": 174, "column": 29}, "end_point": {"row": 174, "column": 43}}, {"id": 476, "type": "type_identifier", "text": "yylloc_t", "parent": 475, "children": [], "start_point": {"row": 174, "column": 35}, "end_point": {"row": 174, "column": 43}}, {"id": 477, "type": "ERROR", "text": "& location", "parent": 473, "children": [478], "start_point": {"row": 174, "column": 43}, "end_point": {"row": 174, "column": 53}}, {"id": 478, "type": "identifier", "text": "location", "parent": 477, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 53}}, {"id": 479, "type": "call_expression", "text": "loc( location )", "parent": 471, "children": [480, 481], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 17}}, {"id": 480, "type": "identifier", "text": "loc", "parent": 479, "children": [], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 5}}, {"id": 481, "type": "argument_list", "text": "( location )", "parent": 479, "children": [482], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 17}}, {"id": 482, "type": "identifier", "text": "location", "parent": 481, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 15}}, {"id": 483, "type": "call_expression", "text": "msg( \"division by zero\" )", "parent": 471, "children": [484, 485], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 27}}, {"id": 484, "type": "identifier", "text": "msg", "parent": 483, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 5}}, {"id": 485, "type": "argument_list", "text": "( \"division by zero\" )", "parent": 483, "children": [486], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 27}}, {"id": 486, "type": "string_literal", "text": "\"division by zero\"", "parent": 485, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 25}}, {"id": 487, "type": "function_definition", "text": "class ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n\tASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"no mapping found for $0 bit access to address $1\", size * 8, address );\n\t}\n}", "parent": 0, "children": [488, 489], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 188, "column": 1}}, {"id": 488, "type": "identifier", "text": "ASTExceptionNoMapping", "parent": 487, "children": [], "start_point": {"row": 181, "column": 6}, "end_point": {"row": 181, "column": 27}}, {"id": 489, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 487, "children": [490], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 56}}, {"id": 490, "type": "identifier", "text": "ASTRuntimeException", "parent": 489, "children": [], "start_point": {"row": 181, "column": 37}, "end_point": {"row": 181, "column": 56}}, {"id": 491, "type": "labeled_statement", "text": "public:\n\tASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"no mapping found for $0 bit access to address $1\", size * 8, address );\n\t}", "parent": 487, "children": [492], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 187, "column": 2}}, {"id": 492, "type": "ERROR", "text": "ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )", "parent": 491, "children": [493, 506], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 78}}, {"id": 493, "type": "comma_expression", "text": "ASTExceptionNoMapping( const yylloc_t& location, void* address, size_t", "parent": 492, "children": [494, 500], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 71}}, {"id": 494, "type": "binary_expression", "text": "ASTExceptionNoMapping( const yylloc_t& location", "parent": 493, "children": [495, 496, 499], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 48}}, {"id": 495, "type": "identifier", "text": "ASTExceptionNoMapping", "parent": 494, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 22}}, {"id": 496, "type": "ERROR", "text": "( const yylloc_t", "parent": 494, "children": [497], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 38}}, {"id": 497, "type": "type_descriptor", "text": "const yylloc_t", "parent": 496, "children": [498], "start_point": {"row": 183, "column": 24}, "end_point": {"row": 183, "column": 38}}, {"id": 498, "type": "type_identifier", "text": "yylloc_t", "parent": 497, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 38}}, {"id": 499, "type": "identifier", "text": "location", "parent": 494, "children": [], "start_point": {"row": 183, "column": 40}, "end_point": {"row": 183, "column": 48}}, {"id": 500, "type": "comma_expression", "text": "void* address, size_t", "parent": 493, "children": [501, 505], "start_point": {"row": 183, "column": 50}, "end_point": {"row": 183, "column": 71}}, {"id": 501, "type": "binary_expression", "text": "void* address", "parent": 500, "children": [502, 503, 504], "start_point": {"row": 183, "column": 50}, "end_point": {"row": 183, "column": 63}}, {"id": 502, "type": "identifier", "text": "void", "parent": 501, "children": [], "start_point": {"row": 183, "column": 50}, "end_point": {"row": 183, "column": 54}}, {"id": 503, "type": "*", "text": "*", "parent": 501, "children": [], "start_point": {"row": 183, "column": 54}, "end_point": {"row": 183, "column": 55}}, {"id": 504, "type": "identifier", "text": "address", "parent": 501, "children": [], "start_point": {"row": 183, "column": 56}, "end_point": {"row": 183, "column": 63}}, {"id": 505, "type": "identifier", "text": "size_t", "parent": 500, "children": [], "start_point": {"row": 183, "column": 65}, "end_point": {"row": 183, "column": 71}}, {"id": 506, "type": "identifier", "text": "size", "parent": 492, "children": [], "start_point": {"row": 183, "column": 72}, "end_point": {"row": 183, "column": 76}}, {"id": 507, "type": "call_expression", "text": "loc( location )", "parent": 491, "children": [508, 509], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 17}}, {"id": 508, "type": "identifier", "text": "loc", "parent": 507, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 5}}, {"id": 509, "type": "argument_list", "text": "( location )", "parent": 507, "children": [510], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 17}}, {"id": 510, "type": "identifier", "text": "location", "parent": 509, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 15}}, {"id": 511, "type": "call_expression", "text": "msg( \"no mapping found for $0 bit access to address $1\", size * 8, address )", "parent": 491, "children": [512, 513], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 78}}, {"id": 512, "type": "identifier", "text": "msg", "parent": 511, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 5}}, {"id": 513, "type": "argument_list", "text": "( \"no mapping found for $0 bit access to address $1\", size * 8, address )", "parent": 511, "children": [514, 515, 519], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 78}}, {"id": 514, "type": "string_literal", "text": "\"no mapping found for $0 bit access to address $1\"", "parent": 513, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 57}}, {"id": 515, "type": "binary_expression", "text": "size * 8", "parent": 513, "children": [516, 517, 518], "start_point": {"row": 186, "column": 59}, "end_point": {"row": 186, "column": 67}}, {"id": 516, "type": "identifier", "text": "size", "parent": 515, "children": [], "start_point": {"row": 186, "column": 59}, "end_point": {"row": 186, "column": 63}}, {"id": 517, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 186, "column": 64}, "end_point": {"row": 186, "column": 65}}, {"id": 518, "type": "number_literal", "text": "8", "parent": 515, "children": [], "start_point": {"row": 186, "column": 66}, "end_point": {"row": 186, "column": 67}}, {"id": 519, "type": "identifier", "text": "address", "parent": 513, "children": [], "start_point": {"row": 186, "column": 69}, "end_point": {"row": 186, "column": 76}}, {"id": 520, "type": "function_definition", "text": "class ASTExceptionBusError : public ASTRuntimeException {\npublic:\n\tASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"failed $0 bit access to address $1\", size * 8, address );\n\t}\n\n}", "parent": 0, "children": [521, 522], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 198, "column": 1}}, {"id": 521, "type": "identifier", "text": "ASTExceptionBusError", "parent": 520, "children": [], "start_point": {"row": 190, "column": 6}, "end_point": {"row": 190, "column": 26}}, {"id": 522, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 520, "children": [523], "start_point": {"row": 190, "column": 27}, "end_point": {"row": 190, "column": 55}}, {"id": 523, "type": "identifier", "text": "ASTRuntimeException", "parent": 522, "children": [], "start_point": {"row": 190, "column": 36}, "end_point": {"row": 190, "column": 55}}, {"id": 524, "type": "labeled_statement", "text": "public:\n\tASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"failed $0 bit access to address $1\", size * 8, address );\n\t}", "parent": 520, "children": [525], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 196, "column": 2}}, {"id": 525, "type": "ERROR", "text": "ASTExceptionBusError( const yylloc_t& location, void* address, size_t size )", "parent": 524, "children": [526, 539], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 77}}, {"id": 526, "type": "comma_expression", "text": "ASTExceptionBusError( const yylloc_t& location, void* address, size_t", "parent": 525, "children": [527, 533], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 70}}, {"id": 527, "type": "binary_expression", "text": "ASTExceptionBusError( const yylloc_t& location", "parent": 526, "children": [528, 529, 532], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 47}}, {"id": 528, "type": "identifier", "text": "ASTExceptionBusError", "parent": 527, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 21}}, {"id": 529, "type": "ERROR", "text": "( const yylloc_t", "parent": 527, "children": [530], "start_point": {"row": 192, "column": 21}, "end_point": {"row": 192, "column": 37}}, {"id": 530, "type": "type_descriptor", "text": "const yylloc_t", "parent": 529, "children": [531], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 37}}, {"id": 531, "type": "type_identifier", "text": "yylloc_t", "parent": 530, "children": [], "start_point": {"row": 192, "column": 29}, "end_point": {"row": 192, "column": 37}}, {"id": 532, "type": "identifier", "text": "location", "parent": 527, "children": [], "start_point": {"row": 192, "column": 39}, "end_point": {"row": 192, "column": 47}}, {"id": 533, "type": "comma_expression", "text": "void* address, size_t", "parent": 526, "children": [534, 538], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 70}}, {"id": 534, "type": "binary_expression", "text": "void* address", "parent": 533, "children": [535, 536, 537], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 62}}, {"id": 535, "type": "identifier", "text": "void", "parent": 534, "children": [], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 53}}, {"id": 536, "type": "*", "text": "*", "parent": 534, "children": [], "start_point": {"row": 192, "column": 53}, "end_point": {"row": 192, "column": 54}}, {"id": 537, "type": "identifier", "text": "address", "parent": 534, "children": [], "start_point": {"row": 192, "column": 55}, "end_point": {"row": 192, "column": 62}}, {"id": 538, "type": "identifier", "text": "size_t", "parent": 533, "children": [], "start_point": {"row": 192, "column": 64}, "end_point": {"row": 192, "column": 70}}, {"id": 539, "type": "identifier", "text": "size", "parent": 525, "children": [], "start_point": {"row": 192, "column": 71}, "end_point": {"row": 192, "column": 75}}, {"id": 540, "type": "call_expression", "text": "loc( location )", "parent": 524, "children": [541, 542], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 17}}, {"id": 541, "type": "identifier", "text": "loc", "parent": 540, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 5}}, {"id": 542, "type": "argument_list", "text": "( location )", "parent": 540, "children": [543], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 17}}, {"id": 543, "type": "identifier", "text": "location", "parent": 542, "children": [], "start_point": {"row": 194, "column": 7}, "end_point": {"row": 194, "column": 15}}, {"id": 544, "type": "call_expression", "text": "msg( \"failed $0 bit access to address $1\", size * 8, address )", "parent": 524, "children": [545, 546], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 64}}, {"id": 545, "type": "identifier", "text": "msg", "parent": 544, "children": [], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 5}}, {"id": 546, "type": "argument_list", "text": "( \"failed $0 bit access to address $1\", size * 8, address )", "parent": 544, "children": [547, 548, 552], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 64}}, {"id": 547, "type": "string_literal", "text": "\"failed $0 bit access to address $1\"", "parent": 546, "children": [], "start_point": {"row": 195, "column": 7}, "end_point": {"row": 195, "column": 43}}, {"id": 548, "type": "binary_expression", "text": "size * 8", "parent": 546, "children": [549, 550, 551], "start_point": {"row": 195, "column": 45}, "end_point": {"row": 195, "column": 53}}, {"id": 549, "type": "identifier", "text": "size", "parent": 548, "children": [], "start_point": {"row": 195, "column": 45}, "end_point": {"row": 195, "column": 49}}, {"id": 550, "type": "*", "text": "*", "parent": 548, "children": [], "start_point": {"row": 195, "column": 50}, "end_point": {"row": 195, "column": 51}}, {"id": 551, "type": "number_literal", "text": "8", "parent": 548, "children": [], "start_point": {"row": 195, "column": 52}, "end_point": {"row": 195, "column": 53}}, {"id": 552, "type": "identifier", "text": "address", "parent": 546, "children": [], "start_point": {"row": 195, "column": 55}, "end_point": {"row": 195, "column": 62}}, {"id": 553, "type": "function_definition", "text": "class ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }", "parent": 0, "children": [554, 555], "start_point": {"row": 200, "column": 0}, "end_point": {"row": 206, "column": 5}}, {"id": 554, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 553, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 29}}, {"id": 555, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 553, "children": [556], "start_point": {"row": 200, "column": 30}, "end_point": {"row": 200, "column": 58}}, {"id": 556, "type": "identifier", "text": "ASTRuntimeException", "parent": 555, "children": [], "start_point": {"row": 200, "column": 39}, "end_point": {"row": 200, "column": 58}}, {"id": 557, "type": "labeled_statement", "text": "public:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );", "parent": 553, "children": [], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 205, "column": 24}}, {"id": 558, "type": "comma_expression", "text": "ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location )", "parent": 557, "children": [559, 565], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 205, "column": 23}}, {"id": 559, "type": "binary_expression", "text": "ASTExceptionOutOfBounds( const yylloc_t& location", "parent": 558, "children": [560, 561, 564], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 53}}, {"id": 560, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 559, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 27}}, {"id": 561, "type": "ERROR", "text": "( const yylloc_t", "parent": 559, "children": [562], "start_point": {"row": 202, "column": 27}, "end_point": {"row": 202, "column": 43}}, {"id": 562, "type": "type_descriptor", "text": "const yylloc_t", "parent": 561, "children": [563], "start_point": {"row": 202, "column": 29}, "end_point": {"row": 202, "column": 43}}, {"id": 563, "type": "type_identifier", "text": "yylloc_t", "parent": 562, "children": [], "start_point": {"row": 202, "column": 35}, "end_point": {"row": 202, "column": 43}}, {"id": 564, "type": "identifier", "text": "location", "parent": 559, "children": [], "start_point": {"row": 202, "column": 45}, "end_point": {"row": 202, "column": 53}}, {"id": 565, "type": "comma_expression", "text": "uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location )", "parent": 558, "children": [566, 567, 569, 577], "start_point": {"row": 202, "column": 55}, "end_point": {"row": 205, "column": 23}}, {"id": 566, "type": "identifier", "text": "uint64_t", "parent": 565, "children": [], "start_point": {"row": 202, "column": 55}, "end_point": {"row": 202, "column": 63}}, {"id": 567, "type": "ERROR", "text": "index", "parent": 565, "children": [568], "start_point": {"row": 202, "column": 64}, "end_point": {"row": 202, "column": 69}}, {"id": 568, "type": "identifier", "text": "index", "parent": 567, "children": [], "start_point": {"row": 202, "column": 64}, "end_point": {"row": 202, "column": 69}}, {"id": 569, "type": "ERROR", "text": "uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {", "parent": 565, "children": [570, 571, 572], "start_point": {"row": 202, "column": 71}, "end_point": {"row": 204, "column": 5}}, {"id": 570, "type": "identifier", "text": "uint64_t", "parent": 569, "children": [], "start_point": {"row": 202, "column": 71}, "end_point": {"row": 202, "column": 79}}, {"id": 571, "type": "identifier", "text": "size", "parent": 569, "children": [], "start_point": {"row": 202, "column": 80}, "end_point": {"row": 202, "column": 84}}, {"id": 572, "type": "call_expression", "text": "ASTExceptionOutOfBounds( index, size )", "parent": 569, "children": [573, 574], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 45}}, {"id": 573, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 572, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 30}}, {"id": 574, "type": "argument_list", "text": "( index, size )", "parent": 572, "children": [575, 576], "start_point": {"row": 203, "column": 30}, "end_point": {"row": 203, "column": 45}}, {"id": 575, "type": "identifier", "text": "index", "parent": 574, "children": [], "start_point": {"row": 203, "column": 32}, "end_point": {"row": 203, "column": 37}}, {"id": 576, "type": "identifier", "text": "size", "parent": 574, "children": [], "start_point": {"row": 203, "column": 39}, "end_point": {"row": 203, "column": 43}}, {"id": 577, "type": "call_expression", "text": "loc( location )", "parent": 565, "children": [578, 579], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 23}}, {"id": 578, "type": "identifier", "text": "loc", "parent": 577, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 11}}, {"id": 579, "type": "argument_list", "text": "( location )", "parent": 577, "children": [580], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 23}}, {"id": 580, "type": "identifier", "text": "location", "parent": 579, "children": [], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 21}}, {"id": 581, "type": "ERROR", "text": "ASTExceptionOutOfBounds( uint64_t index, uint64_t size )", "parent": 0, "children": [582, 586, 587, 588], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 60}}, {"id": 582, "type": "macro_type_specifier", "text": "ASTExceptionOutOfBounds( uint64_t", "parent": 581, "children": [583, 584], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 37}}, {"id": 583, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 582, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 27}}, {"id": 584, "type": "type_descriptor", "text": "uint64_t", "parent": 582, "children": [585], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 37}}, {"id": 585, "type": "primitive_type", "text": "uint64_t", "parent": 584, "children": [], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 37}}, {"id": 586, "type": "identifier", "text": "index", "parent": 581, "children": [], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 43}}, {"id": 587, "type": "identifier", "text": "uint64_t", "parent": 581, "children": [], "start_point": {"row": 208, "column": 45}, "end_point": {"row": 208, "column": 53}}, {"id": 588, "type": "identifier", "text": "size", "parent": 581, "children": [], "start_point": {"row": 208, "column": 54}, "end_point": {"row": 208, "column": 58}}, {"id": 589, "type": "call_expression", "text": "msg( \"index $0 does not match size $1\", index, size )", "parent": 0, "children": [590, 591], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 61}}, {"id": 590, "type": "identifier", "text": "msg", "parent": 589, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 11}}, {"id": 591, "type": "argument_list", "text": "( \"index $0 does not match size $1\", index, size )", "parent": 589, "children": [592, 593, 594], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 61}}, {"id": 592, "type": "string_literal", "text": "\"index $0 does not match size $1\"", "parent": 591, "children": [], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 46}}, {"id": 593, "type": "identifier", "text": "index", "parent": 591, "children": [], "start_point": {"row": 210, "column": 48}, "end_point": {"row": 210, "column": 53}}, {"id": 594, "type": "identifier", "text": "size", "parent": 591, "children": [], "start_point": {"row": 210, "column": 55}, "end_point": {"row": 210, "column": 59}}, {"id": 595, "type": "ERROR", "text": "ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )", "parent": 0, "children": [596], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 90}}, {"id": 596, "type": "comma_expression", "text": "ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex", "parent": 595, "children": [597, 603], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 88}}, {"id": 597, "type": "binary_expression", "text": "ASTExceptionOutOfBounds( const yylloc_t& location", "parent": 596, "children": [598, 599, 602], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 53}}, {"id": 598, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 597, "children": [], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 27}}, {"id": 599, "type": "ERROR", "text": "( const yylloc_t", "parent": 597, "children": [600], "start_point": {"row": 213, "column": 27}, "end_point": {"row": 213, "column": 43}}, {"id": 600, "type": "type_descriptor", "text": "const yylloc_t", "parent": 599, "children": [601], "start_point": {"row": 213, "column": 29}, "end_point": {"row": 213, "column": 43}}, {"id": 601, "type": "type_identifier", "text": "yylloc_t", "parent": 600, "children": [], "start_point": {"row": 213, "column": 35}, "end_point": {"row": 213, "column": 43}}, {"id": 602, "type": "identifier", "text": "location", "parent": 597, "children": [], "start_point": {"row": 213, "column": 45}, "end_point": {"row": 213, "column": 53}}, {"id": 603, "type": "binary_expression", "text": "ASTExceptionOutOfBounds& ex", "parent": 596, "children": [604, 605], "start_point": {"row": 213, "column": 61}, "end_point": {"row": 213, "column": 88}}, {"id": 604, "type": "identifier", "text": "ASTExceptionOutOfBounds", "parent": 603, "children": [], "start_point": {"row": 213, "column": 61}, "end_point": {"row": 213, "column": 84}}, {"id": 605, "type": "identifier", "text": "ex", "parent": 603, "children": [], "start_point": {"row": 213, "column": 86}, "end_point": {"row": 213, "column": 88}}, {"id": 606, "type": "call_expression", "text": "clone( ex )", "parent": 0, "children": [607, 608], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 19}}, {"id": 607, "type": "identifier", "text": "clone", "parent": 606, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 13}}, {"id": 608, "type": "argument_list", "text": "( ex )", "parent": 606, "children": [609], "start_point": {"row": 215, "column": 13}, "end_point": {"row": 215, "column": 19}}, {"id": 609, "type": "identifier", "text": "ex", "parent": 608, "children": [], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 17}}, {"id": 610, "type": "call_expression", "text": "loc( location )", "parent": 0, "children": [611, 612], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 23}}, {"id": 611, "type": "identifier", "text": "loc", "parent": 610, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 11}}, {"id": 612, "type": "argument_list", "text": "( location )", "parent": 610, "children": [613], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 23}}, {"id": 613, "type": "identifier", "text": "location", "parent": 612, "children": [], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 21}}, {"id": 614, "type": "function_definition", "text": "class ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( \"failed to allocate array of size $0\", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n}", "parent": 0, "children": [615, 616], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 232, "column": 1}}, {"id": 615, "type": "identifier", "text": "ASTExceptionOutOfMemory", "parent": 614, "children": [], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 29}}, {"id": 616, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 614, "children": [617], "start_point": {"row": 220, "column": 30}, "end_point": {"row": 220, "column": 58}}, {"id": 617, "type": "identifier", "text": "ASTRuntimeException", "parent": 616, "children": [], "start_point": {"row": 220, "column": 39}, "end_point": {"row": 220, "column": 58}}, {"id": 618, "type": "labeled_statement", "text": "public:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( \"failed to allocate array of size $0\", size );\n }", "parent": 614, "children": [619], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 225, "column": 5}}, {"id": 619, "type": "ERROR", "text": "ASTExceptionOutOfMemory( uint64_t size )", "parent": 618, "children": [620], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 44}}, {"id": 620, "type": "macro_type_specifier", "text": "ASTExceptionOutOfMemory( uint64_t size )", "parent": 619, "children": [621, 622, 624], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 44}}, {"id": 621, "type": "identifier", "text": "ASTExceptionOutOfMemory", "parent": 620, "children": [], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 27}}, {"id": 622, "type": "ERROR", "text": "uint64_t", "parent": 620, "children": [623], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 37}}, {"id": 623, "type": "primitive_type", "text": "uint64_t", "parent": 622, "children": [], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 37}}, {"id": 624, "type": "type_descriptor", "text": "size", "parent": 620, "children": [625], "start_point": {"row": 222, "column": 38}, "end_point": {"row": 222, "column": 42}}, {"id": 625, "type": "type_identifier", "text": "size", "parent": 624, "children": [], "start_point": {"row": 222, "column": 38}, "end_point": {"row": 222, "column": 42}}, {"id": 626, "type": "call_expression", "text": "msg( \"failed to allocate array of size $0\", size )", "parent": 618, "children": [627, 628], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 58}}, {"id": 627, "type": "identifier", "text": "msg", "parent": 626, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 11}}, {"id": 628, "type": "argument_list", "text": "( \"failed to allocate array of size $0\", size )", "parent": 626, "children": [629, 630], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 58}}, {"id": 629, "type": "string_literal", "text": "\"failed to allocate array of size $0\"", "parent": 628, "children": [], "start_point": {"row": 224, "column": 13}, "end_point": {"row": 224, "column": 50}}, {"id": 630, "type": "identifier", "text": "size", "parent": 628, "children": [], "start_point": {"row": 224, "column": 52}, "end_point": {"row": 224, "column": 56}}, {"id": 631, "type": "ERROR", "text": "ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )", "parent": 614, "children": [632], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 90}}, {"id": 632, "type": "comma_expression", "text": "ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex", "parent": 631, "children": [633, 639], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 88}}, {"id": 633, "type": "binary_expression", "text": "ASTExceptionOutOfMemory( const yylloc_t& location", "parent": 632, "children": [634, 635, 638], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 53}}, {"id": 634, "type": "identifier", "text": "ASTExceptionOutOfMemory", "parent": 633, "children": [], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 27}}, {"id": 635, "type": "ERROR", "text": "( const yylloc_t", "parent": 633, "children": [636], "start_point": {"row": 227, "column": 27}, "end_point": {"row": 227, "column": 43}}, {"id": 636, "type": "type_descriptor", "text": "const yylloc_t", "parent": 635, "children": [637], "start_point": {"row": 227, "column": 29}, "end_point": {"row": 227, "column": 43}}, {"id": 637, "type": "type_identifier", "text": "yylloc_t", "parent": 636, "children": [], "start_point": {"row": 227, "column": 35}, "end_point": {"row": 227, "column": 43}}, {"id": 638, "type": "identifier", "text": "location", "parent": 633, "children": [], "start_point": {"row": 227, "column": 45}, "end_point": {"row": 227, "column": 53}}, {"id": 639, "type": "binary_expression", "text": "ASTExceptionOutOfMemory& ex", "parent": 632, "children": [640, 641], "start_point": {"row": 227, "column": 61}, "end_point": {"row": 227, "column": 88}}, {"id": 640, "type": "identifier", "text": "ASTExceptionOutOfMemory", "parent": 639, "children": [], "start_point": {"row": 227, "column": 61}, "end_point": {"row": 227, "column": 84}}, {"id": 641, "type": "identifier", "text": "ex", "parent": 639, "children": [], "start_point": {"row": 227, "column": 86}, "end_point": {"row": 227, "column": 88}}, {"id": 642, "type": "call_expression", "text": "clone( ex )", "parent": 614, "children": [643, 644], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 19}}, {"id": 643, "type": "identifier", "text": "clone", "parent": 642, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 13}}, {"id": 644, "type": "argument_list", "text": "( ex )", "parent": 642, "children": [645], "start_point": {"row": 229, "column": 13}, "end_point": {"row": 229, "column": 19}}, {"id": 645, "type": "identifier", "text": "ex", "parent": 644, "children": [], "start_point": {"row": 229, "column": 15}, "end_point": {"row": 229, "column": 17}}, {"id": 646, "type": "call_expression", "text": "loc( location )", "parent": 614, "children": [647, 648], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 23}}, {"id": 647, "type": "identifier", "text": "loc", "parent": 646, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 11}}, {"id": 648, "type": "argument_list", "text": "( location )", "parent": 646, "children": [649], "start_point": {"row": 230, "column": 11}, "end_point": {"row": 230, "column": 23}}, {"id": 649, "type": "identifier", "text": "location", "parent": 648, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 21}}, {"id": 650, "type": "function_definition", "text": "class ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( \"calling dropped subroutine\" );\n }\n}", "parent": 0, "children": [651, 652], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 241, "column": 1}}, {"id": 651, "type": "identifier", "text": "ASTExceptionDroppedSubroutine", "parent": 650, "children": [], "start_point": {"row": 234, "column": 6}, "end_point": {"row": 234, "column": 35}}, {"id": 652, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 650, "children": [653], "start_point": {"row": 234, "column": 36}, "end_point": {"row": 234, "column": 64}}, {"id": 653, "type": "identifier", "text": "ASTRuntimeException", "parent": 652, "children": [], "start_point": {"row": 234, "column": 45}, "end_point": {"row": 234, "column": 64}}, {"id": 654, "type": "labeled_statement", "text": "public:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( \"calling dropped subroutine\" );\n }", "parent": 650, "children": [655], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 240, "column": 5}}, {"id": 655, "type": "ERROR", "text": "ASTExceptionDroppedSubroutine( const yylloc_t& location )", "parent": 654, "children": [656], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 61}}, {"id": 656, "type": "macro_type_specifier", "text": "ASTExceptionDroppedSubroutine( const yylloc_t& location )", "parent": 655, "children": [657, 658, 660], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 61}}, {"id": 657, "type": "identifier", "text": "ASTExceptionDroppedSubroutine", "parent": 656, "children": [], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 33}}, {"id": 658, "type": "type_descriptor", "text": "const yylloc_t", "parent": 656, "children": [659], "start_point": {"row": 236, "column": 35}, "end_point": {"row": 236, "column": 49}}, {"id": 659, "type": "type_identifier", "text": "yylloc_t", "parent": 658, "children": [], "start_point": {"row": 236, "column": 41}, "end_point": {"row": 236, "column": 49}}, {"id": 660, "type": "ERROR", "text": "& location", "parent": 656, "children": [661], "start_point": {"row": 236, "column": 49}, "end_point": {"row": 236, "column": 59}}, {"id": 661, "type": "identifier", "text": "location", "parent": 660, "children": [], "start_point": {"row": 236, "column": 51}, "end_point": {"row": 236, "column": 59}}, {"id": 662, "type": "call_expression", "text": "loc( location )", "parent": 654, "children": [663, 664], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 23}}, {"id": 663, "type": "identifier", "text": "loc", "parent": 662, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 11}}, {"id": 664, "type": "argument_list", "text": "( location )", "parent": 662, "children": [665], "start_point": {"row": 238, "column": 11}, "end_point": {"row": 238, "column": 23}}, {"id": 665, "type": "identifier", "text": "location", "parent": 664, "children": [], "start_point": {"row": 238, "column": 13}, "end_point": {"row": 238, "column": 21}}, {"id": 666, "type": "call_expression", "text": "msg( \"calling dropped subroutine\" )", "parent": 654, "children": [667, 668], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 43}}, {"id": 667, "type": "identifier", "text": "msg", "parent": 666, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 11}}, {"id": 668, "type": "argument_list", "text": "( \"calling dropped subroutine\" )", "parent": 666, "children": [669], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 43}}, {"id": 669, "type": "string_literal", "text": "\"calling dropped subroutine\"", "parent": 668, "children": [], "start_point": {"row": 239, "column": 13}, "end_point": {"row": 239, "column": 41}}, {"id": 670, "type": "function_definition", "text": "class ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" );\n }\n}", "parent": 0, "children": [671, 672], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 250, "column": 1}}, {"id": 671, "type": "identifier", "text": "ASTExceptionArgTypeMismatch", "parent": 670, "children": [], "start_point": {"row": 243, "column": 6}, "end_point": {"row": 243, "column": 33}}, {"id": 672, "type": "ERROR", "text": ": public ASTRuntimeException", "parent": 670, "children": [673], "start_point": {"row": 243, "column": 34}, "end_point": {"row": 243, "column": 62}}, {"id": 673, "type": "identifier", "text": "ASTRuntimeException", "parent": 672, "children": [], "start_point": {"row": 243, "column": 43}, "end_point": {"row": 243, "column": 62}}, {"id": 674, "type": "labeled_statement", "text": "public:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" );\n }", "parent": 670, "children": [675], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 249, "column": 5}}, {"id": 675, "type": "ERROR", "text": "ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )", "parent": 674, "children": [676, 688], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 90}}, {"id": 676, "type": "comma_expression", "text": "ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool", "parent": 675, "children": [677, 683], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 79}}, {"id": 677, "type": "binary_expression", "text": "ASTExceptionArgTypeMismatch( const yylloc_t& location", "parent": 676, "children": [678, 679, 682], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 57}}, {"id": 678, "type": "identifier", "text": "ASTExceptionArgTypeMismatch", "parent": 677, "children": [], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 31}}, {"id": 679, "type": "ERROR", "text": "( const yylloc_t", "parent": 677, "children": [680], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 47}}, {"id": 680, "type": "type_descriptor", "text": "const yylloc_t", "parent": 679, "children": [681], "start_point": {"row": 245, "column": 33}, "end_point": {"row": 245, "column": 47}}, {"id": 681, "type": "type_identifier", "text": "yylloc_t", "parent": 680, "children": [], "start_point": {"row": 245, "column": 39}, "end_point": {"row": 245, "column": 47}}, {"id": 682, "type": "identifier", "text": "location", "parent": 677, "children": [], "start_point": {"row": 245, "column": 49}, "end_point": {"row": 245, "column": 57}}, {"id": 683, "type": "comma_expression", "text": "uint64_t index, bool", "parent": 676, "children": [684, 685, 687], "start_point": {"row": 245, "column": 59}, "end_point": {"row": 245, "column": 79}}, {"id": 684, "type": "identifier", "text": "uint64_t", "parent": 683, "children": [], "start_point": {"row": 245, "column": 59}, "end_point": {"row": 245, "column": 67}}, {"id": 685, "type": "ERROR", "text": "index", "parent": 683, "children": [686], "start_point": {"row": 245, "column": 68}, "end_point": {"row": 245, "column": 73}}, {"id": 686, "type": "identifier", "text": "index", "parent": 685, "children": [], "start_point": {"row": 245, "column": 68}, "end_point": {"row": 245, "column": 73}}, {"id": 687, "type": "identifier", "text": "bool", "parent": 683, "children": [], "start_point": {"row": 245, "column": 75}, "end_point": {"row": 245, "column": 79}}, {"id": 688, "type": "identifier", "text": "is_array", "parent": 675, "children": [], "start_point": {"row": 245, "column": 80}, "end_point": {"row": 245, "column": 88}}, {"id": 689, "type": "call_expression", "text": "loc( location )", "parent": 674, "children": [690, 691], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 23}}, {"id": 690, "type": "identifier", "text": "loc", "parent": 689, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 11}}, {"id": 691, "type": "argument_list", "text": "( location )", "parent": 689, "children": [692], "start_point": {"row": 247, "column": 11}, "end_point": {"row": 247, "column": 23}}, {"id": 692, "type": "identifier", "text": "location", "parent": 691, "children": [], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 21}}, {"id": 693, "type": "call_expression", "text": "msg( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" )", "parent": 674, "children": [694, 695], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 75}}, {"id": 694, "type": "identifier", "text": "msg", "parent": 693, "children": [], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 11}}, {"id": 695, "type": "argument_list", "text": "( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" )", "parent": 693, "children": [696, 697, 698], "start_point": {"row": 248, "column": 11}, "end_point": {"row": 248, "column": 75}}, {"id": 696, "type": "string_literal", "text": "\"type of vararg $0 is $1\"", "parent": 695, "children": [], "start_point": {"row": 248, "column": 13}, "end_point": {"row": 248, "column": 38}}, {"id": 697, "type": "identifier", "text": "index", "parent": 695, "children": [], "start_point": {"row": 248, "column": 40}, "end_point": {"row": 248, "column": 45}}, {"id": 698, "type": "conditional_expression", "text": "is_array ? \"array\" : \"var\"", "parent": 695, "children": [699, 700, 701, 702], "start_point": {"row": 248, "column": 47}, "end_point": {"row": 248, "column": 73}}, {"id": 699, "type": "identifier", "text": "is_array", "parent": 698, "children": [], "start_point": {"row": 248, "column": 47}, "end_point": {"row": 248, "column": 55}}, {"id": 700, "type": "?", "text": "?", "parent": 698, "children": [], "start_point": {"row": 248, "column": 56}, "end_point": {"row": 248, "column": 57}}, {"id": 701, "type": "string_literal", "text": "\"array\"", "parent": 698, "children": [], "start_point": {"row": 248, "column": 58}, "end_point": {"row": 248, "column": 65}}, {"id": 702, "type": "string_literal", "text": "\"var\"", "parent": 698, "children": [], "start_point": {"row": 248, "column": 68}, "end_point": {"row": 248, "column": 73}}, {"id": 703, "type": "binary_expression", "text": "template< typename... ARGS >\ninline", "parent": 0, "children": [704, 708, 710, 711], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 258, "column": 6}}, {"id": 704, "type": "binary_expression", "text": "template< typename", "parent": 703, "children": [705, 706, 707], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 18}}, {"id": 705, "type": "identifier", "text": "template", "parent": 704, "children": [], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 8}}, {"id": 706, "type": "<", "text": "<", "parent": 704, "children": [], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 257, "column": 9}}, {"id": 707, "type": "identifier", "text": "typename", "parent": 704, "children": [], "start_point": {"row": 257, "column": 10}, "end_point": {"row": 257, "column": 18}}, {"id": 708, "type": "ERROR", "text": "... ARGS", "parent": 703, "children": [709], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 26}}, {"id": 709, "type": "identifier", "text": "ARGS", "parent": 708, "children": [], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 26}}, {"id": 710, "type": ">", "text": ">", "parent": 703, "children": [], "start_point": {"row": 257, "column": 27}, "end_point": {"row": 257, "column": 28}}, {"id": 711, "type": "identifier", "text": "inline", "parent": 703, "children": [], "start_point": {"row": 258, "column": 0}, "end_point": {"row": 258, "column": 6}}, {"id": 712, "type": "function_definition", "text": "void ASTException::msg( const char* msg, ARGS... varargs )\n{\n\tstd::vector< std::string > args;\n\targreader< ARGS... >::push_args( args, varargs... );\n\tcreate_msg( msg, args );\n}", "parent": 0, "children": [713, 714, 716], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 263, "column": 1}}, {"id": 713, "type": "primitive_type", "text": "void", "parent": 712, "children": [], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 258, "column": 11}}, {"id": 714, "type": "ERROR", "text": "ASTException::", "parent": 712, "children": [715], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 26}}, {"id": 715, "type": "identifier", "text": "ASTException", "parent": 714, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 24}}, {"id": 716, "type": "function_declarator", "text": "msg( const char* msg, ARGS... varargs )", "parent": 712, "children": [717, 718], "start_point": {"row": 258, "column": 26}, "end_point": {"row": 258, "column": 65}}, {"id": 717, "type": "identifier", "text": "msg", "parent": 716, "children": [], "start_point": {"row": 258, "column": 26}, "end_point": {"row": 258, "column": 29}}, {"id": 718, "type": "parameter_list", "text": "( const char* msg, ARGS... varargs )", "parent": 716, "children": [719, 724], "start_point": {"row": 258, "column": 29}, "end_point": {"row": 258, "column": 65}}, {"id": 719, "type": "parameter_declaration", "text": "const char* msg", "parent": 718, "children": [720, 721], "start_point": {"row": 258, "column": 31}, "end_point": {"row": 258, "column": 46}}, {"id": 720, "type": "primitive_type", "text": "char", "parent": 719, "children": [], "start_point": {"row": 258, "column": 37}, "end_point": {"row": 258, "column": 41}}, {"id": 721, "type": "pointer_declarator", "text": "* msg", "parent": 719, "children": [722, 723], "start_point": {"row": 258, "column": 41}, "end_point": {"row": 258, "column": 46}}, {"id": 722, "type": "*", "text": "*", "parent": 721, "children": [], "start_point": {"row": 258, "column": 41}, "end_point": {"row": 258, "column": 42}}, {"id": 723, "type": "identifier", "text": "msg", "parent": 721, "children": [], "start_point": {"row": 258, "column": 43}, "end_point": {"row": 258, "column": 46}}, {"id": 724, "type": "parameter_declaration", "text": "ARGS... varargs", "parent": 718, "children": [725, 726], "start_point": {"row": 258, "column": 48}, "end_point": {"row": 258, "column": 63}}, {"id": 725, "type": "type_identifier", "text": "ARGS", "parent": 724, "children": [], "start_point": {"row": 258, "column": 48}, "end_point": {"row": 258, "column": 52}}, {"id": 726, "type": "identifier", "text": "varargs", "parent": 724, "children": [], "start_point": {"row": 258, "column": 56}, "end_point": {"row": 258, "column": 63}}, {"id": 727, "type": "labeled_statement", "text": "std::vector< std::string > args;", "parent": 712, "children": [728, 729], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 33}}, {"id": 728, "type": "statement_identifier", "text": "std", "parent": 727, "children": [], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 4}}, {"id": 729, "type": "ERROR", "text": "::vector< std:", "parent": 727, "children": [730], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 18}}, {"id": 730, "type": "binary_expression", "text": "vector< std", "parent": 729, "children": [731, 732, 733], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 17}}, {"id": 731, "type": "identifier", "text": "vector", "parent": 730, "children": [], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 12}}, {"id": 732, "type": "<", "text": "<", "parent": 730, "children": [], "start_point": {"row": 260, "column": 12}, "end_point": {"row": 260, "column": 13}}, {"id": 733, "type": "identifier", "text": "std", "parent": 730, "children": [], "start_point": {"row": 260, "column": 14}, "end_point": {"row": 260, "column": 17}}, {"id": 734, "type": "binary_expression", "text": "string > args", "parent": 727, "children": [735, 736, 737], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 32}}, {"id": 735, "type": "identifier", "text": "string", "parent": 734, "children": [], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 25}}, {"id": 736, "type": ">", "text": ">", "parent": 734, "children": [], "start_point": {"row": 260, "column": 26}, "end_point": {"row": 260, "column": 27}}, {"id": 737, "type": "identifier", "text": "args", "parent": 734, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 32}}, {"id": 738, "type": "binary_expression", "text": "argreader< ARGS... >::push_args( args, varargs... )", "parent": 712, "children": [739, 743, 744], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 52}}, {"id": 739, "type": "binary_expression", "text": "argreader< ARGS", "parent": 738, "children": [740, 741, 742], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 16}}, {"id": 740, "type": "identifier", "text": "argreader", "parent": 739, "children": [], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 10}}, {"id": 741, "type": "<", "text": "<", "parent": 739, "children": [], "start_point": {"row": 261, "column": 10}, "end_point": {"row": 261, "column": 11}}, {"id": 742, "type": "identifier", "text": "ARGS", "parent": 739, "children": [], "start_point": {"row": 261, "column": 12}, "end_point": {"row": 261, "column": 16}}, {"id": 743, "type": ">", "text": ">", "parent": 738, "children": [], "start_point": {"row": 261, "column": 20}, "end_point": {"row": 261, "column": 21}}, {"id": 744, "type": "call_expression", "text": "push_args( args, varargs... )", "parent": 738, "children": [745, 746], "start_point": {"row": 261, "column": 23}, "end_point": {"row": 261, "column": 52}}, {"id": 745, "type": "identifier", "text": "push_args", "parent": 744, "children": [], "start_point": {"row": 261, "column": 23}, "end_point": {"row": 261, "column": 32}}, {"id": 746, "type": "argument_list", "text": "( args, varargs... )", "parent": 744, "children": [747, 748], "start_point": {"row": 261, "column": 32}, "end_point": {"row": 261, "column": 52}}, {"id": 747, "type": "identifier", "text": "args", "parent": 746, "children": [], "start_point": {"row": 261, "column": 34}, "end_point": {"row": 261, "column": 38}}, {"id": 748, "type": "identifier", "text": "varargs", "parent": 746, "children": [], "start_point": {"row": 261, "column": 40}, "end_point": {"row": 261, "column": 47}}, {"id": 749, "type": "call_expression", "text": "create_msg( msg, args )", "parent": 712, "children": [750, 751], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 24}}, {"id": 750, "type": "identifier", "text": "create_msg", "parent": 749, "children": [], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 11}}, {"id": 751, "type": "argument_list", "text": "( msg, args )", "parent": 749, "children": [752, 753], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 24}}, {"id": 752, "type": "identifier", "text": "msg", "parent": 751, "children": [], "start_point": {"row": 262, "column": 13}, "end_point": {"row": 262, "column": 16}}, {"id": 753, "type": "identifier", "text": "args", "parent": 751, "children": [], "start_point": {"row": 262, "column": 18}, "end_point": {"row": 262, "column": 22}}, {"id": 754, "type": "binary_expression", "text": "template< typename T >\nstruct", "parent": 0, "children": [755, 759, 761, 762], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 266, "column": 6}}, {"id": 755, "type": "binary_expression", "text": "template< typename", "parent": 754, "children": [756, 757, 758], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 265, "column": 18}}, {"id": 756, "type": "identifier", "text": "template", "parent": 755, "children": [], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 265, "column": 8}}, {"id": 757, "type": "<", "text": "<", "parent": 755, "children": [], "start_point": {"row": 265, "column": 8}, "end_point": {"row": 265, "column": 9}}, {"id": 758, "type": "identifier", "text": "typename", "parent": 755, "children": [], "start_point": {"row": 265, "column": 10}, "end_point": {"row": 265, "column": 18}}, {"id": 759, "type": "ERROR", "text": "T", "parent": 754, "children": [760], "start_point": {"row": 265, "column": 19}, "end_point": {"row": 265, "column": 20}}, {"id": 760, "type": "identifier", "text": "T", "parent": 759, "children": [], "start_point": {"row": 265, "column": 19}, "end_point": {"row": 265, "column": 20}}, {"id": 761, "type": ">", "text": ">", "parent": 754, "children": [], "start_point": {"row": 265, "column": 21}, "end_point": {"row": 265, "column": 22}}, {"id": 762, "type": "identifier", "text": "struct", "parent": 754, "children": [], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 266, "column": 6}}, {"id": 763, "type": "labeled_statement", "text": "ASTException::argreader< T > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\t}\n}", "parent": 0, "children": [764, 765], "start_point": {"row": 266, "column": 7}, "end_point": {"row": 273, "column": 1}}, {"id": 764, "type": "statement_identifier", "text": "ASTException", "parent": 763, "children": [], "start_point": {"row": 266, "column": 7}, "end_point": {"row": 266, "column": 19}}, {"id": 765, "type": "ERROR", "text": ":argreader< T >", "parent": 763, "children": [766, 770], "start_point": {"row": 266, "column": 20}, "end_point": {"row": 266, "column": 35}}, {"id": 766, "type": "binary_expression", "text": "argreader< T", "parent": 765, "children": [767, 768, 769], "start_point": {"row": 266, "column": 21}, "end_point": {"row": 266, "column": 33}}, {"id": 767, "type": "identifier", "text": "argreader", "parent": 766, "children": [], "start_point": {"row": 266, "column": 21}, "end_point": {"row": 266, "column": 30}}, {"id": 768, "type": "<", "text": "<", "parent": 766, "children": [], "start_point": {"row": 266, "column": 30}, "end_point": {"row": 266, "column": 31}}, {"id": 769, "type": "identifier", "text": "T", "parent": 766, "children": [], "start_point": {"row": 266, "column": 32}, "end_point": {"row": 266, "column": 33}}, {"id": 770, "type": ">", "text": ">", "parent": 765, "children": [], "start_point": {"row": 266, "column": 34}, "end_point": {"row": 266, "column": 35}}, {"id": 771, "type": "function_definition", "text": "static void push_args( std::vector< std::string >& args, const T& t )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\t}", "parent": 763, "children": [772, 773], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 272, "column": 2}}, {"id": 772, "type": "primitive_type", "text": "void", "parent": 771, "children": [], "start_point": {"row": 267, "column": 8}, "end_point": {"row": 267, "column": 12}}, {"id": 773, "type": "function_declarator", "text": "push_args( std::vector< std::string >& args, const T& t )", "parent": 771, "children": [774, 775], "start_point": {"row": 267, "column": 13}, "end_point": {"row": 267, "column": 70}}, {"id": 774, "type": "identifier", "text": "push_args", "parent": 773, "children": [], "start_point": {"row": 267, "column": 13}, "end_point": {"row": 267, "column": 22}}, {"id": 775, "type": "parameter_list", "text": "( std::vector< std::string >& args, const T& t )", "parent": 773, "children": [776, 785], "start_point": {"row": 267, "column": 22}, "end_point": {"row": 267, "column": 70}}, {"id": 776, "type": "parameter_declaration", "text": "std::vector< std::string >& args", "parent": 775, "children": [777, 778, 784], "start_point": {"row": 267, "column": 24}, "end_point": {"row": 267, "column": 56}}, {"id": 777, "type": "type_identifier", "text": "std", "parent": 776, "children": [], "start_point": {"row": 267, "column": 24}, "end_point": {"row": 267, "column": 27}}, {"id": 778, "type": "ERROR", "text": "::vector< std::string >&", "parent": 776, "children": [779, 780, 781, 782, 783], "start_point": {"row": 267, "column": 27}, "end_point": {"row": 267, "column": 51}}, {"id": 779, "type": "identifier", "text": "vector", "parent": 778, "children": [], "start_point": {"row": 267, "column": 29}, "end_point": {"row": 267, "column": 35}}, {"id": 780, "type": "<", "text": "<", "parent": 778, "children": [], "start_point": {"row": 267, "column": 35}, "end_point": {"row": 267, "column": 36}}, {"id": 781, "type": "identifier", "text": "std", "parent": 778, "children": [], "start_point": {"row": 267, "column": 37}, "end_point": {"row": 267, "column": 40}}, {"id": 782, "type": "identifier", "text": "string", "parent": 778, "children": [], "start_point": {"row": 267, "column": 42}, "end_point": {"row": 267, "column": 48}}, {"id": 783, "type": ">", "text": ">", "parent": 778, "children": [], "start_point": {"row": 267, "column": 49}, "end_point": {"row": 267, "column": 50}}, {"id": 784, "type": "identifier", "text": "args", "parent": 776, "children": [], "start_point": {"row": 267, "column": 52}, "end_point": {"row": 267, "column": 56}}, {"id": 785, "type": "parameter_declaration", "text": "const T& t", "parent": 775, "children": [786, 787], "start_point": {"row": 267, "column": 58}, "end_point": {"row": 267, "column": 68}}, {"id": 786, "type": "type_identifier", "text": "T", "parent": 785, "children": [], "start_point": {"row": 267, "column": 64}, "end_point": {"row": 267, "column": 65}}, {"id": 787, "type": "identifier", "text": "t", "parent": 785, "children": [], "start_point": {"row": 267, "column": 67}, "end_point": {"row": 267, "column": 68}}, {"id": 788, "type": "labeled_statement", "text": "std::ostringstream ostr;", "parent": 771, "children": [789, 790], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 26}}, {"id": 789, "type": "statement_identifier", "text": "std", "parent": 788, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 5}}, {"id": 790, "type": "declaration", "text": "ostringstream ostr;", "parent": 788, "children": [791, 792], "start_point": {"row": 269, "column": 7}, "end_point": {"row": 269, "column": 26}}, {"id": 791, "type": "type_identifier", "text": "ostringstream", "parent": 790, "children": [], "start_point": {"row": 269, "column": 7}, "end_point": {"row": 269, "column": 20}}, {"id": 792, "type": "identifier", "text": "ostr", "parent": 790, "children": [], "start_point": {"row": 269, "column": 21}, "end_point": {"row": 269, "column": 25}}, {"id": 793, "type": "binary_expression", "text": "ostr << t", "parent": 771, "children": [794, 795, 796], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 11}}, {"id": 794, "type": "identifier", "text": "ostr", "parent": 793, "children": [], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 6}}, {"id": 795, "type": "<<", "text": "<<", "parent": 793, "children": [], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 9}}, {"id": 796, "type": "identifier", "text": "t", "parent": 793, "children": [], "start_point": {"row": 270, "column": 10}, "end_point": {"row": 270, "column": 11}}, {"id": 797, "type": "call_expression", "text": "args.push_back( ostr.str() )", "parent": 771, "children": [798, 801], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 30}}, {"id": 798, "type": "field_expression", "text": "args.push_back", "parent": 797, "children": [799, 800], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 16}}, {"id": 799, "type": "identifier", "text": "args", "parent": 798, "children": [], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 6}}, {"id": 800, "type": "field_identifier", "text": "push_back", "parent": 798, "children": [], "start_point": {"row": 271, "column": 7}, "end_point": {"row": 271, "column": 16}}, {"id": 801, "type": "argument_list", "text": "( ostr.str() )", "parent": 797, "children": [802], "start_point": {"row": 271, "column": 16}, "end_point": {"row": 271, "column": 30}}, {"id": 802, "type": "call_expression", "text": "ostr.str()", "parent": 801, "children": [803, 806], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 271, "column": 28}}, {"id": 803, "type": "field_expression", "text": "ostr.str", "parent": 802, "children": [804, 805], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 271, "column": 26}}, {"id": 804, "type": "identifier", "text": "ostr", "parent": 803, "children": [], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 271, "column": 22}}, {"id": 805, "type": "field_identifier", "text": "str", "parent": 803, "children": [], "start_point": {"row": 271, "column": 23}, "end_point": {"row": 271, "column": 26}}, {"id": 806, "type": "argument_list", "text": "()", "parent": 802, "children": [], "start_point": {"row": 271, "column": 26}, "end_point": {"row": 271, "column": 28}}, {"id": 807, "type": "comma_expression", "text": "template< typename T, typename... ARGS >\nstruct", "parent": 0, "children": [808, 812, 814], "start_point": {"row": 275, "column": 0}, "end_point": {"row": 276, "column": 6}}, {"id": 808, "type": "binary_expression", "text": "template< typename", "parent": 807, "children": [809, 810, 811], "start_point": {"row": 275, "column": 0}, "end_point": {"row": 275, "column": 18}}, {"id": 809, "type": "identifier", "text": "template", "parent": 808, "children": [], "start_point": {"row": 275, "column": 0}, "end_point": {"row": 275, "column": 8}}, {"id": 810, "type": "<", "text": "<", "parent": 808, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 9}}, {"id": 811, "type": "identifier", "text": "typename", "parent": 808, "children": [], "start_point": {"row": 275, "column": 10}, "end_point": {"row": 275, "column": 18}}, {"id": 812, "type": "ERROR", "text": "T", "parent": 807, "children": [813], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 20}}, {"id": 813, "type": "identifier", "text": "T", "parent": 812, "children": [], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 20}}, {"id": 814, "type": "binary_expression", "text": "typename... ARGS >\nstruct", "parent": 807, "children": [815, 816, 818, 819], "start_point": {"row": 275, "column": 22}, "end_point": {"row": 276, "column": 6}}, {"id": 815, "type": "identifier", "text": "typename", "parent": 814, "children": [], "start_point": {"row": 275, "column": 22}, "end_point": {"row": 275, "column": 30}}, {"id": 816, "type": "ERROR", "text": "... ARGS", "parent": 814, "children": [817], "start_point": {"row": 275, "column": 30}, "end_point": {"row": 275, "column": 38}}, {"id": 817, "type": "identifier", "text": "ARGS", "parent": 816, "children": [], "start_point": {"row": 275, "column": 34}, "end_point": {"row": 275, "column": 38}}, {"id": 818, "type": ">", "text": ">", "parent": 814, "children": [], "start_point": {"row": 275, "column": 39}, "end_point": {"row": 275, "column": 40}}, {"id": 819, "type": "identifier", "text": "struct", "parent": 814, "children": [], "start_point": {"row": 276, "column": 0}, "end_point": {"row": 276, "column": 6}}, {"id": 820, "type": "labeled_statement", "text": "ASTException::argreader< T, ARGS... > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\n\t\tASTException::argreader< ARGS... >::push_args( args, varargs... );\n\t}\n}", "parent": 0, "children": [821, 822], "start_point": {"row": 276, "column": 7}, "end_point": {"row": 285, "column": 1}}, {"id": 821, "type": "statement_identifier", "text": "ASTException", "parent": 820, "children": [], "start_point": {"row": 276, "column": 7}, "end_point": {"row": 276, "column": 19}}, {"id": 822, "type": "ERROR", "text": ":argreader< T, ARGS... >", "parent": 820, "children": [823, 827, 828], "start_point": {"row": 276, "column": 20}, "end_point": {"row": 276, "column": 44}}, {"id": 823, "type": "binary_expression", "text": "argreader< T", "parent": 822, "children": [824, 825, 826], "start_point": {"row": 276, "column": 21}, "end_point": {"row": 276, "column": 33}}, {"id": 824, "type": "identifier", "text": "argreader", "parent": 823, "children": [], "start_point": {"row": 276, "column": 21}, "end_point": {"row": 276, "column": 30}}, {"id": 825, "type": "<", "text": "<", "parent": 823, "children": [], "start_point": {"row": 276, "column": 30}, "end_point": {"row": 276, "column": 31}}, {"id": 826, "type": "identifier", "text": "T", "parent": 823, "children": [], "start_point": {"row": 276, "column": 32}, "end_point": {"row": 276, "column": 33}}, {"id": 827, "type": "identifier", "text": "ARGS", "parent": 822, "children": [], "start_point": {"row": 276, "column": 35}, "end_point": {"row": 276, "column": 39}}, {"id": 828, "type": ">", "text": ">", "parent": 822, "children": [], "start_point": {"row": 276, "column": 43}, "end_point": {"row": 276, "column": 44}}, {"id": 829, "type": "function_definition", "text": "static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\n\t\tASTException::argreader< ARGS... >::push_args( args, varargs... );\n\t}", "parent": 820, "children": [830, 831], "start_point": {"row": 277, "column": 1}, "end_point": {"row": 284, "column": 2}}, {"id": 830, "type": "primitive_type", "text": "void", "parent": 829, "children": [], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 12}}, {"id": 831, "type": "function_declarator", "text": "push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )", "parent": 829, "children": [832, 833], "start_point": {"row": 277, "column": 13}, "end_point": {"row": 277, "column": 87}}, {"id": 832, "type": "identifier", "text": "push_args", "parent": 831, "children": [], "start_point": {"row": 277, "column": 13}, "end_point": {"row": 277, "column": 22}}, {"id": 833, "type": "parameter_list", "text": "( std::vector< std::string >& args, const T& t, ARGS... varargs )", "parent": 831, "children": [834, 843, 846], "start_point": {"row": 277, "column": 22}, "end_point": {"row": 277, "column": 87}}, {"id": 834, "type": "parameter_declaration", "text": "std::vector< std::string >& args", "parent": 833, "children": [835, 836, 842], "start_point": {"row": 277, "column": 24}, "end_point": {"row": 277, "column": 56}}, {"id": 835, "type": "type_identifier", "text": "std", "parent": 834, "children": [], "start_point": {"row": 277, "column": 24}, "end_point": {"row": 277, "column": 27}}, {"id": 836, "type": "ERROR", "text": "::vector< std::string >&", "parent": 834, "children": [837, 838, 839, 840, 841], "start_point": {"row": 277, "column": 27}, "end_point": {"row": 277, "column": 51}}, {"id": 837, "type": "identifier", "text": "vector", "parent": 836, "children": [], "start_point": {"row": 277, "column": 29}, "end_point": {"row": 277, "column": 35}}, {"id": 838, "type": "<", "text": "<", "parent": 836, "children": [], "start_point": {"row": 277, "column": 35}, "end_point": {"row": 277, "column": 36}}, {"id": 839, "type": "identifier", "text": "std", "parent": 836, "children": [], "start_point": {"row": 277, "column": 37}, "end_point": {"row": 277, "column": 40}}, {"id": 840, "type": "identifier", "text": "string", "parent": 836, "children": [], "start_point": {"row": 277, "column": 42}, "end_point": {"row": 277, "column": 48}}, {"id": 841, "type": ">", "text": ">", "parent": 836, "children": [], "start_point": {"row": 277, "column": 49}, "end_point": {"row": 277, "column": 50}}, {"id": 842, "type": "identifier", "text": "args", "parent": 834, "children": [], "start_point": {"row": 277, "column": 52}, "end_point": {"row": 277, "column": 56}}, {"id": 843, "type": "parameter_declaration", "text": "const T& t", "parent": 833, "children": [844, 845], "start_point": {"row": 277, "column": 58}, "end_point": {"row": 277, "column": 68}}, {"id": 844, "type": "type_identifier", "text": "T", "parent": 843, "children": [], "start_point": {"row": 277, "column": 64}, "end_point": {"row": 277, "column": 65}}, {"id": 845, "type": "identifier", "text": "t", "parent": 843, "children": [], "start_point": {"row": 277, "column": 67}, "end_point": {"row": 277, "column": 68}}, {"id": 846, "type": "parameter_declaration", "text": "ARGS... varargs", "parent": 833, "children": [847, 848], "start_point": {"row": 277, "column": 70}, "end_point": {"row": 277, "column": 85}}, {"id": 847, "type": "type_identifier", "text": "ARGS", "parent": 846, "children": [], "start_point": {"row": 277, "column": 70}, "end_point": {"row": 277, "column": 74}}, {"id": 848, "type": "identifier", "text": "varargs", "parent": 846, "children": [], "start_point": {"row": 277, "column": 78}, "end_point": {"row": 277, "column": 85}}, {"id": 849, "type": "labeled_statement", "text": "std::ostringstream ostr;", "parent": 829, "children": [850, 851], "start_point": {"row": 279, "column": 2}, "end_point": {"row": 279, "column": 26}}, {"id": 850, "type": "statement_identifier", "text": "std", "parent": 849, "children": [], "start_point": {"row": 279, "column": 2}, "end_point": {"row": 279, "column": 5}}, {"id": 851, "type": "declaration", "text": "ostringstream ostr;", "parent": 849, "children": [852, 853], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 26}}, {"id": 852, "type": "type_identifier", "text": "ostringstream", "parent": 851, "children": [], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 20}}, {"id": 853, "type": "identifier", "text": "ostr", "parent": 851, "children": [], "start_point": {"row": 279, "column": 21}, "end_point": {"row": 279, "column": 25}}, {"id": 854, "type": "binary_expression", "text": "ostr << t", "parent": 829, "children": [855, 856, 857], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 11}}, {"id": 855, "type": "identifier", "text": "ostr", "parent": 854, "children": [], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 6}}, {"id": 856, "type": "<<", "text": "<<", "parent": 854, "children": [], "start_point": {"row": 280, "column": 7}, "end_point": {"row": 280, "column": 9}}, {"id": 857, "type": "identifier", "text": "t", "parent": 854, "children": [], "start_point": {"row": 280, "column": 10}, "end_point": {"row": 280, "column": 11}}, {"id": 858, "type": "call_expression", "text": "args.push_back( ostr.str() )", "parent": 829, "children": [859, 862], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 30}}, {"id": 859, "type": "field_expression", "text": "args.push_back", "parent": 858, "children": [860, 861], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 16}}, {"id": 860, "type": "identifier", "text": "args", "parent": 859, "children": [], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 6}}, {"id": 861, "type": "field_identifier", "text": "push_back", "parent": 859, "children": [], "start_point": {"row": 281, "column": 7}, "end_point": {"row": 281, "column": 16}}, {"id": 862, "type": "argument_list", "text": "( ostr.str() )", "parent": 858, "children": [863], "start_point": {"row": 281, "column": 16}, "end_point": {"row": 281, "column": 30}}, {"id": 863, "type": "call_expression", "text": "ostr.str()", "parent": 862, "children": [864, 867], "start_point": {"row": 281, "column": 18}, "end_point": {"row": 281, "column": 28}}, {"id": 864, "type": "field_expression", "text": "ostr.str", "parent": 863, "children": [865, 866], "start_point": {"row": 281, "column": 18}, "end_point": {"row": 281, "column": 26}}, {"id": 865, "type": "identifier", "text": "ostr", "parent": 864, "children": [], "start_point": {"row": 281, "column": 18}, "end_point": {"row": 281, "column": 22}}, {"id": 866, "type": "field_identifier", "text": "str", "parent": 864, "children": [], "start_point": {"row": 281, "column": 23}, "end_point": {"row": 281, "column": 26}}, {"id": 867, "type": "argument_list", "text": "()", "parent": 863, "children": [], "start_point": {"row": 281, "column": 26}, "end_point": {"row": 281, "column": 28}}, {"id": 868, "type": "labeled_statement", "text": "ASTException::argreader< ARGS... >::push_args( args, varargs... );", "parent": 829, "children": [869, 870], "start_point": {"row": 283, "column": 2}, "end_point": {"row": 283, "column": 68}}, {"id": 869, "type": "statement_identifier", "text": "ASTException", "parent": 868, "children": [], "start_point": {"row": 283, "column": 2}, "end_point": {"row": 283, "column": 14}}, {"id": 870, "type": "ERROR", "text": "::argreader< ARGS... >:", "parent": 868, "children": [871, 875], "start_point": {"row": 283, "column": 14}, "end_point": {"row": 283, "column": 37}}, {"id": 871, "type": "binary_expression", "text": "argreader< ARGS", "parent": 870, "children": [872, 873, 874], "start_point": {"row": 283, "column": 16}, "end_point": {"row": 283, "column": 31}}, {"id": 872, "type": "identifier", "text": "argreader", "parent": 871, "children": [], "start_point": {"row": 283, "column": 16}, "end_point": {"row": 283, "column": 25}}, {"id": 873, "type": "<", "text": "<", "parent": 871, "children": [], "start_point": {"row": 283, "column": 25}, "end_point": {"row": 283, "column": 26}}, {"id": 874, "type": "identifier", "text": "ARGS", "parent": 871, "children": [], "start_point": {"row": 283, "column": 27}, "end_point": {"row": 283, "column": 31}}, {"id": 875, "type": ">", "text": ">", "parent": 870, "children": [], "start_point": {"row": 283, "column": 35}, "end_point": {"row": 283, "column": 36}}, {"id": 876, "type": "call_expression", "text": "push_args( args, varargs... )", "parent": 868, "children": [877, 878], "start_point": {"row": 283, "column": 38}, "end_point": {"row": 283, "column": 67}}, {"id": 877, "type": "identifier", "text": "push_args", "parent": 876, "children": [], "start_point": {"row": 283, "column": 38}, "end_point": {"row": 283, "column": 47}}, {"id": 878, "type": "argument_list", "text": "( args, varargs... )", "parent": 876, "children": [879, 880], "start_point": {"row": 283, "column": 47}, "end_point": {"row": 283, "column": 67}}, {"id": 879, "type": "identifier", "text": "args", "parent": 878, "children": [], "start_point": {"row": 283, "column": 49}, "end_point": {"row": 283, "column": 53}}, {"id": 880, "type": "identifier", "text": "varargs", "parent": 878, "children": [], "start_point": {"row": 283, "column": 55}, "end_point": {"row": 283, "column": 62}}, {"id": 881, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 288, "column": 0}, "end_point": {"row": 288, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 36, 45, 51, 59, 69, 98, 128, 161, 165, 169, 173, 177, 181, 185, 189, 209, 236, 263, 283, 402, 431, 451, 467, 487, 520, 553, 614, 650, 670, 712, 716, 771, 773, 829, 831], "variables": [32, 41, 49, 54, 57, 62, 67, 72, 84, 96, 101, 106, 126, 131, 140, 143, 152, 313, 719, 724, 776, 785, 790, 834, 843, 846, 851], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [27, 29, 75, 76, 116, 117, 201, 205, 215, 216, 225, 229, 242, 243, 252, 256, 275, 279, 289, 290, 296, 300, 307, 318, 319, 327, 328, 331, 332, 341, 342, 352, 353, 361, 362, 365, 366, 375, 376, 385, 391, 392, 396, 397, 408, 409, 415, 420, 424, 443, 447, 463, 479, 483, 493, 494, 500, 501, 507, 511, 515, 526, 527, 533, 534, 540, 544, 548, 558, 559, 565, 572, 577, 589, 596, 597, 603, 606, 610, 626, 632, 633, 639, 642, 646, 662, 666, 676, 677, 683, 689, 693, 703, 704, 730, 734, 738, 739, 744, 749, 754, 755, 766, 793, 797, 798, 802, 803, 807, 808, 814, 823, 854, 858, 859, 863, 864, 871, 876], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 24, 25, 30, 37, 39, 40, 46, 52, 55, 56, 60, 66, 70, 73, 74, 77, 79, 81, 83, 85, 86, 91, 93, 94, 99, 105, 107, 109, 111, 112, 114, 118, 120, 122, 124, 125, 129, 132, 134, 136, 137, 139, 141, 142, 148, 157, 162, 164, 166, 168, 170, 172, 175, 176, 179, 180, 183, 184, 187, 188, 190, 192, 195, 196, 198, 200, 202, 204, 206, 210, 212, 217, 220, 221, 222, 223, 224, 226, 228, 230, 235, 237, 239, 244, 247, 248, 249, 250, 251, 253, 255, 257, 262, 264, 266, 269, 270, 272, 274, 276, 278, 280, 284, 286, 291, 294, 295, 297, 299, 301, 303, 304, 305, 306, 308, 310, 312, 314, 315, 316, 320, 322, 324, 326, 329, 340, 343, 350, 354, 356, 358, 360, 363, 374, 377, 384, 386, 393, 394, 398, 399, 401, 403, 405, 410, 413, 414, 417, 419, 421, 423, 425, 430, 432, 434, 437, 438, 440, 442, 444, 446, 448, 452, 454, 457, 458, 460, 462, 464, 466, 468, 470, 473, 474, 476, 478, 480, 482, 484, 488, 490, 495, 498, 499, 502, 504, 505, 506, 508, 510, 512, 516, 519, 521, 523, 528, 531, 532, 535, 537, 538, 539, 541, 543, 545, 549, 552, 554, 556, 560, 563, 564, 566, 568, 570, 571, 573, 575, 576, 578, 580, 582, 583, 586, 587, 588, 590, 593, 594, 598, 601, 602, 604, 605, 607, 609, 611, 613, 615, 617, 620, 621, 625, 627, 630, 634, 637, 638, 640, 641, 643, 645, 647, 649, 651, 653, 656, 657, 659, 661, 663, 665, 667, 671, 673, 678, 681, 682, 684, 686, 687, 688, 690, 692, 694, 697, 698, 699, 705, 707, 709, 711, 715, 717, 723, 725, 726, 728, 731, 733, 735, 737, 740, 742, 745, 747, 748, 750, 752, 753, 756, 758, 760, 762, 764, 767, 769, 774, 777, 779, 781, 782, 784, 786, 787, 789, 791, 792, 794, 796, 799, 800, 804, 805, 809, 811, 813, 815, 817, 819, 821, 824, 826, 827, 832, 835, 837, 839, 840, 842, 844, 845, 847, 848, 850, 852, 853, 855, 857, 860, 861, 865, 866, 869, 872, 874, 877, 879, 880, 881], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 208, 232, 259, 282, 338, 345, 372, 379, 388, 427, 450, 486, 514, 518, 547, 551, 592, 629, 669, 696, 701, 702], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "ASTException", "text_snippet": "class ASTException : public std::exception {\npublic:\n\t~ASTException();\n\n const char* what() const"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "what() const noexcept override"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "get_location() const"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "loc( const yylloc_t& location )"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "msg( const char* msg )"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "clone( const ASTException& ex )"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "create_msg( const char* msg, std::vector< std::string >& args )"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "push_args( std::vector< std::string >& args, ARGS... varargs )"}, {"node_id": 161, "universal_type": "function", "name": "ASTControlflowException", "text_snippet": "class ASTControlflowException : public ASTException {}"}, {"node_id": 165, "universal_type": "function", "name": "ASTCompileException", "text_snippet": "class ASTCompileException : public ASTException {}"}, {"node_id": 169, "universal_type": "function", "name": "ASTRuntimeException", "text_snippet": "class ASTRuntimeException : public ASTException {}"}, {"node_id": 173, "universal_type": "function", "name": "ASTExceptionExit", "text_snippet": "class ASTExceptionExit : public ASTControlflowException {}"}, {"node_id": 177, "universal_type": "function", "name": "ASTExceptionBreak", "text_snippet": "class ASTExceptionBreak : public ASTControlflowException {}"}, {"node_id": 181, "universal_type": "function", "name": "ASTExceptionQuit", "text_snippet": "class ASTExceptionQuit : public ASTControlflowException {}"}, {"node_id": 185, "universal_type": "function", "name": "ASTExceptionTerminate", "text_snippet": "class ASTExceptionTerminate : public ASTControlflowException {}"}, {"node_id": 189, "universal_type": "function", "name": "ASTExceptionSyntaxError", "text_snippet": "class ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n\tASTExceptionSyntaxError( const"}, {"node_id": 209, "universal_type": "function", "name": "ASTExceptionNamingConflict", "text_snippet": "class ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n\tASTExceptionNamingConflict("}, {"node_id": 236, "universal_type": "function", "name": "ASTExceptionUndefinedVar", "text_snippet": "class ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n\tASTExceptionUndefinedVar( con"}, {"node_id": 263, "universal_type": "function", "name": "ASTExceptionNoReturnValue", "text_snippet": "class ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue"}, {"node_id": 283, "universal_type": "function", "name": "ASTExceptionMappingFailure", "text_snippet": "class ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n\tASTExceptionMappingFailure("}, {"node_id": 402, "universal_type": "function", "name": "ASTExceptionFileNotFound", "text_snippet": "class ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n\tASTExceptionFileNotFound( con"}, {"node_id": 431, "universal_type": "function", "name": "ASTExceptionNonconstExpression", "text_snippet": "class ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconst"}, {"node_id": 451, "universal_type": "function", "name": "ASTExceptionConstDivisionByZero", "text_snippet": "class ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDi"}, {"node_id": 467, "universal_type": "function", "name": "ASTExceptionDivisionByZero", "text_snippet": "class ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n\tASTExceptionDivisionByZero("}, {"node_id": 487, "universal_type": "function", "name": "ASTExceptionNoMapping", "text_snippet": "class ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n\tASTExceptionNoMapping( const yyl"}, {"node_id": 520, "universal_type": "function", "name": "ASTExceptionBusError", "text_snippet": "class ASTExceptionBusError : public ASTRuntimeException {\npublic:\n\tASTExceptionBusError( const yyllo"}, {"node_id": 553, "universal_type": "function", "name": "ASTExceptionOutOfBounds", "text_snippet": "class ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( co"}, {"node_id": 614, "universal_type": "function", "name": "ASTExceptionOutOfMemory", "text_snippet": "class ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( ui"}, {"node_id": 650, "universal_type": "function", "name": "ASTExceptionDroppedSubroutine", "text_snippet": "class ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSu"}, {"node_id": 670, "universal_type": "function", "name": "ASTExceptionArgTypeMismatch", "text_snippet": "class ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMism"}, {"node_id": 712, "universal_type": "function", "name": "ASTException::msg", "text_snippet": "void ASTException::msg( const char* msg, ARGS... varargs )\n{\n\tstd::vector< std::string > args;\n\targr"}, {"node_id": 716, "universal_type": "function", "name": "unknown", "text_snippet": "msg( const char* msg, ARGS... varargs )"}, {"node_id": 771, "universal_type": "function", "name": "push_args", "text_snippet": "static void push_args( std::vector< std::string >& args, const T& t )\n\t{\n\t\tstd::ostringstream ostr;\n"}, {"node_id": 773, "universal_type": "function", "name": "unknown", "text_snippet": "push_args( std::vector< std::string >& args, const T& t )"}, {"node_id": 829, "universal_type": "function", "name": "push_args", "text_snippet": "static void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n\t{\n\t\tstd::ost"}, {"node_id": 831, "universal_type": "function", "name": "unknown", "text_snippet": "push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"mempeek_parser.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sstream>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <iomanip>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <vector>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/* Copyright (c) 2015-2018, <NAME>\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef __mempeek_exceptions_h__\n#define __mempeek_exceptions_h__\n\n#include \"mempeek_parser.h\"\n\n#include <sstream>\n#include <iomanip>\n#include <string>\n#include <vector>\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTException : public std::exception {\npublic:\n\t~ASTException();\n\n const char* what() const noexcept override;\n\n const char* get_location() const;\n\nprotected:\n void loc( const yylloc_t& location );\n void msg( const char* msg );\n void clone( const ASTException& ex );\n\n template< typename... ARGS >\n void msg( const char* msg, ARGS... varargs );\n\nprivate:\n void create_msg( const char* msg, std::vector< std::string >& args );\n\n template < typename... ARGS >\n struct argreader {\n \tstatic void push_args( std::vector< std::string >& args, ARGS... varargs );\n };\n\n const char* m_Location = nullptr;\n const char* m_What = nullptr;\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode exception types\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTControlflowException : public ASTException {};\nclass ASTCompileException : public ASTException {};\nclass ASTRuntimeException : public ASTException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode control flow exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionExit : public ASTControlflowException {};\nclass ASTExceptionBreak : public ASTControlflowException {};\nclass ASTExceptionQuit : public ASTControlflowException {};\nclass ASTExceptionTerminate : public ASTControlflowException {};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode compile exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionSyntaxError : public ASTCompileException {\npublic:\n\tASTExceptionSyntaxError( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"syntax error\" );\n\t}\n};\n\nclass ASTExceptionNamingConflict : public ASTCompileException {\npublic:\n\tASTExceptionNamingConflict( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"conflicting name \\\"$0\\\"\", name );\n\t}\n};\n\nclass ASTExceptionUndefinedVar : public ASTCompileException {\npublic:\n\tASTExceptionUndefinedVar( const yylloc_t& location, std::string name )\n\t{\n\t\tloc( location );\n\t\tmsg( \"using undefined var \\\"$0\\\"\", name );\n\t}\n};\n\nclass ASTExceptionNoReturnValue : public ASTCompileException {\npublic:\n ASTExceptionNoReturnValue( const yylloc_t& location )\n {\n loc( location );\n msg( \"no return value\" );\n }\n};\n\nclass ASTExceptionMappingFailure : public ASTCompileException {\npublic:\n\tASTExceptionMappingFailure( const yylloc_t& location, uint64_t address,\n\t\t\t\t\t\t\t\tuint64_t size, std::string device )\n\t{\n\t\tloc( location );\n\t\tstd::ostringstream a, s;\n\t\ta << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << address;\n\t s << std::hex << std::setw( sizeof(void*) * 2 ) << std::setfill( '0' ) << size;\n\t\tmsg( \"failed to map address range $0 size $1 of device \\\"$2\\\"\", a.str(), s.str(), device );\n\t}\n};\n\nclass ASTExceptionFileNotFound : public ASTCompileException {\npublic:\n\tASTExceptionFileNotFound( const yylloc_t& location, const char* file )\n\t{\n\t\tloc( location );\n\t\tmsg( \"file \\\"$0\\\" not found\", file );\n\t}\n};\n\nclass ASTExceptionNonconstExpression : public ASTCompileException {\npublic:\n ASTExceptionNonconstExpression( const yylloc_t& location )\n {\n loc( location );\n msg( \"illegal usage of non-const expression\" );\n }\n};\n\nclass ASTExceptionConstDivisionByZero : public ASTCompileException {\npublic:\n ASTExceptionConstDivisionByZero( const ASTException& ex )\n {\n clone( ex );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// ASTNode runtime exceptions\n//////////////////////////////////////////////////////////////////////////////\n\nclass ASTExceptionDivisionByZero : public ASTRuntimeException {\npublic:\n\tASTExceptionDivisionByZero( const yylloc_t& location )\n\t{\n\t\tloc( location );\n\t\tmsg( \"division by zero\" );\n\t}\n};\n\nclass ASTExceptionNoMapping : public ASTRuntimeException {\npublic:\n\tASTExceptionNoMapping( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"no mapping found for $0 bit access to address $1\", size * 8, address );\n\t}\n};\n\nclass ASTExceptionBusError : public ASTRuntimeException {\npublic:\n\tASTExceptionBusError( const yylloc_t& location, void* address, size_t size )\n\t{\n\t\tloc( location );\n\t\tmsg( \"failed $0 bit access to address $1\", size * 8, address );\n\t}\n\n};\n\nclass ASTExceptionOutOfBounds : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfBounds( const yylloc_t& location, uint64_t index, uint64_t size )\n : ASTExceptionOutOfBounds( index, size )\n {\n loc( location );\n }\n\n ASTExceptionOutOfBounds( uint64_t index, uint64_t size )\n {\n msg( \"index $0 does not match size $1\", index, size );\n }\n\n ASTExceptionOutOfBounds( const yylloc_t& location, const ASTExceptionOutOfBounds& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionOutOfMemory : public ASTRuntimeException {\npublic:\n ASTExceptionOutOfMemory( uint64_t size )\n {\n msg( \"failed to allocate array of size $0\", size );\n }\n\n ASTExceptionOutOfMemory( const yylloc_t& location, const ASTExceptionOutOfMemory& ex )\n {\n clone( ex );\n loc( location );\n }\n};\n\nclass ASTExceptionDroppedSubroutine : public ASTRuntimeException {\npublic:\n ASTExceptionDroppedSubroutine( const yylloc_t& location )\n {\n loc( location );\n msg( \"calling dropped subroutine\" );\n }\n};\n\nclass ASTExceptionArgTypeMismatch : public ASTRuntimeException {\npublic:\n ASTExceptionArgTypeMismatch( const yylloc_t& location, uint64_t index, bool is_array )\n {\n loc( location );\n msg( \"type of vararg $0 is $1\", index, is_array ? \"array\" : \"var\" );\n }\n};\n\n\n//////////////////////////////////////////////////////////////////////////////\n// class ASTNodeException template functions\n//////////////////////////////////////////////////////////////////////////////\n\ntemplate< typename... ARGS >\ninline void ASTException::msg( const char* msg, ARGS... varargs )\n{\n\tstd::vector< std::string > args;\n\targreader< ARGS... >::push_args( args, varargs... );\n\tcreate_msg( msg, args );\n}\n\ntemplate< typename T >\nstruct ASTException::argreader< T > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\t}\n};\n\ntemplate< typename T, typename... ARGS >\nstruct ASTException::argreader< T, ARGS... > {\n\tstatic void push_args( std::vector< std::string >& args, const T& t, ARGS... varargs )\n\t{\n\t\tstd::ostringstream ostr;\n\t\tostr << t;\n\t\targs.push_back( ostr.str() );\n\n\t\tASTException::argreader< ARGS... >::push_args( args, varargs... );\n\t}\n};\n\n\n#endif // __mempeek_exceptions_h__\n"}
81,010
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference */ @interface VCDispatchQueue : NSObject { struct _opaque_pthread_mutex_t { long long __sig; BOOL __opaque[56]; } _lock; NSMutableArray * _rootQueues; } + (id)defaultManager; - (void)dealloc; - (id)getCustomRootQueueWithPriority:(int)arg1 isFixedPriority:(bool)arg2; - (id)init; @end
27.53
15
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference\n */\n\n@interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQueues;\n}\n\n+ (id)defaultManager;\n\n- (void)dealloc;\n- (id)getCustomRootQueueWithPriority:(int)arg1 isFixedPriority:(bool)arg2;\n- (id)init;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference\n */" (ERROR) "@" (ERROR) "@" (function_definition) "interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQueues;\n}" (type_identifier) "interface" (identifier) "VCDispatchQueue" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQueues;\n}" ({) "{" (declaration) "struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;" (struct_specifier) "struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n }" (struct) "struct" (type_identifier) "_opaque_pthread_mutex_t" (field_declaration_list) "{ \n long long __sig; \n BOOL __opaque[56]; \n }" ({) "{" (field_declaration) "long long __sig;" (sized_type_specifier) "long long" (long) "long" (long) "long" (field_identifier) "__sig" (;) ";" (field_declaration) "BOOL __opaque[56];" (type_identifier) "BOOL" (array_declarator) "__opaque[56]" (field_identifier) "__opaque" ([) "[" (number_literal) "56" (]) "]" (;) ";" (}) "}" (identifier) "_lock" (;) ";" (declaration) "NSMutableArray * _rootQueues;" (type_identifier) "NSMutableArray" (pointer_declarator) "* _rootQueues" (*) "*" (identifier) "_rootQueues" (;) ";" (}) "}" (expression_statement) "+ (id)defaultManager;" (unary_expression) "+ (id)defaultManager" (+) "+" (cast_expression) "(id)defaultManager" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "defaultManager" (;) ";" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (ERROR) "- (id)getCustomRootQueueWithPriority:(int)arg1 isFixedPriority:(" (unary_expression) "- (id)getCustomRootQueueWithPriority" (-) "-" (cast_expression) "(id)getCustomRootQueueWithPriority" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "getCustomRootQueueWithPriority" (:) ":" (() "(" (primitive_type) "int" ()) ")" (type_identifier) "arg1" (identifier) "isFixedPriority" (:) ":" (() "(" (declaration) "bool)arg2;" (primitive_type) "bool" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
100
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.53, "nodes": 60, "errors": 0, "source_hash": "580b85355fc23d9747aec3e7ba40a5902a1a57d9c370cf74ca310d0b25d69c7a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 2, "type": "function_definition", "text": "interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQueues;\n}", "parent": null, "children": [3, 4, 5], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 10, "column": 1}}, {"id": 3, "type": "type_identifier", "text": "interface", "parent": 2, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 4, "type": "identifier", "text": "VCDispatchQueue", "parent": 2, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 26}}, {"id": 5, "type": "ERROR", "text": ": NSObject", "parent": 2, "children": [6], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 37}}, {"id": 6, "type": "identifier", "text": "NSObject", "parent": 5, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 37}}, {"id": 7, "type": "declaration", "text": "struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;", "parent": 2, "children": [8, 21], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 8, "column": 13}}, {"id": 8, "type": "struct_specifier", "text": "struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n }", "parent": 7, "children": [9, 10], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 10, "type": "type_identifier", "text": "_opaque_pthread_mutex_t", "parent": 8, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 34}}, {"id": 11, "type": "field_declaration", "text": "long long __sig;", "parent": 8, "children": [12, 15], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 24}}, {"id": 12, "type": "sized_type_specifier", "text": "long long", "parent": 11, "children": [13, 14], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 13, "type": "long", "text": "long", "parent": 12, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 12}}, {"id": 14, "type": "long", "text": "long", "parent": 12, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 15, "type": "field_identifier", "text": "__sig", "parent": 11, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 23}}, {"id": 16, "type": "field_declaration", "text": "BOOL __opaque[56];", "parent": 8, "children": [17, 18], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 26}}, {"id": 17, "type": "type_identifier", "text": "BOOL", "parent": 16, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 18, "type": "array_declarator", "text": "__opaque[56]", "parent": 16, "children": [19, 20], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 25}}, {"id": 19, "type": "field_identifier", "text": "__opaque", "parent": 18, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 21}}, {"id": 20, "type": "number_literal", "text": "56", "parent": 18, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 24}}, {"id": 21, "type": "identifier", "text": "_lock", "parent": 7, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 12}}, {"id": 22, "type": "declaration", "text": "NSMutableArray * _rootQueues;", "parent": 2, "children": [23, 24], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 33}}, {"id": 23, "type": "type_identifier", "text": "NSMutableArray", "parent": 22, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 18}}, {"id": 24, "type": "pointer_declarator", "text": "* _rootQueues", "parent": 22, "children": [25, 26], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 32}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 20}}, {"id": 26, "type": "identifier", "text": "_rootQueues", "parent": 24, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 32}}, {"id": 27, "type": "unary_expression", "text": "+ (id)defaultManager", "parent": null, "children": [28, 29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 20}}, {"id": 28, "type": "+", "text": "+", "parent": 27, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 29, "type": "cast_expression", "text": "(id)defaultManager", "parent": 27, "children": [30, 32], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 20}}, {"id": 30, "type": "type_descriptor", "text": "id", "parent": 29, "children": [31], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 5}}, {"id": 31, "type": "type_identifier", "text": "id", "parent": 30, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 5}}, {"id": 32, "type": "identifier", "text": "defaultManager", "parent": 29, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 20}}, {"id": 33, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [34, 35], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 15}}, {"id": 34, "type": "-", "text": "-", "parent": 33, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "(void)dealloc", "parent": 33, "children": [36, 38], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 36, "type": "type_descriptor", "text": "void", "parent": 35, "children": [37], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 38, "type": "identifier", "text": "dealloc", "parent": 35, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 39, "type": "ERROR", "text": "- (id)getCustomRootQueueWithPriority:(int)arg1 isFixedPriority:(", "parent": null, "children": [40, 46, 47, 48], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 64}}, {"id": 40, "type": "unary_expression", "text": "- (id)getCustomRootQueueWithPriority", "parent": 39, "children": [41, 42], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 36}}, {"id": 41, "type": "-", "text": "-", "parent": 40, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 42, "type": "cast_expression", "text": "(id)getCustomRootQueueWithPriority", "parent": 40, "children": [43, 45], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 36}}, {"id": 43, "type": "type_descriptor", "text": "id", "parent": 42, "children": [44], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 44, "type": "type_identifier", "text": "id", "parent": 43, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 45, "type": "identifier", "text": "getCustomRootQueueWithPriority", "parent": 42, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 36}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 41}}, {"id": 47, "type": "type_identifier", "text": "arg1", "parent": 39, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 46}}, {"id": 48, "type": "identifier", "text": "isFixedPriority", "parent": 39, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 62}}, {"id": 49, "type": "declaration", "text": "bool)arg2;", "parent": null, "children": [50, 51], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 74}}, {"id": 50, "type": "primitive_type", "text": "bool", "parent": 49, "children": [], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 68}}, {"id": 51, "type": "identifier", "text": "arg2", "parent": 49, "children": [], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 73}}, {"id": 52, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [53, 54], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 10}}, {"id": 53, "type": "-", "text": "-", "parent": 52, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 54, "type": "cast_expression", "text": "(id)init", "parent": 52, "children": [55, 57], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 10}}, {"id": 55, "type": "type_descriptor", "text": "id", "parent": 54, "children": [56], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 56, "type": "type_identifier", "text": "id", "parent": 55, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 57, "type": "identifier", "text": "init", "parent": 54, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 10}}, {"id": 58, "type": "ERROR", "text": "@", "parent": null, "children": [59], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 59, "type": "ERROR", "text": "@", "parent": 58, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}]}, "node_categories": {"declarations": {"functions": [2], "variables": [7, 11, 16, 22, 49], "classes": [8, 9], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [27, 29, 33, 35, 40, 42, 52, 54], "assignments": [], "loops": [], "conditionals": [3, 4, 6, 10, 12, 15, 17, 19, 21, 23, 26, 31, 32, 38, 44, 45, 47, 48, 51, 56, 57], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "VCDispatchQueue", "text_snippet": "interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig"}], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "_opaque_pthread_mutex_t", "text_snippet": "struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n }"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference\n */\n\n@interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQueues;\n}\n\n+ (id)defaultManager;\n\n- (void)dealloc;\n- (id)getCustomRootQueueWithPriority:(int)arg1 isFixedPriority:(bool)arg2;\n- (id)init;\n\n@end\n"}
81,011
c
#ifndef _ACTION_SUITE_H_ #define _ACTION_SUITE_H_ #include "TestSuite.h" //description of the class here class ActionSuite: public TestSuite { public: ActionSuite(); virtual std::string suiteName() override { return "Action"; } }; #endif
20.82
11
(translation_unit) "#ifndef _ACTION_SUITE_H_\n#define _ACTION_SUITE_H_\n\n#include "TestSuite.h"\n\n//description of the class here\nclass ActionSuite: public TestSuite\n{\npublic:\n ActionSuite();\n virtual std::string suiteName() override { return "Action"; }\n};\n#endif\n" (preproc_ifdef) "#ifndef _ACTION_SUITE_H_\n#define _ACTION_SUITE_H_\n\n#include "TestSuite.h"\n\n//description of the class here\nclass ActionSuite: public TestSuite\n{\npublic:\n ActionSuite();\n virtual std::string suiteName() override { return "Action"; }\n};\n#endif" (#ifndef) "#ifndef" (identifier) "_ACTION_SUITE_H_" (preproc_def) "#define _ACTION_SUITE_H_\n" (#define) "#define" (identifier) "_ACTION_SUITE_H_" (preproc_include) "#include "TestSuite.h"\n" (#include) "#include" (string_literal) ""TestSuite.h"" (") """ (string_content) "TestSuite.h" (") """ (comment) "//description of the class here" (function_definition) "class ActionSuite: public TestSuite\n{\npublic:\n ActionSuite();\n virtual std::string suiteName() override { return "Action"; }\n}" (type_identifier) "class" (identifier) "ActionSuite" (ERROR) ": public TestSuite" (:) ":" (identifier) "public" (identifier) "TestSuite" (compound_statement) "{\npublic:\n ActionSuite();\n virtual std::string suiteName() override { return "Action"; }\n}" ({) "{" (labeled_statement) "public:\n ActionSuite();" (statement_identifier) "public" (:) ":" (expression_statement) "ActionSuite();" (call_expression) "ActionSuite()" (identifier) "ActionSuite" (argument_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "virtual std::string suiteName() override { return "Action"; }" (type_identifier) "virtual" (ERROR) "std::string" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "suiteName() override" (identifier) "suiteName" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (compound_statement) "{ return "Action"; }" ({) "{" (return_statement) "return "Action";" (return) "return" (string_literal) ""Action"" (") """ (string_content) "Action" (") """ (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
60
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.82, "nodes": 29, "errors": 0, "source_hash": "b48cb23e738fd69c6f919064b0c87fd793e190229eee574ae2acde5aba0d7e87", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _ACTION_SUITE_H_\n#define _ACTION_SUITE_H_\n\n#include \"TestSuite.h\"\n\n//description of the class here\nclass ActionSuite: public TestSuite\n{\npublic:\n\tActionSuite();\n\tvirtual std::string suiteName() override { return \"Action\"; }\n};\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 28], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "_ACTION_SUITE_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define _ACTION_SUITE_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "_ACTION_SUITE_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"TestSuite.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"TestSuite.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 9, "type": "function_definition", "text": "class ActionSuite: public TestSuite\n{\npublic:\n\tActionSuite();\n\tvirtual std::string suiteName() override { return \"Action\"; }\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 10, "type": "identifier", "text": "ActionSuite", "parent": 9, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 17}}, {"id": 11, "type": "ERROR", "text": ": public TestSuite", "parent": 9, "children": [12], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 35}}, {"id": 12, "type": "identifier", "text": "TestSuite", "parent": 11, "children": [], "start_point": {"row": 6, "column": 26}, "end_point": {"row": 6, "column": 35}}, {"id": 13, "type": "labeled_statement", "text": "public:\n\tActionSuite();", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 15}}, {"id": 14, "type": "call_expression", "text": "ActionSuite()", "parent": 13, "children": [15, 16], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 14}}, {"id": 15, "type": "identifier", "text": "ActionSuite", "parent": 14, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 12}}, {"id": 16, "type": "argument_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 14}}, {"id": 17, "type": "function_definition", "text": "virtual std::string suiteName() override { return \"Action\"; }", "parent": 9, "children": [18, 19, 22], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 62}}, {"id": 18, "type": "type_identifier", "text": "virtual", "parent": 17, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 8}}, {"id": 19, "type": "ERROR", "text": "std::string", "parent": 17, "children": [20, 21], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 20}}, {"id": 20, "type": "identifier", "text": "std", "parent": 19, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 12}}, {"id": 21, "type": "identifier", "text": "string", "parent": 19, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 20}}, {"id": 22, "type": "function_declarator", "text": "suiteName() override", "parent": 17, "children": [23, 24, 25], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 41}}, {"id": 23, "type": "identifier", "text": "suiteName", "parent": 22, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 30}}, {"id": 24, "type": "parameter_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 32}}, {"id": 25, "type": "identifier", "text": "override", "parent": 22, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 41}}, {"id": 26, "type": "return_statement", "text": "return \"Action\";", "parent": 17, "children": [27], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 60}}, {"id": 27, "type": "string_literal", "text": "\"Action\"", "parent": 26, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 59}}, {"id": 28, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 17, 22], "variables": [], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 15, 18, 20, 21, 23, 25, 28], "returns": [26], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 27], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "ActionSuite:", "text_snippet": "class ActionSuite: public TestSuite\n{\npublic:\n\tActionSuite();\n\tvirtual std::string suiteName() overr"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "virtual std::string suiteName() override { return \"Action\"; }"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "suiteName() override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"TestSuite.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _ACTION_SUITE_H_\n#define _ACTION_SUITE_H_\n\n#include \"TestSuite.h\"\n\n//description of the class here\nclass ActionSuite: public TestSuite\n{\npublic:\n\tActionSuite();\n\tvirtual std::string suiteName() override { return \"Action\"; }\n};\n#endif\n"}
81,012
c
#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E #define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E // // $Id$ // // ------------------------------------------------------------------------- // This file is part of ZeroBugs, Copyright (c) 2010 <NAME> // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // ------------------------------------------------------------------------- #include <string> #include <vector> #include "elfz/public/selector.h" namespace ELF { class File; /** * C++ wrapper for accessing Elf notes. */ class Note : public Selector { public: Note(const File&, const unsigned char*); /// @return the name size ElfW(Word) namesz() const; /// @return the data size ElfW(Word) descsz() const; ElfW(Word) type() const; const char* name() const; bool is_null() const { return note32_ == 0; } size_t total_rounded_size() const { return totalRoundedSize_; } const std::vector<unsigned char>& data() const { return data_; } const void* d_ptr() const { return &data_[0]; } private: union { Elf32_Nhdr* note32_; Elf64_Nhdr* note64_; }; size_t totalRoundedSize_; std::string name_; std::vector<unsigned char> data_; }; } #endif // NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E // vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4
28.24
55
(translation_unit) "#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n//\n// $Id$\n//\n// -------------------------------------------------------------------------\n// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n// -------------------------------------------------------------------------\n\n#include <string>\n#include <vector>\n#include "elfz/public/selector.h"\n\n\nnamespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}\n#endif // NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n// vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4\n" (preproc_ifdef) "#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n//\n// $Id$\n//\n// -------------------------------------------------------------------------\n// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n// -------------------------------------------------------------------------\n\n#include <string>\n#include <vector>\n#include "elfz/public/selector.h"\n\n\nnamespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}\n#endif" (#ifndef) "#ifndef" (identifier) "NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E" (preproc_def) "#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n" (#define) "#define" (identifier) "NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E" (comment) "//" (comment) "// $Id$" (comment) "//" (comment) "// -------------------------------------------------------------------------" (comment) "// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>" (comment) "//" (comment) "// Distributed under the Boost Software License, Version 1.0." (comment) "// (See accompanying file LICENSE_1_0.txt or copy at" (comment) "// http://www.boost.org/LICENSE_1_0.txt)" (comment) "// -------------------------------------------------------------------------" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include "elfz/public/selector.h"\n" (#include) "#include" (string_literal) ""elfz/public/selector.h"" (") """ (string_content) "elfz/public/selector.h" (") """ (function_definition) "namespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}" (type_identifier) "namespace" (identifier) "ELF" (compound_statement) "{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}" ({) "{" (declaration) "class File;" (type_identifier) "class" (identifier) "File" (;) ";" (comment) "/**\n * C++ wrapper for accessing Elf notes.\n */" (function_definition) "class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n }" (type_identifier) "class" (ERROR) "Note : public" (identifier) "Note" (:) ":" (identifier) "public" (identifier) "Selector" (compound_statement) "{\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n }" ({) "{" (labeled_statement) "public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;" (statement_identifier) "public" (:) ":" (declaration) "Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;" (macro_type_specifier) "Note(const File&, const unsigned char*)" (identifier) "Note" (() "(" (ERROR) "const File&, const" (type_descriptor) "const File&, const" (type_qualifier) "const" (const) "const" (type_identifier) "File" (ERROR) "&," (&) "&" (,) "," (type_qualifier) "const" (const) "const" (type_descriptor) "unsigned char*" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) ";" (;) ";" (comment) "/// @return the name size" (ERROR) "ElfW(Word) namesz() const;" (function_declarator) "ElfW(Word) namesz() const" (identifier) "ElfW" (parameter_list) "(Word)" (() "(" (parameter_declaration) "Word" (type_identifier) "Word" ()) ")" (call_expression) "namesz()" (identifier) "namesz" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/// @return the data size" (ERROR) "ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char" (function_declarator) "ElfW(Word) descsz() const" (identifier) "ElfW" (parameter_list) "(Word)" (() "(" (parameter_declaration) "Word" (type_identifier) "Word" ()) ")" (call_expression) "descsz()" (identifier) "descsz" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (function_declarator) "ElfW(Word) type() const" (identifier) "ElfW" (parameter_list) "(Word)" (() "(" (parameter_declaration) "Word" (type_identifier) "Word" ()) ")" (call_expression) "type()" (identifier) "type" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (const) "const" (primitive_type) "char" (pointer_declarator) "* name() const" (*) "*" (function_declarator) "name() const" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (ERROR) "bool is_null() const" (primitive_type) "bool" (function_declarator) "is_null()" (identifier) "is_null" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return note32_ == 0; }" ({) "{" (return_statement) "return note32_ == 0;" (return) "return" (binary_expression) "note32_ == 0" (identifier) "note32_" (==) "==" (number_literal) "0" (;) ";" (}) "}" (ERROR) "size_t total_rounded_size() const" (primitive_type) "size_t" (function_declarator) "total_rounded_size()" (identifier) "total_rounded_size" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return totalRoundedSize_;\n }" ({) "{" (return_statement) "return totalRoundedSize_;" (return) "return" (identifier) "totalRoundedSize_" (;) ";" (}) "}" (ERROR) "const std::vector<unsigned char>& data() const" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<unsigned char>&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (unsigned) "unsigned" (primitive_type) "char" (>) ">" (&) "&" (function_declarator) "data()" (identifier) "data" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return data_;\n }" ({) "{" (return_statement) "return data_;" (return) "return" (identifier) "data_" (;) ";" (}) "}" (function_definition) "const void* d_ptr() const { return &data_[0]; }" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* d_ptr() const" (*) "*" (function_declarator) "d_ptr() const" (identifier) "d_ptr" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return &data_[0]; }" ({) "{" (return_statement) "return &data_[0];" (return) "return" (pointer_expression) "&data_[0]" (&) "&" (subscript_expression) "data_[0]" (identifier) "data_" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (labeled_statement) "private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };" (statement_identifier) "private" (:) ":" (declaration) "union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };" (union_specifier) "union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n }" (union) "union" (field_declaration_list) "{\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n }" ({) "{" (field_declaration) "Elf32_Nhdr* note32_;" (type_identifier) "Elf32_Nhdr" (pointer_declarator) "* note32_" (*) "*" (field_identifier) "note32_" (;) ";" (field_declaration) "Elf64_Nhdr* note64_;" (type_identifier) "Elf64_Nhdr" (pointer_declarator) "* note64_" (*) "*" (field_identifier) "note64_" (;) ";" (}) "}" (identifier) "" (;) ";" (declaration) "size_t totalRoundedSize_;" (primitive_type) "size_t" (identifier) "totalRoundedSize_" (;) ";" (labeled_statement) "std::string name_;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string name_;" (type_identifier) "string" (identifier) "name_" (;) ";" (labeled_statement) "std::vector<unsigned char> data_;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<unsigned char> data_;" (binary_expression) "vector<unsigned char> data_" (binary_expression) "vector<unsigned" (identifier) "vector" (<) "<" (identifier) "unsigned" (ERROR) "char" (identifier) "char" (>) ">" (identifier) "data_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif" (comment) "// NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E" (comment) "// vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4"
277
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.24, "nodes": 147, "errors": 0, "source_hash": "28471d8a5560ae50e5419ad52588ae4b35d42b7a92928fbe7ff5712811bbab57", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n//\n// $Id$\n//\n// -------------------------------------------------------------------------\n// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n// -------------------------------------------------------------------------\n\n#include <string>\n#include <vector>\n#include \"elfz/public/selector.h\"\n\n\nnamespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 146], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 52}}, {"id": 3, "type": "preproc_def", "text": "#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 52}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"elfz/public/selector.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"elfz/public/selector.h\"", "parent": 12, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 33}}, {"id": 15, "type": "function_definition", "text": "namespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 17, "type": "identifier", "text": "ELF", "parent": 15, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 13}}, {"id": 18, "type": "declaration", "text": "class File;", "parent": 15, "children": [19], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 15}}, {"id": 19, "type": "identifier", "text": "File", "parent": 18, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 20, "type": "function_definition", "text": "class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n }", "parent": 15, "children": [21, 23], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 21, "type": "ERROR", "text": "Note : public", "parent": 20, "children": [22], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 23}}, {"id": 22, "type": "identifier", "text": "Note", "parent": 21, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 14}}, {"id": 23, "type": "identifier", "text": "Selector", "parent": 20, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 32}}, {"id": 24, "type": "labeled_statement", "text": "public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;", "parent": 20, "children": [25], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 38, "column": 33}}, {"id": 25, "type": "declaration", "text": "Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;", "parent": 24, "children": [26, 38, 47, 65], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 38, "column": 33}}, {"id": 26, "type": "macro_type_specifier", "text": "Note(const File&, const unsigned char*)", "parent": 25, "children": [27, 28, 32], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 47}}, {"id": 27, "type": "identifier", "text": "Note", "parent": 26, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 12}}, {"id": 28, "type": "ERROR", "text": "const File&, const", "parent": 26, "children": [29], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 31}}, {"id": 29, "type": "type_descriptor", "text": "const File&, const", "parent": 28, "children": [30, 31], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 31}}, {"id": 30, "type": "type_identifier", "text": "File", "parent": 29, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 23}}, {"id": 31, "type": "ERROR", "text": "&,", "parent": 29, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 25}}, {"id": 32, "type": "type_descriptor", "text": "unsigned char*", "parent": 26, "children": [33, 36], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 46}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned char", "parent": 32, "children": [34, 35], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 45}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 40}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 45}}, {"id": 36, "type": "abstract_pointer_declarator", "text": "*", "parent": 32, "children": [37], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 46}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 46}}, {"id": 38, "type": "ERROR", "text": "ElfW(Word) namesz() const;", "parent": 25, "children": [39], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 34}}, {"id": 39, "type": "function_declarator", "text": "ElfW(Word) namesz() const", "parent": 38, "children": [40, 41, 44], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 33}}, {"id": 40, "type": "identifier", "text": "ElfW", "parent": 39, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 41, "type": "parameter_list", "text": "(Word)", "parent": 39, "children": [42], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 18}}, {"id": 42, "type": "parameter_declaration", "text": "Word", "parent": 41, "children": [43], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 17}}, {"id": 43, "type": "type_identifier", "text": "Word", "parent": 42, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 17}}, {"id": 44, "type": "call_expression", "text": "namesz()", "parent": 39, "children": [45, 46], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 27}}, {"id": 45, "type": "identifier", "text": "namesz", "parent": 44, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 25}}, {"id": 46, "type": "argument_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 27}}, {"id": 47, "type": "ERROR", "text": "ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char", "parent": 25, "children": [48, 56, 64], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 38, "column": 18}}, {"id": 48, "type": "function_declarator", "text": "ElfW(Word) descsz() const", "parent": 47, "children": [49, 50, 53], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 33}}, {"id": 49, "type": "identifier", "text": "ElfW", "parent": 48, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 50, "type": "parameter_list", "text": "(Word)", "parent": 48, "children": [51], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 18}}, {"id": 51, "type": "parameter_declaration", "text": "Word", "parent": 50, "children": [52], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 17}}, {"id": 52, "type": "type_identifier", "text": "Word", "parent": 51, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 17}}, {"id": 53, "type": "call_expression", "text": "descsz()", "parent": 48, "children": [54, 55], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 27}}, {"id": 54, "type": "identifier", "text": "descsz", "parent": 53, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 25}}, {"id": 55, "type": "argument_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 56, "type": "function_declarator", "text": "ElfW(Word) type() const", "parent": 47, "children": [57, 58, 61], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 31}}, {"id": 57, "type": "identifier", "text": "ElfW", "parent": 56, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 58, "type": "parameter_list", "text": "(Word)", "parent": 56, "children": [59], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 18}}, {"id": 59, "type": "parameter_declaration", "text": "Word", "parent": 58, "children": [60], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 60, "type": "type_identifier", "text": "Word", "parent": 59, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 61, "type": "call_expression", "text": "type()", "parent": 56, "children": [62, 63], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 25}}, {"id": 62, "type": "identifier", "text": "type", "parent": 61, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 23}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 25}}, {"id": 64, "type": "primitive_type", "text": "char", "parent": 47, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 18}}, {"id": 65, "type": "pointer_declarator", "text": "* name() const", "parent": 25, "children": [66, 67], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 32}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 67, "type": "function_declarator", "text": "name() const", "parent": 65, "children": [68, 69], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 32}}, {"id": 68, "type": "identifier", "text": "name", "parent": 67, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 24}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 26}}, {"id": 70, "type": "ERROR", "text": "bool is_null() const", "parent": 20, "children": [71, 72], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 28}}, {"id": 71, "type": "primitive_type", "text": "bool", "parent": 70, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 72, "type": "function_declarator", "text": "is_null()", "parent": 70, "children": [73, 74], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 22}}, {"id": 73, "type": "identifier", "text": "is_null", "parent": 72, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 20}}, {"id": 74, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 22}}, {"id": 75, "type": "return_statement", "text": "return note32_ == 0;", "parent": 20, "children": [76], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 51}}, {"id": 76, "type": "binary_expression", "text": "note32_ == 0", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 50}}, {"id": 77, "type": "identifier", "text": "note32_", "parent": 76, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 45}}, {"id": 78, "type": "==", "text": "==", "parent": 76, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 48}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 50}}, {"id": 80, "type": "ERROR", "text": "size_t total_rounded_size() const", "parent": 20, "children": [81, 82], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 41}}, {"id": 81, "type": "primitive_type", "text": "size_t", "parent": 80, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 14}}, {"id": 82, "type": "function_declarator", "text": "total_rounded_size()", "parent": 80, "children": [83, 84], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 35}}, {"id": 83, "type": "identifier", "text": "total_rounded_size", "parent": 82, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 33}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 35}}, {"id": 85, "type": "return_statement", "text": "return totalRoundedSize_;", "parent": 20, "children": [86], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 37}}, {"id": 86, "type": "identifier", "text": "totalRoundedSize_", "parent": 85, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 36}}, {"id": 87, "type": "ERROR", "text": "const std::vector<unsigned char>& data() const", "parent": 20, "children": [88, 89, 95], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 54}}, {"id": 88, "type": "type_identifier", "text": "std", "parent": 87, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 17}}, {"id": 89, "type": "ERROR", "text": "::vector<unsigned char>&", "parent": 87, "children": [90, 91, 92, 93, 94], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 41}}, {"id": 90, "type": "identifier", "text": "vector", "parent": 89, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 25}}, {"id": 91, "type": "<", "text": "<", "parent": 89, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 26}}, {"id": 92, "type": "unsigned", "text": "unsigned", "parent": 89, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 34}}, {"id": 93, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 39}}, {"id": 94, "type": ">", "text": ">", "parent": 89, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 95, "type": "function_declarator", "text": "data()", "parent": 87, "children": [96, 97], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 48}}, {"id": 96, "type": "identifier", "text": "data", "parent": 95, "children": [], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 46}}, {"id": 97, "type": "parameter_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 48}}, {"id": 98, "type": "return_statement", "text": "return data_;", "parent": 20, "children": [99], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 25}}, {"id": 99, "type": "identifier", "text": "data_", "parent": 98, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 24}}, {"id": 100, "type": "function_definition", "text": "const void* d_ptr() const { return &data_[0]; }", "parent": 20, "children": [101, 102], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 55}}, {"id": 101, "type": "primitive_type", "text": "void", "parent": 100, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 18}}, {"id": 102, "type": "pointer_declarator", "text": "* d_ptr() const", "parent": 100, "children": [103, 104], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 33}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 104, "type": "function_declarator", "text": "d_ptr() const", "parent": 102, "children": [105, 106], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 33}}, {"id": 105, "type": "identifier", "text": "d_ptr", "parent": 104, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 25}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 27}}, {"id": 107, "type": "return_statement", "text": "return &data_[0];", "parent": 100, "children": [108], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 53}}, {"id": 108, "type": "pointer_expression", "text": "&data_[0]", "parent": 107, "children": [109], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 52}}, {"id": 109, "type": "subscript_expression", "text": "data_[0]", "parent": 108, "children": [110, 111], "start_point": {"row": 52, "column": 44}, "end_point": {"row": 52, "column": 52}}, {"id": 110, "type": "identifier", "text": "data_", "parent": 109, "children": [], "start_point": {"row": 52, "column": 44}, "end_point": {"row": 52, "column": 49}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 52, "column": 50}, "end_point": {"row": 52, "column": 51}}, {"id": 112, "type": "labeled_statement", "text": "private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };", "parent": 20, "children": [113], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 59, "column": 10}}, {"id": 113, "type": "declaration", "text": "union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };", "parent": 112, "children": [114, 126], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 59, "column": 10}}, {"id": 114, "type": "union_specifier", "text": "union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n }", "parent": 113, "children": [115], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 115, "type": "union", "text": "union", "parent": 114, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 116, "type": "field_declaration", "text": "Elf32_Nhdr* note32_;", "parent": 114, "children": [117, 118], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 32}}, {"id": 117, "type": "type_identifier", "text": "Elf32_Nhdr", "parent": 116, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 118, "type": "pointer_declarator", "text": "* note32_", "parent": 116, "children": [119, 120], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 31}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 23}}, {"id": 120, "type": "field_identifier", "text": "note32_", "parent": 118, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 31}}, {"id": 121, "type": "field_declaration", "text": "Elf64_Nhdr* note64_;", "parent": 114, "children": [122, 123], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 32}}, {"id": 122, "type": "type_identifier", "text": "Elf64_Nhdr", "parent": 121, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 22}}, {"id": 123, "type": "pointer_declarator", "text": "* note64_", "parent": 121, "children": [124, 125], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 31}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 23}}, {"id": 125, "type": "field_identifier", "text": "note64_", "parent": 123, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 31}}, {"id": 126, "type": "identifier", "text": "", "parent": 113, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 9}}, {"id": 127, "type": "declaration", "text": "size_t totalRoundedSize_;", "parent": 20, "children": [128, 129], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 33}}, {"id": 128, "type": "primitive_type", "text": "size_t", "parent": 127, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 129, "type": "identifier", "text": "totalRoundedSize_", "parent": 127, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 32}}, {"id": 130, "type": "labeled_statement", "text": "std::string name_;", "parent": 20, "children": [131, 132], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 26}}, {"id": 131, "type": "statement_identifier", "text": "std", "parent": 130, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 11}}, {"id": 132, "type": "declaration", "text": "string name_;", "parent": 130, "children": [133, 134], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 26}}, {"id": 133, "type": "type_identifier", "text": "string", "parent": 132, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 19}}, {"id": 134, "type": "identifier", "text": "name_", "parent": 132, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 25}}, {"id": 135, "type": "labeled_statement", "text": "std::vector<unsigned char> data_;", "parent": 20, "children": [136], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 41}}, {"id": 136, "type": "statement_identifier", "text": "std", "parent": 135, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 11}}, {"id": 137, "type": "binary_expression", "text": "vector<unsigned char> data_", "parent": 135, "children": [138, 142, 144, 145], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 40}}, {"id": 138, "type": "binary_expression", "text": "vector<unsigned", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 28}}, {"id": 139, "type": "identifier", "text": "vector", "parent": 138, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 19}}, {"id": 140, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 20}}, {"id": 141, "type": "identifier", "text": "unsigned", "parent": 138, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 28}}, {"id": 142, "type": "ERROR", "text": "char", "parent": 137, "children": [143], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 33}}, {"id": 143, "type": "identifier", "text": "char", "parent": 142, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 33}}, {"id": 144, "type": ">", "text": ">", "parent": 137, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 34}}, {"id": 145, "type": "identifier", "text": "data_", "parent": 137, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 40}}, {"id": 146, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 20, 39, 48, 56, 67, 72, 82, 95, 100, 104], "variables": [18, 25, 42, 51, 59, 113, 116, 121, 127, 132], "classes": [114, 115], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [44, 53, 61, 76, 108, 109, 137, 138], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 22, 23, 26, 27, 30, 33, 40, 43, 45, 49, 52, 54, 57, 60, 62, 68, 73, 77, 83, 86, 88, 90, 96, 99, 105, 110, 117, 120, 122, 125, 126, 129, 131, 133, 134, 136, 139, 141, 143, 145, 146], "returns": [75, 85, 98, 107], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 79, 111], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "File;", "text_snippet": "namespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n cla"}, {"node_id": 20, "universal_type": "function", "name": "Note", "text_snippet": "class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n "}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "ElfW(Word) namesz() const"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "ElfW(Word) descsz() const"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "ElfW(Word) type() const"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "name() const"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "is_null()"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "total_rounded_size()"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "data()"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "const void* d_ptr() const { return &data_[0]; }"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "d_ptr() const"}], "class_declarations": [{"node_id": 114, "universal_type": "class", "name": "{", "text_snippet": "union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n }"}, {"node_id": 115, "universal_type": "class", "name": "unknown", "text_snippet": "union"}], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"elfz/public/selector.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n//\n// $Id$\n//\n// -------------------------------------------------------------------------\n// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n// -------------------------------------------------------------------------\n\n#include <string>\n#include <vector>\n#include \"elfz/public/selector.h\"\n\n\nnamespace ELF\n{\n class File;\n\n /**\n * C++ wrapper for accessing Elf notes.\n */\n class Note : public Selector\n {\n public:\n Note(const File&, const unsigned char*);\n\n /// @return the name size\n ElfW(Word) namesz() const;\n\n /// @return the data size\n ElfW(Word) descsz() const;\n\n ElfW(Word) type() const;\n\n const char* name() const;\n\n bool is_null() const { return note32_ == 0; }\n\n size_t total_rounded_size() const\n {\n return totalRoundedSize_;\n }\n\n const std::vector<unsigned char>& data() const\n {\n return data_;\n }\n\n const void* d_ptr() const { return &data_[0]; }\n\n private:\n union\n {\n Elf32_Nhdr* note32_;\n Elf64_Nhdr* note64_;\n };\n\n size_t totalRoundedSize_;\n\n std::string name_;\n std::vector<unsigned char> data_;\n };\n}\n#endif // NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n// vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4\n"}
81,013
c
/* Get function information. Copyright (C) 2005, 2013 Red Hat, Inc. This file is part of elfutils. Written by <NAME> <<EMAIL>>, 2005. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version or * the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version or both in parallel, as here. elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <dwarf.h> #include "libdwP.h" struct visitor_info { /* The user callback of dwarf_getfuncs. */ int (*callback) (Dwarf_Die *, void *); /* The user arg value to dwarf_getfuncs. */ void *arg; /* Addr of the DIE offset where to (re)start the search. Zero for all. */ void *start_addr; /* Last subprogram DIE addr seen. */ void *last_addr; /* The CU only contains C functions. Allows pruning of most subtrees. */ bool c_cu; }; static int tree_visitor (unsigned int depth __attribute__ ((unused)), struct Dwarf_Die_Chain *chain, void *arg) { struct visitor_info *const v = arg; Dwarf_Die *die = &chain->die; void *start_addr = v->start_addr; void *die_addr = die->addr; /* Pure C CUs can only contain defining subprogram DIEs as direct children of the CU DIE or as nested function inside a normal C code constructs. */ int tag = INTUSE(dwarf_tag) (die); if (v->c_cu && tag != DW_TAG_subprogram && tag != DW_TAG_lexical_block && tag != DW_TAG_inlined_subroutine) { chain->prune = true; return DWARF_CB_OK; } /* Skip all DIEs till we found the (re)start addr. */ if (start_addr != NULL) { if (die_addr == start_addr) v->start_addr = NULL; return DWARF_CB_OK; } /* If this isn't a (defining) subprogram entity, skip DIE. */ if (tag != DW_TAG_subprogram || INTUSE(dwarf_hasattr) (die, DW_AT_declaration)) return DWARF_CB_OK; v->last_addr = die_addr; return (*v->callback) (die, v->arg); } ptrdiff_t dwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *), void *arg, ptrdiff_t offset) { if (unlikely (cudie == NULL || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit)) return -1; int lang = INTUSE(dwarf_srclang) (cudie); bool c_cu = (lang == DW_LANG_C89 || lang == DW_LANG_C || lang == DW_LANG_C99); struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu }; struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu), .parent = NULL }; int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v); if (res == DWARF_CB_ABORT) return (ptrdiff_t) v.last_addr; else return res; }
34.32
94
(translation_unit) "/* Get function information.\n Copyright (C) 2005, 2013 Red Hat, Inc.\n This file is part of elfutils.\n Written by <NAME> <<EMAIL>>, 2005.\n\n This file is free software; you can redistribute it and/or modify\n it under the terms of either\n\n * the GNU Lesser General Public License as published by the Free\n Software Foundation; either version 3 of the License, or (at\n your option) any later version\n\n or\n\n * the GNU General Public License as published by the Free\n Software Foundation; either version 2 of the License, or (at\n your option) any later version\n\n or both in parallel, as here.\n\n elfutils is distributed in the hope that it will be useful, but\n WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n General Public License for more details.\n\n You should have received copies of the GNU General Public License and\n the GNU Lesser General Public License along with this program. If\n not, see <http://www.gnu.org/licenses/>. */\n\n#ifdef HAVE_CONFIG_H\n# include <config.h>\n#endif\n\n#include <dwarf.h>\n#include "libdwP.h"\n\n\nstruct visitor_info\n{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, void *);\n\n /* The user arg value to dwarf_getfuncs. */\n void *arg;\n\n /* Addr of the DIE offset where to (re)start the search. Zero for all. */\n void *start_addr;\n\n /* Last subprogram DIE addr seen. */\n void *last_addr;\n\n /* The CU only contains C functions. Allows pruning of most subtrees. */\n bool c_cu;\n};\n\nstatic int\ntree_visitor (unsigned int depth __attribute__ ((unused)),\n struct Dwarf_Die_Chain *chain, void *arg)\n{\n struct visitor_info *const v = arg;\n Dwarf_Die *die = &chain->die;\n void *start_addr = v->start_addr;\n void *die_addr = die->addr;\n\n /* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */\n int tag = INTUSE(dwarf_tag) (die);\n if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }\n\n /* Skip all DIEs till we found the (re)start addr. */\n if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n v->start_addr = NULL;\n return DWARF_CB_OK;\n }\n\n /* If this isn't a (defining) subprogram entity, skip DIE. */\n if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;\n\n v->last_addr = die_addr;\n return (*v->callback) (die, v->arg);\n}\n\nptrdiff_t\ndwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n void *arg, ptrdiff_t offset)\n{\n if (unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;\n\n int lang = INTUSE(dwarf_srclang) (cudie);\n bool c_cu = (lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99);\n\n struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };\n struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n .parent = NULL };\n int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);\n\n if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;\n}\n" (comment) "/* Get function information.\n Copyright (C) 2005, 2013 Red Hat, Inc.\n This file is part of elfutils.\n Written by <NAME> <<EMAIL>>, 2005.\n\n This file is free software; you can redistribute it and/or modify\n it under the terms of either\n\n * the GNU Lesser General Public License as published by the Free\n Software Foundation; either version 3 of the License, or (at\n your option) any later version\n\n or\n\n * the GNU General Public License as published by the Free\n Software Foundation; either version 2 of the License, or (at\n your option) any later version\n\n or both in parallel, as here.\n\n elfutils is distributed in the hope that it will be useful, but\n WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n General Public License for more details.\n\n You should have received copies of the GNU General Public License and\n the GNU Lesser General Public License along with this program. If\n not, see <http://www.gnu.org/licenses/>. */" (preproc_ifdef) "#ifdef HAVE_CONFIG_H\n# include <config.h>\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_CONFIG_H" (preproc_include) "# include <config.h>\n" (#include) "# include" (system_lib_string) "<config.h>" (#endif) "#endif" (preproc_include) "#include <dwarf.h>\n" (#include) "#include" (system_lib_string) "<dwarf.h>" (preproc_include) "#include "libdwP.h"\n" (#include) "#include" (string_literal) ""libdwP.h"" (") """ (string_content) "libdwP.h" (") """ (struct_specifier) "struct visitor_info\n{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, void *);\n\n /* The user arg value to dwarf_getfuncs. */\n void *arg;\n\n /* Addr of the DIE offset where to (re)start the search. Zero for all. */\n void *start_addr;\n\n /* Last subprogram DIE addr seen. */\n void *last_addr;\n\n /* The CU only contains C functions. Allows pruning of most subtrees. */\n bool c_cu;\n}" (struct) "struct" (type_identifier) "visitor_info" (field_declaration_list) "{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, void *);\n\n /* The user arg value to dwarf_getfuncs. */\n void *arg;\n\n /* Addr of the DIE offset where to (re)start the search. Zero for all. */\n void *start_addr;\n\n /* Last subprogram DIE addr seen. */\n void *last_addr;\n\n /* The CU only contains C functions. Allows pruning of most subtrees. */\n bool c_cu;\n}" ({) "{" (comment) "/* The user callback of dwarf_getfuncs. */" (field_declaration) "int (*callback) (Dwarf_Die *, void *);" (primitive_type) "int" (function_declarator) "(*callback) (Dwarf_Die *, void *)" (parenthesized_declarator) "(*callback)" (() "(" (pointer_declarator) "*callback" (*) "*" (field_identifier) "callback" ()) ")" (parameter_list) "(Dwarf_Die *, void *)" (() "(" (parameter_declaration) "Dwarf_Die *" (type_identifier) "Dwarf_Die" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "/* The user arg value to dwarf_getfuncs. */" (field_declaration) "void *arg;" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (field_identifier) "arg" (;) ";" (comment) "/* Addr of the DIE offset where to (re)start the search. Zero for all. */" (field_declaration) "void *start_addr;" (primitive_type) "void" (pointer_declarator) "*start_addr" (*) "*" (field_identifier) "start_addr" (;) ";" (comment) "/* Last subprogram DIE addr seen. */" (field_declaration) "void *last_addr;" (primitive_type) "void" (pointer_declarator) "*last_addr" (*) "*" (field_identifier) "last_addr" (;) ";" (comment) "/* The CU only contains C functions. Allows pruning of most subtrees. */" (field_declaration) "bool c_cu;" (primitive_type) "bool" (field_identifier) "c_cu" (;) ";" (}) "}" (;) ";" (function_definition) "static int\ntree_visitor (unsigned int depth __attribute__ ((unused)),\n struct Dwarf_Die_Chain *chain, void *arg)\n{\n struct visitor_info *const v = arg;\n Dwarf_Die *die = &chain->die;\n void *start_addr = v->start_addr;\n void *die_addr = die->addr;\n\n /* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */\n int tag = INTUSE(dwarf_tag) (die);\n if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }\n\n /* Skip all DIEs till we found the (re)start addr. */\n if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n v->start_addr = NULL;\n return DWARF_CB_OK;\n }\n\n /* If this isn't a (defining) subprogram entity, skip DIE. */\n if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;\n\n v->last_addr = die_addr;\n return (*v->callback) (die, v->arg);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "tree_visitor (unsigned int depth __attribute__ ((unused)),\n struct Dwarf_Die_Chain *chain, void *arg)" (identifier) "tree_visitor" (parameter_list) "(unsigned int depth __attribute__ ((unused)),\n struct Dwarf_Die_Chain *chain, void *arg)" (() "(" (parameter_declaration) "unsigned int depth __attribute__ ((unused))" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "depth" (attribute_specifier) "__attribute__ ((unused))" (__attribute__) "__attribute__" (() "(" (argument_list) "(unused)" (() "(" (identifier) "unused" ()) ")" ()) ")" (,) "," (parameter_declaration) "struct Dwarf_Die_Chain *chain" (struct_specifier) "struct Dwarf_Die_Chain" (struct) "struct" (type_identifier) "Dwarf_Die_Chain" (pointer_declarator) "*chain" (*) "*" (identifier) "chain" (,) "," (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (compound_statement) "{\n struct visitor_info *const v = arg;\n Dwarf_Die *die = &chain->die;\n void *start_addr = v->start_addr;\n void *die_addr = die->addr;\n\n /* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */\n int tag = INTUSE(dwarf_tag) (die);\n if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }\n\n /* Skip all DIEs till we found the (re)start addr. */\n if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n v->start_addr = NULL;\n return DWARF_CB_OK;\n }\n\n /* If this isn't a (defining) subprogram entity, skip DIE. */\n if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;\n\n v->last_addr = die_addr;\n return (*v->callback) (die, v->arg);\n}" ({) "{" (declaration) "struct visitor_info *const v = arg;" (struct_specifier) "struct visitor_info" (struct) "struct" (type_identifier) "visitor_info" (init_declarator) "*const v = arg" (pointer_declarator) "*const v" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "v" (=) "=" (identifier) "arg" (;) ";" (declaration) "Dwarf_Die *die = &chain->die;" (type_identifier) "Dwarf_Die" (init_declarator) "*die = &chain->die" (pointer_declarator) "*die" (*) "*" (identifier) "die" (=) "=" (pointer_expression) "&chain->die" (&) "&" (field_expression) "chain->die" (identifier) "chain" (->) "->" (field_identifier) "die" (;) ";" (declaration) "void *start_addr = v->start_addr;" (primitive_type) "void" (init_declarator) "*start_addr = v->start_addr" (pointer_declarator) "*start_addr" (*) "*" (identifier) "start_addr" (=) "=" (field_expression) "v->start_addr" (identifier) "v" (->) "->" (field_identifier) "start_addr" (;) ";" (declaration) "void *die_addr = die->addr;" (primitive_type) "void" (init_declarator) "*die_addr = die->addr" (pointer_declarator) "*die_addr" (*) "*" (identifier) "die_addr" (=) "=" (field_expression) "die->addr" (identifier) "die" (->) "->" (field_identifier) "addr" (;) ";" (comment) "/* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */" (declaration) "int tag = INTUSE(dwarf_tag) (die);" (primitive_type) "int" (init_declarator) "tag = INTUSE(dwarf_tag) (die)" (identifier) "tag" (=) "=" (call_expression) "INTUSE(dwarf_tag) (die)" (call_expression) "INTUSE(dwarf_tag)" (identifier) "INTUSE" (argument_list) "(dwarf_tag)" (() "(" (identifier) "dwarf_tag" ()) ")" (argument_list) "(die)" (() "(" (identifier) "die" ()) ")" (;) ";" (if_statement) "if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }" (if) "if" (parenthesized_expression) "(v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)" (() "(" (binary_expression) "v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine" (binary_expression) "v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block" (binary_expression) "v->c_cu\n && tag != DW_TAG_subprogram" (field_expression) "v->c_cu" (identifier) "v" (->) "->" (field_identifier) "c_cu" (&&) "&&" (binary_expression) "tag != DW_TAG_subprogram" (identifier) "tag" (!=) "!=" (identifier) "DW_TAG_subprogram" (&&) "&&" (binary_expression) "tag != DW_TAG_lexical_block" (identifier) "tag" (!=) "!=" (identifier) "DW_TAG_lexical_block" (&&) "&&" (binary_expression) "tag != DW_TAG_inlined_subroutine" (identifier) "tag" (!=) "!=" (identifier) "DW_TAG_inlined_subroutine" ()) ")" (compound_statement) "{\n chain->prune = true;\n return DWARF_CB_OK;\n }" ({) "{" (expression_statement) "chain->prune = true;" (assignment_expression) "chain->prune = true" (field_expression) "chain->prune" (identifier) "chain" (->) "->" (field_identifier) "prune" (=) "=" (true) "true" (;) ";" (return_statement) "return DWARF_CB_OK;" (return) "return" (identifier) "DWARF_CB_OK" (;) ";" (}) "}" (comment) "/* Skip all DIEs till we found the (re)start addr. */" (if_statement) "if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n v->start_addr = NULL;\n return DWARF_CB_OK;\n }" (if) "if" (parenthesized_expression) "(start_addr != NULL)" (() "(" (binary_expression) "start_addr != NULL" (identifier) "start_addr" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if (die_addr == start_addr)\n v->start_addr = NULL;\n return DWARF_CB_OK;\n }" ({) "{" (if_statement) "if (die_addr == start_addr)\n v->start_addr = NULL;" (if) "if" (parenthesized_expression) "(die_addr == start_addr)" (() "(" (binary_expression) "die_addr == start_addr" (identifier) "die_addr" (==) "==" (identifier) "start_addr" ()) ")" (expression_statement) "v->start_addr = NULL;" (assignment_expression) "v->start_addr = NULL" (field_expression) "v->start_addr" (identifier) "v" (->) "->" (field_identifier) "start_addr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return DWARF_CB_OK;" (return) "return" (identifier) "DWARF_CB_OK" (;) ";" (}) "}" (comment) "/* If this isn't a (defining) subprogram entity, skip DIE. */" (if_statement) "if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;" (if) "if" (parenthesized_expression) "(tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))" (() "(" (binary_expression) "tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration)" (binary_expression) "tag != DW_TAG_subprogram" (identifier) "tag" (!=) "!=" (identifier) "DW_TAG_subprogram" (||) "||" (call_expression) "INTUSE(dwarf_hasattr) (die, DW_AT_declaration)" (call_expression) "INTUSE(dwarf_hasattr)" (identifier) "INTUSE" (argument_list) "(dwarf_hasattr)" (() "(" (identifier) "dwarf_hasattr" ()) ")" (argument_list) "(die, DW_AT_declaration)" (() "(" (identifier) "die" (,) "," (identifier) "DW_AT_declaration" ()) ")" ()) ")" (return_statement) "return DWARF_CB_OK;" (return) "return" (identifier) "DWARF_CB_OK" (;) ";" (expression_statement) "v->last_addr = die_addr;" (assignment_expression) "v->last_addr = die_addr" (field_expression) "v->last_addr" (identifier) "v" (->) "->" (field_identifier) "last_addr" (=) "=" (identifier) "die_addr" (;) ";" (return_statement) "return (*v->callback) (die, v->arg);" (return) "return" (call_expression) "(*v->callback) (die, v->arg)" (parenthesized_expression) "(*v->callback)" (() "(" (pointer_expression) "*v->callback" (*) "*" (field_expression) "v->callback" (identifier) "v" (->) "->" (field_identifier) "callback" ()) ")" (argument_list) "(die, v->arg)" (() "(" (identifier) "die" (,) "," (field_expression) "v->arg" (identifier) "v" (->) "->" (field_identifier) "arg" ()) ")" (;) ";" (}) "}" (function_definition) "ptrdiff_t\ndwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n void *arg, ptrdiff_t offset)\n{\n if (unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;\n\n int lang = INTUSE(dwarf_srclang) (cudie);\n bool c_cu = (lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99);\n\n struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };\n struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n .parent = NULL };\n int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);\n\n if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;\n}" (primitive_type) "ptrdiff_t" (function_declarator) "dwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n void *arg, ptrdiff_t offset)" (identifier) "dwarf_getfuncs" (parameter_list) "(Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n void *arg, ptrdiff_t offset)" (() "(" (parameter_declaration) "Dwarf_Die *cudie" (type_identifier) "Dwarf_Die" (pointer_declarator) "*cudie" (*) "*" (identifier) "cudie" (,) "," (parameter_declaration) "int (*callback) (Dwarf_Die *, void *)" (primitive_type) "int" (function_declarator) "(*callback) (Dwarf_Die *, void *)" (parenthesized_declarator) "(*callback)" (() "(" (pointer_declarator) "*callback" (*) "*" (identifier) "callback" ()) ")" (parameter_list) "(Dwarf_Die *, void *)" (() "(" (parameter_declaration) "Dwarf_Die *" (type_identifier) "Dwarf_Die" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "ptrdiff_t offset" (primitive_type) "ptrdiff_t" (identifier) "offset" ()) ")" (compound_statement) "{\n if (unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;\n\n int lang = INTUSE(dwarf_srclang) (cudie);\n bool c_cu = (lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99);\n\n struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };\n struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n .parent = NULL };\n int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);\n\n if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;\n}" ({) "{" (if_statement) "if (unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;" (if) "if" (parenthesized_expression) "(unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))" (() "(" (call_expression) "unlikely (cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit)" (identifier) "unlikely" (argument_list) "(cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit)" (() "(" (binary_expression) "cudie == NULL\n || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit" (binary_expression) "cudie == NULL" (identifier) "cudie" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit" (call_expression) "INTUSE(dwarf_tag) (cudie)" (call_expression) "INTUSE(dwarf_tag)" (identifier) "INTUSE" (argument_list) "(dwarf_tag)" (() "(" (identifier) "dwarf_tag" ()) ")" (argument_list) "(cudie)" (() "(" (identifier) "cudie" ()) ")" (!=) "!=" (identifier) "DW_TAG_compile_unit" ()) ")" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (declaration) "int lang = INTUSE(dwarf_srclang) (cudie);" (primitive_type) "int" (init_declarator) "lang = INTUSE(dwarf_srclang) (cudie)" (identifier) "lang" (=) "=" (call_expression) "INTUSE(dwarf_srclang) (cudie)" (call_expression) "INTUSE(dwarf_srclang)" (identifier) "INTUSE" (argument_list) "(dwarf_srclang)" (() "(" (identifier) "dwarf_srclang" ()) ")" (argument_list) "(cudie)" (() "(" (identifier) "cudie" ()) ")" (;) ";" (declaration) "bool c_cu = (lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99);" (primitive_type) "bool" (init_declarator) "c_cu = (lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99)" (identifier) "c_cu" (=) "=" (parenthesized_expression) "(lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99)" (() "(" (binary_expression) "lang == DW_LANG_C89\n || lang == DW_LANG_C\n || lang == DW_LANG_C99" (binary_expression) "lang == DW_LANG_C89\n || lang == DW_LANG_C" (binary_expression) "lang == DW_LANG_C89" (identifier) "lang" (==) "==" (identifier) "DW_LANG_C89" (||) "||" (binary_expression) "lang == DW_LANG_C" (identifier) "lang" (==) "==" (identifier) "DW_LANG_C" (||) "||" (binary_expression) "lang == DW_LANG_C99" (identifier) "lang" (==) "==" (identifier) "DW_LANG_C99" ()) ")" (;) ";" (declaration) "struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };" (struct_specifier) "struct visitor_info" (struct) "struct" (type_identifier) "visitor_info" (init_declarator) "v = { callback, arg, (void *) offset, NULL, c_cu }" (identifier) "v" (=) "=" (initializer_list) "{ callback, arg, (void *) offset, NULL, c_cu }" ({) "{" (identifier) "callback" (,) "," (identifier) "arg" (,) "," (cast_expression) "(void *) offset" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "offset" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "c_cu" (}) "}" (;) ";" (declaration) "struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n .parent = NULL };" (struct_specifier) "struct Dwarf_Die_Chain" (struct) "struct" (type_identifier) "Dwarf_Die_Chain" (init_declarator) "chain = { .die = CUDIE (cudie->cu),\n .parent = NULL }" (identifier) "chain" (=) "=" (initializer_list) "{ .die = CUDIE (cudie->cu),\n .parent = NULL }" ({) "{" (initializer_pair) ".die = CUDIE (cudie->cu)" (field_designator) ".die" (.) "." (field_identifier) "die" (=) "=" (call_expression) "CUDIE (cudie->cu)" (identifier) "CUDIE" (argument_list) "(cudie->cu)" (() "(" (field_expression) "cudie->cu" (identifier) "cudie" (->) "->" (field_identifier) "cu" ()) ")" (,) "," (initializer_pair) ".parent = NULL" (field_designator) ".parent" (.) "." (field_identifier) "parent" (=) "=" (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);" (primitive_type) "int" (init_declarator) "res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v)" (identifier) "res" (=) "=" (call_expression) "__libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v)" (identifier) "__libdw_visit_scopes" (argument_list) "(0, &chain, &tree_visitor, NULL, &v)" (() "(" (number_literal) "0" (,) "," (pointer_expression) "&chain" (&) "&" (identifier) "chain" (,) "," (pointer_expression) "&tree_visitor" (&) "&" (identifier) "tree_visitor" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&v" (&) "&" (identifier) "v" ()) ")" (;) ";" (if_statement) "if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;" (if) "if" (parenthesized_expression) "(res == DWARF_CB_ABORT)" (() "(" (binary_expression) "res == DWARF_CB_ABORT" (identifier) "res" (==) "==" (identifier) "DWARF_CB_ABORT" ()) ")" (return_statement) "return (ptrdiff_t) v.last_addr;" (return) "return" (cast_expression) "(ptrdiff_t) v.last_addr" (() "(" (type_descriptor) "ptrdiff_t" (primitive_type) "ptrdiff_t" ()) ")" (field_expression) "v.last_addr" (identifier) "v" (.) "." (field_identifier) "last_addr" (;) ";" (else_clause) "else\n return res;" (else) "else" (return_statement) "return res;" (return) "return" (identifier) "res" (;) ";" (}) "}"
561
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 34.32, "nodes": 387, "errors": 0, "source_hash": "344463693af76c01f35f44eafbb21f40a9759e818277719c6ae485375413b514", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef HAVE_CONFIG_H\n# include <config.h>\n#endif", "parent": null, "children": [1, 2, 3, 6], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 1, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 2, "type": "identifier", "text": "HAVE_CONFIG_H", "parent": 0, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "# include <config.h>\n", "parent": 0, "children": [4, 5], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 4, "type": "#include", "text": "# include", "parent": 3, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 9}}, {"id": 5, "type": "system_lib_string", "text": "<config.h>", "parent": 3, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 20}}, {"id": 6, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 7, "type": "preproc_include", "text": "#include <dwarf.h>\n", "parent": null, "children": [8, 9], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<dwarf.h>", "parent": 7, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 10, "type": "preproc_include", "text": "#include \"libdwP.h\"\n", "parent": null, "children": [11, 12], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 12, "type": "string_literal", "text": "\"libdwP.h\"", "parent": 10, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 19}}, {"id": 13, "type": "struct_specifier", "text": "struct visitor_info\n{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, void *);\n\n /* The user arg value to dwarf_getfuncs. */\n void *arg;\n\n /* Addr of the DIE offset where to (re)start the search. Zero for all. */\n void *start_addr;\n\n /* Last subprogram DIE addr seen. */\n void *last_addr;\n\n /* The CU only contains C functions. Allows pruning of most subtrees. */\n bool c_cu;\n}", "parent": null, "children": [14, 15], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "visitor_info", "parent": 13, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 19}}, {"id": 16, "type": "field_declaration", "text": "int (*callback) (Dwarf_Die *, void *);", "parent": 13, "children": [17, 18], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 40}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 5}}, {"id": 18, "type": "function_declarator", "text": "(*callback) (Dwarf_Die *, void *)", "parent": 16, "children": [19, 23], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 39}}, {"id": 19, "type": "parenthesized_declarator", "text": "(*callback)", "parent": 18, "children": [20], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 17}}, {"id": 20, "type": "pointer_declarator", "text": "*callback", "parent": 19, "children": [21, 22], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 16}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 8}}, {"id": 22, "type": "field_identifier", "text": "callback", "parent": 20, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 16}}, {"id": 23, "type": "parameter_list", "text": "(Dwarf_Die *, void *)", "parent": 18, "children": [24, 28], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 39}}, {"id": 24, "type": "parameter_declaration", "text": "Dwarf_Die *", "parent": 23, "children": [25, 26], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 30}}, {"id": 25, "type": "type_identifier", "text": "Dwarf_Die", "parent": 24, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 28}}, {"id": 26, "type": "abstract_pointer_declarator", "text": "*", "parent": 24, "children": [27], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 30}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 30}}, {"id": 28, "type": "parameter_declaration", "text": "void *", "parent": 23, "children": [29, 30], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 38}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 36}}, {"id": 30, "type": "abstract_pointer_declarator", "text": "*", "parent": 28, "children": [31], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 38}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 38}}, {"id": 32, "type": "field_declaration", "text": "void *arg;", "parent": 13, "children": [33, 34], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 12}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 34, "type": "pointer_declarator", "text": "*arg", "parent": 32, "children": [35, 36], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 11}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 8}}, {"id": 36, "type": "field_identifier", "text": "arg", "parent": 34, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 11}}, {"id": 37, "type": "field_declaration", "text": "void *start_addr;", "parent": 13, "children": [38, 39], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 19}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 39, "type": "pointer_declarator", "text": "*start_addr", "parent": 37, "children": [40, 41], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 18}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 41, "type": "field_identifier", "text": "start_addr", "parent": 39, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 42, "type": "field_declaration", "text": "void *last_addr;", "parent": 13, "children": [43, 44], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 18}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 6}}, {"id": 44, "type": "pointer_declarator", "text": "*last_addr", "parent": 42, "children": [45, 46], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 17}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 8}}, {"id": 46, "type": "field_identifier", "text": "last_addr", "parent": 44, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 17}}, {"id": 47, "type": "field_declaration", "text": "bool c_cu;", "parent": 13, "children": [48, 49], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 12}}, {"id": 48, "type": "primitive_type", "text": "bool", "parent": 47, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 6}}, {"id": 49, "type": "field_identifier", "text": "c_cu", "parent": 47, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 11}}, {"id": 50, "type": "function_definition", "text": "static int\ntree_visitor (unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain *chain, void *arg)\n{\n struct visitor_info *const v = arg;\n Dwarf_Die *die = &chain->die;\n void *start_addr = v->start_addr;\n void *die_addr = die->addr;\n\n /* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */\n int tag = INTUSE(dwarf_tag) (die);\n if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }\n\n /* Skip all DIEs till we found the (re)start addr. */\n if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n\tv->start_addr = NULL;\n return DWARF_CB_OK;\n }\n\n /* If this isn't a (defining) subprogram entity, skip DIE. */\n if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;\n\n v->last_addr = die_addr;\n return (*v->callback) (die, v->arg);\n}", "parent": null, "children": [51, 52], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 10}}, {"id": 52, "type": "function_declarator", "text": "tree_visitor (unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain *chain, void *arg)", "parent": 50, "children": [53, 54], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 48}}, {"id": 53, "type": "identifier", "text": "tree_visitor", "parent": 52, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 12}}, {"id": 54, "type": "parameter_list", "text": "(unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain *chain, void *arg)", "parent": 52, "children": [55, 64, 71], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 57, "column": 48}}, {"id": 55, "type": "parameter_declaration", "text": "unsigned int depth __attribute__ ((unused))", "parent": 54, "children": [56, 59, 60], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 57}}, {"id": 56, "type": "sized_type_specifier", "text": "unsigned int", "parent": 55, "children": [57, 58], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 26}}, {"id": 57, "type": "unsigned", "text": "unsigned", "parent": 56, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 22}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 56, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 26}}, {"id": 59, "type": "identifier", "text": "depth", "parent": 55, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 32}}, {"id": 60, "type": "attribute_specifier", "text": "__attribute__ ((unused))", "parent": 55, "children": [61, 62], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 57}}, {"id": 61, "type": "__attribute__", "text": "__attribute__", "parent": 60, "children": [], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 46}}, {"id": 62, "type": "argument_list", "text": "(unused)", "parent": 60, "children": [63], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 56}}, {"id": 63, "type": "identifier", "text": "unused", "parent": 62, "children": [], "start_point": {"row": 56, "column": 49}, "end_point": {"row": 56, "column": 55}}, {"id": 64, "type": "parameter_declaration", "text": "struct Dwarf_Die_Chain *chain", "parent": 54, "children": [65, 68], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 36}}, {"id": 65, "type": "struct_specifier", "text": "struct Dwarf_Die_Chain", "parent": 64, "children": [66, 67], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 29}}, {"id": 66, "type": "struct", "text": "struct", "parent": 65, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 67, "type": "type_identifier", "text": "Dwarf_Die_Chain", "parent": 65, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 29}}, {"id": 68, "type": "pointer_declarator", "text": "*chain", "parent": 64, "children": [69, 70], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 36}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 31}}, {"id": 70, "type": "identifier", "text": "chain", "parent": 68, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 36}}, {"id": 71, "type": "parameter_declaration", "text": "void *arg", "parent": 54, "children": [72, 73], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 47}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 42}}, {"id": 73, "type": "pointer_declarator", "text": "*arg", "parent": 71, "children": [74, 75], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 47}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 44}}, {"id": 75, "type": "identifier", "text": "arg", "parent": 73, "children": [], "start_point": {"row": 57, "column": 44}, "end_point": {"row": 57, "column": 47}}, {"id": 76, "type": "declaration", "text": "struct visitor_info *const v = arg;", "parent": 50, "children": [77, 80], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 37}}, {"id": 77, "type": "struct_specifier", "text": "struct visitor_info", "parent": 76, "children": [78, 79], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 21}}, {"id": 78, "type": "struct", "text": "struct", "parent": 77, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 8}}, {"id": 79, "type": "type_identifier", "text": "visitor_info", "parent": 77, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 21}}, {"id": 80, "type": "init_declarator", "text": "*const v = arg", "parent": 76, "children": [81, 84, 85], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 36}}, {"id": 81, "type": "pointer_declarator", "text": "*const v", "parent": 80, "children": [82, 83], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 30}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 23}}, {"id": 83, "type": "identifier", "text": "v", "parent": 81, "children": [], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 30}}, {"id": 84, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 32}}, {"id": 85, "type": "identifier", "text": "arg", "parent": 80, "children": [], "start_point": {"row": 59, "column": 33}, "end_point": {"row": 59, "column": 36}}, {"id": 86, "type": "declaration", "text": "Dwarf_Die *die = &chain->die;", "parent": 50, "children": [87, 88], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 31}}, {"id": 87, "type": "type_identifier", "text": "Dwarf_Die", "parent": 86, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 88, "type": "init_declarator", "text": "*die = &chain->die", "parent": 86, "children": [89, 92, 93], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 30}}, {"id": 89, "type": "pointer_declarator", "text": "*die", "parent": 88, "children": [90, 91], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 16}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 91, "type": "identifier", "text": "die", "parent": 89, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 16}}, {"id": 92, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 18}}, {"id": 93, "type": "pointer_expression", "text": "&chain->die", "parent": 88, "children": [94], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 30}}, {"id": 94, "type": "field_expression", "text": "chain->die", "parent": 93, "children": [95, 96], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 30}}, {"id": 95, "type": "identifier", "text": "chain", "parent": 94, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 25}}, {"id": 96, "type": "field_identifier", "text": "die", "parent": 94, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 30}}, {"id": 97, "type": "declaration", "text": "void *start_addr = v->start_addr;", "parent": 50, "children": [98, 99], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 35}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 99, "type": "init_declarator", "text": "*start_addr = v->start_addr", "parent": 97, "children": [100, 103, 104], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 34}}, {"id": 100, "type": "pointer_declarator", "text": "*start_addr", "parent": 99, "children": [101, 102], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 18}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 102, "type": "identifier", "text": "start_addr", "parent": 100, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 18}}, {"id": 103, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 104, "type": "field_expression", "text": "v->start_addr", "parent": 99, "children": [105, 106], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 34}}, {"id": 105, "type": "identifier", "text": "v", "parent": 104, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 106, "type": "field_identifier", "text": "start_addr", "parent": 104, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 34}}, {"id": 107, "type": "declaration", "text": "void *die_addr = die->addr;", "parent": 50, "children": [108, 109], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 29}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 6}}, {"id": 109, "type": "init_declarator", "text": "*die_addr = die->addr", "parent": 107, "children": [110, 113, 114], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 28}}, {"id": 110, "type": "pointer_declarator", "text": "*die_addr", "parent": 109, "children": [111, 112], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 16}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 8}}, {"id": 112, "type": "identifier", "text": "die_addr", "parent": 110, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 16}}, {"id": 113, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 114, "type": "field_expression", "text": "die->addr", "parent": 109, "children": [115, 116], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 28}}, {"id": 115, "type": "identifier", "text": "die", "parent": 114, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 22}}, {"id": 116, "type": "field_identifier", "text": "addr", "parent": 114, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 28}}, {"id": 117, "type": "declaration", "text": "int tag = INTUSE(dwarf_tag) (die);", "parent": 50, "children": [118, 119], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 36}}, {"id": 118, "type": "primitive_type", "text": "int", "parent": 117, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 5}}, {"id": 119, "type": "init_declarator", "text": "tag = INTUSE(dwarf_tag) (die)", "parent": 117, "children": [120, 121, 122], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 35}}, {"id": 120, "type": "identifier", "text": "tag", "parent": 119, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 9}}, {"id": 121, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 11}}, {"id": 122, "type": "call_expression", "text": "INTUSE(dwarf_tag) (die)", "parent": 119, "children": [123, 127], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 35}}, {"id": 123, "type": "call_expression", "text": "INTUSE(dwarf_tag)", "parent": 122, "children": [124, 125], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 29}}, {"id": 124, "type": "identifier", "text": "INTUSE", "parent": 123, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 18}}, {"id": 125, "type": "argument_list", "text": "(dwarf_tag)", "parent": 123, "children": [126], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 29}}, {"id": 126, "type": "identifier", "text": "dwarf_tag", "parent": 125, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 28}}, {"id": 127, "type": "argument_list", "text": "(die)", "parent": 122, "children": [128], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 35}}, {"id": 128, "type": "identifier", "text": "die", "parent": 127, "children": [], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 34}}, {"id": 129, "type": "if_statement", "text": "if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }", "parent": 50, "children": [130], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 75, "column": 5}}, {"id": 130, "type": "parenthesized_expression", "text": "(v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)", "parent": 129, "children": [131], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 71, "column": 42}}, {"id": 131, "type": "binary_expression", "text": "v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine", "parent": 130, "children": [132, 147, 148], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 71, "column": 41}}, {"id": 132, "type": "binary_expression", "text": "v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block", "parent": 131, "children": [133, 142, 143], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 70, "column": 36}}, {"id": 133, "type": "binary_expression", "text": "v->c_cu\n && tag != DW_TAG_subprogram", "parent": 132, "children": [134, 137, 138], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 69, "column": 33}}, {"id": 134, "type": "field_expression", "text": "v->c_cu", "parent": 133, "children": [135, 136], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 13}}, {"id": 135, "type": "identifier", "text": "v", "parent": 134, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 136, "type": "field_identifier", "text": "c_cu", "parent": 134, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 13}}, {"id": 137, "type": "&&", "text": "&&", "parent": 133, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 8}}, {"id": 138, "type": "binary_expression", "text": "tag != DW_TAG_subprogram", "parent": 133, "children": [139, 140, 141], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 33}}, {"id": 139, "type": "identifier", "text": "tag", "parent": 138, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 12}}, {"id": 140, "type": "!=", "text": "!=", "parent": 138, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 15}}, {"id": 141, "type": "identifier", "text": "DW_TAG_subprogram", "parent": 138, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 33}}, {"id": 142, "type": "&&", "text": "&&", "parent": 132, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 8}}, {"id": 143, "type": "binary_expression", "text": "tag != DW_TAG_lexical_block", "parent": 132, "children": [144, 145, 146], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 36}}, {"id": 144, "type": "identifier", "text": "tag", "parent": 143, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 12}}, {"id": 145, "type": "!=", "text": "!=", "parent": 143, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 15}}, {"id": 146, "type": "identifier", "text": "DW_TAG_lexical_block", "parent": 143, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 36}}, {"id": 147, "type": "&&", "text": "&&", "parent": 131, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 8}}, {"id": 148, "type": "binary_expression", "text": "tag != DW_TAG_inlined_subroutine", "parent": 131, "children": [149, 150, 151], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 41}}, {"id": 149, "type": "identifier", "text": "tag", "parent": 148, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 12}}, {"id": 150, "type": "!=", "text": "!=", "parent": 148, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 15}}, {"id": 151, "type": "identifier", "text": "DW_TAG_inlined_subroutine", "parent": 148, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 41}}, {"id": 152, "type": "assignment_expression", "text": "chain->prune = true", "parent": 129, "children": [153, 156, 157], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 25}}, {"id": 153, "type": "field_expression", "text": "chain->prune", "parent": 152, "children": [154, 155], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 18}}, {"id": 154, "type": "identifier", "text": "chain", "parent": 153, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 11}}, {"id": 155, "type": "field_identifier", "text": "prune", "parent": 153, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 18}}, {"id": 156, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 20}}, {"id": 157, "type": "true", "text": "true", "parent": 152, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 25}}, {"id": 158, "type": "return_statement", "text": "return DWARF_CB_OK;", "parent": 129, "children": [159], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 25}}, {"id": 159, "type": "identifier", "text": "DWARF_CB_OK", "parent": 158, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 24}}, {"id": 160, "type": "if_statement", "text": "if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n\tv->start_addr = NULL;\n return DWARF_CB_OK;\n }", "parent": 50, "children": [161], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 83, "column": 5}}, {"id": 161, "type": "parenthesized_expression", "text": "(start_addr != NULL)", "parent": 160, "children": [162], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 25}}, {"id": 162, "type": "binary_expression", "text": "start_addr != NULL", "parent": 161, "children": [163, 164, 165], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 24}}, {"id": 163, "type": "identifier", "text": "start_addr", "parent": 162, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 16}}, {"id": 164, "type": "!=", "text": "!=", "parent": 162, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 19}}, {"id": 165, "type": "null", "text": "NULL", "parent": 162, "children": [166], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 24}}, {"id": 166, "type": "NULL", "text": "NULL", "parent": 165, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 24}}, {"id": 167, "type": "if_statement", "text": "if (die_addr == start_addr)\n\tv->start_addr = NULL;", "parent": 160, "children": [168], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 81, "column": 22}}, {"id": 168, "type": "parenthesized_expression", "text": "(die_addr == start_addr)", "parent": 167, "children": [169], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 33}}, {"id": 169, "type": "binary_expression", "text": "die_addr == start_addr", "parent": 168, "children": [170, 171, 172], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 32}}, {"id": 170, "type": "identifier", "text": "die_addr", "parent": 169, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 18}}, {"id": 171, "type": "==", "text": "==", "parent": 169, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 21}}, {"id": 172, "type": "identifier", "text": "start_addr", "parent": 169, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 32}}, {"id": 173, "type": "assignment_expression", "text": "v->start_addr = NULL", "parent": 167, "children": [174, 177, 178], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 21}}, {"id": 174, "type": "field_expression", "text": "v->start_addr", "parent": 173, "children": [175, 176], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 14}}, {"id": 175, "type": "identifier", "text": "v", "parent": 174, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 2}}, {"id": 176, "type": "field_identifier", "text": "start_addr", "parent": 174, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 14}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 16}}, {"id": 178, "type": "null", "text": "NULL", "parent": 173, "children": [179], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 21}}, {"id": 179, "type": "NULL", "text": "NULL", "parent": 178, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 21}}, {"id": 180, "type": "return_statement", "text": "return DWARF_CB_OK;", "parent": 160, "children": [181], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 25}}, {"id": 181, "type": "identifier", "text": "DWARF_CB_OK", "parent": 180, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 24}}, {"id": 182, "type": "if_statement", "text": "if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;", "parent": 50, "children": [183, 198], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 88, "column": 23}}, {"id": 183, "type": "parenthesized_expression", "text": "(tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))", "parent": 182, "children": [184], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 87, "column": 56}}, {"id": 184, "type": "binary_expression", "text": "tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration)", "parent": 183, "children": [185, 189, 190], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 87, "column": 55}}, {"id": 185, "type": "binary_expression", "text": "tag != DW_TAG_subprogram", "parent": 184, "children": [186, 187, 188], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 30}}, {"id": 186, "type": "identifier", "text": "tag", "parent": 185, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 9}}, {"id": 187, "type": "!=", "text": "!=", "parent": 185, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 12}}, {"id": 188, "type": "identifier", "text": "DW_TAG_subprogram", "parent": 185, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 30}}, {"id": 189, "type": "||", "text": "||", "parent": 184, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 8}}, {"id": 190, "type": "call_expression", "text": "INTUSE(dwarf_hasattr) (die, DW_AT_declaration)", "parent": 184, "children": [191, 195], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 55}}, {"id": 191, "type": "call_expression", "text": "INTUSE(dwarf_hasattr)", "parent": 190, "children": [192, 193], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 30}}, {"id": 192, "type": "identifier", "text": "INTUSE", "parent": 191, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 15}}, {"id": 193, "type": "argument_list", "text": "(dwarf_hasattr)", "parent": 191, "children": [194], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 30}}, {"id": 194, "type": "identifier", "text": "dwarf_hasattr", "parent": 193, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 29}}, {"id": 195, "type": "argument_list", "text": "(die, DW_AT_declaration)", "parent": 190, "children": [196, 197], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 55}}, {"id": 196, "type": "identifier", "text": "die", "parent": 195, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 35}}, {"id": 197, "type": "identifier", "text": "DW_AT_declaration", "parent": 195, "children": [], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 54}}, {"id": 198, "type": "return_statement", "text": "return DWARF_CB_OK;", "parent": 182, "children": [199], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 23}}, {"id": 199, "type": "identifier", "text": "DWARF_CB_OK", "parent": 198, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 22}}, {"id": 200, "type": "assignment_expression", "text": "v->last_addr = die_addr", "parent": 50, "children": [201, 204, 205], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 25}}, {"id": 201, "type": "field_expression", "text": "v->last_addr", "parent": 200, "children": [202, 203], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 14}}, {"id": 202, "type": "identifier", "text": "v", "parent": 201, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 3}}, {"id": 203, "type": "field_identifier", "text": "last_addr", "parent": 201, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 14}}, {"id": 204, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 205, "type": "identifier", "text": "die_addr", "parent": 200, "children": [], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 25}}, {"id": 206, "type": "return_statement", "text": "return (*v->callback) (die, v->arg);", "parent": 50, "children": [207], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 38}}, {"id": 207, "type": "call_expression", "text": "(*v->callback) (die, v->arg)", "parent": 206, "children": [208, 214], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 37}}, {"id": 208, "type": "parenthesized_expression", "text": "(*v->callback)", "parent": 207, "children": [209], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 23}}, {"id": 209, "type": "pointer_expression", "text": "*v->callback", "parent": 208, "children": [210, 211], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 22}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 11}}, {"id": 211, "type": "field_expression", "text": "v->callback", "parent": 209, "children": [212, 213], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 22}}, {"id": 212, "type": "identifier", "text": "v", "parent": 211, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 12}}, {"id": 213, "type": "field_identifier", "text": "callback", "parent": 211, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 22}}, {"id": 214, "type": "argument_list", "text": "(die, v->arg)", "parent": 207, "children": [215, 216], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 37}}, {"id": 215, "type": "identifier", "text": "die", "parent": 214, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 28}}, {"id": 216, "type": "field_expression", "text": "v->arg", "parent": 214, "children": [217, 218], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 36}}, {"id": 217, "type": "identifier", "text": "v", "parent": 216, "children": [], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 31}}, {"id": 218, "type": "field_identifier", "text": "arg", "parent": 216, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 36}}, {"id": 219, "type": "function_definition", "text": "ptrdiff_t\ndwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrdiff_t offset)\n{\n if (unlikely (cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;\n\n int lang = INTUSE(dwarf_srclang) (cudie);\n bool c_cu = (lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99);\n\n struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };\n struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n\t\t\t\t .parent = NULL };\n int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);\n\n if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;\n}", "parent": null, "children": [220, 221], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 116, "column": 1}}, {"id": 220, "type": "primitive_type", "text": "ptrdiff_t", "parent": 219, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 9}}, {"id": 221, "type": "function_declarator", "text": "dwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrdiff_t offset)", "parent": 219, "children": [222, 223], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 30}}, {"id": 222, "type": "identifier", "text": "dwarf_getfuncs", "parent": 221, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 14}}, {"id": 223, "type": "parameter_list", "text": "(Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrdiff_t offset)", "parent": 221, "children": [224, 229, 245, 250], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 96, "column": 30}}, {"id": 224, "type": "parameter_declaration", "text": "Dwarf_Die *cudie", "parent": 223, "children": [225, 226], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 32}}, {"id": 225, "type": "type_identifier", "text": "Dwarf_Die", "parent": 224, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 25}}, {"id": 226, "type": "pointer_declarator", "text": "*cudie", "parent": 224, "children": [227, 228], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 32}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 27}}, {"id": 228, "type": "identifier", "text": "cudie", "parent": 226, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 32}}, {"id": 229, "type": "parameter_declaration", "text": "int (*callback) (Dwarf_Die *, void *)", "parent": 223, "children": [230, 231], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 71}}, {"id": 230, "type": "primitive_type", "text": "int", "parent": 229, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 37}}, {"id": 231, "type": "function_declarator", "text": "(*callback) (Dwarf_Die *, void *)", "parent": 229, "children": [232, 236], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 71}}, {"id": 232, "type": "parenthesized_declarator", "text": "(*callback)", "parent": 231, "children": [233], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 49}}, {"id": 233, "type": "pointer_declarator", "text": "*callback", "parent": 232, "children": [234, 235], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 48}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 40}}, {"id": 235, "type": "identifier", "text": "callback", "parent": 233, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 48}}, {"id": 236, "type": "parameter_list", "text": "(Dwarf_Die *, void *)", "parent": 231, "children": [237, 241], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 71}}, {"id": 237, "type": "parameter_declaration", "text": "Dwarf_Die *", "parent": 236, "children": [238, 239], "start_point": {"row": 95, "column": 51}, "end_point": {"row": 95, "column": 62}}, {"id": 238, "type": "type_identifier", "text": "Dwarf_Die", "parent": 237, "children": [], "start_point": {"row": 95, "column": 51}, "end_point": {"row": 95, "column": 60}}, {"id": 239, "type": "abstract_pointer_declarator", "text": "*", "parent": 237, "children": [240], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 62}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 62}}, {"id": 241, "type": "parameter_declaration", "text": "void *", "parent": 236, "children": [242, 243], "start_point": {"row": 95, "column": 64}, "end_point": {"row": 95, "column": 70}}, {"id": 242, "type": "primitive_type", "text": "void", "parent": 241, "children": [], "start_point": {"row": 95, "column": 64}, "end_point": {"row": 95, "column": 68}}, {"id": 243, "type": "abstract_pointer_declarator", "text": "*", "parent": 241, "children": [244], "start_point": {"row": 95, "column": 69}, "end_point": {"row": 95, "column": 70}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 95, "column": 69}, "end_point": {"row": 95, "column": 70}}, {"id": 245, "type": "parameter_declaration", "text": "void *arg", "parent": 223, "children": [246, 247], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 11}}, {"id": 246, "type": "primitive_type", "text": "void", "parent": 245, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 6}}, {"id": 247, "type": "pointer_declarator", "text": "*arg", "parent": 245, "children": [248, 249], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 11}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 8}}, {"id": 249, "type": "identifier", "text": "arg", "parent": 247, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 11}}, {"id": 250, "type": "parameter_declaration", "text": "ptrdiff_t offset", "parent": 223, "children": [251, 252], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 29}}, {"id": 251, "type": "primitive_type", "text": "ptrdiff_t", "parent": 250, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 22}}, {"id": 252, "type": "identifier", "text": "offset", "parent": 250, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 29}}, {"id": 253, "type": "if_statement", "text": "if (unlikely (cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;", "parent": 219, "children": [254, 275], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 100, "column": 14}}, {"id": 254, "type": "parenthesized_expression", "text": "(unlikely (cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))", "parent": 253, "children": [255], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 99, "column": 55}}, {"id": 255, "type": "call_expression", "text": "unlikely (cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit)", "parent": 254, "children": [256, 257], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 99, "column": 54}}, {"id": 256, "type": "identifier", "text": "unlikely", "parent": 255, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 14}}, {"id": 257, "type": "argument_list", "text": "(cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit)", "parent": 255, "children": [258], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 99, "column": 54}}, {"id": 258, "type": "binary_expression", "text": "cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit", "parent": 257, "children": [259, 264, 265], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 99, "column": 53}}, {"id": 259, "type": "binary_expression", "text": "cudie == NULL", "parent": 258, "children": [260, 261, 262], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 29}}, {"id": 260, "type": "identifier", "text": "cudie", "parent": 259, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 21}}, {"id": 261, "type": "==", "text": "==", "parent": 259, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 24}}, {"id": 262, "type": "null", "text": "NULL", "parent": 259, "children": [263], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 29}}, {"id": 263, "type": "NULL", "text": "NULL", "parent": 262, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 29}}, {"id": 264, "type": "||", "text": "||", "parent": 258, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 4}}, {"id": 265, "type": "binary_expression", "text": "INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit", "parent": 258, "children": [266, 273, 274], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 53}}, {"id": 266, "type": "call_expression", "text": "INTUSE(dwarf_tag) (cudie)", "parent": 265, "children": [267, 271], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 30}}, {"id": 267, "type": "call_expression", "text": "INTUSE(dwarf_tag)", "parent": 266, "children": [268, 269], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 22}}, {"id": 268, "type": "identifier", "text": "INTUSE", "parent": 267, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 11}}, {"id": 269, "type": "argument_list", "text": "(dwarf_tag)", "parent": 267, "children": [270], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 22}}, {"id": 270, "type": "identifier", "text": "dwarf_tag", "parent": 269, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 21}}, {"id": 271, "type": "argument_list", "text": "(cudie)", "parent": 266, "children": [272], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 30}}, {"id": 272, "type": "identifier", "text": "cudie", "parent": 271, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 29}}, {"id": 273, "type": "!=", "text": "!=", "parent": 265, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 33}}, {"id": 274, "type": "identifier", "text": "DW_TAG_compile_unit", "parent": 265, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 53}}, {"id": 275, "type": "return_statement", "text": "return -1;", "parent": 253, "children": [276], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 14}}, {"id": 276, "type": "number_literal", "text": "-1", "parent": 275, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 13}}, {"id": 277, "type": "declaration", "text": "int lang = INTUSE(dwarf_srclang) (cudie);", "parent": 219, "children": [278, 279], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 43}}, {"id": 278, "type": "primitive_type", "text": "int", "parent": 277, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 5}}, {"id": 279, "type": "init_declarator", "text": "lang = INTUSE(dwarf_srclang) (cudie)", "parent": 277, "children": [280, 281, 282], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 42}}, {"id": 280, "type": "identifier", "text": "lang", "parent": 279, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 10}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 12}}, {"id": 282, "type": "call_expression", "text": "INTUSE(dwarf_srclang) (cudie)", "parent": 279, "children": [283, 287], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 42}}, {"id": 283, "type": "call_expression", "text": "INTUSE(dwarf_srclang)", "parent": 282, "children": [284, 285], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 34}}, {"id": 284, "type": "identifier", "text": "INTUSE", "parent": 283, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 19}}, {"id": 285, "type": "argument_list", "text": "(dwarf_srclang)", "parent": 283, "children": [286], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 34}}, {"id": 286, "type": "identifier", "text": "dwarf_srclang", "parent": 285, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 33}}, {"id": 287, "type": "argument_list", "text": "(cudie)", "parent": 282, "children": [288], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 42}}, {"id": 288, "type": "identifier", "text": "cudie", "parent": 287, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 41}}, {"id": 289, "type": "declaration", "text": "bool c_cu = (lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99);", "parent": 219, "children": [290, 291], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 105, "column": 32}}, {"id": 290, "type": "primitive_type", "text": "bool", "parent": 289, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 6}}, {"id": 291, "type": "init_declarator", "text": "c_cu = (lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99)", "parent": 289, "children": [292, 293, 294], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 105, "column": 31}}, {"id": 292, "type": "identifier", "text": "c_cu", "parent": 291, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 11}}, {"id": 293, "type": "=", "text": "=", "parent": 291, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 13}}, {"id": 294, "type": "parenthesized_expression", "text": "(lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99)", "parent": 291, "children": [295], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 105, "column": 31}}, {"id": 295, "type": "binary_expression", "text": "lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99", "parent": 294, "children": [296, 306, 307], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 105, "column": 30}}, {"id": 296, "type": "binary_expression", "text": "lang == DW_LANG_C89\n\t || lang == DW_LANG_C", "parent": 295, "children": [297, 301, 302], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 104, "column": 28}}, {"id": 297, "type": "binary_expression", "text": "lang == DW_LANG_C89", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 34}}, {"id": 298, "type": "identifier", "text": "lang", "parent": 297, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 19}}, {"id": 299, "type": "==", "text": "==", "parent": 297, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 22}}, {"id": 300, "type": "identifier", "text": "DW_LANG_C89", "parent": 297, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 34}}, {"id": 301, "type": "||", "text": "||", "parent": 296, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 10}}, {"id": 302, "type": "binary_expression", "text": "lang == DW_LANG_C", "parent": 296, "children": [303, 304, 305], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 28}}, {"id": 303, "type": "identifier", "text": "lang", "parent": 302, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 15}}, {"id": 304, "type": "==", "text": "==", "parent": 302, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 18}}, {"id": 305, "type": "identifier", "text": "DW_LANG_C", "parent": 302, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 28}}, {"id": 306, "type": "||", "text": "||", "parent": 295, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 10}}, {"id": 307, "type": "binary_expression", "text": "lang == DW_LANG_C99", "parent": 295, "children": [308, 309, 310], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 30}}, {"id": 308, "type": "identifier", "text": "lang", "parent": 307, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 15}}, {"id": 309, "type": "==", "text": "==", "parent": 307, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 18}}, {"id": 310, "type": "identifier", "text": "DW_LANG_C99", "parent": 307, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 30}}, {"id": 311, "type": "declaration", "text": "struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };", "parent": 219, "children": [312, 315], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 73}}, {"id": 312, "type": "struct_specifier", "text": "struct visitor_info", "parent": 311, "children": [313, 314], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 21}}, {"id": 313, "type": "struct", "text": "struct", "parent": 312, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 8}}, {"id": 314, "type": "type_identifier", "text": "visitor_info", "parent": 312, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 21}}, {"id": 315, "type": "init_declarator", "text": "v = { callback, arg, (void *) offset, NULL, c_cu }", "parent": 311, "children": [316, 317, 318], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 72}}, {"id": 316, "type": "identifier", "text": "v", "parent": 315, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 23}}, {"id": 317, "type": "=", "text": "=", "parent": 315, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 25}}, {"id": 318, "type": "initializer_list", "text": "{ callback, arg, (void *) offset, NULL, c_cu }", "parent": 315, "children": [319, 320, 321, 327, 329], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 72}}, {"id": 319, "type": "identifier", "text": "callback", "parent": 318, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 36}}, {"id": 320, "type": "identifier", "text": "arg", "parent": 318, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 41}}, {"id": 321, "type": "cast_expression", "text": "(void *) offset", "parent": 318, "children": [322, 326], "start_point": {"row": 107, "column": 43}, "end_point": {"row": 107, "column": 58}}, {"id": 322, "type": "type_descriptor", "text": "void *", "parent": 321, "children": [323, 324], "start_point": {"row": 107, "column": 44}, "end_point": {"row": 107, "column": 50}}, {"id": 323, "type": "primitive_type", "text": "void", "parent": 322, "children": [], "start_point": {"row": 107, "column": 44}, "end_point": {"row": 107, "column": 48}}, {"id": 324, "type": "abstract_pointer_declarator", "text": "*", "parent": 322, "children": [325], "start_point": {"row": 107, "column": 49}, "end_point": {"row": 107, "column": 50}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 107, "column": 49}, "end_point": {"row": 107, "column": 50}}, {"id": 326, "type": "identifier", "text": "offset", "parent": 321, "children": [], "start_point": {"row": 107, "column": 52}, "end_point": {"row": 107, "column": 58}}, {"id": 327, "type": "null", "text": "NULL", "parent": 318, "children": [328], "start_point": {"row": 107, "column": 60}, "end_point": {"row": 107, "column": 64}}, {"id": 328, "type": "NULL", "text": "NULL", "parent": 327, "children": [], "start_point": {"row": 107, "column": 60}, "end_point": {"row": 107, "column": 64}}, {"id": 329, "type": "identifier", "text": "c_cu", "parent": 318, "children": [], "start_point": {"row": 107, "column": 66}, "end_point": {"row": 107, "column": 70}}, {"id": 330, "type": "declaration", "text": "struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n\t\t\t\t .parent = NULL };", "parent": 219, "children": [331, 334], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 109, "column": 24}}, {"id": 331, "type": "struct_specifier", "text": "struct Dwarf_Die_Chain", "parent": 330, "children": [332, 333], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 24}}, {"id": 332, "type": "struct", "text": "struct", "parent": 331, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 8}}, {"id": 333, "type": "type_identifier", "text": "Dwarf_Die_Chain", "parent": 331, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 24}}, {"id": 334, "type": "init_declarator", "text": "chain = { .die = CUDIE (cudie->cu),\n\t\t\t\t .parent = NULL }", "parent": 330, "children": [335, 336, 337], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 109, "column": 23}}, {"id": 335, "type": "identifier", "text": "chain", "parent": 334, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 30}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 32}}, {"id": 337, "type": "initializer_list", "text": "{ .die = CUDIE (cudie->cu),\n\t\t\t\t .parent = NULL }", "parent": 334, "children": [338, 348], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 109, "column": 23}}, {"id": 338, "type": "initializer_pair", "text": ".die = CUDIE (cudie->cu)", "parent": 337, "children": [339, 341, 342], "start_point": {"row": 108, "column": 35}, "end_point": {"row": 108, "column": 59}}, {"id": 339, "type": "field_designator", "text": ".die", "parent": 338, "children": [340], "start_point": {"row": 108, "column": 35}, "end_point": {"row": 108, "column": 39}}, {"id": 340, "type": "field_identifier", "text": "die", "parent": 339, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 39}}, {"id": 341, "type": "=", "text": "=", "parent": 338, "children": [], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 41}}, {"id": 342, "type": "call_expression", "text": "CUDIE (cudie->cu)", "parent": 338, "children": [343, 344], "start_point": {"row": 108, "column": 42}, "end_point": {"row": 108, "column": 59}}, {"id": 343, "type": "identifier", "text": "CUDIE", "parent": 342, "children": [], "start_point": {"row": 108, "column": 42}, "end_point": {"row": 108, "column": 47}}, {"id": 344, "type": "argument_list", "text": "(cudie->cu)", "parent": 342, "children": [345], "start_point": {"row": 108, "column": 48}, "end_point": {"row": 108, "column": 59}}, {"id": 345, "type": "field_expression", "text": "cudie->cu", "parent": 344, "children": [346, 347], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 58}}, {"id": 346, "type": "identifier", "text": "cudie", "parent": 345, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 54}}, {"id": 347, "type": "field_identifier", "text": "cu", "parent": 345, "children": [], "start_point": {"row": 108, "column": 56}, "end_point": {"row": 108, "column": 58}}, {"id": 348, "type": "initializer_pair", "text": ".parent = NULL", "parent": 337, "children": [349, 351, 352], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 21}}, {"id": 349, "type": "field_designator", "text": ".parent", "parent": 348, "children": [350], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 14}}, {"id": 350, "type": "field_identifier", "text": "parent", "parent": 349, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 14}}, {"id": 351, "type": "=", "text": "=", "parent": 348, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 16}}, {"id": 352, "type": "null", "text": "NULL", "parent": 348, "children": [353], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 21}}, {"id": 353, "type": "NULL", "text": "NULL", "parent": 352, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 21}}, {"id": 354, "type": "declaration", "text": "int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);", "parent": 219, "children": [355, 356], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 70}}, {"id": 355, "type": "primitive_type", "text": "int", "parent": 354, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 5}}, {"id": 356, "type": "init_declarator", "text": "res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v)", "parent": 354, "children": [357, 358, 359], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 69}}, {"id": 357, "type": "identifier", "text": "res", "parent": 356, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 9}}, {"id": 358, "type": "=", "text": "=", "parent": 356, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 11}}, {"id": 359, "type": "call_expression", "text": "__libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v)", "parent": 356, "children": [360, 361], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 69}}, {"id": 360, "type": "identifier", "text": "__libdw_visit_scopes", "parent": 359, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 32}}, {"id": 361, "type": "argument_list", "text": "(0, &chain, &tree_visitor, NULL, &v)", "parent": 359, "children": [362, 363, 365, 367, 369], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 69}}, {"id": 362, "type": "number_literal", "text": "0", "parent": 361, "children": [], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 110, "column": 35}}, {"id": 363, "type": "pointer_expression", "text": "&chain", "parent": 361, "children": [364], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 43}}, {"id": 364, "type": "identifier", "text": "chain", "parent": 363, "children": [], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 43}}, {"id": 365, "type": "pointer_expression", "text": "&tree_visitor", "parent": 361, "children": [366], "start_point": {"row": 110, "column": 45}, "end_point": {"row": 110, "column": 58}}, {"id": 366, "type": "identifier", "text": "tree_visitor", "parent": 365, "children": [], "start_point": {"row": 110, "column": 46}, "end_point": {"row": 110, "column": 58}}, {"id": 367, "type": "null", "text": "NULL", "parent": 361, "children": [368], "start_point": {"row": 110, "column": 60}, "end_point": {"row": 110, "column": 64}}, {"id": 368, "type": "NULL", "text": "NULL", "parent": 367, "children": [], "start_point": {"row": 110, "column": 60}, "end_point": {"row": 110, "column": 64}}, {"id": 369, "type": "pointer_expression", "text": "&v", "parent": 361, "children": [370], "start_point": {"row": 110, "column": 66}, "end_point": {"row": 110, "column": 68}}, {"id": 370, "type": "identifier", "text": "v", "parent": 369, "children": [], "start_point": {"row": 110, "column": 67}, "end_point": {"row": 110, "column": 68}}, {"id": 371, "type": "if_statement", "text": "if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;", "parent": 219, "children": [372, 377, 384], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 115, "column": 15}}, {"id": 372, "type": "parenthesized_expression", "text": "(res == DWARF_CB_ABORT)", "parent": 371, "children": [373], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 28}}, {"id": 373, "type": "binary_expression", "text": "res == DWARF_CB_ABORT", "parent": 372, "children": [374, 375, 376], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 27}}, {"id": 374, "type": "identifier", "text": "res", "parent": 373, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 9}}, {"id": 375, "type": "==", "text": "==", "parent": 373, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 12}}, {"id": 376, "type": "identifier", "text": "DWARF_CB_ABORT", "parent": 373, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 27}}, {"id": 377, "type": "return_statement", "text": "return (ptrdiff_t) v.last_addr;", "parent": 371, "children": [378], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 35}}, {"id": 378, "type": "cast_expression", "text": "(ptrdiff_t) v.last_addr", "parent": 377, "children": [379, 381], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 34}}, {"id": 379, "type": "type_descriptor", "text": "ptrdiff_t", "parent": 378, "children": [380], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 21}}, {"id": 380, "type": "primitive_type", "text": "ptrdiff_t", "parent": 379, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 21}}, {"id": 381, "type": "field_expression", "text": "v.last_addr", "parent": 378, "children": [382, 383], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 34}}, {"id": 382, "type": "identifier", "text": "v", "parent": 381, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 24}}, {"id": 383, "type": "field_identifier", "text": "last_addr", "parent": 381, "children": [], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 34}}, {"id": 384, "type": "else_clause", "text": "else\n return res;", "parent": 371, "children": [385], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 115, "column": 15}}, {"id": 385, "type": "return_statement", "text": "return res;", "parent": 384, "children": [386], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 15}}, {"id": 386, "type": "identifier", "text": "res", "parent": 385, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 14}}]}, "node_categories": {"declarations": {"functions": [18, 50, 52, 219, 221, 231], "variables": [16, 24, 28, 32, 37, 42, 47, 55, 64, 71, 76, 86, 97, 107, 117, 224, 229, 237, 241, 245, 250, 277, 289, 311, 330, 354], "classes": [13, 14, 65, 66, 77, 78, 312, 313, 331, 332], "imports": [3, 4, 7, 8, 10, 11], "modules": [], "enums": []}, "statements": {"expressions": [93, 94, 104, 114, 122, 123, 130, 131, 132, 133, 134, 138, 143, 148, 153, 161, 162, 168, 169, 174, 183, 184, 185, 190, 191, 201, 207, 208, 209, 211, 216, 254, 255, 258, 259, 265, 266, 267, 282, 283, 294, 295, 296, 297, 302, 307, 321, 342, 345, 359, 363, 365, 369, 372, 373, 378, 381], "assignments": [152, 173, 200], "loops": [], "conditionals": [0, 1, 2, 6, 15, 22, 25, 36, 41, 46, 49, 53, 56, 59, 60, 63, 67, 70, 75, 79, 83, 85, 87, 91, 95, 96, 102, 105, 106, 112, 115, 116, 120, 124, 126, 128, 129, 135, 136, 139, 141, 144, 146, 149, 151, 154, 155, 159, 160, 163, 167, 170, 172, 175, 176, 181, 182, 186, 188, 192, 194, 196, 197, 199, 202, 203, 205, 212, 213, 215, 217, 218, 222, 225, 228, 235, 238, 249, 252, 253, 256, 260, 268, 270, 272, 274, 280, 284, 286, 288, 292, 298, 300, 303, 305, 308, 310, 314, 316, 319, 320, 326, 329, 333, 335, 340, 343, 346, 347, 350, 357, 360, 364, 366, 370, 371, 374, 376, 382, 383, 386], "returns": [158, 180, 198, 206, 275, 377, 385], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 9, 12, 276, 362], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [339, 349]}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "*)", "text_snippet": "(*callback) (Dwarf_Die *, void *)"}, {"node_id": 50, "universal_type": "function", "name": "tree_visitor", "text_snippet": "static int\ntree_visitor (unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain "}, {"node_id": 52, "universal_type": "function", "name": "depth", "text_snippet": "tree_visitor (unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain *chain, voi"}, {"node_id": 219, "universal_type": "function", "name": "", "text_snippet": "ptrdiff_t\ndwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrd"}, {"node_id": 221, "universal_type": "function", "name": "", "text_snippet": "dwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrdiff_t offs"}, {"node_id": 231, "universal_type": "function", "name": "*)", "text_snippet": "(*callback) (Dwarf_Die *, void *)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "visitor_info", "text_snippet": "struct visitor_info\n{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, "}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 65, "universal_type": "class", "name": "Dwarf_Die_Chain", "text_snippet": "struct Dwarf_Die_Chain"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 77, "universal_type": "class", "name": "visitor_info", "text_snippet": "struct visitor_info"}, {"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 312, "universal_type": "class", "name": "visitor_info", "text_snippet": "struct visitor_info"}, {"node_id": 313, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 331, "universal_type": "class", "name": "Dwarf_Die_Chain", "text_snippet": "struct Dwarf_Die_Chain"}, {"node_id": 332, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "# include <config.h>\n"}, {"node_id": 4, "text": "# include"}, {"node_id": 7, "text": "#include <dwarf.h>\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 10, "text": "#include \"libdwP.h\"\n"}, {"node_id": 11, "text": "#include"}]}, "original_source_code": "/* Get function information.\n Copyright (C) 2005, 2013 Red Hat, Inc.\n This file is part of elfutils.\n Written by <NAME> <<EMAIL>>, 2005.\n\n This file is free software; you can redistribute it and/or modify\n it under the terms of either\n\n * the GNU Lesser General Public License as published by the Free\n Software Foundation; either version 3 of the License, or (at\n your option) any later version\n\n or\n\n * the GNU General Public License as published by the Free\n Software Foundation; either version 2 of the License, or (at\n your option) any later version\n\n or both in parallel, as here.\n\n elfutils is distributed in the hope that it will be useful, but\n WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n General Public License for more details.\n\n You should have received copies of the GNU General Public License and\n the GNU Lesser General Public License along with this program. If\n not, see <http://www.gnu.org/licenses/>. */\n\n#ifdef HAVE_CONFIG_H\n# include <config.h>\n#endif\n\n#include <dwarf.h>\n#include \"libdwP.h\"\n\n\nstruct visitor_info\n{\n /* The user callback of dwarf_getfuncs. */\n int (*callback) (Dwarf_Die *, void *);\n\n /* The user arg value to dwarf_getfuncs. */\n void *arg;\n\n /* Addr of the DIE offset where to (re)start the search. Zero for all. */\n void *start_addr;\n\n /* Last subprogram DIE addr seen. */\n void *last_addr;\n\n /* The CU only contains C functions. Allows pruning of most subtrees. */\n bool c_cu;\n};\n\nstatic int\ntree_visitor (unsigned int depth __attribute__ ((unused)),\n\t struct Dwarf_Die_Chain *chain, void *arg)\n{\n struct visitor_info *const v = arg;\n Dwarf_Die *die = &chain->die;\n void *start_addr = v->start_addr;\n void *die_addr = die->addr;\n\n /* Pure C CUs can only contain defining subprogram DIEs as direct\n children of the CU DIE or as nested function inside a normal C\n code constructs. */\n int tag = INTUSE(dwarf_tag) (die);\n if (v->c_cu\n && tag != DW_TAG_subprogram\n && tag != DW_TAG_lexical_block\n && tag != DW_TAG_inlined_subroutine)\n {\n chain->prune = true;\n return DWARF_CB_OK;\n }\n\n /* Skip all DIEs till we found the (re)start addr. */\n if (start_addr != NULL)\n {\n if (die_addr == start_addr)\n\tv->start_addr = NULL;\n return DWARF_CB_OK;\n }\n\n /* If this isn't a (defining) subprogram entity, skip DIE. */\n if (tag != DW_TAG_subprogram\n || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))\n return DWARF_CB_OK;\n\n v->last_addr = die_addr;\n return (*v->callback) (die, v->arg);\n}\n\nptrdiff_t\ndwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),\n\t\tvoid *arg, ptrdiff_t offset)\n{\n if (unlikely (cudie == NULL\n\t\t|| INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))\n return -1;\n\n int lang = INTUSE(dwarf_srclang) (cudie);\n bool c_cu = (lang == DW_LANG_C89\n\t || lang == DW_LANG_C\n\t || lang == DW_LANG_C99);\n\n struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };\n struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),\n\t\t\t\t .parent = NULL };\n int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);\n\n if (res == DWARF_CB_ABORT)\n return (ptrdiff_t) v.last_addr;\n else\n return res;\n}\n"}
81,014
c
/* * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <glib-object.h> #include "net_nfc_client_manager.h" #include "net_nfc_typedef_internal.h" static void run_next_callback(gpointer user_data) { if (user_data) { GCallback callback; callback = (GCallback)(user_data); callback(); } } static void print_server_state(gint state) { if (state == 0) g_print(" --- state : Unknown(%d)\n", state); else { g_print(" --- state :\n"); if (state & NET_NFC_SERVER_DISCOVERY) g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state); if (state & NET_NFC_TAG_CONNECTED) g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state); if (state & NET_NFC_SE_CONNECTION) g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state); if (state & NET_NFC_SNEP_CLIENT_CONNECTED) { g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n", state); } if (state & NET_NFC_NPP_CLIENT_CONNECTED) g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state); if (state & NET_NFC_SNEP_SERVER_CONNECTED) g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state); if (state & NET_NFC_NPP_SERVER_CONNECTED) g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state); } } static void set_activated_cb(bool state, void *user_data) { g_print("Activated state %d\n", state); } static void set_active_completed_cb(net_nfc_error_e result, void *user_data) { g_print("SetActive Completed %d\n", result); run_next_callback(user_data); } static void get_server_state_completed_cb(net_nfc_error_e result, unsigned int state, void *user_data) { g_print("GetServerState Completed %d\n", result); print_server_state(state); run_next_callback(user_data); } void net_nfc_test_manager_set_active(gpointer data, gpointer user_data) { net_nfc_client_manager_set_activated(set_activated_cb, NULL); net_nfc_client_manager_set_active(1, set_active_completed_cb, user_data); } void net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data) { net_nfc_client_manager_get_server_state(get_server_state_completed_cb, user_data); } void net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data) { gint i; i = net_nfc_client_manager_set_active_sync(1); g_print("Return %d\n", i); if (user_data) { GCallback callback; callback = (GCallback)(user_data); callback(); } } void net_nfc_test_manager_get_server_state_sync(gpointer data, gpointer user_data) { net_nfc_error_e result; guint state = 0; result = net_nfc_client_manager_get_server_state_sync(&state); g_print("GetServerState: %d\n", result); print_server_state(state); run_next_callback(user_data); }
28.51
107
(translation_unit) "/*\n * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n#include <glib-object.h>\n\n#include "net_nfc_client_manager.h"\n#include "net_nfc_typedef_internal.h"\n\n\nstatic void run_next_callback(gpointer user_data)\n{\n if (user_data)\n {\n GCallback callback;\n callback = (GCallback)(user_data);\n callback();\n }\n}\n\nstatic void print_server_state(gint state)\n{\n if (state == 0)\n g_print(" --- state : Unknown(%d)\n", state);\n else\n {\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }\n}\n\nstatic void set_activated_cb(bool state,\n void *user_data)\n{\n g_print("Activated state %d\n", state);\n}\n\nstatic void set_active_completed_cb(net_nfc_error_e result, void *user_data)\n{\n g_print("SetActive Completed %d\n", result);\n run_next_callback(user_data);\n}\n\nstatic void get_server_state_completed_cb(net_nfc_error_e result,\n unsigned int state,\n void *user_data)\n{\n g_print("GetServerState Completed %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}\n\nvoid net_nfc_test_manager_set_active(gpointer data, gpointer user_data)\n{\n net_nfc_client_manager_set_activated(set_activated_cb, NULL);\n\n net_nfc_client_manager_set_active(1,\n set_active_completed_cb,\n user_data);\n}\n\nvoid net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)\n{\n net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n user_data);\n}\n\nvoid net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)\n{\n gint i;\n\n i = net_nfc_client_manager_set_active_sync(1);\n\n g_print("Return %d\n", i);\n\n if (user_data)\n {\n GCallback callback;\n\n callback = (GCallback)(user_data);\n\n callback();\n }\n}\n\nvoid net_nfc_test_manager_get_server_state_sync(gpointer data,\n gpointer user_data)\n{\n net_nfc_error_e result;\n guint state = 0;\n\n result = net_nfc_client_manager_get_server_state_sync(&state);\n\n g_print("GetServerState: %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}\n" (comment) "/*\n * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (preproc_include) "#include <glib-object.h>\n" (#include) "#include" (system_lib_string) "<glib-object.h>" (preproc_include) "#include "net_nfc_client_manager.h"\n" (#include) "#include" (string_literal) ""net_nfc_client_manager.h"" (") """ (string_content) "net_nfc_client_manager.h" (") """ (preproc_include) "#include "net_nfc_typedef_internal.h"\n" (#include) "#include" (string_literal) ""net_nfc_typedef_internal.h"" (") """ (string_content) "net_nfc_typedef_internal.h" (") """ (function_definition) "static void run_next_callback(gpointer user_data)\n{\n if (user_data)\n {\n GCallback callback;\n callback = (GCallback)(user_data);\n callback();\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "run_next_callback(gpointer user_data)" (identifier) "run_next_callback" (parameter_list) "(gpointer user_data)" (() "(" (parameter_declaration) "gpointer user_data" (type_identifier) "gpointer" (identifier) "user_data" ()) ")" (compound_statement) "{\n if (user_data)\n {\n GCallback callback;\n callback = (GCallback)(user_data);\n callback();\n }\n}" ({) "{" (if_statement) "if (user_data)\n {\n GCallback callback;\n callback = (GCallback)(user_data);\n callback();\n }" (if) "if" (parenthesized_expression) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (compound_statement) "{\n GCallback callback;\n callback = (GCallback)(user_data);\n callback();\n }" ({) "{" (declaration) "GCallback callback;" (type_identifier) "GCallback" (identifier) "callback" (;) ";" (expression_statement) "callback = (GCallback)(user_data);" (assignment_expression) "callback = (GCallback)(user_data)" (identifier) "callback" (=) "=" (call_expression) "(GCallback)(user_data)" (parenthesized_expression) "(GCallback)" (() "(" (identifier) "GCallback" ()) ")" (argument_list) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (;) ";" (expression_statement) "callback();" (call_expression) "callback()" (identifier) "callback" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static void print_server_state(gint state)\n{\n if (state == 0)\n g_print(" --- state : Unknown(%d)\n", state);\n else\n {\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "print_server_state(gint state)" (identifier) "print_server_state" (parameter_list) "(gint state)" (() "(" (parameter_declaration) "gint state" (type_identifier) "gint" (identifier) "state" ()) ")" (compound_statement) "{\n if (state == 0)\n g_print(" --- state : Unknown(%d)\n", state);\n else\n {\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }\n}" ({) "{" (if_statement) "if (state == 0)\n g_print(" --- state : Unknown(%d)\n", state);\n else\n {\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }" (if) "if" (parenthesized_expression) "(state == 0)" (() "(" (binary_expression) "state == 0" (identifier) "state" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "g_print(" --- state : Unknown(%d)\n", state);" (call_expression) "g_print(" --- state : Unknown(%d)\n", state)" (identifier) "g_print" (argument_list) "(" --- state : Unknown(%d)\n", state)" (() "(" (string_literal) "" --- state : Unknown(%d)\n"" (") """ (string_content) " --- state : Unknown(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (else_clause) "else\n {\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }" (else) "else" (compound_statement) "{\n g_print(" --- state :\n");\n if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);\n if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }\n if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);\n if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);\n if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);\n }" ({) "{" (expression_statement) "g_print(" --- state :\n");" (call_expression) "g_print(" --- state :\n")" (identifier) "g_print" (argument_list) "(" --- state :\n")" (() "(" (string_literal) "" --- state :\n"" (") """ (string_content) " --- state :" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_SERVER_DISCOVERY)\n g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_SERVER_DISCOVERY)" (() "(" (binary_expression) "state & NET_NFC_SERVER_DISCOVERY" (identifier) "state" (&) "&" (identifier) "NET_NFC_SERVER_DISCOVERY" ()) ")" (expression_statement) "g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_SERVER_DISCOVERY(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_SERVER_DISCOVERY(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_SERVER_DISCOVERY(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_TAG_CONNECTED)\n g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_TAG_CONNECTED)" (() "(" (binary_expression) "state & NET_NFC_TAG_CONNECTED" (identifier) "state" (&) "&" (identifier) "NET_NFC_TAG_CONNECTED" ()) ")" (expression_statement) "g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_TAG_CONNECTED(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_TAG_CONNECTED(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_TAG_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_TAG_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_SE_CONNECTION)\n g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_SE_CONNECTION)" (() "(" (binary_expression) "state & NET_NFC_SE_CONNECTION" (identifier) "state" (&) "&" (identifier) "NET_NFC_SE_CONNECTION" ()) ")" (expression_statement) "g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_SE_CONNECTED(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_SE_CONNECTED(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_SE_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_SE_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n {\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }" (if) "if" (parenthesized_expression) "(state & NET_NFC_SNEP_CLIENT_CONNECTED)" (() "(" (binary_expression) "state & NET_NFC_SNEP_CLIENT_CONNECTED" (identifier) "state" (&) "&" (identifier) "NET_NFC_SNEP_CLIENT_CONNECTED" ()) ")" (compound_statement) "{\n g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);\n }" ({) "{" (expression_statement) "g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state);" (call_expression) "g_print("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n",\n state)" (() "(" (string_literal) ""\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_SNEP_CLIENT_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (}) "}" (if_statement) "if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_NPP_CLIENT_CONNECTED)" (() "(" (binary_expression) "state & NET_NFC_NPP_CLIENT_CONNECTED" (identifier) "state" (&) "&" (identifier) "NET_NFC_NPP_CLIENT_CONNECTED" ()) ")" (expression_statement) "g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_NPP_CLIENT_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_SNEP_SERVER_CONNECTED)" (() "(" (binary_expression) "state & NET_NFC_SNEP_SERVER_CONNECTED" (identifier) "state" (&) "&" (identifier) "NET_NFC_SNEP_SERVER_CONNECTED" ()) ")" (expression_statement) "g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_SNEP_SERVER_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (if_statement) "if (state & NET_NFC_NPP_SERVER_CONNECTED)\n g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);" (if) "if" (parenthesized_expression) "(state & NET_NFC_NPP_SERVER_CONNECTED)" (() "(" (binary_expression) "state & NET_NFC_NPP_SERVER_CONNECTED" (identifier) "state" (&) "&" (identifier) "NET_NFC_NPP_SERVER_CONNECTED" ()) ")" (expression_statement) "g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state);" (call_expression) "g_print("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state)" (identifier) "g_print" (argument_list) "("\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n", state)" (() "(" (string_literal) ""\tNET_NFC_NPP_SERVER_CONNECTED(%d)\n"" (") """ (escape_sequence) "\t" (string_content) "NET_NFC_NPP_SERVER_CONNECTED(%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static void set_activated_cb(bool state,\n void *user_data)\n{\n g_print("Activated state %d\n", state);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "set_activated_cb(bool state,\n void *user_data)" (identifier) "set_activated_cb" (parameter_list) "(bool state,\n void *user_data)" (() "(" (parameter_declaration) "bool state" (primitive_type) "bool" (identifier) "state" (,) "," (parameter_declaration) "void *user_data" (primitive_type) "void" (pointer_declarator) "*user_data" (*) "*" (identifier) "user_data" ()) ")" (compound_statement) "{\n g_print("Activated state %d\n", state);\n}" ({) "{" (expression_statement) "g_print("Activated state %d\n", state);" (call_expression) "g_print("Activated state %d\n", state)" (identifier) "g_print" (argument_list) "("Activated state %d\n", state)" (() "(" (string_literal) ""Activated state %d\n"" (") """ (string_content) "Activated state %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "state" ()) ")" (;) ";" (}) "}" (function_definition) "static void set_active_completed_cb(net_nfc_error_e result, void *user_data)\n{\n g_print("SetActive Completed %d\n", result);\n run_next_callback(user_data);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "set_active_completed_cb(net_nfc_error_e result, void *user_data)" (identifier) "set_active_completed_cb" (parameter_list) "(net_nfc_error_e result, void *user_data)" (() "(" (parameter_declaration) "net_nfc_error_e result" (type_identifier) "net_nfc_error_e" (identifier) "result" (,) "," (parameter_declaration) "void *user_data" (primitive_type) "void" (pointer_declarator) "*user_data" (*) "*" (identifier) "user_data" ()) ")" (compound_statement) "{\n g_print("SetActive Completed %d\n", result);\n run_next_callback(user_data);\n}" ({) "{" (expression_statement) "g_print("SetActive Completed %d\n", result);" (call_expression) "g_print("SetActive Completed %d\n", result)" (identifier) "g_print" (argument_list) "("SetActive Completed %d\n", result)" (() "(" (string_literal) ""SetActive Completed %d\n"" (") """ (string_content) "SetActive Completed %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (expression_statement) "run_next_callback(user_data);" (call_expression) "run_next_callback(user_data)" (identifier) "run_next_callback" (argument_list) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (;) ";" (}) "}" (function_definition) "static void get_server_state_completed_cb(net_nfc_error_e result,\n unsigned int state,\n void *user_data)\n{\n g_print("GetServerState Completed %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "get_server_state_completed_cb(net_nfc_error_e result,\n unsigned int state,\n void *user_data)" (identifier) "get_server_state_completed_cb" (parameter_list) "(net_nfc_error_e result,\n unsigned int state,\n void *user_data)" (() "(" (parameter_declaration) "net_nfc_error_e result" (type_identifier) "net_nfc_error_e" (identifier) "result" (,) "," (parameter_declaration) "unsigned int state" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "state" (,) "," (parameter_declaration) "void *user_data" (primitive_type) "void" (pointer_declarator) "*user_data" (*) "*" (identifier) "user_data" ()) ")" (compound_statement) "{\n g_print("GetServerState Completed %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}" ({) "{" (expression_statement) "g_print("GetServerState Completed %d\n", result);" (call_expression) "g_print("GetServerState Completed %d\n", result)" (identifier) "g_print" (argument_list) "("GetServerState Completed %d\n", result)" (() "(" (string_literal) ""GetServerState Completed %d\n"" (") """ (string_content) "GetServerState Completed %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (expression_statement) "print_server_state(state);" (call_expression) "print_server_state(state)" (identifier) "print_server_state" (argument_list) "(state)" (() "(" (identifier) "state" ()) ")" (;) ";" (expression_statement) "run_next_callback(user_data);" (call_expression) "run_next_callback(user_data)" (identifier) "run_next_callback" (argument_list) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (;) ";" (}) "}" (function_definition) "void net_nfc_test_manager_set_active(gpointer data, gpointer user_data)\n{\n net_nfc_client_manager_set_activated(set_activated_cb, NULL);\n\n net_nfc_client_manager_set_active(1,\n set_active_completed_cb,\n user_data);\n}" (primitive_type) "void" (function_declarator) "net_nfc_test_manager_set_active(gpointer data, gpointer user_data)" (identifier) "net_nfc_test_manager_set_active" (parameter_list) "(gpointer data, gpointer user_data)" (() "(" (parameter_declaration) "gpointer data" (type_identifier) "gpointer" (identifier) "data" (,) "," (parameter_declaration) "gpointer user_data" (type_identifier) "gpointer" (identifier) "user_data" ()) ")" (compound_statement) "{\n net_nfc_client_manager_set_activated(set_activated_cb, NULL);\n\n net_nfc_client_manager_set_active(1,\n set_active_completed_cb,\n user_data);\n}" ({) "{" (expression_statement) "net_nfc_client_manager_set_activated(set_activated_cb, NULL);" (call_expression) "net_nfc_client_manager_set_activated(set_activated_cb, NULL)" (identifier) "net_nfc_client_manager_set_activated" (argument_list) "(set_activated_cb, NULL)" (() "(" (identifier) "set_activated_cb" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "net_nfc_client_manager_set_active(1,\n set_active_completed_cb,\n user_data);" (call_expression) "net_nfc_client_manager_set_active(1,\n set_active_completed_cb,\n user_data)" (identifier) "net_nfc_client_manager_set_active" (argument_list) "(1,\n set_active_completed_cb,\n user_data)" (() "(" (number_literal) "1" (,) "," (identifier) "set_active_completed_cb" (,) "," (identifier) "user_data" ()) ")" (;) ";" (}) "}" (function_definition) "void net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)\n{\n net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n user_data);\n}" (primitive_type) "void" (function_declarator) "net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)" (identifier) "net_nfc_test_manager_get_server_state" (parameter_list) "(gpointer data, gpointer user_data)" (() "(" (parameter_declaration) "gpointer data" (type_identifier) "gpointer" (identifier) "data" (,) "," (parameter_declaration) "gpointer user_data" (type_identifier) "gpointer" (identifier) "user_data" ()) ")" (compound_statement) "{\n net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n user_data);\n}" ({) "{" (expression_statement) "net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n user_data);" (call_expression) "net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n user_data)" (identifier) "net_nfc_client_manager_get_server_state" (argument_list) "(get_server_state_completed_cb,\n user_data)" (() "(" (identifier) "get_server_state_completed_cb" (,) "," (identifier) "user_data" ()) ")" (;) ";" (}) "}" (function_definition) "void net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)\n{\n gint i;\n\n i = net_nfc_client_manager_set_active_sync(1);\n\n g_print("Return %d\n", i);\n\n if (user_data)\n {\n GCallback callback;\n\n callback = (GCallback)(user_data);\n\n callback();\n }\n}" (primitive_type) "void" (function_declarator) "net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)" (identifier) "net_nfc_test_manager_set_active_sync" (parameter_list) "(gpointer data, gpointer user_data)" (() "(" (parameter_declaration) "gpointer data" (type_identifier) "gpointer" (identifier) "data" (,) "," (parameter_declaration) "gpointer user_data" (type_identifier) "gpointer" (identifier) "user_data" ()) ")" (compound_statement) "{\n gint i;\n\n i = net_nfc_client_manager_set_active_sync(1);\n\n g_print("Return %d\n", i);\n\n if (user_data)\n {\n GCallback callback;\n\n callback = (GCallback)(user_data);\n\n callback();\n }\n}" ({) "{" (declaration) "gint i;" (type_identifier) "gint" (identifier) "i" (;) ";" (expression_statement) "i = net_nfc_client_manager_set_active_sync(1);" (assignment_expression) "i = net_nfc_client_manager_set_active_sync(1)" (identifier) "i" (=) "=" (call_expression) "net_nfc_client_manager_set_active_sync(1)" (identifier) "net_nfc_client_manager_set_active_sync" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "g_print("Return %d\n", i);" (call_expression) "g_print("Return %d\n", i)" (identifier) "g_print" (argument_list) "("Return %d\n", i)" (() "(" (string_literal) ""Return %d\n"" (") """ (string_content) "Return %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (if_statement) "if (user_data)\n {\n GCallback callback;\n\n callback = (GCallback)(user_data);\n\n callback();\n }" (if) "if" (parenthesized_expression) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (compound_statement) "{\n GCallback callback;\n\n callback = (GCallback)(user_data);\n\n callback();\n }" ({) "{" (declaration) "GCallback callback;" (type_identifier) "GCallback" (identifier) "callback" (;) ";" (expression_statement) "callback = (GCallback)(user_data);" (assignment_expression) "callback = (GCallback)(user_data)" (identifier) "callback" (=) "=" (call_expression) "(GCallback)(user_data)" (parenthesized_expression) "(GCallback)" (() "(" (identifier) "GCallback" ()) ")" (argument_list) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (;) ";" (expression_statement) "callback();" (call_expression) "callback()" (identifier) "callback" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void net_nfc_test_manager_get_server_state_sync(gpointer data,\n gpointer user_data)\n{\n net_nfc_error_e result;\n guint state = 0;\n\n result = net_nfc_client_manager_get_server_state_sync(&state);\n\n g_print("GetServerState: %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}" (primitive_type) "void" (function_declarator) "net_nfc_test_manager_get_server_state_sync(gpointer data,\n gpointer user_data)" (identifier) "net_nfc_test_manager_get_server_state_sync" (parameter_list) "(gpointer data,\n gpointer user_data)" (() "(" (parameter_declaration) "gpointer data" (type_identifier) "gpointer" (identifier) "data" (,) "," (parameter_declaration) "gpointer user_data" (type_identifier) "gpointer" (identifier) "user_data" ()) ")" (compound_statement) "{\n net_nfc_error_e result;\n guint state = 0;\n\n result = net_nfc_client_manager_get_server_state_sync(&state);\n\n g_print("GetServerState: %d\n", result);\n\n print_server_state(state);\n\n run_next_callback(user_data);\n}" ({) "{" (declaration) "net_nfc_error_e result;" (type_identifier) "net_nfc_error_e" (identifier) "result" (;) ";" (declaration) "guint state = 0;" (type_identifier) "guint" (init_declarator) "state = 0" (identifier) "state" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "result = net_nfc_client_manager_get_server_state_sync(&state);" (assignment_expression) "result = net_nfc_client_manager_get_server_state_sync(&state)" (identifier) "result" (=) "=" (call_expression) "net_nfc_client_manager_get_server_state_sync(&state)" (identifier) "net_nfc_client_manager_get_server_state_sync" (argument_list) "(&state)" (() "(" (pointer_expression) "&state" (&) "&" (identifier) "state" ()) ")" (;) ";" (expression_statement) "g_print("GetServerState: %d\n", result);" (call_expression) "g_print("GetServerState: %d\n", result)" (identifier) "g_print" (argument_list) "("GetServerState: %d\n", result)" (() "(" (string_literal) ""GetServerState: %d\n"" (") """ (string_content) "GetServerState: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (expression_statement) "print_server_state(state);" (call_expression) "print_server_state(state)" (identifier) "print_server_state" (argument_list) "(state)" (() "(" (identifier) "state" ()) ")" (;) ";" (expression_statement) "run_next_callback(user_data);" (call_expression) "run_next_callback(user_data)" (identifier) "run_next_callback" (argument_list) "(user_data)" (() "(" (identifier) "user_data" ()) ")" (;) ";" (}) "}"
645
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 28.51, "nodes": 343, "errors": 0, "source_hash": "9757593011edac9e40f9d535feb744c890843f027b82ece3a21dc2b3ab330e12", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <glib-object.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<glib-object.h>", "parent": 0, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 24}}, {"id": 3, "type": "preproc_include", "text": "#include \"net_nfc_client_manager.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"net_nfc_client_manager.h\"", "parent": 3, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 35}}, {"id": 6, "type": "preproc_include", "text": "#include \"net_nfc_typedef_internal.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"net_nfc_typedef_internal.h\"", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 37}}, {"id": 9, "type": "function_definition", "text": "static void run_next_callback(gpointer user_data)\n{\n\tif (user_data)\n\t{\n\t\tGCallback callback;\n\t\tcallback = (GCallback)(user_data);\n\t\tcallback();\n\t}\n}", "parent": null, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 11, "type": "function_declarator", "text": "run_next_callback(gpointer user_data)", "parent": 9, "children": [12, 13], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 49}}, {"id": 12, "type": "identifier", "text": "run_next_callback", "parent": 11, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 29}}, {"id": 13, "type": "parameter_list", "text": "(gpointer user_data)", "parent": 11, "children": [14], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 49}}, {"id": 14, "type": "parameter_declaration", "text": "gpointer user_data", "parent": 13, "children": [15, 16], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 48}}, {"id": 15, "type": "type_identifier", "text": "gpointer", "parent": 14, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 38}}, {"id": 16, "type": "identifier", "text": "user_data", "parent": 14, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 48}}, {"id": 17, "type": "if_statement", "text": "if (user_data)\n\t{\n\t\tGCallback callback;\n\t\tcallback = (GCallback)(user_data);\n\t\tcallback();\n\t}", "parent": 9, "children": [18], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 18, "type": "parenthesized_expression", "text": "(user_data)", "parent": 17, "children": [19], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 15}}, {"id": 19, "type": "identifier", "text": "user_data", "parent": 18, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 14}}, {"id": 20, "type": "declaration", "text": "GCallback callback;", "parent": 17, "children": [21, 22], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 21}}, {"id": 21, "type": "type_identifier", "text": "GCallback", "parent": 20, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 11}}, {"id": 22, "type": "identifier", "text": "callback", "parent": 20, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 20}}, {"id": 23, "type": "assignment_expression", "text": "callback = (GCallback)(user_data)", "parent": 17, "children": [24, 25, 26], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 35}}, {"id": 24, "type": "identifier", "text": "callback", "parent": 23, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 10}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 26, "type": "call_expression", "text": "(GCallback)(user_data)", "parent": 23, "children": [27, 29], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 35}}, {"id": 27, "type": "parenthesized_expression", "text": "(GCallback)", "parent": 26, "children": [28], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 24}}, {"id": 28, "type": "identifier", "text": "GCallback", "parent": 27, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 23}}, {"id": 29, "type": "argument_list", "text": "(user_data)", "parent": 26, "children": [30], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 35}}, {"id": 30, "type": "identifier", "text": "user_data", "parent": 29, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 34}}, {"id": 31, "type": "call_expression", "text": "callback()", "parent": 17, "children": [32, 33], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 12}}, {"id": 32, "type": "identifier", "text": "callback", "parent": 31, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 33, "type": "argument_list", "text": "()", "parent": 31, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 12}}, {"id": 34, "type": "function_definition", "text": "static void print_server_state(gint state)\n{\n\tif (state == 0)\n\t\tg_print(\" --- state : Unknown(%d)\\n\", state);\n\telse\n\t{\n\t\tg_print(\" --- state :\\n\");\n\t\tif (state & NET_NFC_SERVER_DISCOVERY)\n\t\t\tg_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state);\n\t\tif (state & NET_NFC_TAG_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SE_CONNECTION)\n\t\t\tg_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n\t\t{\n\t\t\tg_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate);\n\t\t}\n\t\tif (state & NET_NFC_NPP_CLIENT_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_NPP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state);\n\t}\n}", "parent": null, "children": [35, 36], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 36, "type": "function_declarator", "text": "print_server_state(gint state)", "parent": 34, "children": [37, 38], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 42}}, {"id": 37, "type": "identifier", "text": "print_server_state", "parent": 36, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 30}}, {"id": 38, "type": "parameter_list", "text": "(gint state)", "parent": 36, "children": [39], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 42}}, {"id": 39, "type": "parameter_declaration", "text": "gint state", "parent": 38, "children": [40, 41], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 41}}, {"id": 40, "type": "type_identifier", "text": "gint", "parent": 39, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 35}}, {"id": 41, "type": "identifier", "text": "state", "parent": 39, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 41}}, {"id": 42, "type": "if_statement", "text": "if (state == 0)\n\t\tg_print(\" --- state : Unknown(%d)\\n\", state);\n\telse\n\t{\n\t\tg_print(\" --- state :\\n\");\n\t\tif (state & NET_NFC_SERVER_DISCOVERY)\n\t\t\tg_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state);\n\t\tif (state & NET_NFC_TAG_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SE_CONNECTION)\n\t\t\tg_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n\t\t{\n\t\t\tg_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate);\n\t\t}\n\t\tif (state & NET_NFC_NPP_CLIENT_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_NPP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state);\n\t}", "parent": 34, "children": [43, 54], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 57, "column": 2}}, {"id": 43, "type": "parenthesized_expression", "text": "(state == 0)", "parent": 42, "children": [44], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 16}}, {"id": 44, "type": "binary_expression", "text": "state == 0", "parent": 43, "children": [45, 46, 47], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 15}}, {"id": 45, "type": "identifier", "text": "state", "parent": 44, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 10}}, {"id": 46, "type": "==", "text": "==", "parent": 44, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 13}}, {"id": 47, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 48, "type": "call_expression", "text": "g_print(\" --- state : Unknown(%d)\\n\", state)", "parent": 42, "children": [49, 50], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 46}}, {"id": 49, "type": "identifier", "text": "g_print", "parent": 48, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 50, "type": "argument_list", "text": "(\" --- state : Unknown(%d)\\n\", state)", "parent": 48, "children": [51, 53], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 46}}, {"id": 51, "type": "string_literal", "text": "\" --- state : Unknown(%d)\\n\"", "parent": 50, "children": [52], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 38}}, {"id": 52, "type": "escape_sequence", "text": "\\n", "parent": 51, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 37}}, {"id": 53, "type": "identifier", "text": "state", "parent": 50, "children": [], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 45}}, {"id": 54, "type": "else_clause", "text": "else\n\t{\n\t\tg_print(\" --- state :\\n\");\n\t\tif (state & NET_NFC_SERVER_DISCOVERY)\n\t\t\tg_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state);\n\t\tif (state & NET_NFC_TAG_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SE_CONNECTION)\n\t\t\tg_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n\t\t{\n\t\t\tg_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate);\n\t\t}\n\t\tif (state & NET_NFC_NPP_CLIENT_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_NPP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state);\n\t}", "parent": 42, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 57, "column": 2}}, {"id": 55, "type": "call_expression", "text": "g_print(\" --- state :\\n\")", "parent": 54, "children": [56, 57], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 27}}, {"id": 56, "type": "identifier", "text": "g_print", "parent": 55, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 57, "type": "argument_list", "text": "(\" --- state :\\n\")", "parent": 55, "children": [58], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 27}}, {"id": 58, "type": "string_literal", "text": "\" --- state :\\n\"", "parent": 57, "children": [59], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 26}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 25}}, {"id": 60, "type": "if_statement", "text": "if (state & NET_NFC_SERVER_DISCOVERY)\n\t\t\tg_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state);", "parent": 54, "children": [61], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 41, "column": 54}}, {"id": 61, "type": "parenthesized_expression", "text": "(state & NET_NFC_SERVER_DISCOVERY)", "parent": 60, "children": [62], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 39}}, {"id": 62, "type": "binary_expression", "text": "state & NET_NFC_SERVER_DISCOVERY", "parent": 61, "children": [63, 64], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 38}}, {"id": 63, "type": "identifier", "text": "state", "parent": 62, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 11}}, {"id": 64, "type": "identifier", "text": "NET_NFC_SERVER_DISCOVERY", "parent": 62, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 38}}, {"id": 65, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state)", "parent": 60, "children": [66, 67], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 53}}, {"id": 66, "type": "identifier", "text": "g_print", "parent": 65, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 10}}, {"id": 67, "type": "argument_list", "text": "(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state)", "parent": 65, "children": [68, 71], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 53}}, {"id": 68, "type": "string_literal", "text": "\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\"", "parent": 67, "children": [69, 70], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 45}}, {"id": 69, "type": "escape_sequence", "text": "\\t", "parent": 68, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 14}}, {"id": 70, "type": "escape_sequence", "text": "\\n", "parent": 68, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 44}}, {"id": 71, "type": "identifier", "text": "state", "parent": 67, "children": [], "start_point": {"row": 41, "column": 47}, "end_point": {"row": 41, "column": 52}}, {"id": 72, "type": "if_statement", "text": "if (state & NET_NFC_TAG_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state);", "parent": 54, "children": [73], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 43, "column": 51}}, {"id": 73, "type": "parenthesized_expression", "text": "(state & NET_NFC_TAG_CONNECTED)", "parent": 72, "children": [74], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 36}}, {"id": 74, "type": "binary_expression", "text": "state & NET_NFC_TAG_CONNECTED", "parent": 73, "children": [75, 76], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 35}}, {"id": 75, "type": "identifier", "text": "state", "parent": 74, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 11}}, {"id": 76, "type": "identifier", "text": "NET_NFC_TAG_CONNECTED", "parent": 74, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 35}}, {"id": 77, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state)", "parent": 72, "children": [78, 79], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 50}}, {"id": 78, "type": "identifier", "text": "g_print", "parent": 77, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 10}}, {"id": 79, "type": "argument_list", "text": "(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state)", "parent": 77, "children": [80, 83], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 50}}, {"id": 80, "type": "string_literal", "text": "\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\"", "parent": 79, "children": [81, 82], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 42}}, {"id": 81, "type": "escape_sequence", "text": "\\t", "parent": 80, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 14}}, {"id": 82, "type": "escape_sequence", "text": "\\n", "parent": 80, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 41}}, {"id": 83, "type": "identifier", "text": "state", "parent": 79, "children": [], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 49}}, {"id": 84, "type": "if_statement", "text": "if (state & NET_NFC_SE_CONNECTION)\n\t\t\tg_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state);", "parent": 54, "children": [85], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 45, "column": 50}}, {"id": 85, "type": "parenthesized_expression", "text": "(state & NET_NFC_SE_CONNECTION)", "parent": 84, "children": [86], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 36}}, {"id": 86, "type": "binary_expression", "text": "state & NET_NFC_SE_CONNECTION", "parent": 85, "children": [87, 88], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 35}}, {"id": 87, "type": "identifier", "text": "state", "parent": 86, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 11}}, {"id": 88, "type": "identifier", "text": "NET_NFC_SE_CONNECTION", "parent": 86, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 35}}, {"id": 89, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state)", "parent": 84, "children": [90, 91], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 49}}, {"id": 90, "type": "identifier", "text": "g_print", "parent": 89, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 10}}, {"id": 91, "type": "argument_list", "text": "(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state)", "parent": 89, "children": [92, 95], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 49}}, {"id": 92, "type": "string_literal", "text": "\"\\tNET_NFC_SE_CONNECTED(%d)\\n\"", "parent": 91, "children": [93, 94], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 41}}, {"id": 93, "type": "escape_sequence", "text": "\\t", "parent": 92, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 14}}, {"id": 94, "type": "escape_sequence", "text": "\\n", "parent": 92, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 40}}, {"id": 95, "type": "identifier", "text": "state", "parent": 91, "children": [], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 48}}, {"id": 96, "type": "if_statement", "text": "if (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n\t\t{\n\t\t\tg_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate);\n\t\t}", "parent": 54, "children": [97], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 50, "column": 3}}, {"id": 97, "type": "parenthesized_expression", "text": "(state & NET_NFC_SNEP_CLIENT_CONNECTED)", "parent": 96, "children": [98], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 44}}, {"id": 98, "type": "binary_expression", "text": "state & NET_NFC_SNEP_CLIENT_CONNECTED", "parent": 97, "children": [99, 100], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 43}}, {"id": 99, "type": "identifier", "text": "state", "parent": 98, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 11}}, {"id": 100, "type": "identifier", "text": "NET_NFC_SNEP_CLIENT_CONNECTED", "parent": 98, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 43}}, {"id": 101, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate)", "parent": 96, "children": [102, 103], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 49, "column": 11}}, {"id": 102, "type": "identifier", "text": "g_print", "parent": 101, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 10}}, {"id": 103, "type": "argument_list", "text": "(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate)", "parent": 101, "children": [104, 107], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 104, "type": "string_literal", "text": "\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\"", "parent": 103, "children": [105, 106], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 50}}, {"id": 105, "type": "escape_sequence", "text": "\\t", "parent": 104, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 14}}, {"id": 106, "type": "escape_sequence", "text": "\\n", "parent": 104, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 49}}, {"id": 107, "type": "identifier", "text": "state", "parent": 103, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 10}}, {"id": 108, "type": "if_statement", "text": "if (state & NET_NFC_NPP_CLIENT_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state);", "parent": 54, "children": [109], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 52, "column": 58}}, {"id": 109, "type": "parenthesized_expression", "text": "(state & NET_NFC_NPP_CLIENT_CONNECTED)", "parent": 108, "children": [110], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 43}}, {"id": 110, "type": "binary_expression", "text": "state & NET_NFC_NPP_CLIENT_CONNECTED", "parent": 109, "children": [111, 112], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 42}}, {"id": 111, "type": "identifier", "text": "state", "parent": 110, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 11}}, {"id": 112, "type": "identifier", "text": "NET_NFC_NPP_CLIENT_CONNECTED", "parent": 110, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 42}}, {"id": 113, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state)", "parent": 108, "children": [114, 115], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 57}}, {"id": 114, "type": "identifier", "text": "g_print", "parent": 113, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 10}}, {"id": 115, "type": "argument_list", "text": "(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state)", "parent": 113, "children": [116, 119], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 57}}, {"id": 116, "type": "string_literal", "text": "\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\"", "parent": 115, "children": [117, 118], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 49}}, {"id": 117, "type": "escape_sequence", "text": "\\t", "parent": 116, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 14}}, {"id": 118, "type": "escape_sequence", "text": "\\n", "parent": 116, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 48}}, {"id": 119, "type": "identifier", "text": "state", "parent": 115, "children": [], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 56}}, {"id": 120, "type": "if_statement", "text": "if (state & NET_NFC_SNEP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state);", "parent": 54, "children": [121], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 54, "column": 59}}, {"id": 121, "type": "parenthesized_expression", "text": "(state & NET_NFC_SNEP_SERVER_CONNECTED)", "parent": 120, "children": [122], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 44}}, {"id": 122, "type": "binary_expression", "text": "state & NET_NFC_SNEP_SERVER_CONNECTED", "parent": 121, "children": [123, 124], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 43}}, {"id": 123, "type": "identifier", "text": "state", "parent": 122, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 11}}, {"id": 124, "type": "identifier", "text": "NET_NFC_SNEP_SERVER_CONNECTED", "parent": 122, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 43}}, {"id": 125, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state)", "parent": 120, "children": [126, 127], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 58}}, {"id": 126, "type": "identifier", "text": "g_print", "parent": 125, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 10}}, {"id": 127, "type": "argument_list", "text": "(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state)", "parent": 125, "children": [128, 131], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 58}}, {"id": 128, "type": "string_literal", "text": "\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\"", "parent": 127, "children": [129, 130], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 50}}, {"id": 129, "type": "escape_sequence", "text": "\\t", "parent": 128, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 14}}, {"id": 130, "type": "escape_sequence", "text": "\\n", "parent": 128, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 49}}, {"id": 131, "type": "identifier", "text": "state", "parent": 127, "children": [], "start_point": {"row": 54, "column": 52}, "end_point": {"row": 54, "column": 57}}, {"id": 132, "type": "if_statement", "text": "if (state & NET_NFC_NPP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state);", "parent": 54, "children": [133], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 56, "column": 58}}, {"id": 133, "type": "parenthesized_expression", "text": "(state & NET_NFC_NPP_SERVER_CONNECTED)", "parent": 132, "children": [134], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 43}}, {"id": 134, "type": "binary_expression", "text": "state & NET_NFC_NPP_SERVER_CONNECTED", "parent": 133, "children": [135, 136], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 42}}, {"id": 135, "type": "identifier", "text": "state", "parent": 134, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 11}}, {"id": 136, "type": "identifier", "text": "NET_NFC_NPP_SERVER_CONNECTED", "parent": 134, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 42}}, {"id": 137, "type": "call_expression", "text": "g_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state)", "parent": 132, "children": [138, 139], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 57}}, {"id": 138, "type": "identifier", "text": "g_print", "parent": 137, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 10}}, {"id": 139, "type": "argument_list", "text": "(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state)", "parent": 137, "children": [140, 143], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 57}}, {"id": 140, "type": "string_literal", "text": "\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\"", "parent": 139, "children": [141, 142], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 49}}, {"id": 141, "type": "escape_sequence", "text": "\\t", "parent": 140, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 14}}, {"id": 142, "type": "escape_sequence", "text": "\\n", "parent": 140, "children": [], "start_point": {"row": 56, "column": 46}, "end_point": {"row": 56, "column": 48}}, {"id": 143, "type": "identifier", "text": "state", "parent": 139, "children": [], "start_point": {"row": 56, "column": 51}, "end_point": {"row": 56, "column": 56}}, {"id": 144, "type": "function_definition", "text": "static void set_activated_cb(bool state,\n\t\tvoid *user_data)\n{\n\tg_print(\"Activated state %d\\n\", state);\n}", "parent": null, "children": [145, 146], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 145, "type": "primitive_type", "text": "void", "parent": 144, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 11}}, {"id": 146, "type": "function_declarator", "text": "set_activated_cb(bool state,\n\t\tvoid *user_data)", "parent": 144, "children": [147, 148], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 61, "column": 18}}, {"id": 147, "type": "identifier", "text": "set_activated_cb", "parent": 146, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 28}}, {"id": 148, "type": "parameter_list", "text": "(bool state,\n\t\tvoid *user_data)", "parent": 146, "children": [149, 152], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 61, "column": 18}}, {"id": 149, "type": "parameter_declaration", "text": "bool state", "parent": 148, "children": [150, 151], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 39}}, {"id": 150, "type": "primitive_type", "text": "bool", "parent": 149, "children": [], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 33}}, {"id": 151, "type": "identifier", "text": "state", "parent": 149, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 39}}, {"id": 152, "type": "parameter_declaration", "text": "void *user_data", "parent": 148, "children": [153, 154], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 17}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 154, "type": "pointer_declarator", "text": "*user_data", "parent": 152, "children": [155, 156], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 17}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 156, "type": "identifier", "text": "user_data", "parent": 154, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 17}}, {"id": 157, "type": "call_expression", "text": "g_print(\"Activated state %d\\n\", state)", "parent": 144, "children": [158, 159], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 39}}, {"id": 158, "type": "identifier", "text": "g_print", "parent": 157, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 8}}, {"id": 159, "type": "argument_list", "text": "(\"Activated state %d\\n\", state)", "parent": 157, "children": [160, 162], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 39}}, {"id": 160, "type": "string_literal", "text": "\"Activated state %d\\n\"", "parent": 159, "children": [161], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 31}}, {"id": 161, "type": "escape_sequence", "text": "\\n", "parent": 160, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 30}}, {"id": 162, "type": "identifier", "text": "state", "parent": 159, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 38}}, {"id": 163, "type": "function_definition", "text": "static void set_active_completed_cb(net_nfc_error_e result, void *user_data)\n{\n\tg_print(\"SetActive Completed %d\\n\", result);\n\trun_next_callback(user_data);\n}", "parent": null, "children": [164, 165], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 164, "type": "primitive_type", "text": "void", "parent": 163, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 11}}, {"id": 165, "type": "function_declarator", "text": "set_active_completed_cb(net_nfc_error_e result, void *user_data)", "parent": 163, "children": [166, 167], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 76}}, {"id": 166, "type": "identifier", "text": "set_active_completed_cb", "parent": 165, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 35}}, {"id": 167, "type": "parameter_list", "text": "(net_nfc_error_e result, void *user_data)", "parent": 165, "children": [168, 171], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 76}}, {"id": 168, "type": "parameter_declaration", "text": "net_nfc_error_e result", "parent": 167, "children": [169, 170], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 58}}, {"id": 169, "type": "type_identifier", "text": "net_nfc_error_e", "parent": 168, "children": [], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 51}}, {"id": 170, "type": "identifier", "text": "result", "parent": 168, "children": [], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 58}}, {"id": 171, "type": "parameter_declaration", "text": "void *user_data", "parent": 167, "children": [172, 173], "start_point": {"row": 66, "column": 60}, "end_point": {"row": 66, "column": 75}}, {"id": 172, "type": "primitive_type", "text": "void", "parent": 171, "children": [], "start_point": {"row": 66, "column": 60}, "end_point": {"row": 66, "column": 64}}, {"id": 173, "type": "pointer_declarator", "text": "*user_data", "parent": 171, "children": [174, 175], "start_point": {"row": 66, "column": 65}, "end_point": {"row": 66, "column": 75}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 66, "column": 65}, "end_point": {"row": 66, "column": 66}}, {"id": 175, "type": "identifier", "text": "user_data", "parent": 173, "children": [], "start_point": {"row": 66, "column": 66}, "end_point": {"row": 66, "column": 75}}, {"id": 176, "type": "call_expression", "text": "g_print(\"SetActive Completed %d\\n\", result)", "parent": 163, "children": [177, 178], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 44}}, {"id": 177, "type": "identifier", "text": "g_print", "parent": 176, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 178, "type": "argument_list", "text": "(\"SetActive Completed %d\\n\", result)", "parent": 176, "children": [179, 181], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 44}}, {"id": 179, "type": "string_literal", "text": "\"SetActive Completed %d\\n\"", "parent": 178, "children": [180], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 35}}, {"id": 180, "type": "escape_sequence", "text": "\\n", "parent": 179, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 34}}, {"id": 181, "type": "identifier", "text": "result", "parent": 178, "children": [], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 43}}, {"id": 182, "type": "call_expression", "text": "run_next_callback(user_data)", "parent": 163, "children": [183, 184], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 29}}, {"id": 183, "type": "identifier", "text": "run_next_callback", "parent": 182, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 18}}, {"id": 184, "type": "argument_list", "text": "(user_data)", "parent": 182, "children": [185], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 29}}, {"id": 185, "type": "identifier", "text": "user_data", "parent": 184, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 28}}, {"id": 186, "type": "function_definition", "text": "static void get_server_state_completed_cb(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user_data)\n{\n\tg_print(\"GetServerState Completed %d\\n\", result);\n\n\tprint_server_state(state);\n\n\trun_next_callback(user_data);\n}", "parent": null, "children": [187, 188], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 187, "type": "primitive_type", "text": "void", "parent": 186, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 11}}, {"id": 188, "type": "function_declarator", "text": "get_server_state_completed_cb(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user_data)", "parent": 186, "children": [189, 190], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 189, "type": "identifier", "text": "get_server_state_completed_cb", "parent": 188, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 41}}, {"id": 190, "type": "parameter_list", "text": "(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user_data)", "parent": 188, "children": [191, 194, 199], "start_point": {"row": 72, "column": 41}, "end_point": {"row": 74, "column": 18}}, {"id": 191, "type": "parameter_declaration", "text": "net_nfc_error_e result", "parent": 190, "children": [192, 193], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 64}}, {"id": 192, "type": "type_identifier", "text": "net_nfc_error_e", "parent": 191, "children": [], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 57}}, {"id": 193, "type": "identifier", "text": "result", "parent": 191, "children": [], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 64}}, {"id": 194, "type": "parameter_declaration", "text": "unsigned int state", "parent": 190, "children": [195, 198], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 20}}, {"id": 195, "type": "sized_type_specifier", "text": "unsigned int", "parent": 194, "children": [196, 197], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 14}}, {"id": 196, "type": "unsigned", "text": "unsigned", "parent": 195, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 10}}, {"id": 197, "type": "primitive_type", "text": "int", "parent": 195, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 14}}, {"id": 198, "type": "identifier", "text": "state", "parent": 194, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 20}}, {"id": 199, "type": "parameter_declaration", "text": "void *user_data", "parent": 190, "children": [200, 201], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 17}}, {"id": 200, "type": "primitive_type", "text": "void", "parent": 199, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 6}}, {"id": 201, "type": "pointer_declarator", "text": "*user_data", "parent": 199, "children": [202, 203], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 17}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 8}}, {"id": 203, "type": "identifier", "text": "user_data", "parent": 201, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 17}}, {"id": 204, "type": "call_expression", "text": "g_print(\"GetServerState Completed %d\\n\", result)", "parent": 186, "children": [205, 206], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 49}}, {"id": 205, "type": "identifier", "text": "g_print", "parent": 204, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 8}}, {"id": 206, "type": "argument_list", "text": "(\"GetServerState Completed %d\\n\", result)", "parent": 204, "children": [207, 209], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 49}}, {"id": 207, "type": "string_literal", "text": "\"GetServerState Completed %d\\n\"", "parent": 206, "children": [208], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 40}}, {"id": 208, "type": "escape_sequence", "text": "\\n", "parent": 207, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 39}}, {"id": 209, "type": "identifier", "text": "result", "parent": 206, "children": [], "start_point": {"row": 76, "column": 42}, "end_point": {"row": 76, "column": 48}}, {"id": 210, "type": "call_expression", "text": "print_server_state(state)", "parent": 186, "children": [211, 212], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 26}}, {"id": 211, "type": "identifier", "text": "print_server_state", "parent": 210, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 19}}, {"id": 212, "type": "argument_list", "text": "(state)", "parent": 210, "children": [213], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 26}}, {"id": 213, "type": "identifier", "text": "state", "parent": 212, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 25}}, {"id": 214, "type": "call_expression", "text": "run_next_callback(user_data)", "parent": 186, "children": [215, 216], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 29}}, {"id": 215, "type": "identifier", "text": "run_next_callback", "parent": 214, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 18}}, {"id": 216, "type": "argument_list", "text": "(user_data)", "parent": 214, "children": [217], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 29}}, {"id": 217, "type": "identifier", "text": "user_data", "parent": 216, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 28}}, {"id": 218, "type": "function_definition", "text": "void net_nfc_test_manager_set_active(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_manager_set_activated(set_activated_cb, NULL);\n\n\tnet_nfc_client_manager_set_active(1,\n\t\t\tset_active_completed_cb,\n\t\t\tuser_data);\n}", "parent": null, "children": [219, 220], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 90, "column": 1}}, {"id": 219, "type": "primitive_type", "text": "void", "parent": 218, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 4}}, {"id": 220, "type": "function_declarator", "text": "net_nfc_test_manager_set_active(gpointer data, gpointer user_data)", "parent": 218, "children": [221, 222], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 71}}, {"id": 221, "type": "identifier", "text": "net_nfc_test_manager_set_active", "parent": 220, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 36}}, {"id": 222, "type": "parameter_list", "text": "(gpointer data, gpointer user_data)", "parent": 220, "children": [223, 226], "start_point": {"row": 83, "column": 36}, "end_point": {"row": 83, "column": 71}}, {"id": 223, "type": "parameter_declaration", "text": "gpointer data", "parent": 222, "children": [224, 225], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 50}}, {"id": 224, "type": "type_identifier", "text": "gpointer", "parent": 223, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 45}}, {"id": 225, "type": "identifier", "text": "data", "parent": 223, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 50}}, {"id": 226, "type": "parameter_declaration", "text": "gpointer user_data", "parent": 222, "children": [227, 228], "start_point": {"row": 83, "column": 52}, "end_point": {"row": 83, "column": 70}}, {"id": 227, "type": "type_identifier", "text": "gpointer", "parent": 226, "children": [], "start_point": {"row": 83, "column": 52}, "end_point": {"row": 83, "column": 60}}, {"id": 228, "type": "identifier", "text": "user_data", "parent": 226, "children": [], "start_point": {"row": 83, "column": 61}, "end_point": {"row": 83, "column": 70}}, {"id": 229, "type": "call_expression", "text": "net_nfc_client_manager_set_activated(set_activated_cb, NULL)", "parent": 218, "children": [230, 231], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 61}}, {"id": 230, "type": "identifier", "text": "net_nfc_client_manager_set_activated", "parent": 229, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 37}}, {"id": 231, "type": "argument_list", "text": "(set_activated_cb, NULL)", "parent": 229, "children": [232, 233], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 61}}, {"id": 232, "type": "identifier", "text": "set_activated_cb", "parent": 231, "children": [], "start_point": {"row": 85, "column": 38}, "end_point": {"row": 85, "column": 54}}, {"id": 233, "type": "null", "text": "NULL", "parent": 231, "children": [234], "start_point": {"row": 85, "column": 56}, "end_point": {"row": 85, "column": 60}}, {"id": 234, "type": "NULL", "text": "NULL", "parent": 233, "children": [], "start_point": {"row": 85, "column": 56}, "end_point": {"row": 85, "column": 60}}, {"id": 235, "type": "call_expression", "text": "net_nfc_client_manager_set_active(1,\n\t\t\tset_active_completed_cb,\n\t\t\tuser_data)", "parent": 218, "children": [236, 237], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 89, "column": 13}}, {"id": 236, "type": "identifier", "text": "net_nfc_client_manager_set_active", "parent": 235, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 34}}, {"id": 237, "type": "argument_list", "text": "(1,\n\t\t\tset_active_completed_cb,\n\t\t\tuser_data)", "parent": 235, "children": [238, 239, 240], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 89, "column": 13}}, {"id": 238, "type": "number_literal", "text": "1", "parent": 237, "children": [], "start_point": {"row": 87, "column": 35}, "end_point": {"row": 87, "column": 36}}, {"id": 239, "type": "identifier", "text": "set_active_completed_cb", "parent": 237, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 26}}, {"id": 240, "type": "identifier", "text": "user_data", "parent": 237, "children": [], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 12}}, {"id": 241, "type": "function_definition", "text": "void net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n\t\t\tuser_data);\n}", "parent": null, "children": [242, 243], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 242, "type": "primitive_type", "text": "void", "parent": 241, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 4}}, {"id": 243, "type": "function_declarator", "text": "net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)", "parent": 241, "children": [244, 245], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 77}}, {"id": 244, "type": "identifier", "text": "net_nfc_test_manager_get_server_state", "parent": 243, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 42}}, {"id": 245, "type": "parameter_list", "text": "(gpointer data, gpointer user_data)", "parent": 243, "children": [246, 249], "start_point": {"row": 92, "column": 42}, "end_point": {"row": 92, "column": 77}}, {"id": 246, "type": "parameter_declaration", "text": "gpointer data", "parent": 245, "children": [247, 248], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 56}}, {"id": 247, "type": "type_identifier", "text": "gpointer", "parent": 246, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 51}}, {"id": 248, "type": "identifier", "text": "data", "parent": 246, "children": [], "start_point": {"row": 92, "column": 52}, "end_point": {"row": 92, "column": 56}}, {"id": 249, "type": "parameter_declaration", "text": "gpointer user_data", "parent": 245, "children": [250, 251], "start_point": {"row": 92, "column": 58}, "end_point": {"row": 92, "column": 76}}, {"id": 250, "type": "type_identifier", "text": "gpointer", "parent": 249, "children": [], "start_point": {"row": 92, "column": 58}, "end_point": {"row": 92, "column": 66}}, {"id": 251, "type": "identifier", "text": "user_data", "parent": 249, "children": [], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 76}}, {"id": 252, "type": "call_expression", "text": "net_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n\t\t\tuser_data)", "parent": 241, "children": [253, 254], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 95, "column": 13}}, {"id": 253, "type": "identifier", "text": "net_nfc_client_manager_get_server_state", "parent": 252, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 40}}, {"id": 254, "type": "argument_list", "text": "(get_server_state_completed_cb,\n\t\t\tuser_data)", "parent": 252, "children": [255, 256], "start_point": {"row": 94, "column": 40}, "end_point": {"row": 95, "column": 13}}, {"id": 255, "type": "identifier", "text": "get_server_state_completed_cb", "parent": 254, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 70}}, {"id": 256, "type": "identifier", "text": "user_data", "parent": 254, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 12}}, {"id": 257, "type": "function_definition", "text": "void net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)\n{\n\tgint i;\n\n\ti = net_nfc_client_manager_set_active_sync(1);\n\n\tg_print(\"Return %d\\n\", i);\n\n\tif (user_data)\n\t{\n\t\tGCallback callback;\n\n\t\tcallback = (GCallback)(user_data);\n\n\t\tcallback();\n\t}\n}", "parent": null, "children": [258, 259], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 258, "type": "primitive_type", "text": "void", "parent": 257, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 259, "type": "function_declarator", "text": "net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)", "parent": 257, "children": [260, 261], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 76}}, {"id": 260, "type": "identifier", "text": "net_nfc_test_manager_set_active_sync", "parent": 259, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 41}}, {"id": 261, "type": "parameter_list", "text": "(gpointer data, gpointer user_data)", "parent": 259, "children": [262, 265], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 76}}, {"id": 262, "type": "parameter_declaration", "text": "gpointer data", "parent": 261, "children": [263, 264], "start_point": {"row": 98, "column": 42}, "end_point": {"row": 98, "column": 55}}, {"id": 263, "type": "type_identifier", "text": "gpointer", "parent": 262, "children": [], "start_point": {"row": 98, "column": 42}, "end_point": {"row": 98, "column": 50}}, {"id": 264, "type": "identifier", "text": "data", "parent": 262, "children": [], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 55}}, {"id": 265, "type": "parameter_declaration", "text": "gpointer user_data", "parent": 261, "children": [266, 267], "start_point": {"row": 98, "column": 57}, "end_point": {"row": 98, "column": 75}}, {"id": 266, "type": "type_identifier", "text": "gpointer", "parent": 265, "children": [], "start_point": {"row": 98, "column": 57}, "end_point": {"row": 98, "column": 65}}, {"id": 267, "type": "identifier", "text": "user_data", "parent": 265, "children": [], "start_point": {"row": 98, "column": 66}, "end_point": {"row": 98, "column": 75}}, {"id": 268, "type": "declaration", "text": "gint i;", "parent": 257, "children": [269, 270], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 8}}, {"id": 269, "type": "type_identifier", "text": "gint", "parent": 268, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 5}}, {"id": 270, "type": "identifier", "text": "i", "parent": 268, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 7}}, {"id": 271, "type": "assignment_expression", "text": "i = net_nfc_client_manager_set_active_sync(1)", "parent": 257, "children": [272, 273, 274], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 46}}, {"id": 272, "type": "identifier", "text": "i", "parent": 271, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 2}}, {"id": 273, "type": "=", "text": "=", "parent": 271, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 4}}, {"id": 274, "type": "call_expression", "text": "net_nfc_client_manager_set_active_sync(1)", "parent": 271, "children": [275, 276], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 46}}, {"id": 275, "type": "identifier", "text": "net_nfc_client_manager_set_active_sync", "parent": 274, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 43}}, {"id": 276, "type": "argument_list", "text": "(1)", "parent": 274, "children": [277], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 46}}, {"id": 277, "type": "number_literal", "text": "1", "parent": 276, "children": [], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 45}}, {"id": 278, "type": "call_expression", "text": "g_print(\"Return %d\\n\", i)", "parent": 257, "children": [279, 280], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 26}}, {"id": 279, "type": "identifier", "text": "g_print", "parent": 278, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 8}}, {"id": 280, "type": "argument_list", "text": "(\"Return %d\\n\", i)", "parent": 278, "children": [281, 283], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 26}}, {"id": 281, "type": "string_literal", "text": "\"Return %d\\n\"", "parent": 280, "children": [282], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 22}}, {"id": 282, "type": "escape_sequence", "text": "\\n", "parent": 281, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 21}}, {"id": 283, "type": "identifier", "text": "i", "parent": 280, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 25}}, {"id": 284, "type": "if_statement", "text": "if (user_data)\n\t{\n\t\tGCallback callback;\n\n\t\tcallback = (GCallback)(user_data);\n\n\t\tcallback();\n\t}", "parent": 257, "children": [285], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 113, "column": 2}}, {"id": 285, "type": "parenthesized_expression", "text": "(user_data)", "parent": 284, "children": [286], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 15}}, {"id": 286, "type": "identifier", "text": "user_data", "parent": 285, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 14}}, {"id": 287, "type": "declaration", "text": "GCallback callback;", "parent": 284, "children": [288, 289], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 21}}, {"id": 288, "type": "type_identifier", "text": "GCallback", "parent": 287, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 289, "type": "identifier", "text": "callback", "parent": 287, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 20}}, {"id": 290, "type": "assignment_expression", "text": "callback = (GCallback)(user_data)", "parent": 284, "children": [291, 292, 293], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 35}}, {"id": 291, "type": "identifier", "text": "callback", "parent": 290, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 10}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 12}}, {"id": 293, "type": "call_expression", "text": "(GCallback)(user_data)", "parent": 290, "children": [294, 296], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 35}}, {"id": 294, "type": "parenthesized_expression", "text": "(GCallback)", "parent": 293, "children": [295], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 24}}, {"id": 295, "type": "identifier", "text": "GCallback", "parent": 294, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 23}}, {"id": 296, "type": "argument_list", "text": "(user_data)", "parent": 293, "children": [297], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 35}}, {"id": 297, "type": "identifier", "text": "user_data", "parent": 296, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 34}}, {"id": 298, "type": "call_expression", "text": "callback()", "parent": 284, "children": [299, 300], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 12}}, {"id": 299, "type": "identifier", "text": "callback", "parent": 298, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 10}}, {"id": 300, "type": "argument_list", "text": "()", "parent": 298, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 12}}, {"id": 301, "type": "function_definition", "text": "void net_nfc_test_manager_get_server_state_sync(gpointer data,\n\t\tgpointer user_data)\n{\n\tnet_nfc_error_e result;\n\tguint state = 0;\n\n\tresult = net_nfc_client_manager_get_server_state_sync(&state);\n\n\tg_print(\"GetServerState: %d\\n\", result);\n\n\tprint_server_state(state);\n\n\trun_next_callback(user_data);\n}", "parent": null, "children": [302, 303], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 302, "type": "primitive_type", "text": "void", "parent": 301, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 4}}, {"id": 303, "type": "function_declarator", "text": "net_nfc_test_manager_get_server_state_sync(gpointer data,\n\t\tgpointer user_data)", "parent": 301, "children": [304, 305], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 117, "column": 21}}, {"id": 304, "type": "identifier", "text": "net_nfc_test_manager_get_server_state_sync", "parent": 303, "children": [], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 47}}, {"id": 305, "type": "parameter_list", "text": "(gpointer data,\n\t\tgpointer user_data)", "parent": 303, "children": [306, 309], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 117, "column": 21}}, {"id": 306, "type": "parameter_declaration", "text": "gpointer data", "parent": 305, "children": [307, 308], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 61}}, {"id": 307, "type": "type_identifier", "text": "gpointer", "parent": 306, "children": [], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 56}}, {"id": 308, "type": "identifier", "text": "data", "parent": 306, "children": [], "start_point": {"row": 116, "column": 57}, "end_point": {"row": 116, "column": 61}}, {"id": 309, "type": "parameter_declaration", "text": "gpointer user_data", "parent": 305, "children": [310, 311], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 20}}, {"id": 310, "type": "type_identifier", "text": "gpointer", "parent": 309, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 10}}, {"id": 311, "type": "identifier", "text": "user_data", "parent": 309, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 20}}, {"id": 312, "type": "declaration", "text": "net_nfc_error_e result;", "parent": 301, "children": [313, 314], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 24}}, {"id": 313, "type": "type_identifier", "text": "net_nfc_error_e", "parent": 312, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 16}}, {"id": 314, "type": "identifier", "text": "result", "parent": 312, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 23}}, {"id": 315, "type": "declaration", "text": "guint state = 0;", "parent": 301, "children": [316, 317], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 17}}, {"id": 316, "type": "type_identifier", "text": "guint", "parent": 315, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 6}}, {"id": 317, "type": "init_declarator", "text": "state = 0", "parent": 315, "children": [318, 319, 320], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 16}}, {"id": 318, "type": "identifier", "text": "state", "parent": 317, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 12}}, {"id": 319, "type": "=", "text": "=", "parent": 317, "children": [], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 14}}, {"id": 320, "type": "number_literal", "text": "0", "parent": 317, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 16}}, {"id": 321, "type": "assignment_expression", "text": "result = net_nfc_client_manager_get_server_state_sync(&state)", "parent": 301, "children": [322, 323, 324], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 62}}, {"id": 322, "type": "identifier", "text": "result", "parent": 321, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 7}}, {"id": 323, "type": "=", "text": "=", "parent": 321, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 9}}, {"id": 324, "type": "call_expression", "text": "net_nfc_client_manager_get_server_state_sync(&state)", "parent": 321, "children": [325, 326], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 62}}, {"id": 325, "type": "identifier", "text": "net_nfc_client_manager_get_server_state_sync", "parent": 324, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 54}}, {"id": 326, "type": "argument_list", "text": "(&state)", "parent": 324, "children": [327], "start_point": {"row": 122, "column": 54}, "end_point": {"row": 122, "column": 62}}, {"id": 327, "type": "pointer_expression", "text": "&state", "parent": 326, "children": [328], "start_point": {"row": 122, "column": 55}, "end_point": {"row": 122, "column": 61}}, {"id": 328, "type": "identifier", "text": "state", "parent": 327, "children": [], "start_point": {"row": 122, "column": 56}, "end_point": {"row": 122, "column": 61}}, {"id": 329, "type": "call_expression", "text": "g_print(\"GetServerState: %d\\n\", result)", "parent": 301, "children": [330, 331], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 40}}, {"id": 330, "type": "identifier", "text": "g_print", "parent": 329, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 8}}, {"id": 331, "type": "argument_list", "text": "(\"GetServerState: %d\\n\", result)", "parent": 329, "children": [332, 334], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 40}}, {"id": 332, "type": "string_literal", "text": "\"GetServerState: %d\\n\"", "parent": 331, "children": [333], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 31}}, {"id": 333, "type": "escape_sequence", "text": "\\n", "parent": 332, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 30}}, {"id": 334, "type": "identifier", "text": "result", "parent": 331, "children": [], "start_point": {"row": 124, "column": 33}, "end_point": {"row": 124, "column": 39}}, {"id": 335, "type": "call_expression", "text": "print_server_state(state)", "parent": 301, "children": [336, 337], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 26}}, {"id": 336, "type": "identifier", "text": "print_server_state", "parent": 335, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 19}}, {"id": 337, "type": "argument_list", "text": "(state)", "parent": 335, "children": [338], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 26}}, {"id": 338, "type": "identifier", "text": "state", "parent": 337, "children": [], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 25}}, {"id": 339, "type": "call_expression", "text": "run_next_callback(user_data)", "parent": 301, "children": [340, 341], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 29}}, {"id": 340, "type": "identifier", "text": "run_next_callback", "parent": 339, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 18}}, {"id": 341, "type": "argument_list", "text": "(user_data)", "parent": 339, "children": [342], "start_point": {"row": 128, "column": 18}, "end_point": {"row": 128, "column": 29}}, {"id": 342, "type": "identifier", "text": "user_data", "parent": 341, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 28}}]}, "node_categories": {"declarations": {"functions": [9, 11, 34, 36, 144, 146, 163, 165, 186, 188, 218, 220, 241, 243, 257, 259, 301, 303], "variables": [14, 20, 39, 149, 152, 168, 171, 191, 194, 199, 223, 226, 246, 249, 262, 265, 268, 287, 306, 309, 312, 315], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [18, 26, 27, 31, 43, 44, 48, 55, 61, 62, 65, 73, 74, 77, 85, 86, 89, 97, 98, 101, 109, 110, 113, 121, 122, 125, 133, 134, 137, 157, 176, 182, 204, 210, 214, 229, 235, 252, 274, 278, 285, 293, 294, 298, 324, 327, 329, 335, 339], "assignments": [23, 271, 290, 321], "loops": [], "conditionals": [12, 15, 16, 17, 19, 21, 22, 24, 28, 30, 32, 37, 40, 41, 42, 45, 49, 53, 56, 60, 63, 64, 66, 71, 72, 75, 76, 78, 83, 84, 87, 88, 90, 95, 96, 99, 100, 102, 107, 108, 111, 112, 114, 119, 120, 123, 124, 126, 131, 132, 135, 136, 138, 143, 147, 151, 156, 158, 162, 166, 169, 170, 175, 177, 181, 183, 185, 189, 192, 193, 195, 198, 203, 205, 209, 211, 213, 215, 217, 221, 224, 225, 227, 228, 230, 232, 236, 239, 240, 244, 247, 248, 250, 251, 253, 255, 256, 260, 263, 264, 266, 267, 269, 270, 272, 275, 279, 283, 284, 286, 288, 289, 291, 295, 297, 299, 304, 307, 308, 310, 311, 313, 314, 316, 318, 322, 325, 328, 330, 334, 336, 338, 340, 342], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 47, 51, 58, 68, 80, 92, 104, 116, 128, 140, 160, 179, 207, 238, 277, 281, 320, 332], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "run_next_callback", "text_snippet": "static void run_next_callback(gpointer user_data)\n{\n\tif (user_data)\n\t{\n\t\tGCallback callback;\n\t\tcallb"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "run_next_callback(gpointer user_data)"}, {"node_id": 34, "universal_type": "function", "name": "print_server_state", "text_snippet": "static void print_server_state(gint state)\n{\n\tif (state == 0)\n\t\tg_print(\" --- state : Unknown(%d)\\n\""}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "print_server_state(gint state)"}, {"node_id": 144, "universal_type": "function", "name": "set_activated_cb", "text_snippet": "static void set_activated_cb(bool state,\n\t\tvoid *user_data)\n{\n\tg_print(\"Activated state %d\\n\", state"}, {"node_id": 146, "universal_type": "function", "name": "*user_data)", "text_snippet": "set_activated_cb(bool state,\n\t\tvoid *user_data)"}, {"node_id": 163, "universal_type": "function", "name": "set_active_completed_cb", "text_snippet": "static void set_active_completed_cb(net_nfc_error_e result, void *user_data)\n{\n\tg_print(\"SetActive C"}, {"node_id": 165, "universal_type": "function", "name": "*user_data)", "text_snippet": "set_active_completed_cb(net_nfc_error_e result, void *user_data)"}, {"node_id": 186, "universal_type": "function", "name": "get_server_state_completed_cb", "text_snippet": "static void get_server_state_completed_cb(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user"}, {"node_id": 188, "universal_type": "function", "name": "state,", "text_snippet": "get_server_state_completed_cb(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user_data)"}, {"node_id": 218, "universal_type": "function", "name": "net_nfc_test_manager_set_active", "text_snippet": "void net_nfc_test_manager_set_active(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_manager_se"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "net_nfc_test_manager_set_active(gpointer data, gpointer user_data)"}, {"node_id": 241, "universal_type": "function", "name": "net_nfc_test_manager_get_server_state", "text_snippet": "void net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_mana"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)"}, {"node_id": 257, "universal_type": "function", "name": "net_nfc_test_manager_set_active_sync", "text_snippet": "void net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)\n{\n\tgint i;\n\n\ti = net_nf"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)"}, {"node_id": 301, "universal_type": "function", "name": "net_nfc_test_manager_get_server_state_sync", "text_snippet": "void net_nfc_test_manager_get_server_state_sync(gpointer data,\n\t\tgpointer user_data)\n{\n\tnet_nfc_erro"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "net_nfc_test_manager_get_server_state_sync(gpointer data,\n\t\tgpointer user_data)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <glib-object.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"net_nfc_client_manager.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"net_nfc_typedef_internal.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * \t\t\t\t http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n#include <glib-object.h>\n\n#include \"net_nfc_client_manager.h\"\n#include \"net_nfc_typedef_internal.h\"\n\n\nstatic void run_next_callback(gpointer user_data)\n{\n\tif (user_data)\n\t{\n\t\tGCallback callback;\n\t\tcallback = (GCallback)(user_data);\n\t\tcallback();\n\t}\n}\n\nstatic void print_server_state(gint state)\n{\n\tif (state == 0)\n\t\tg_print(\" --- state : Unknown(%d)\\n\", state);\n\telse\n\t{\n\t\tg_print(\" --- state :\\n\");\n\t\tif (state & NET_NFC_SERVER_DISCOVERY)\n\t\t\tg_print(\"\\tNET_NFC_SERVER_DISCOVERY(%d)\\n\", state);\n\t\tif (state & NET_NFC_TAG_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_TAG_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SE_CONNECTION)\n\t\t\tg_print(\"\\tNET_NFC_SE_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_CLIENT_CONNECTED)\n\t\t{\n\t\t\tg_print(\"\\tNET_NFC_SNEP_CLIENT_CONNECTED(%d)\\n\",\n\t\t\t\t\tstate);\n\t\t}\n\t\tif (state & NET_NFC_NPP_CLIENT_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_CLIENT_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_SNEP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_SNEP_SERVER_CONNECTED(%d)\\n\", state);\n\t\tif (state & NET_NFC_NPP_SERVER_CONNECTED)\n\t\t\tg_print(\"\\tNET_NFC_NPP_SERVER_CONNECTED(%d)\\n\", state);\n\t}\n}\n\nstatic void set_activated_cb(bool state,\n\t\tvoid *user_data)\n{\n\tg_print(\"Activated state %d\\n\", state);\n}\n\nstatic void set_active_completed_cb(net_nfc_error_e result, void *user_data)\n{\n\tg_print(\"SetActive Completed %d\\n\", result);\n\trun_next_callback(user_data);\n}\n\nstatic void get_server_state_completed_cb(net_nfc_error_e result,\n\t\tunsigned int state,\n\t\tvoid *user_data)\n{\n\tg_print(\"GetServerState Completed %d\\n\", result);\n\n\tprint_server_state(state);\n\n\trun_next_callback(user_data);\n}\n\nvoid net_nfc_test_manager_set_active(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_manager_set_activated(set_activated_cb, NULL);\n\n\tnet_nfc_client_manager_set_active(1,\n\t\t\tset_active_completed_cb,\n\t\t\tuser_data);\n}\n\nvoid net_nfc_test_manager_get_server_state(gpointer data, gpointer user_data)\n{\n\tnet_nfc_client_manager_get_server_state(get_server_state_completed_cb,\n\t\t\tuser_data);\n}\n\nvoid net_nfc_test_manager_set_active_sync(gpointer data, gpointer user_data)\n{\n\tgint i;\n\n\ti = net_nfc_client_manager_set_active_sync(1);\n\n\tg_print(\"Return %d\\n\", i);\n\n\tif (user_data)\n\t{\n\t\tGCallback callback;\n\n\t\tcallback = (GCallback)(user_data);\n\n\t\tcallback();\n\t}\n}\n\nvoid net_nfc_test_manager_get_server_state_sync(gpointer data,\n\t\tgpointer user_data)\n{\n\tnet_nfc_error_e result;\n\tguint state = 0;\n\n\tresult = net_nfc_client_manager_get_server_state_sync(&state);\n\n\tg_print(\"GetServerState: %d\\n\", result);\n\n\tprint_server_state(state);\n\n\trun_next_callback(user_data);\n}\n"}
81,015
c
// RBotFirmware // <NAME> 2016-2018 #pragma once #ifdef ESP32 #define USE_ESP32_TIMER_ISR 1 #endif #include <ArduinoLog.h> #include "MotionInstrumentation.h" #include "../MotionBlock.h" #include "RampGenIO.h" class MotionPipeline; class RampGenerator { private: // This singleton static RampGenerator* _pThis; // If this is true nothing will move volatile bool _isPaused; // Steps moved in total and increment based on direction volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES]; volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES]; // Pipeline of blocks to be processed MotionPipeline* _pMotionPipeline; // Motors and endstops RampGenIO _rampGenIO; // Raw access to motors and endstops RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo; // This is to ensure that the robot never goes to 0 tick rate - which would leave it // immobile forever static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10; static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC); #ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE // Test code MotionInstrumentation *_pMotionInstrumentation; #endif #ifdef USE_ESP32_TIMER_ISR // ISR based interval timer hw_timer_t *_isrMotionTimer; static constexpr uint32_t CLOCK_RATE_MHZ = 80; static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l); #endif bool _isrTimerStarted; private: // Execution info for the currently executing block bool _isEnabled; // Ramp generation enabled bool _rampGenEnabled; // End-stop reached bool _endStopReached; // Last completed numbered command int _lastDoneNumberedCmdIdx; // Steps uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES]; uint32_t _curStepCount[RobotConsts::MAX_AXES]; // Current step rate (in steps per K ticks) uint32_t _curStepRatePerTTicks; // Accumulators for stepping and acceleration increments uint32_t _curAccumulatorStep; uint32_t _curAccumulatorNS; uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES]; int _endStopCheckNum; struct EndStopChecks { int pin; bool val; }; EndStopChecks _endStopChecks[RobotConsts::MAX_AXES]; public: RampGenerator(MotionPipeline* pMotionPipeline); // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo); void setInstrumentationMode(const char *testModeStr); void deinit(); void configure(bool rampGenEnabled); bool configureAxis(int axisIdx, const char *axisJSON) { return _rampGenIO.configureAxis(axisIdx, axisJSON); } void stop(); // static void clear(); void pause(bool pauseIt); void resetTotalStepPosition(); void getTotalStepPosition(AxisInt32s& actuatorPos); void setTotalStepPosition(int axisIdx, int32_t stepPos); void clearEndstopReached(); void getEndStopStatus(AxisMinMaxBools& axisEndStopVals) { _rampGenIO.getEndStopStatus(axisEndStopVals); } bool isEndStopReached(); int getLastCompletedNumberedCmdIdx(); void process(); String getDebugStr(); void showDebug(); private: static void _staticISRStepperMotion(); void isrStepperMotion(); bool handleStepEnd(); void setupNewBlock(MotionBlock *pBlock); void updateMSAccumulator(MotionBlock *pBlock); bool handleStepMotion(MotionBlock *pBlock); void endMotion(MotionBlock *pBlock); };
33.84
102
(translation_unit) "// RBotFirmware\n// <NAME> 2016-2018\n\n#pragma once\n\n#ifdef ESP32\n#define USE_ESP32_TIMER_ISR 1\n#endif\n\n#include <ArduinoLog.h>\n#include "MotionInstrumentation.h"\n#include "../MotionBlock.h"\n#include "RampGenIO.h"\n\nclass MotionPipeline;\n\nclass RampGenerator\n{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If this is true nothing will move\n volatile bool _isPaused;\n\n // Steps moved in total and increment based on direction\n volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];\n volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];\n\n // Pipeline of blocks to be processed\n MotionPipeline* _pMotionPipeline;\n\n // Motors and endstops\n RampGenIO _rampGenIO;\n\n // Raw access to motors and endstops\n RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;\n\n // This is to ensure that the robot never goes to 0 tick rate - which would leave it\n // immobile forever\n static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;\n static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);\n\n#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif\n\n#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif\n bool _isrTimerStarted;\n\nprivate:\n // Execution info for the currently executing block\n bool _isEnabled;\n // Ramp generation enabled\n bool _rampGenEnabled;\n // End-stop reached\n bool _endStopReached;\n // Last completed numbered command\n int _lastDoneNumberedCmdIdx;\n // Steps\n uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];\n uint32_t _curStepCount[RobotConsts::MAX_AXES];\n // Current step rate (in steps per K ticks)\n uint32_t _curStepRatePerTTicks;\n // Accumulators for stepping and acceleration increments\n uint32_t _curAccumulatorStep;\n uint32_t _curAccumulatorNS;\n uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];\n\n int _endStopCheckNum;\n struct EndStopChecks\n {\n int pin;\n bool val;\n };\n EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];\n\npublic:\n RampGenerator(MotionPipeline* pMotionPipeline);\n // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);\n void setInstrumentationMode(const char *testModeStr);\n void deinit();\n void configure(bool rampGenEnabled);\n bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }\n void stop();\n // static void clear();\n void pause(bool pauseIt);\n void resetTotalStepPosition();\n void getTotalStepPosition(AxisInt32s& actuatorPos);\n void setTotalStepPosition(int axisIdx, int32_t stepPos);\n void clearEndstopReached();\n void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }\n bool isEndStopReached();\n int getLastCompletedNumberedCmdIdx();\n void process();\n String getDebugStr();\n void showDebug();\n\nprivate:\n static void _staticISRStepperMotion();\n void isrStepperMotion();\n bool handleStepEnd();\n void setupNewBlock(MotionBlock *pBlock);\n void updateMSAccumulator(MotionBlock *pBlock);\n bool handleStepMotion(MotionBlock *pBlock);\n void endMotion(MotionBlock *pBlock);\n};\n" (comment) "// RBotFirmware" (comment) "// <NAME> 2016-2018" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef ESP32\n#define USE_ESP32_TIMER_ISR 1\n#endif" (#ifdef) "#ifdef" (identifier) "ESP32" (preproc_def) "#define USE_ESP32_TIMER_ISR 1\n" (#define) "#define" (identifier) "USE_ESP32_TIMER_ISR" (preproc_arg) "1" (#endif) "#endif" (preproc_include) "#include <ArduinoLog.h>\n" (#include) "#include" (system_lib_string) "<ArduinoLog.h>" (preproc_include) "#include "MotionInstrumentation.h"\n" (#include) "#include" (string_literal) ""MotionInstrumentation.h"" (") """ (string_content) "MotionInstrumentation.h" (") """ (preproc_include) "#include "../MotionBlock.h"\n" (#include) "#include" (string_literal) ""../MotionBlock.h"" (") """ (string_content) "../MotionBlock.h" (") """ (preproc_include) "#include "RampGenIO.h"\n" (#include) "#include" (string_literal) ""RampGenIO.h"" (") """ (string_content) "RampGenIO.h" (") """ (declaration) "class MotionPipeline;" (type_identifier) "class" (identifier) "MotionPipeline" (;) ";" (function_definition) "class RampGenerator\n{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If this is true nothing will move\n volatile bool _isPaused;\n\n // Steps moved in total and increment based on direction\n volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];\n volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];\n\n // Pipeline of blocks to be processed\n MotionPipeline* _pMotionPipeline;\n\n // Motors and endstops\n RampGenIO _rampGenIO;\n\n // Raw access to motors and endstops\n RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;\n\n // This is to ensure that the robot never goes to 0 tick rate - which would leave it\n // immobile forever\n static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;\n static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);\n\n#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif\n\n#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif\n bool _isrTimerStarted;\n\nprivate:\n // Execution info for the currently executing block\n bool _isEnabled;\n // Ramp generation enabled\n bool _rampGenEnabled;\n // End-stop reached\n bool _endStopReached;\n // Last completed numbered command\n int _lastDoneNumberedCmdIdx;\n // Steps\n uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];\n uint32_t _curStepCount[RobotConsts::MAX_AXES];\n // Current step rate (in steps per K ticks)\n uint32_t _curStepRatePerTTicks;\n // Accumulators for stepping and acceleration increments\n uint32_t _curAccumulatorStep;\n uint32_t _curAccumulatorNS;\n uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];\n\n int _endStopCheckNum;\n struct EndStopChecks\n {\n int pin;\n bool val;\n };\n EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];\n\npublic:\n RampGenerator(MotionPipeline* pMotionPipeline);\n // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);\n void setInstrumentationMode(const char *testModeStr);\n void deinit();\n void configure(bool rampGenEnabled);\n bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }\n void stop();\n // static void clear();\n void pause(bool pauseIt);\n void resetTotalStepPosition();\n void getTotalStepPosition(AxisInt32s& actuatorPos);\n void setTotalStepPosition(int axisIdx, int32_t stepPos);\n void clearEndstopReached();\n void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }\n bool isEndStopReached();\n int getLastCompletedNumberedCmdIdx();\n void process();\n String getDebugStr();\n void showDebug();\n\nprivate:\n static void _staticISRStepperMotion();\n void isrStepperMotion();\n bool handleStepEnd();\n void setupNewBlock(MotionBlock *pBlock);\n void updateMSAccumulator(MotionBlock *pBlock);\n bool handleStepMotion(MotionBlock *pBlock);\n void endMotion(MotionBlock *pBlock);\n}" (type_identifier) "class" (identifier) "RampGenerator" (compound_statement) "{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If this is true nothing will move\n volatile bool _isPaused;\n\n // Steps moved in total and increment based on direction\n volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];\n volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];\n\n // Pipeline of blocks to be processed\n MotionPipeline* _pMotionPipeline;\n\n // Motors and endstops\n RampGenIO _rampGenIO;\n\n // Raw access to motors and endstops\n RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;\n\n // This is to ensure that the robot never goes to 0 tick rate - which would leave it\n // immobile forever\n static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;\n static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);\n\n#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif\n\n#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif\n bool _isrTimerStarted;\n\nprivate:\n // Execution info for the currently executing block\n bool _isEnabled;\n // Ramp generation enabled\n bool _rampGenEnabled;\n // End-stop reached\n bool _endStopReached;\n // Last completed numbered command\n int _lastDoneNumberedCmdIdx;\n // Steps\n uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];\n uint32_t _curStepCount[RobotConsts::MAX_AXES];\n // Current step rate (in steps per K ticks)\n uint32_t _curStepRatePerTTicks;\n // Accumulators for stepping and acceleration increments\n uint32_t _curAccumulatorStep;\n uint32_t _curAccumulatorNS;\n uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];\n\n int _endStopCheckNum;\n struct EndStopChecks\n {\n int pin;\n bool val;\n };\n EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];\n\npublic:\n RampGenerator(MotionPipeline* pMotionPipeline);\n // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);\n void setInstrumentationMode(const char *testModeStr);\n void deinit();\n void configure(bool rampGenEnabled);\n bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }\n void stop();\n // static void clear();\n void pause(bool pauseIt);\n void resetTotalStepPosition();\n void getTotalStepPosition(AxisInt32s& actuatorPos);\n void setTotalStepPosition(int axisIdx, int32_t stepPos);\n void clearEndstopReached();\n void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }\n bool isEndStopReached();\n int getLastCompletedNumberedCmdIdx();\n void process();\n String getDebugStr();\n void showDebug();\n\nprivate:\n static void _staticISRStepperMotion();\n void isrStepperMotion();\n bool handleStepEnd();\n void setupNewBlock(MotionBlock *pBlock);\n void updateMSAccumulator(MotionBlock *pBlock);\n bool handleStepMotion(MotionBlock *pBlock);\n void endMotion(MotionBlock *pBlock);\n}" ({) "{" (labeled_statement) "private:\n // This singleton\n static RampGenerator* _pThis;" (statement_identifier) "private" (:) ":" (comment) "// This singleton" (declaration) "static RampGenerator* _pThis;" (storage_class_specifier) "static" (static) "static" (type_identifier) "RampGenerator" (pointer_declarator) "* _pThis" (*) "*" (identifier) "_pThis" (;) ";" (comment) "// If this is true nothing will move" (declaration) "volatile bool _isPaused;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (identifier) "_isPaused" (;) ";" (comment) "// Steps moved in total and increment based on direction" (declaration) "volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "int32_t" (array_declarator) "_axisTotalSteps[RobotConsts::MAX_AXES]" (identifier) "_axisTotalSteps" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (declaration) "volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "int32_t" (array_declarator) "_totalStepsInc[RobotConsts::MAX_AXES]" (identifier) "_totalStepsInc" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (comment) "// Pipeline of blocks to be processed" (declaration) "MotionPipeline* _pMotionPipeline;" (type_identifier) "MotionPipeline" (pointer_declarator) "* _pMotionPipeline" (*) "*" (identifier) "_pMotionPipeline" (;) ";" (comment) "// Motors and endstops" (declaration) "RampGenIO _rampGenIO;" (type_identifier) "RampGenIO" (identifier) "_rampGenIO" (;) ";" (comment) "// Raw access to motors and endstops" (labeled_statement) "RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;" (statement_identifier) "RobotConsts" (:) ":" (ERROR) ":" (:) ":" (declaration) "RawMotionHwInfo_t _rawMotionHwInfo;" (type_identifier) "RawMotionHwInfo_t" (identifier) "_rawMotionHwInfo" (;) ";" (comment) "// This is to ensure that the robot never goes to 0 tick rate - which would leave it" (comment) "// immobile forever" (declaration) "static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint32_t" (init_declarator) "MIN_STEP_RATE_PER_SEC = 10" (identifier) "MIN_STEP_RATE_PER_SEC" (=) "=" (number_literal) "10" (;) ";" (declaration) "static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint32_t" (init_declarator) "MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)" (identifier) "MIN_STEP_RATE_PER_TTICKS" (=) "=" (call_expression) "uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)" (identifier) "uint32_t" (argument_list) "((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)" (() "(" (binary_expression) "(MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock" (parenthesized_expression) "(MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE)" (() "(" (binary_expression) "MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock" (binary_expression) "MIN_STEP_RATE_PER_SEC * 1.0" (identifier) "MIN_STEP_RATE_PER_SEC" (*) "*" (number_literal) "1.0" (*) "*" (identifier) "MotionBlock" (ERROR) "::TTICKS_VALUE" (:) ":" (:) ":" (identifier) "TTICKS_VALUE" ()) ")" (/) "/" (identifier) "MotionBlock" (ERROR) "::TICKS_PER_SEC" (:) ":" (:) ":" (identifier) "TICKS_PER_SEC" ()) ")" (;) ";" (preproc_ifdef) "#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif" (#ifdef) "#ifdef" (identifier) "INSTRUMENT_MOTION_ACTUATOR_ENABLE" (comment) "// Test code" (declaration) "MotionInstrumentation *_pMotionInstrumentation;" (type_identifier) "MotionInstrumentation" (pointer_declarator) "*_pMotionInstrumentation" (*) "*" (identifier) "_pMotionInstrumentation" (;) ";" (#endif) "#endif" (preproc_ifdef) "#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif" (#ifdef) "#ifdef" (identifier) "USE_ESP32_TIMER_ISR" (comment) "// ISR based interval timer" (declaration) "hw_timer_t *_isrMotionTimer;" (type_identifier) "hw_timer_t" (pointer_declarator) "*_isrMotionTimer" (*) "*" (identifier) "_isrMotionTimer" (;) ";" (declaration) "static constexpr uint32_t CLOCK_RATE_MHZ = 80;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint32_t" (init_declarator) "CLOCK_RATE_MHZ = 80" (identifier) "CLOCK_RATE_MHZ" (=) "=" (number_literal) "80" (;) ";" (declaration) "static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "uint32_t" (init_declarator) "DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l)" (identifier) "DIRECT_STEP_ISR_TIMER_PERIOD_US" (=) "=" (call_expression) "uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l)" (identifier) "uint32_t" (argument_list) "(MotionBlock::TICK_INTERVAL_NS / 1000l)" (() "(" (ERROR) "MotionBlock::" (identifier) "MotionBlock" (:) ":" (:) ":" (binary_expression) "TICK_INTERVAL_NS / 1000l" (identifier) "TICK_INTERVAL_NS" (/) "/" (number_literal) "1000l" ()) ")" (;) ";" (#endif) "#endif" (declaration) "bool _isrTimerStarted;" (primitive_type) "bool" (identifier) "_isrTimerStarted" (;) ";" (labeled_statement) "private:\n // Execution info for the currently executing block\n bool _isEnabled;" (statement_identifier) "private" (:) ":" (comment) "// Execution info for the currently executing block" (declaration) "bool _isEnabled;" (primitive_type) "bool" (identifier) "_isEnabled" (;) ";" (comment) "// Ramp generation enabled" (declaration) "bool _rampGenEnabled;" (primitive_type) "bool" (identifier) "_rampGenEnabled" (;) ";" (comment) "// End-stop reached" (declaration) "bool _endStopReached;" (primitive_type) "bool" (identifier) "_endStopReached" (;) ";" (comment) "// Last completed numbered command" (declaration) "int _lastDoneNumberedCmdIdx;" (primitive_type) "int" (identifier) "_lastDoneNumberedCmdIdx" (;) ";" (comment) "// Steps" (declaration) "uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];" (primitive_type) "uint32_t" (array_declarator) "_stepsTotalAbs[RobotConsts::MAX_AXES]" (identifier) "_stepsTotalAbs" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (declaration) "uint32_t _curStepCount[RobotConsts::MAX_AXES];" (primitive_type) "uint32_t" (array_declarator) "_curStepCount[RobotConsts::MAX_AXES]" (identifier) "_curStepCount" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (comment) "// Current step rate (in steps per K ticks)" (declaration) "uint32_t _curStepRatePerTTicks;" (primitive_type) "uint32_t" (identifier) "_curStepRatePerTTicks" (;) ";" (comment) "// Accumulators for stepping and acceleration increments" (declaration) "uint32_t _curAccumulatorStep;" (primitive_type) "uint32_t" (identifier) "_curAccumulatorStep" (;) ";" (declaration) "uint32_t _curAccumulatorNS;" (primitive_type) "uint32_t" (identifier) "_curAccumulatorNS" (;) ";" (declaration) "uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];" (primitive_type) "uint32_t" (array_declarator) "_curAccumulatorRelative[RobotConsts::MAX_AXES]" (identifier) "_curAccumulatorRelative" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (declaration) "int _endStopCheckNum;" (primitive_type) "int" (identifier) "_endStopCheckNum" (;) ";" (struct_specifier) "struct EndStopChecks\n {\n int pin;\n bool val;\n }" (struct) "struct" (type_identifier) "EndStopChecks" (field_declaration_list) "{\n int pin;\n bool val;\n }" ({) "{" (field_declaration) "int pin;" (primitive_type) "int" (field_identifier) "pin" (;) ";" (field_declaration) "bool val;" (primitive_type) "bool" (field_identifier) "val" (;) ";" (}) "}" (;) ";" (declaration) "EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];" (type_identifier) "EndStopChecks" (array_declarator) "_endStopChecks[RobotConsts::MAX_AXES]" (identifier) "_endStopChecks" ([) "[" (identifier) "RobotConsts" (ERROR) "::MAX_AXES" (:) ":" (:) ":" (identifier) "MAX_AXES" (]) "]" (;) ";" (labeled_statement) "public:\n RampGenerator(MotionPipeline* pMotionPipeline);" (statement_identifier) "public" (:) ":" (expression_statement) "RampGenerator(MotionPipeline* pMotionPipeline);" (call_expression) "RampGenerator(MotionPipeline* pMotionPipeline)" (identifier) "RampGenerator" (argument_list) "(MotionPipeline* pMotionPipeline)" (() "(" (binary_expression) "MotionPipeline* pMotionPipeline" (identifier) "MotionPipeline" (*) "*" (identifier) "pMotionPipeline" ()) ")" (;) ";" (comment) "// static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);" (declaration) "void setInstrumentationMode(const char *testModeStr);" (primitive_type) "void" (function_declarator) "setInstrumentationMode(const char *testModeStr)" (identifier) "setInstrumentationMode" (parameter_list) "(const char *testModeStr)" (() "(" (parameter_declaration) "const char *testModeStr" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*testModeStr" (*) "*" (identifier) "testModeStr" ()) ")" (;) ";" (declaration) "void deinit();" (primitive_type) "void" (function_declarator) "deinit()" (identifier) "deinit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void configure(bool rampGenEnabled);" (primitive_type) "void" (function_declarator) "configure(bool rampGenEnabled)" (identifier) "configure" (parameter_list) "(bool rampGenEnabled)" (() "(" (parameter_declaration) "bool rampGenEnabled" (primitive_type) "bool" (identifier) "rampGenEnabled" ()) ")" (;) ";" (function_definition) "bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }" (primitive_type) "bool" (function_declarator) "configureAxis(int axisIdx, const char *axisJSON)" (identifier) "configureAxis" (parameter_list) "(int axisIdx, const char *axisJSON)" (() "(" (parameter_declaration) "int axisIdx" (primitive_type) "int" (identifier) "axisIdx" (,) "," (parameter_declaration) "const char *axisJSON" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*axisJSON" (*) "*" (identifier) "axisJSON" ()) ")" (compound_statement) "{\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }" ({) "{" (return_statement) "return _rampGenIO.configureAxis(axisIdx, axisJSON);" (return) "return" (call_expression) "_rampGenIO.configureAxis(axisIdx, axisJSON)" (field_expression) "_rampGenIO.configureAxis" (identifier) "_rampGenIO" (.) "." (field_identifier) "configureAxis" (argument_list) "(axisIdx, axisJSON)" (() "(" (identifier) "axisIdx" (,) "," (identifier) "axisJSON" ()) ")" (;) ";" (}) "}" (declaration) "void stop();" (primitive_type) "void" (function_declarator) "stop()" (identifier) "stop" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// static void clear();" (declaration) "void pause(bool pauseIt);" (primitive_type) "void" (function_declarator) "pause(bool pauseIt)" (identifier) "pause" (parameter_list) "(bool pauseIt)" (() "(" (parameter_declaration) "bool pauseIt" (primitive_type) "bool" (identifier) "pauseIt" ()) ")" (;) ";" (declaration) "void resetTotalStepPosition();" (primitive_type) "void" (function_declarator) "resetTotalStepPosition()" (identifier) "resetTotalStepPosition" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void getTotalStepPosition(AxisInt32s& actuatorPos);" (primitive_type) "void" (function_declarator) "getTotalStepPosition(AxisInt32s& actuatorPos)" (identifier) "getTotalStepPosition" (parameter_list) "(AxisInt32s& actuatorPos)" (() "(" (parameter_declaration) "AxisInt32s& actuatorPos" (type_identifier) "AxisInt32s" (ERROR) "&" (&) "&" (identifier) "actuatorPos" ()) ")" (;) ";" (declaration) "void setTotalStepPosition(int axisIdx, int32_t stepPos);" (primitive_type) "void" (function_declarator) "setTotalStepPosition(int axisIdx, int32_t stepPos)" (identifier) "setTotalStepPosition" (parameter_list) "(int axisIdx, int32_t stepPos)" (() "(" (parameter_declaration) "int axisIdx" (primitive_type) "int" (identifier) "axisIdx" (,) "," (parameter_declaration) "int32_t stepPos" (primitive_type) "int32_t" (identifier) "stepPos" ()) ")" (;) ";" (declaration) "void clearEndstopReached();" (primitive_type) "void" (function_declarator) "clearEndstopReached()" (identifier) "clearEndstopReached" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }" (primitive_type) "void" (function_declarator) "getEndStopStatus(AxisMinMaxBools& axisEndStopVals)" (identifier) "getEndStopStatus" (parameter_list) "(AxisMinMaxBools& axisEndStopVals)" (() "(" (parameter_declaration) "AxisMinMaxBools& axisEndStopVals" (type_identifier) "AxisMinMaxBools" (ERROR) "&" (&) "&" (identifier) "axisEndStopVals" ()) ")" (compound_statement) "{\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }" ({) "{" (expression_statement) "_rampGenIO.getEndStopStatus(axisEndStopVals);" (call_expression) "_rampGenIO.getEndStopStatus(axisEndStopVals)" (field_expression) "_rampGenIO.getEndStopStatus" (identifier) "_rampGenIO" (.) "." (field_identifier) "getEndStopStatus" (argument_list) "(axisEndStopVals)" (() "(" (identifier) "axisEndStopVals" ()) ")" (;) ";" (}) "}" (declaration) "bool isEndStopReached();" (primitive_type) "bool" (function_declarator) "isEndStopReached()" (identifier) "isEndStopReached" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int getLastCompletedNumberedCmdIdx();" (primitive_type) "int" (function_declarator) "getLastCompletedNumberedCmdIdx()" (identifier) "getLastCompletedNumberedCmdIdx" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void process();" (primitive_type) "void" (function_declarator) "process()" (identifier) "process" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "String getDebugStr();" (type_identifier) "String" (function_declarator) "getDebugStr()" (identifier) "getDebugStr" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void showDebug();" (primitive_type) "void" (function_declarator) "showDebug()" (identifier) "showDebug" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n static void _staticISRStepperMotion();" (statement_identifier) "private" (:) ":" (declaration) "static void _staticISRStepperMotion();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "_staticISRStepperMotion()" (identifier) "_staticISRStepperMotion" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void isrStepperMotion();" (primitive_type) "void" (function_declarator) "isrStepperMotion()" (identifier) "isrStepperMotion" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool handleStepEnd();" (primitive_type) "bool" (function_declarator) "handleStepEnd()" (identifier) "handleStepEnd" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setupNewBlock(MotionBlock *pBlock);" (primitive_type) "void" (function_declarator) "setupNewBlock(MotionBlock *pBlock)" (identifier) "setupNewBlock" (parameter_list) "(MotionBlock *pBlock)" (() "(" (parameter_declaration) "MotionBlock *pBlock" (type_identifier) "MotionBlock" (pointer_declarator) "*pBlock" (*) "*" (identifier) "pBlock" ()) ")" (;) ";" (declaration) "void updateMSAccumulator(MotionBlock *pBlock);" (primitive_type) "void" (function_declarator) "updateMSAccumulator(MotionBlock *pBlock)" (identifier) "updateMSAccumulator" (parameter_list) "(MotionBlock *pBlock)" (() "(" (parameter_declaration) "MotionBlock *pBlock" (type_identifier) "MotionBlock" (pointer_declarator) "*pBlock" (*) "*" (identifier) "pBlock" ()) ")" (;) ";" (declaration) "bool handleStepMotion(MotionBlock *pBlock);" (primitive_type) "bool" (function_declarator) "handleStepMotion(MotionBlock *pBlock)" (identifier) "handleStepMotion" (parameter_list) "(MotionBlock *pBlock)" (() "(" (parameter_declaration) "MotionBlock *pBlock" (type_identifier) "MotionBlock" (pointer_declarator) "*pBlock" (*) "*" (identifier) "pBlock" ()) ")" (;) ";" (declaration) "void endMotion(MotionBlock *pBlock);" (primitive_type) "void" (function_declarator) "endMotion(MotionBlock *pBlock)" (identifier) "endMotion" (parameter_list) "(MotionBlock *pBlock)" (() "(" (parameter_declaration) "MotionBlock *pBlock" (type_identifier) "MotionBlock" (pointer_declarator) "*pBlock" (*) "*" (identifier) "pBlock" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
626
12
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 33.84, "nodes": 398, "errors": 0, "source_hash": "983a037d36e6d76be1b313a246435e4be0887f63cec81618d7b396d677331885", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifdef ESP32\n#define USE_ESP32_TIMER_ISR 1\n#endif", "parent": null, "children": [4, 5, 6, 10], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 4, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 5, "type": "identifier", "text": "ESP32", "parent": 3, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 12}}, {"id": 6, "type": "preproc_def", "text": "#define USE_ESP32_TIMER_ISR 1\n", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 8, "type": "identifier", "text": "USE_ESP32_TIMER_ISR", "parent": 6, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 27}}, {"id": 9, "type": "preproc_arg", "text": "1", "parent": 6, "children": [], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 29}}, {"id": 10, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 11, "type": "preproc_include", "text": "#include <ArduinoLog.h>\n", "parent": null, "children": [12, 13], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<ArduinoLog.h>", "parent": 11, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 23}}, {"id": 14, "type": "preproc_include", "text": "#include \"MotionInstrumentation.h\"\n", "parent": null, "children": [15, 16], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 16, "type": "string_literal", "text": "\"MotionInstrumentation.h\"", "parent": 14, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 34}}, {"id": 17, "type": "preproc_include", "text": "#include \"../MotionBlock.h\"\n", "parent": null, "children": [18, 19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 19, "type": "string_literal", "text": "\"../MotionBlock.h\"", "parent": 17, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 27}}, {"id": 20, "type": "preproc_include", "text": "#include \"RampGenIO.h\"\n", "parent": null, "children": [21, 22], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 22, "type": "string_literal", "text": "\"RampGenIO.h\"", "parent": 20, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 23, "type": "declaration", "text": "class MotionPipeline;", "parent": null, "children": [24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 21}}, {"id": 24, "type": "identifier", "text": "MotionPipeline", "parent": 23, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 20}}, {"id": 25, "type": "function_definition", "text": "class RampGenerator\n{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If this is true nothing will move\n volatile bool _isPaused;\n\n // Steps moved in total and increment based on direction\n volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];\n volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];\n\n // Pipeline of blocks to be processed\n MotionPipeline* _pMotionPipeline;\n\n // Motors and endstops\n RampGenIO _rampGenIO;\n\n // Raw access to motors and endstops\n RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;\n\n // This is to ensure that the robot never goes to 0 tick rate - which would leave it\n // immobile forever\n static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;\n static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);\n\n#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif\n\n#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif\n bool _isrTimerStarted;\n\nprivate:\n // Execution info for the currently executing block\n bool _isEnabled;\n // Ramp generation enabled\n bool _rampGenEnabled;\n // End-stop reached\n bool _endStopReached;\n // Last completed numbered command\n int _lastDoneNumberedCmdIdx;\n // Steps\n uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];\n uint32_t _curStepCount[RobotConsts::MAX_AXES];\n // Current step rate (in steps per K ticks)\n uint32_t _curStepRatePerTTicks;\n // Accumulators for stepping and acceleration increments\n uint32_t _curAccumulatorStep;\n uint32_t _curAccumulatorNS;\n uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];\n\n int _endStopCheckNum;\n struct EndStopChecks\n {\n int pin;\n bool val;\n };\n EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];\n\npublic:\n RampGenerator(MotionPipeline* pMotionPipeline);\n // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);\n void setInstrumentationMode(const char *testModeStr);\n void deinit();\n void configure(bool rampGenEnabled);\n bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }\n void stop();\n // static void clear();\n void pause(bool pauseIt);\n void resetTotalStepPosition();\n void getTotalStepPosition(AxisInt32s& actuatorPos);\n void setTotalStepPosition(int axisIdx, int32_t stepPos);\n void clearEndstopReached();\n void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }\n bool isEndStopReached();\n int getLastCompletedNumberedCmdIdx();\n void process();\n String getDebugStr();\n void showDebug();\n\nprivate:\n static void _staticISRStepperMotion();\n void isrStepperMotion();\n bool handleStepEnd();\n void setupNewBlock(MotionBlock *pBlock);\n void updateMSAccumulator(MotionBlock *pBlock);\n bool handleStepMotion(MotionBlock *pBlock);\n void endMotion(MotionBlock *pBlock);\n}", "parent": null, "children": [26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 118, "column": 1}}, {"id": 26, "type": "identifier", "text": "RampGenerator", "parent": 25, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 19}}, {"id": 27, "type": "labeled_statement", "text": "private:\n // This singleton\n static RampGenerator* _pThis;", "parent": 25, "children": [28], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 20, "column": 33}}, {"id": 28, "type": "declaration", "text": "static RampGenerator* _pThis;", "parent": 27, "children": [29, 30], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 33}}, {"id": 29, "type": "type_identifier", "text": "RampGenerator", "parent": 28, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 24}}, {"id": 30, "type": "pointer_declarator", "text": "* _pThis", "parent": 28, "children": [31, 32], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 32}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 32, "type": "identifier", "text": "_pThis", "parent": 30, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 32}}, {"id": 33, "type": "declaration", "text": "volatile bool _isPaused;", "parent": 25, "children": [34, 36, 37], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 28}}, {"id": 34, "type": "type_qualifier", "text": "volatile", "parent": 33, "children": [35], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 35, "type": "volatile", "text": "volatile", "parent": 34, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 36, "type": "primitive_type", "text": "bool", "parent": 33, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 17}}, {"id": 37, "type": "identifier", "text": "_isPaused", "parent": 33, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 27}}, {"id": 38, "type": "declaration", "text": "volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];", "parent": 25, "children": [39, 41, 42], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 60}}, {"id": 39, "type": "type_qualifier", "text": "volatile", "parent": 38, "children": [40], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 40, "type": "volatile", "text": "volatile", "parent": 39, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 41, "type": "primitive_type", "text": "int32_t", "parent": 38, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 20}}, {"id": 42, "type": "array_declarator", "text": "_axisTotalSteps[RobotConsts::MAX_AXES]", "parent": 38, "children": [43, 44, 45], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 59}}, {"id": 43, "type": "identifier", "text": "_axisTotalSteps", "parent": 42, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 36}}, {"id": 44, "type": "identifier", "text": "RobotConsts", "parent": 42, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 48}}, {"id": 45, "type": "ERROR", "text": "::MAX_AXES", "parent": 42, "children": [46], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 58}}, {"id": 46, "type": "identifier", "text": "MAX_AXES", "parent": 45, "children": [], "start_point": {"row": 26, "column": 50}, "end_point": {"row": 26, "column": 58}}, {"id": 47, "type": "declaration", "text": "volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];", "parent": 25, "children": [48, 50, 51], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 59}}, {"id": 48, "type": "type_qualifier", "text": "volatile", "parent": 47, "children": [49], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 49, "type": "volatile", "text": "volatile", "parent": 48, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 50, "type": "primitive_type", "text": "int32_t", "parent": 47, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 20}}, {"id": 51, "type": "array_declarator", "text": "_totalStepsInc[RobotConsts::MAX_AXES]", "parent": 47, "children": [52, 53, 54], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 58}}, {"id": 52, "type": "identifier", "text": "_totalStepsInc", "parent": 51, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 35}}, {"id": 53, "type": "identifier", "text": "RobotConsts", "parent": 51, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 47}}, {"id": 54, "type": "ERROR", "text": "::MAX_AXES", "parent": 51, "children": [55], "start_point": {"row": 27, "column": 47}, "end_point": {"row": 27, "column": 57}}, {"id": 55, "type": "identifier", "text": "MAX_AXES", "parent": 54, "children": [], "start_point": {"row": 27, "column": 49}, "end_point": {"row": 27, "column": 57}}, {"id": 56, "type": "declaration", "text": "MotionPipeline* _pMotionPipeline;", "parent": 25, "children": [57, 58], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 37}}, {"id": 57, "type": "type_identifier", "text": "MotionPipeline", "parent": 56, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 18}}, {"id": 58, "type": "pointer_declarator", "text": "* _pMotionPipeline", "parent": 56, "children": [59, 60], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 36}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 19}}, {"id": 60, "type": "identifier", "text": "_pMotionPipeline", "parent": 58, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 36}}, {"id": 61, "type": "declaration", "text": "RampGenIO _rampGenIO;", "parent": 25, "children": [62, 63], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 25}}, {"id": 62, "type": "type_identifier", "text": "RampGenIO", "parent": 61, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 63, "type": "identifier", "text": "_rampGenIO", "parent": 61, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 24}}, {"id": 64, "type": "labeled_statement", "text": "RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;", "parent": 25, "children": [65, 66], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 52}}, {"id": 65, "type": "statement_identifier", "text": "RobotConsts", "parent": 64, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 15}}, {"id": 66, "type": "declaration", "text": "RawMotionHwInfo_t _rawMotionHwInfo;", "parent": 64, "children": [67, 68], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 52}}, {"id": 67, "type": "type_identifier", "text": "RawMotionHwInfo_t", "parent": 66, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 34}}, {"id": 68, "type": "identifier", "text": "_rawMotionHwInfo", "parent": 66, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 51}}, {"id": 69, "type": "declaration", "text": "static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;", "parent": 25, "children": [70, 72, 73], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 57}}, {"id": 70, "type": "type_qualifier", "text": "constexpr", "parent": 69, "children": [71], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 20}}, {"id": 71, "type": "constexpr", "text": "constexpr", "parent": 70, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 20}}, {"id": 72, "type": "primitive_type", "text": "uint32_t", "parent": 69, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 29}}, {"id": 73, "type": "init_declarator", "text": "MIN_STEP_RATE_PER_SEC = 10", "parent": 69, "children": [74, 75, 76], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 56}}, {"id": 74, "type": "identifier", "text": "MIN_STEP_RATE_PER_SEC", "parent": 73, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 51}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 40, "column": 52}, "end_point": {"row": 40, "column": 53}}, {"id": 76, "type": "number_literal", "text": "10", "parent": 73, "children": [], "start_point": {"row": 40, "column": 54}, "end_point": {"row": 40, "column": 56}}, {"id": 77, "type": "declaration", "text": "static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);", "parent": 25, "children": [78, 80, 81], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 154}}, {"id": 78, "type": "type_qualifier", "text": "constexpr", "parent": 77, "children": [79], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 20}}, {"id": 79, "type": "constexpr", "text": "constexpr", "parent": 78, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 20}}, {"id": 80, "type": "primitive_type", "text": "uint32_t", "parent": 77, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 29}}, {"id": 81, "type": "init_declarator", "text": "MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)", "parent": 77, "children": [82, 83, 84], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 153}}, {"id": 82, "type": "identifier", "text": "MIN_STEP_RATE_PER_TTICKS", "parent": 81, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 54}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 56}}, {"id": 84, "type": "call_expression", "text": "uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)", "parent": 81, "children": [85, 86], "start_point": {"row": 41, "column": 57}, "end_point": {"row": 41, "column": 153}}, {"id": 85, "type": "identifier", "text": "uint32_t", "parent": 84, "children": [], "start_point": {"row": 41, "column": 57}, "end_point": {"row": 41, "column": 65}}, {"id": 86, "type": "argument_list", "text": "((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC)", "parent": 84, "children": [87, 100], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 153}}, {"id": 87, "type": "binary_expression", "text": "(MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock", "parent": 86, "children": [88, 98, 99], "start_point": {"row": 41, "column": 66}, "end_point": {"row": 41, "column": 137}}, {"id": 88, "type": "parenthesized_expression", "text": "(MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE)", "parent": 87, "children": [89, 96], "start_point": {"row": 41, "column": 66}, "end_point": {"row": 41, "column": 123}}, {"id": 89, "type": "binary_expression", "text": "MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock", "parent": 88, "children": [90, 94, 95], "start_point": {"row": 41, "column": 67}, "end_point": {"row": 41, "column": 108}}, {"id": 90, "type": "binary_expression", "text": "MIN_STEP_RATE_PER_SEC * 1.0", "parent": 89, "children": [91, 92, 93], "start_point": {"row": 41, "column": 67}, "end_point": {"row": 41, "column": 94}}, {"id": 91, "type": "identifier", "text": "MIN_STEP_RATE_PER_SEC", "parent": 90, "children": [], "start_point": {"row": 41, "column": 67}, "end_point": {"row": 41, "column": 88}}, {"id": 92, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 41, "column": 89}, "end_point": {"row": 41, "column": 90}}, {"id": 93, "type": "number_literal", "text": "1.0", "parent": 90, "children": [], "start_point": {"row": 41, "column": 91}, "end_point": {"row": 41, "column": 94}}, {"id": 94, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 41, "column": 95}, "end_point": {"row": 41, "column": 96}}, {"id": 95, "type": "identifier", "text": "MotionBlock", "parent": 89, "children": [], "start_point": {"row": 41, "column": 97}, "end_point": {"row": 41, "column": 108}}, {"id": 96, "type": "ERROR", "text": "::TTICKS_VALUE", "parent": 88, "children": [97], "start_point": {"row": 41, "column": 108}, "end_point": {"row": 41, "column": 122}}, {"id": 97, "type": "identifier", "text": "TTICKS_VALUE", "parent": 96, "children": [], "start_point": {"row": 41, "column": 110}, "end_point": {"row": 41, "column": 122}}, {"id": 98, "type": "/", "text": "/", "parent": 87, "children": [], "start_point": {"row": 41, "column": 124}, "end_point": {"row": 41, "column": 125}}, {"id": 99, "type": "identifier", "text": "MotionBlock", "parent": 87, "children": [], "start_point": {"row": 41, "column": 126}, "end_point": {"row": 41, "column": 137}}, {"id": 100, "type": "ERROR", "text": "::TICKS_PER_SEC", "parent": 86, "children": [101], "start_point": {"row": 41, "column": 137}, "end_point": {"row": 41, "column": 152}}, {"id": 101, "type": "identifier", "text": "TICKS_PER_SEC", "parent": 100, "children": [], "start_point": {"row": 41, "column": 139}, "end_point": {"row": 41, "column": 152}}, {"id": 102, "type": "preproc_ifdef", "text": "#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif", "parent": 25, "children": [103, 104, 105, 110], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 103, "type": "#ifdef", "text": "#ifdef", "parent": 102, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 104, "type": "identifier", "text": "INSTRUMENT_MOTION_ACTUATOR_ENABLE", "parent": 102, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 40}}, {"id": 105, "type": "declaration", "text": "MotionInstrumentation *_pMotionInstrumentation;", "parent": 102, "children": [106, 107], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 51}}, {"id": 106, "type": "type_identifier", "text": "MotionInstrumentation", "parent": 105, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 25}}, {"id": 107, "type": "pointer_declarator", "text": "*_pMotionInstrumentation", "parent": 105, "children": [108, 109], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 50}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 27}}, {"id": 109, "type": "identifier", "text": "_pMotionInstrumentation", "parent": 107, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 50}}, {"id": 110, "type": "#endif", "text": "#endif", "parent": 102, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 111, "type": "preproc_ifdef", "text": "#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif", "parent": 25, "children": [112, 113, 114, 119, 127, 143], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 112, "type": "#ifdef", "text": "#ifdef", "parent": 111, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 113, "type": "identifier", "text": "USE_ESP32_TIMER_ISR", "parent": 111, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 26}}, {"id": 114, "type": "declaration", "text": "hw_timer_t *_isrMotionTimer;", "parent": 111, "children": [115, 116], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 32}}, {"id": 115, "type": "type_identifier", "text": "hw_timer_t", "parent": 114, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 14}}, {"id": 116, "type": "pointer_declarator", "text": "*_isrMotionTimer", "parent": 114, "children": [117, 118], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 31}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 16}}, {"id": 118, "type": "identifier", "text": "_isrMotionTimer", "parent": 116, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 31}}, {"id": 119, "type": "declaration", "text": "static constexpr uint32_t CLOCK_RATE_MHZ = 80;", "parent": 111, "children": [120, 122, 123], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 50}}, {"id": 120, "type": "type_qualifier", "text": "constexpr", "parent": 119, "children": [121], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 20}}, {"id": 121, "type": "constexpr", "text": "constexpr", "parent": 120, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 20}}, {"id": 122, "type": "primitive_type", "text": "uint32_t", "parent": 119, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 29}}, {"id": 123, "type": "init_declarator", "text": "CLOCK_RATE_MHZ = 80", "parent": 119, "children": [124, 125, 126], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 49}}, {"id": 124, "type": "identifier", "text": "CLOCK_RATE_MHZ", "parent": 123, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 44}}, {"id": 125, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 46}}, {"id": 126, "type": "number_literal", "text": "80", "parent": 123, "children": [], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 49}}, {"id": 127, "type": "declaration", "text": "static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);", "parent": 111, "children": [128, 130, 131], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 112}}, {"id": 128, "type": "type_qualifier", "text": "constexpr", "parent": 127, "children": [129], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 20}}, {"id": 129, "type": "constexpr", "text": "constexpr", "parent": 128, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 20}}, {"id": 130, "type": "primitive_type", "text": "uint32_t", "parent": 127, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 29}}, {"id": 131, "type": "init_declarator", "text": "DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l)", "parent": 127, "children": [132, 133, 134], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 111}}, {"id": 132, "type": "identifier", "text": "DIRECT_STEP_ISR_TIMER_PERIOD_US", "parent": 131, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 61}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 52, "column": 62}, "end_point": {"row": 52, "column": 63}}, {"id": 134, "type": "call_expression", "text": "uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l)", "parent": 131, "children": [135, 136], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 111}}, {"id": 135, "type": "identifier", "text": "uint32_t", "parent": 134, "children": [], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 72}}, {"id": 136, "type": "argument_list", "text": "(MotionBlock::TICK_INTERVAL_NS / 1000l)", "parent": 134, "children": [137, 139], "start_point": {"row": 52, "column": 72}, "end_point": {"row": 52, "column": 111}}, {"id": 137, "type": "ERROR", "text": "MotionBlock::", "parent": 136, "children": [138], "start_point": {"row": 52, "column": 73}, "end_point": {"row": 52, "column": 86}}, {"id": 138, "type": "identifier", "text": "MotionBlock", "parent": 137, "children": [], "start_point": {"row": 52, "column": 73}, "end_point": {"row": 52, "column": 84}}, {"id": 139, "type": "binary_expression", "text": "TICK_INTERVAL_NS / 1000l", "parent": 136, "children": [140, 141, 142], "start_point": {"row": 52, "column": 86}, "end_point": {"row": 52, "column": 110}}, {"id": 140, "type": "identifier", "text": "TICK_INTERVAL_NS", "parent": 139, "children": [], "start_point": {"row": 52, "column": 86}, "end_point": {"row": 52, "column": 102}}, {"id": 141, "type": "/", "text": "/", "parent": 139, "children": [], "start_point": {"row": 52, "column": 103}, "end_point": {"row": 52, "column": 104}}, {"id": 142, "type": "number_literal", "text": "1000l", "parent": 139, "children": [], "start_point": {"row": 52, "column": 105}, "end_point": {"row": 52, "column": 110}}, {"id": 143, "type": "#endif", "text": "#endif", "parent": 111, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 144, "type": "declaration", "text": "bool _isrTimerStarted;", "parent": 25, "children": [145, 146], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 26}}, {"id": 145, "type": "primitive_type", "text": "bool", "parent": 144, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 146, "type": "identifier", "text": "_isrTimerStarted", "parent": 144, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 25}}, {"id": 147, "type": "labeled_statement", "text": "private:\n // Execution info for the currently executing block\n bool _isEnabled;", "parent": 25, "children": [148], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 58, "column": 20}}, {"id": 148, "type": "declaration", "text": "bool _isEnabled;", "parent": 147, "children": [149, 150], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 20}}, {"id": 149, "type": "primitive_type", "text": "bool", "parent": 148, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 150, "type": "identifier", "text": "_isEnabled", "parent": 148, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 19}}, {"id": 151, "type": "declaration", "text": "bool _rampGenEnabled;", "parent": 25, "children": [152, 153], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 25}}, {"id": 152, "type": "primitive_type", "text": "bool", "parent": 151, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 8}}, {"id": 153, "type": "identifier", "text": "_rampGenEnabled", "parent": 151, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 24}}, {"id": 154, "type": "declaration", "text": "bool _endStopReached;", "parent": 25, "children": [155, 156], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 25}}, {"id": 155, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 156, "type": "identifier", "text": "_endStopReached", "parent": 154, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 24}}, {"id": 157, "type": "declaration", "text": "int _lastDoneNumberedCmdIdx;", "parent": 25, "children": [158, 159], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 32}}, {"id": 158, "type": "primitive_type", "text": "int", "parent": 157, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 7}}, {"id": 159, "type": "identifier", "text": "_lastDoneNumberedCmdIdx", "parent": 157, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 31}}, {"id": 160, "type": "declaration", "text": "uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];", "parent": 25, "children": [161, 162], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 51}}, {"id": 161, "type": "primitive_type", "text": "uint32_t", "parent": 160, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 12}}, {"id": 162, "type": "array_declarator", "text": "_stepsTotalAbs[RobotConsts::MAX_AXES]", "parent": 160, "children": [163, 164, 165], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 50}}, {"id": 163, "type": "identifier", "text": "_stepsTotalAbs", "parent": 162, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 27}}, {"id": 164, "type": "identifier", "text": "RobotConsts", "parent": 162, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 39}}, {"id": 165, "type": "ERROR", "text": "::MAX_AXES", "parent": 162, "children": [166], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 49}}, {"id": 166, "type": "identifier", "text": "MAX_AXES", "parent": 165, "children": [], "start_point": {"row": 66, "column": 41}, "end_point": {"row": 66, "column": 49}}, {"id": 167, "type": "declaration", "text": "uint32_t _curStepCount[RobotConsts::MAX_AXES];", "parent": 25, "children": [168, 169], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 50}}, {"id": 168, "type": "primitive_type", "text": "uint32_t", "parent": 167, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 12}}, {"id": 169, "type": "array_declarator", "text": "_curStepCount[RobotConsts::MAX_AXES]", "parent": 167, "children": [170, 171, 172], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 49}}, {"id": 170, "type": "identifier", "text": "_curStepCount", "parent": 169, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 26}}, {"id": 171, "type": "identifier", "text": "RobotConsts", "parent": 169, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 38}}, {"id": 172, "type": "ERROR", "text": "::MAX_AXES", "parent": 169, "children": [173], "start_point": {"row": 67, "column": 38}, "end_point": {"row": 67, "column": 48}}, {"id": 173, "type": "identifier", "text": "MAX_AXES", "parent": 172, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 48}}, {"id": 174, "type": "declaration", "text": "uint32_t _curStepRatePerTTicks;", "parent": 25, "children": [175, 176], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 35}}, {"id": 175, "type": "primitive_type", "text": "uint32_t", "parent": 174, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 12}}, {"id": 176, "type": "identifier", "text": "_curStepRatePerTTicks", "parent": 174, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 34}}, {"id": 177, "type": "declaration", "text": "uint32_t _curAccumulatorStep;", "parent": 25, "children": [178, 179], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 33}}, {"id": 178, "type": "primitive_type", "text": "uint32_t", "parent": 177, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 12}}, {"id": 179, "type": "identifier", "text": "_curAccumulatorStep", "parent": 177, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 32}}, {"id": 180, "type": "declaration", "text": "uint32_t _curAccumulatorNS;", "parent": 25, "children": [181, 182], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 31}}, {"id": 181, "type": "primitive_type", "text": "uint32_t", "parent": 180, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 12}}, {"id": 182, "type": "identifier", "text": "_curAccumulatorNS", "parent": 180, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 30}}, {"id": 183, "type": "declaration", "text": "uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];", "parent": 25, "children": [184, 185], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 60}}, {"id": 184, "type": "primitive_type", "text": "uint32_t", "parent": 183, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 12}}, {"id": 185, "type": "array_declarator", "text": "_curAccumulatorRelative[RobotConsts::MAX_AXES]", "parent": 183, "children": [186, 187, 188], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 59}}, {"id": 186, "type": "identifier", "text": "_curAccumulatorRelative", "parent": 185, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 36}}, {"id": 187, "type": "identifier", "text": "RobotConsts", "parent": 185, "children": [], "start_point": {"row": 73, "column": 37}, "end_point": {"row": 73, "column": 48}}, {"id": 188, "type": "ERROR", "text": "::MAX_AXES", "parent": 185, "children": [189], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 58}}, {"id": 189, "type": "identifier", "text": "MAX_AXES", "parent": 188, "children": [], "start_point": {"row": 73, "column": 50}, "end_point": {"row": 73, "column": 58}}, {"id": 190, "type": "declaration", "text": "int _endStopCheckNum;", "parent": 25, "children": [191, 192], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 25}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 190, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 7}}, {"id": 192, "type": "identifier", "text": "_endStopCheckNum", "parent": 190, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 24}}, {"id": 193, "type": "struct_specifier", "text": "struct EndStopChecks\n {\n int pin;\n bool val;\n }", "parent": 25, "children": [194, 195], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 80, "column": 5}}, {"id": 194, "type": "struct", "text": "struct", "parent": 193, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 195, "type": "type_identifier", "text": "EndStopChecks", "parent": 193, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 24}}, {"id": 196, "type": "field_declaration", "text": "int pin;", "parent": 193, "children": [197, 198], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 16}}, {"id": 197, "type": "primitive_type", "text": "int", "parent": 196, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 11}}, {"id": 198, "type": "field_identifier", "text": "pin", "parent": 196, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 15}}, {"id": 199, "type": "field_declaration", "text": "bool val;", "parent": 193, "children": [200, 201], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 17}}, {"id": 200, "type": "primitive_type", "text": "bool", "parent": 199, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 201, "type": "field_identifier", "text": "val", "parent": 199, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 16}}, {"id": 202, "type": "declaration", "text": "EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];", "parent": 25, "children": [203, 204], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 56}}, {"id": 203, "type": "type_identifier", "text": "EndStopChecks", "parent": 202, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 17}}, {"id": 204, "type": "array_declarator", "text": "_endStopChecks[RobotConsts::MAX_AXES]", "parent": 202, "children": [205, 206, 207], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 55}}, {"id": 205, "type": "identifier", "text": "_endStopChecks", "parent": 204, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 32}}, {"id": 206, "type": "identifier", "text": "RobotConsts", "parent": 204, "children": [], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 44}}, {"id": 207, "type": "ERROR", "text": "::MAX_AXES", "parent": 204, "children": [208], "start_point": {"row": 81, "column": 44}, "end_point": {"row": 81, "column": 54}}, {"id": 208, "type": "identifier", "text": "MAX_AXES", "parent": 207, "children": [], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 54}}, {"id": 209, "type": "labeled_statement", "text": "public:\n RampGenerator(MotionPipeline* pMotionPipeline);", "parent": 25, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 84, "column": 51}}, {"id": 210, "type": "call_expression", "text": "RampGenerator(MotionPipeline* pMotionPipeline)", "parent": 209, "children": [211, 212], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 50}}, {"id": 211, "type": "identifier", "text": "RampGenerator", "parent": 210, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 17}}, {"id": 212, "type": "argument_list", "text": "(MotionPipeline* pMotionPipeline)", "parent": 210, "children": [213], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 50}}, {"id": 213, "type": "binary_expression", "text": "MotionPipeline* pMotionPipeline", "parent": 212, "children": [214, 215, 216], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 49}}, {"id": 214, "type": "identifier", "text": "MotionPipeline", "parent": 213, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 32}}, {"id": 215, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 33}}, {"id": 216, "type": "identifier", "text": "pMotionPipeline", "parent": 213, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 49}}, {"id": 217, "type": "declaration", "text": "void setInstrumentationMode(const char *testModeStr);", "parent": 25, "children": [218, 219], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 57}}, {"id": 218, "type": "primitive_type", "text": "void", "parent": 217, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 219, "type": "function_declarator", "text": "setInstrumentationMode(const char *testModeStr)", "parent": 217, "children": [220, 221], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 56}}, {"id": 220, "type": "identifier", "text": "setInstrumentationMode", "parent": 219, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 31}}, {"id": 221, "type": "parameter_list", "text": "(const char *testModeStr)", "parent": 219, "children": [222], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 56}}, {"id": 222, "type": "parameter_declaration", "text": "const char *testModeStr", "parent": 221, "children": [223, 224], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 55}}, {"id": 223, "type": "primitive_type", "text": "char", "parent": 222, "children": [], "start_point": {"row": 86, "column": 38}, "end_point": {"row": 86, "column": 42}}, {"id": 224, "type": "pointer_declarator", "text": "*testModeStr", "parent": 222, "children": [225, 226], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 55}}, {"id": 225, "type": "*", "text": "*", "parent": 224, "children": [], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 44}}, {"id": 226, "type": "identifier", "text": "testModeStr", "parent": 224, "children": [], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 55}}, {"id": 227, "type": "declaration", "text": "void deinit();", "parent": 25, "children": [228, 229], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 18}}, {"id": 228, "type": "primitive_type", "text": "void", "parent": 227, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 8}}, {"id": 229, "type": "function_declarator", "text": "deinit()", "parent": 227, "children": [230, 231], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 17}}, {"id": 230, "type": "identifier", "text": "deinit", "parent": 229, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 15}}, {"id": 231, "type": "parameter_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 17}}, {"id": 232, "type": "declaration", "text": "void configure(bool rampGenEnabled);", "parent": 25, "children": [233, 234], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 40}}, {"id": 233, "type": "primitive_type", "text": "void", "parent": 232, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 8}}, {"id": 234, "type": "function_declarator", "text": "configure(bool rampGenEnabled)", "parent": 232, "children": [235, 236], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 39}}, {"id": 235, "type": "identifier", "text": "configure", "parent": 234, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 18}}, {"id": 236, "type": "parameter_list", "text": "(bool rampGenEnabled)", "parent": 234, "children": [237], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 39}}, {"id": 237, "type": "parameter_declaration", "text": "bool rampGenEnabled", "parent": 236, "children": [238, 239], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 38}}, {"id": 238, "type": "primitive_type", "text": "bool", "parent": 237, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 23}}, {"id": 239, "type": "identifier", "text": "rampGenEnabled", "parent": 237, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 38}}, {"id": 240, "type": "function_definition", "text": "bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }", "parent": 25, "children": [241, 242], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 92, "column": 5}}, {"id": 241, "type": "primitive_type", "text": "bool", "parent": 240, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 242, "type": "function_declarator", "text": "configureAxis(int axisIdx, const char *axisJSON)", "parent": 240, "children": [243, 244], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 57}}, {"id": 243, "type": "identifier", "text": "configureAxis", "parent": 242, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 22}}, {"id": 244, "type": "parameter_list", "text": "(int axisIdx, const char *axisJSON)", "parent": 242, "children": [245, 248], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 57}}, {"id": 245, "type": "parameter_declaration", "text": "int axisIdx", "parent": 244, "children": [246, 247], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 34}}, {"id": 246, "type": "primitive_type", "text": "int", "parent": 245, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 26}}, {"id": 247, "type": "identifier", "text": "axisIdx", "parent": 245, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 34}}, {"id": 248, "type": "parameter_declaration", "text": "const char *axisJSON", "parent": 244, "children": [249, 250], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 56}}, {"id": 249, "type": "primitive_type", "text": "char", "parent": 248, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 46}}, {"id": 250, "type": "pointer_declarator", "text": "*axisJSON", "parent": 248, "children": [251, 252], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 56}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 48}}, {"id": 252, "type": "identifier", "text": "axisJSON", "parent": 250, "children": [], "start_point": {"row": 89, "column": 48}, "end_point": {"row": 89, "column": 56}}, {"id": 253, "type": "return_statement", "text": "return _rampGenIO.configureAxis(axisIdx, axisJSON);", "parent": 240, "children": [254], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 59}}, {"id": 254, "type": "call_expression", "text": "_rampGenIO.configureAxis(axisIdx, axisJSON)", "parent": 253, "children": [255, 258], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 58}}, {"id": 255, "type": "field_expression", "text": "_rampGenIO.configureAxis", "parent": 254, "children": [256, 257], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 39}}, {"id": 256, "type": "identifier", "text": "_rampGenIO", "parent": 255, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 25}}, {"id": 257, "type": "field_identifier", "text": "configureAxis", "parent": 255, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 39}}, {"id": 258, "type": "argument_list", "text": "(axisIdx, axisJSON)", "parent": 254, "children": [259, 260], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 58}}, {"id": 259, "type": "identifier", "text": "axisIdx", "parent": 258, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 47}}, {"id": 260, "type": "identifier", "text": "axisJSON", "parent": 258, "children": [], "start_point": {"row": 91, "column": 49}, "end_point": {"row": 91, "column": 57}}, {"id": 261, "type": "declaration", "text": "void stop();", "parent": 25, "children": [262, 263], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 16}}, {"id": 262, "type": "primitive_type", "text": "void", "parent": 261, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 263, "type": "function_declarator", "text": "stop()", "parent": 261, "children": [264, 265], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 15}}, {"id": 264, "type": "identifier", "text": "stop", "parent": 263, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 13}}, {"id": 265, "type": "parameter_list", "text": "()", "parent": 263, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 15}}, {"id": 266, "type": "declaration", "text": "void pause(bool pauseIt);", "parent": 25, "children": [267, 268], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 29}}, {"id": 267, "type": "primitive_type", "text": "void", "parent": 266, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 8}}, {"id": 268, "type": "function_declarator", "text": "pause(bool pauseIt)", "parent": 266, "children": [269, 270], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 28}}, {"id": 269, "type": "identifier", "text": "pause", "parent": 268, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 14}}, {"id": 270, "type": "parameter_list", "text": "(bool pauseIt)", "parent": 268, "children": [271], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 28}}, {"id": 271, "type": "parameter_declaration", "text": "bool pauseIt", "parent": 270, "children": [272, 273], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 27}}, {"id": 272, "type": "primitive_type", "text": "bool", "parent": 271, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 19}}, {"id": 273, "type": "identifier", "text": "pauseIt", "parent": 271, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 27}}, {"id": 274, "type": "declaration", "text": "void resetTotalStepPosition();", "parent": 25, "children": [275, 276], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 34}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 276, "type": "function_declarator", "text": "resetTotalStepPosition()", "parent": 274, "children": [277, 278], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 33}}, {"id": 277, "type": "identifier", "text": "resetTotalStepPosition", "parent": 276, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 31}}, {"id": 278, "type": "parameter_list", "text": "()", "parent": 276, "children": [], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 96, "column": 33}}, {"id": 279, "type": "declaration", "text": "void getTotalStepPosition(AxisInt32s& actuatorPos);", "parent": 25, "children": [280, 281], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 55}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 279, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 8}}, {"id": 281, "type": "function_declarator", "text": "getTotalStepPosition(AxisInt32s& actuatorPos)", "parent": 279, "children": [282, 283], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 54}}, {"id": 282, "type": "identifier", "text": "getTotalStepPosition", "parent": 281, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 29}}, {"id": 283, "type": "parameter_list", "text": "(AxisInt32s& actuatorPos)", "parent": 281, "children": [284], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 54}}, {"id": 284, "type": "parameter_declaration", "text": "AxisInt32s& actuatorPos", "parent": 283, "children": [285, 286], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 53}}, {"id": 285, "type": "type_identifier", "text": "AxisInt32s", "parent": 284, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 40}}, {"id": 286, "type": "identifier", "text": "actuatorPos", "parent": 284, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 53}}, {"id": 287, "type": "declaration", "text": "void setTotalStepPosition(int axisIdx, int32_t stepPos);", "parent": 25, "children": [288, 289], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 60}}, {"id": 288, "type": "primitive_type", "text": "void", "parent": 287, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 8}}, {"id": 289, "type": "function_declarator", "text": "setTotalStepPosition(int axisIdx, int32_t stepPos)", "parent": 287, "children": [290, 291], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 59}}, {"id": 290, "type": "identifier", "text": "setTotalStepPosition", "parent": 289, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 29}}, {"id": 291, "type": "parameter_list", "text": "(int axisIdx, int32_t stepPos)", "parent": 289, "children": [292, 295], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 59}}, {"id": 292, "type": "parameter_declaration", "text": "int axisIdx", "parent": 291, "children": [293, 294], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 41}}, {"id": 293, "type": "primitive_type", "text": "int", "parent": 292, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 33}}, {"id": 294, "type": "identifier", "text": "axisIdx", "parent": 292, "children": [], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 41}}, {"id": 295, "type": "parameter_declaration", "text": "int32_t stepPos", "parent": 291, "children": [296, 297], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 58}}, {"id": 296, "type": "primitive_type", "text": "int32_t", "parent": 295, "children": [], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 50}}, {"id": 297, "type": "identifier", "text": "stepPos", "parent": 295, "children": [], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 58}}, {"id": 298, "type": "declaration", "text": "void clearEndstopReached();", "parent": 25, "children": [299, 300], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 31}}, {"id": 299, "type": "primitive_type", "text": "void", "parent": 298, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 300, "type": "function_declarator", "text": "clearEndstopReached()", "parent": 298, "children": [301, 302], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 30}}, {"id": 301, "type": "identifier", "text": "clearEndstopReached", "parent": 300, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 28}}, {"id": 302, "type": "parameter_list", "text": "()", "parent": 300, "children": [], "start_point": {"row": 99, "column": 28}, "end_point": {"row": 99, "column": 30}}, {"id": 303, "type": "function_definition", "text": "void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }", "parent": 25, "children": [304, 305], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 103, "column": 5}}, {"id": 304, "type": "primitive_type", "text": "void", "parent": 303, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 305, "type": "function_declarator", "text": "getEndStopStatus(AxisMinMaxBools& axisEndStopVals)", "parent": 303, "children": [306, 307], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 59}}, {"id": 306, "type": "identifier", "text": "getEndStopStatus", "parent": 305, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 25}}, {"id": 307, "type": "parameter_list", "text": "(AxisMinMaxBools& axisEndStopVals)", "parent": 305, "children": [308], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 59}}, {"id": 308, "type": "parameter_declaration", "text": "AxisMinMaxBools& axisEndStopVals", "parent": 307, "children": [309, 310], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 58}}, {"id": 309, "type": "type_identifier", "text": "AxisMinMaxBools", "parent": 308, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 41}}, {"id": 310, "type": "identifier", "text": "axisEndStopVals", "parent": 308, "children": [], "start_point": {"row": 100, "column": 43}, "end_point": {"row": 100, "column": 58}}, {"id": 311, "type": "call_expression", "text": "_rampGenIO.getEndStopStatus(axisEndStopVals)", "parent": 303, "children": [312, 315], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 52}}, {"id": 312, "type": "field_expression", "text": "_rampGenIO.getEndStopStatus", "parent": 311, "children": [313, 314], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 35}}, {"id": 313, "type": "identifier", "text": "_rampGenIO", "parent": 312, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 18}}, {"id": 314, "type": "field_identifier", "text": "getEndStopStatus", "parent": 312, "children": [], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 35}}, {"id": 315, "type": "argument_list", "text": "(axisEndStopVals)", "parent": 311, "children": [316], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 52}}, {"id": 316, "type": "identifier", "text": "axisEndStopVals", "parent": 315, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 51}}, {"id": 317, "type": "declaration", "text": "bool isEndStopReached();", "parent": 25, "children": [318, 319], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 28}}, {"id": 318, "type": "primitive_type", "text": "bool", "parent": 317, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 8}}, {"id": 319, "type": "function_declarator", "text": "isEndStopReached()", "parent": 317, "children": [320, 321], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 27}}, {"id": 320, "type": "identifier", "text": "isEndStopReached", "parent": 319, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 25}}, {"id": 321, "type": "parameter_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 27}}, {"id": 322, "type": "declaration", "text": "int getLastCompletedNumberedCmdIdx();", "parent": 25, "children": [323, 324], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 41}}, {"id": 323, "type": "primitive_type", "text": "int", "parent": 322, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 7}}, {"id": 324, "type": "function_declarator", "text": "getLastCompletedNumberedCmdIdx()", "parent": 322, "children": [325, 326], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 40}}, {"id": 325, "type": "identifier", "text": "getLastCompletedNumberedCmdIdx", "parent": 324, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 38}}, {"id": 326, "type": "parameter_list", "text": "()", "parent": 324, "children": [], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 40}}, {"id": 327, "type": "declaration", "text": "void process();", "parent": 25, "children": [328, 329], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 19}}, {"id": 328, "type": "primitive_type", "text": "void", "parent": 327, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 8}}, {"id": 329, "type": "function_declarator", "text": "process()", "parent": 327, "children": [330, 331], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 18}}, {"id": 330, "type": "identifier", "text": "process", "parent": 329, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 16}}, {"id": 331, "type": "parameter_list", "text": "()", "parent": 329, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 18}}, {"id": 332, "type": "declaration", "text": "String getDebugStr();", "parent": 25, "children": [333, 334], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 25}}, {"id": 333, "type": "type_identifier", "text": "String", "parent": 332, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 10}}, {"id": 334, "type": "function_declarator", "text": "getDebugStr()", "parent": 332, "children": [335, 336], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 24}}, {"id": 335, "type": "identifier", "text": "getDebugStr", "parent": 334, "children": [], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 22}}, {"id": 336, "type": "parameter_list", "text": "()", "parent": 334, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 24}}, {"id": 337, "type": "declaration", "text": "void showDebug();", "parent": 25, "children": [338, 339], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 21}}, {"id": 338, "type": "primitive_type", "text": "void", "parent": 337, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 339, "type": "function_declarator", "text": "showDebug()", "parent": 337, "children": [340, 341], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 20}}, {"id": 340, "type": "identifier", "text": "showDebug", "parent": 339, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 18}}, {"id": 341, "type": "parameter_list", "text": "()", "parent": 339, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 20}}, {"id": 342, "type": "labeled_statement", "text": "private:\n static void _staticISRStepperMotion();", "parent": 25, "children": [343], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 111, "column": 42}}, {"id": 343, "type": "declaration", "text": "static void _staticISRStepperMotion();", "parent": 342, "children": [344, 345], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 42}}, {"id": 344, "type": "primitive_type", "text": "void", "parent": 343, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 15}}, {"id": 345, "type": "function_declarator", "text": "_staticISRStepperMotion()", "parent": 343, "children": [346, 347], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 41}}, {"id": 346, "type": "identifier", "text": "_staticISRStepperMotion", "parent": 345, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 39}}, {"id": 347, "type": "parameter_list", "text": "()", "parent": 345, "children": [], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 41}}, {"id": 348, "type": "declaration", "text": "void isrStepperMotion();", "parent": 25, "children": [349, 350], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 28}}, {"id": 349, "type": "primitive_type", "text": "void", "parent": 348, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 8}}, {"id": 350, "type": "function_declarator", "text": "isrStepperMotion()", "parent": 348, "children": [351, 352], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 27}}, {"id": 351, "type": "identifier", "text": "isrStepperMotion", "parent": 350, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 25}}, {"id": 352, "type": "parameter_list", "text": "()", "parent": 350, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 27}}, {"id": 353, "type": "declaration", "text": "bool handleStepEnd();", "parent": 25, "children": [354, 355], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 25}}, {"id": 354, "type": "primitive_type", "text": "bool", "parent": 353, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 8}}, {"id": 355, "type": "function_declarator", "text": "handleStepEnd()", "parent": 353, "children": [356, 357], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 24}}, {"id": 356, "type": "identifier", "text": "handleStepEnd", "parent": 355, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 22}}, {"id": 357, "type": "parameter_list", "text": "()", "parent": 355, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 24}}, {"id": 358, "type": "declaration", "text": "void setupNewBlock(MotionBlock *pBlock);", "parent": 25, "children": [359, 360], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 44}}, {"id": 359, "type": "primitive_type", "text": "void", "parent": 358, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 8}}, {"id": 360, "type": "function_declarator", "text": "setupNewBlock(MotionBlock *pBlock)", "parent": 358, "children": [361, 362], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 43}}, {"id": 361, "type": "identifier", "text": "setupNewBlock", "parent": 360, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 22}}, {"id": 362, "type": "parameter_list", "text": "(MotionBlock *pBlock)", "parent": 360, "children": [363], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 43}}, {"id": 363, "type": "parameter_declaration", "text": "MotionBlock *pBlock", "parent": 362, "children": [364, 365], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 42}}, {"id": 364, "type": "type_identifier", "text": "MotionBlock", "parent": 363, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 34}}, {"id": 365, "type": "pointer_declarator", "text": "*pBlock", "parent": 363, "children": [366, 367], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 42}}, {"id": 366, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 36}}, {"id": 367, "type": "identifier", "text": "pBlock", "parent": 365, "children": [], "start_point": {"row": 114, "column": 36}, "end_point": {"row": 114, "column": 42}}, {"id": 368, "type": "declaration", "text": "void updateMSAccumulator(MotionBlock *pBlock);", "parent": 25, "children": [369, 370], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 50}}, {"id": 369, "type": "primitive_type", "text": "void", "parent": 368, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 8}}, {"id": 370, "type": "function_declarator", "text": "updateMSAccumulator(MotionBlock *pBlock)", "parent": 368, "children": [371, 372], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 49}}, {"id": 371, "type": "identifier", "text": "updateMSAccumulator", "parent": 370, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 28}}, {"id": 372, "type": "parameter_list", "text": "(MotionBlock *pBlock)", "parent": 370, "children": [373], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 49}}, {"id": 373, "type": "parameter_declaration", "text": "MotionBlock *pBlock", "parent": 372, "children": [374, 375], "start_point": {"row": 115, "column": 29}, "end_point": {"row": 115, "column": 48}}, {"id": 374, "type": "type_identifier", "text": "MotionBlock", "parent": 373, "children": [], "start_point": {"row": 115, "column": 29}, "end_point": {"row": 115, "column": 40}}, {"id": 375, "type": "pointer_declarator", "text": "*pBlock", "parent": 373, "children": [376, 377], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 48}}, {"id": 376, "type": "*", "text": "*", "parent": 375, "children": [], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 42}}, {"id": 377, "type": "identifier", "text": "pBlock", "parent": 375, "children": [], "start_point": {"row": 115, "column": 42}, "end_point": {"row": 115, "column": 48}}, {"id": 378, "type": "declaration", "text": "bool handleStepMotion(MotionBlock *pBlock);", "parent": 25, "children": [379, 380], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 47}}, {"id": 379, "type": "primitive_type", "text": "bool", "parent": 378, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 8}}, {"id": 380, "type": "function_declarator", "text": "handleStepMotion(MotionBlock *pBlock)", "parent": 378, "children": [381, 382], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 46}}, {"id": 381, "type": "identifier", "text": "handleStepMotion", "parent": 380, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 25}}, {"id": 382, "type": "parameter_list", "text": "(MotionBlock *pBlock)", "parent": 380, "children": [383], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 46}}, {"id": 383, "type": "parameter_declaration", "text": "MotionBlock *pBlock", "parent": 382, "children": [384, 385], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 45}}, {"id": 384, "type": "type_identifier", "text": "MotionBlock", "parent": 383, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 37}}, {"id": 385, "type": "pointer_declarator", "text": "*pBlock", "parent": 383, "children": [386, 387], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 45}}, {"id": 386, "type": "*", "text": "*", "parent": 385, "children": [], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 39}}, {"id": 387, "type": "identifier", "text": "pBlock", "parent": 385, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 45}}, {"id": 388, "type": "declaration", "text": "void endMotion(MotionBlock *pBlock);", "parent": 25, "children": [389, 390], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 40}}, {"id": 389, "type": "primitive_type", "text": "void", "parent": 388, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 8}}, {"id": 390, "type": "function_declarator", "text": "endMotion(MotionBlock *pBlock)", "parent": 388, "children": [391, 392], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 39}}, {"id": 391, "type": "identifier", "text": "endMotion", "parent": 390, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 18}}, {"id": 392, "type": "parameter_list", "text": "(MotionBlock *pBlock)", "parent": 390, "children": [393], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 39}}, {"id": 393, "type": "parameter_declaration", "text": "MotionBlock *pBlock", "parent": 392, "children": [394, 395], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 38}}, {"id": 394, "type": "type_identifier", "text": "MotionBlock", "parent": 393, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 30}}, {"id": 395, "type": "pointer_declarator", "text": "*pBlock", "parent": 393, "children": [396, 397], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 38}}, {"id": 396, "type": "*", "text": "*", "parent": 395, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 32}}, {"id": 397, "type": "identifier", "text": "pBlock", "parent": 395, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 38}}]}, "node_categories": {"declarations": {"functions": [25, 219, 229, 234, 240, 242, 263, 268, 276, 281, 289, 300, 303, 305, 319, 324, 329, 334, 339, 345, 350, 355, 360, 370, 380, 390], "variables": [23, 28, 33, 38, 47, 56, 61, 66, 69, 77, 105, 114, 119, 127, 144, 148, 151, 154, 157, 160, 167, 174, 177, 180, 183, 190, 196, 199, 202, 217, 222, 227, 232, 237, 245, 248, 261, 266, 271, 274, 279, 284, 287, 292, 295, 298, 308, 317, 322, 327, 332, 337, 343, 348, 353, 358, 363, 368, 373, 378, 383, 388, 393], "classes": [193, 194], "imports": [11, 12, 14, 15, 17, 18, 20, 21], "modules": [], "enums": []}, "statements": {"expressions": [84, 87, 88, 89, 90, 134, 139, 210, 213, 254, 255, 311, 312], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 10, 24, 26, 29, 32, 34, 37, 39, 43, 44, 46, 48, 52, 53, 55, 57, 60, 62, 63, 65, 67, 68, 70, 74, 78, 82, 85, 91, 95, 97, 99, 101, 102, 103, 104, 106, 109, 110, 111, 112, 113, 115, 118, 120, 124, 128, 132, 135, 138, 140, 143, 146, 150, 153, 156, 159, 163, 164, 166, 170, 171, 173, 176, 179, 182, 186, 187, 189, 192, 195, 198, 201, 203, 205, 206, 208, 211, 214, 216, 220, 226, 230, 235, 239, 243, 247, 252, 256, 257, 259, 260, 264, 269, 273, 277, 282, 285, 286, 290, 294, 297, 301, 306, 309, 310, 313, 314, 316, 320, 325, 330, 333, 335, 340, 346, 351, 356, 361, 364, 367, 371, 374, 377, 381, 384, 387, 391, 394, 397], "returns": [253], "exceptions": []}, "expressions": {"calls": [0], "literals": [13, 16, 19, 22, 76, 93, 126, 142], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "RampGenerator", "text_snippet": "class RampGenerator\n{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If th"}, {"node_id": 219, "universal_type": "function", "name": "unknown", "text_snippet": "setInstrumentationMode(const char *testModeStr)"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "deinit()"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "configure(bool rampGenEnabled)"}, {"node_id": 240, "universal_type": "function", "name": "configureAxis", "text_snippet": "bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis("}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "configureAxis(int axisIdx, const char *axisJSON)"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "stop()"}, {"node_id": 268, "universal_type": "function", "name": "unknown", "text_snippet": "pause(bool pauseIt)"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "resetTotalStepPosition()"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "getTotalStepPosition(AxisInt32s& actuatorPos)"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "setTotalStepPosition(int axisIdx, int32_t stepPos)"}, {"node_id": 300, "universal_type": "function", "name": "unknown", "text_snippet": "clearEndstopReached()"}, {"node_id": 303, "universal_type": "function", "name": "getEndStopStatus", "text_snippet": "void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(ax"}, {"node_id": 305, "universal_type": "function", "name": "unknown", "text_snippet": "getEndStopStatus(AxisMinMaxBools& axisEndStopVals)"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "isEndStopReached()"}, {"node_id": 324, "universal_type": "function", "name": "unknown", "text_snippet": "getLastCompletedNumberedCmdIdx()"}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "process()"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "getDebugStr()"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "showDebug()"}, {"node_id": 345, "universal_type": "function", "name": "unknown", "text_snippet": "_staticISRStepperMotion()"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "isrStepperMotion()"}, {"node_id": 355, "universal_type": "function", "name": "unknown", "text_snippet": "handleStepEnd()"}, {"node_id": 360, "universal_type": "function", "name": "unknown", "text_snippet": "setupNewBlock(MotionBlock *pBlock)"}, {"node_id": 370, "universal_type": "function", "name": "unknown", "text_snippet": "updateMSAccumulator(MotionBlock *pBlock)"}, {"node_id": 380, "universal_type": "function", "name": "unknown", "text_snippet": "handleStepMotion(MotionBlock *pBlock)"}, {"node_id": 390, "universal_type": "function", "name": "unknown", "text_snippet": "endMotion(MotionBlock *pBlock)"}], "class_declarations": [{"node_id": 193, "universal_type": "class", "name": "EndStopChecks", "text_snippet": "struct EndStopChecks\n {\n int pin;\n bool val;\n }"}, {"node_id": 194, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 11, "text": "#include <ArduinoLog.h>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include \"MotionInstrumentation.h\"\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include \"../MotionBlock.h\"\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include \"RampGenIO.h\"\n"}, {"node_id": 21, "text": "#include"}]}, "original_source_code": "// RBotFirmware\n// <NAME> 2016-2018\n\n#pragma once\n\n#ifdef ESP32\n#define USE_ESP32_TIMER_ISR 1\n#endif\n\n#include <ArduinoLog.h>\n#include \"MotionInstrumentation.h\"\n#include \"../MotionBlock.h\"\n#include \"RampGenIO.h\"\n\nclass MotionPipeline;\n\nclass RampGenerator\n{\nprivate:\n // This singleton\n static RampGenerator* _pThis;\n\n // If this is true nothing will move\n volatile bool _isPaused;\n\n // Steps moved in total and increment based on direction\n volatile int32_t _axisTotalSteps[RobotConsts::MAX_AXES];\n volatile int32_t _totalStepsInc[RobotConsts::MAX_AXES];\n\n // Pipeline of blocks to be processed\n MotionPipeline* _pMotionPipeline;\n\n // Motors and endstops\n RampGenIO _rampGenIO;\n\n // Raw access to motors and endstops\n RobotConsts::RawMotionHwInfo_t _rawMotionHwInfo;\n\n // This is to ensure that the robot never goes to 0 tick rate - which would leave it\n // immobile forever\n static constexpr uint32_t MIN_STEP_RATE_PER_SEC = 10;\n static constexpr uint32_t MIN_STEP_RATE_PER_TTICKS = uint32_t((MIN_STEP_RATE_PER_SEC * 1.0 * MotionBlock::TTICKS_VALUE) / MotionBlock::TICKS_PER_SEC);\n\n#ifdef INSTRUMENT_MOTION_ACTUATOR_ENABLE\n // Test code\n MotionInstrumentation *_pMotionInstrumentation;\n#endif\n\n#ifdef USE_ESP32_TIMER_ISR\n // ISR based interval timer\n hw_timer_t *_isrMotionTimer;\n static constexpr uint32_t CLOCK_RATE_MHZ = 80;\n static constexpr uint32_t DIRECT_STEP_ISR_TIMER_PERIOD_US = uint32_t(MotionBlock::TICK_INTERVAL_NS / 1000l);\n#endif\n bool _isrTimerStarted;\n\nprivate:\n // Execution info for the currently executing block\n bool _isEnabled;\n // Ramp generation enabled\n bool _rampGenEnabled;\n // End-stop reached\n bool _endStopReached;\n // Last completed numbered command\n int _lastDoneNumberedCmdIdx;\n // Steps\n uint32_t _stepsTotalAbs[RobotConsts::MAX_AXES];\n uint32_t _curStepCount[RobotConsts::MAX_AXES];\n // Current step rate (in steps per K ticks)\n uint32_t _curStepRatePerTTicks;\n // Accumulators for stepping and acceleration increments\n uint32_t _curAccumulatorStep;\n uint32_t _curAccumulatorNS;\n uint32_t _curAccumulatorRelative[RobotConsts::MAX_AXES];\n\n int _endStopCheckNum;\n struct EndStopChecks\n {\n int pin;\n bool val;\n };\n EndStopChecks _endStopChecks[RobotConsts::MAX_AXES];\n\npublic:\n RampGenerator(MotionPipeline* pMotionPipeline);\n // static void setRawMotionHwInfo(RobotConsts::RawMotionHwInfo_t &rawMotionHwInfo);\n void setInstrumentationMode(const char *testModeStr);\n void deinit();\n void configure(bool rampGenEnabled);\n bool configureAxis(int axisIdx, const char *axisJSON)\n {\n return _rampGenIO.configureAxis(axisIdx, axisJSON);\n }\n void stop();\n // static void clear();\n void pause(bool pauseIt);\n void resetTotalStepPosition();\n void getTotalStepPosition(AxisInt32s& actuatorPos);\n void setTotalStepPosition(int axisIdx, int32_t stepPos);\n void clearEndstopReached();\n void getEndStopStatus(AxisMinMaxBools& axisEndStopVals)\n {\n _rampGenIO.getEndStopStatus(axisEndStopVals);\n }\n bool isEndStopReached();\n int getLastCompletedNumberedCmdIdx();\n void process();\n String getDebugStr();\n void showDebug();\n\nprivate:\n static void _staticISRStepperMotion();\n void isrStepperMotion();\n bool handleStepEnd();\n void setupNewBlock(MotionBlock *pBlock);\n void updateMSAccumulator(MotionBlock *pBlock);\n bool handleStepMotion(MotionBlock *pBlock);\n void endMotion(MotionBlock *pBlock);\n};\n"}
81,016
c
#include <cph/string.h>//string_util.h ios_base::fmtflags ios_base::flags ( ) const {return _flags;} ios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) { fmtflags tmp = _flags; _flags = fmtfl; return tmp; } ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) { fmtflags tmp = _flags; _flags |= fmtfl; return tmp; } ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) { fmtflags tmp = _flags; _flags = (_flags & ~mask) | fmtfl; return tmp; } ios_base::fmtflags ios_base::unsetf ( ios_base::fmtflags mask ) { fmtflags tmp = _flags; _flags &= ~mask; return tmp; } streamsize_t ios_base::width ( ) const { return _width; } streamsize_t ios_base::width ( streamsize_t width ) { streamsize_t tmp = _width; _width = width; return tmp; } streamsize_t ios_base::precision ( ) const { return _prec; } streamsize_t ios_base::precision ( streamsize_t prec ) { streamsize_t tmp = _prec; _prec = prec; return tmp; } template<class char_type> bool basic_ios<char_type>::good () const { return _state == goodbit; } template<class char_type> bool basic_ios<char_type>::fail () const { return _state & failbit; } template<class char_type> bool basic_ios<char_type>::bad () const { return _state & badbit; } template<class char_type> bool basic_ios<char_type>::eof ( ) const { return (_state & eofbit) != 0; } template<class char_type> typename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( ) const { return _state; } template<class char_type> void basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) { _state |= state; } template<class char_type> void basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) { _state = state; } template<class char_type> char_type basic_ios<char_type>::fill ( ) const { return _fillch; } template<class char_type> char_type basic_ios<char_type>::fill ( char_type fillch ) { uint8_t tmp = _fillch; _fillch = fillch; return tmp; } template<class char_type> basic_ios<char_type>::operator const void* () const { return _state & (badbit | failbit) ? 0 : this; }
25.27
81
(translation_unit) "#include <cph/string.h>//string_util.h\n\nios_base::fmtflags ios_base::flags ( ) const\n{return _flags;}\n\nios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) {\n fmtflags tmp = _flags;\n _flags = fmtfl;\n return tmp;\n}\n\nios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) {\n fmtflags tmp = _flags;\n _flags |= fmtfl;\n return tmp;\n}\n\nios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n fmtflags tmp = _flags;\n _flags = (_flags & ~mask) | fmtfl;\n return tmp;\n}\n\nios_base::fmtflags ios_base::unsetf ( ios_base::fmtflags mask ) {\n fmtflags tmp = _flags;\n _flags &= ~mask;\n return tmp;\n}\n\nstreamsize_t ios_base::width ( ) const {\n return _width;\n}\n\nstreamsize_t ios_base::width ( streamsize_t width ) {\n streamsize_t tmp = _width;\n _width = width;\n return tmp;\n}\n\nstreamsize_t ios_base::precision ( ) const {\n return _prec;\n}\nstreamsize_t ios_base::precision ( streamsize_t prec ) {\n streamsize_t tmp = _prec;\n _prec = prec;\n return tmp;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::good () const {\n return _state == goodbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::fail () const {\n return _state & failbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::bad () const {\n return _state & badbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::eof ( ) const {\n return (_state & eofbit) != 0;\n}\n\ntemplate<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( ) const {\n return _state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n uint8_t tmp = _fillch;\n _fillch = fillch;\n return tmp;\n}\n\ntemplate<class char_type>\nbasic_ios<char_type>::operator const void* () const {\n return _state & (badbit | failbit) ? 0 : this;\n}\n" (preproc_include) "#include <cph/string.h>//string_util.h\n" (#include) "#include" (system_lib_string) "<cph/string.h>" (comment) "//string_util.h" (labeled_statement) "ios_base::fmtflags ios_base::flags ( ) const\n{return _flags;}" (statement_identifier) "ios_base" (ERROR) "::fmtflags ios_base:" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "ios_base" (:) ":" (:) ":" (ERROR) "flags ( ) const" (call_expression) "flags ( )" (identifier) "flags" (argument_list) "( )" (() "(" ()) ")" (identifier) "const" (compound_statement) "{return _flags;}" ({) "{" (return_statement) "return _flags;" (return) "return" (identifier) "_flags" (;) ";" (}) "}" (labeled_statement) "ios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) {\n fmtflags tmp = _flags;\n _flags = fmtfl;\n return tmp;\n}" (statement_identifier) "ios_base" (ERROR) "::fmtflags ios_base:" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "ios_base" (:) ":" (:) ":" (ERROR) "flags ( ios_base::fmtflags fmtfl )" (macro_type_specifier) "flags ( ios_base::fmtflags fmtfl )" (identifier) "flags" (() "(" (ERROR) "ios_base::fmtflags" (type_descriptor) "ios_base" (type_identifier) "ios_base" (:) ":" (:) ":" (identifier) "fmtflags" (type_descriptor) "fmtfl" (type_identifier) "fmtfl" ()) ")" (compound_statement) "{\n fmtflags tmp = _flags;\n _flags = fmtfl;\n return tmp;\n}" ({) "{" (declaration) "fmtflags tmp = _flags;" (type_identifier) "fmtflags" (init_declarator) "tmp = _flags" (identifier) "tmp" (=) "=" (identifier) "_flags" (;) ";" (expression_statement) "_flags = fmtfl;" (assignment_expression) "_flags = fmtfl" (identifier) "_flags" (=) "=" (identifier) "fmtfl" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (labeled_statement) "ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) {\n fmtflags tmp = _flags;\n _flags |= fmtfl;\n return tmp;\n}" (statement_identifier) "ios_base" (ERROR) "::fmtflags ios_base:" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "ios_base" (:) ":" (:) ":" (ERROR) "setf ( ios_base::fmtflags fmtfl )" (macro_type_specifier) "setf ( ios_base::fmtflags fmtfl )" (identifier) "setf" (() "(" (ERROR) "ios_base::fmtflags" (type_descriptor) "ios_base" (type_identifier) "ios_base" (:) ":" (:) ":" (identifier) "fmtflags" (type_descriptor) "fmtfl" (type_identifier) "fmtfl" ()) ")" (compound_statement) "{\n fmtflags tmp = _flags;\n _flags |= fmtfl;\n return tmp;\n}" ({) "{" (declaration) "fmtflags tmp = _flags;" (type_identifier) "fmtflags" (init_declarator) "tmp = _flags" (identifier) "tmp" (=) "=" (identifier) "_flags" (;) ";" (expression_statement) "_flags |= fmtfl;" (assignment_expression) "_flags |= fmtfl" (identifier) "_flags" (|=) "|=" (identifier) "fmtfl" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (labeled_statement) "ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n fmtflags tmp = _flags;\n _flags = (_flags & ~mask) | fmtfl;\n return tmp;\n}" (statement_identifier) "ios_base" (ERROR) "::fmtflags ios_base:" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "ios_base" (:) ":" (:) ":" (labeled_statement) "setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n fmtflags tmp = _flags;\n _flags = (_flags & ~mask) | fmtfl;\n return tmp;\n}" (statement_identifier) "setf" (ERROR) "( ios_base::fmtflags fmtfl, ios_base:" (() "(" (type_descriptor) "ios_base" (type_identifier) "ios_base" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "fmtfl" (,) "," (identifier) "ios_base" (:) ":" (:) ":" (ERROR) "fmtflags mask )" (type_identifier) "fmtflags" (identifier) "mask" ()) ")" (compound_statement) "{\n fmtflags tmp = _flags;\n _flags = (_flags & ~mask) | fmtfl;\n return tmp;\n}" ({) "{" (declaration) "fmtflags tmp = _flags;" (type_identifier) "fmtflags" (init_declarator) "tmp = _flags" (identifier) "tmp" (=) "=" (identifier) "_flags" (;) ";" (expression_statement) "_flags = (_flags & ~mask) | fmtfl;" (assignment_expression) "_flags = (_flags & ~mask) | fmtfl" (identifier) "_flags" (=) "=" (binary_expression) "(_flags & ~mask) | fmtfl" (parenthesized_expression) "(_flags & ~mask)" (() "(" (binary_expression) "_flags & ~mask" (identifier) "_flags" (&) "&" (unary_expression) "~mask" (~) "~" (identifier) "mask" ()) ")" (|) "|" (identifier) "fmtfl" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (labeled_statement) "ios_base::fmtflags ios_base::unsetf ( ios_base::fmtflags mask ) {\n fmtflags tmp = _flags;\n _flags &= ~mask;\n return tmp;\n}" (statement_identifier) "ios_base" (ERROR) "::fmtflags ios_base:" (:) ":" (:) ":" (type_identifier) "fmtflags" (identifier) "ios_base" (:) ":" (:) ":" (ERROR) "unsetf ( ios_base::fmtflags mask )" (macro_type_specifier) "unsetf ( ios_base::fmtflags mask )" (identifier) "unsetf" (() "(" (ERROR) "ios_base::fmtflags" (type_descriptor) "ios_base" (type_identifier) "ios_base" (:) ":" (:) ":" (identifier) "fmtflags" (type_descriptor) "mask" (type_identifier) "mask" ()) ")" (compound_statement) "{\n fmtflags tmp = _flags;\n _flags &= ~mask;\n return tmp;\n}" ({) "{" (declaration) "fmtflags tmp = _flags;" (type_identifier) "fmtflags" (init_declarator) "tmp = _flags" (identifier) "tmp" (=) "=" (identifier) "_flags" (;) ";" (expression_statement) "_flags &= ~mask;" (assignment_expression) "_flags &= ~mask" (identifier) "_flags" (&=) "&=" (unary_expression) "~mask" (~) "~" (identifier) "mask" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (ERROR) "streamsize_t ios_base::width ( ) const" (type_identifier) "streamsize_t" (function_declarator) "ios_base::width ( )" (identifier) "ios_base" (ERROR) "::width" (:) ":" (:) ":" (identifier) "width" (parameter_list) "( )" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return _width;\n}" ({) "{" (return_statement) "return _width;" (return) "return" (identifier) "_width" (;) ";" (}) "}" (function_definition) "streamsize_t ios_base::width ( streamsize_t width ) {\n streamsize_t tmp = _width;\n _width = width;\n return tmp;\n}" (type_identifier) "streamsize_t" (function_declarator) "ios_base::width ( streamsize_t width )" (identifier) "ios_base" (ERROR) "::width" (:) ":" (:) ":" (identifier) "width" (parameter_list) "( streamsize_t width )" (() "(" (parameter_declaration) "streamsize_t width" (type_identifier) "streamsize_t" (identifier) "width" ()) ")" (compound_statement) "{\n streamsize_t tmp = _width;\n _width = width;\n return tmp;\n}" ({) "{" (declaration) "streamsize_t tmp = _width;" (type_identifier) "streamsize_t" (init_declarator) "tmp = _width" (identifier) "tmp" (=) "=" (identifier) "_width" (;) ";" (expression_statement) "_width = width;" (assignment_expression) "_width = width" (identifier) "_width" (=) "=" (identifier) "width" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (ERROR) "streamsize_t ios_base::precision ( ) const" (type_identifier) "streamsize_t" (ERROR) "ios_base::" (identifier) "ios_base" (:) ":" (:) ":" (function_declarator) "precision ( )" (identifier) "precision" (parameter_list) "( )" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return _prec;\n}" ({) "{" (return_statement) "return _prec;" (return) "return" (identifier) "_prec" (;) ";" (}) "}" (function_definition) "streamsize_t ios_base::precision ( streamsize_t prec ) {\n streamsize_t tmp = _prec;\n _prec = prec;\n return tmp;\n}" (type_identifier) "streamsize_t" (ERROR) "ios_base::" (identifier) "ios_base" (:) ":" (:) ":" (function_declarator) "precision ( streamsize_t prec )" (identifier) "precision" (parameter_list) "( streamsize_t prec )" (() "(" (parameter_declaration) "streamsize_t prec" (type_identifier) "streamsize_t" (identifier) "prec" ()) ")" (compound_statement) "{\n streamsize_t tmp = _prec;\n _prec = prec;\n return tmp;\n}" ({) "{" (declaration) "streamsize_t tmp = _prec;" (type_identifier) "streamsize_t" (init_declarator) "tmp = _prec" (identifier) "tmp" (=) "=" (identifier) "_prec" (;) ";" (expression_statement) "_prec = prec;" (assignment_expression) "_prec = prec" (identifier) "_prec" (=) "=" (identifier) "prec" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (ERROR) "template<class char_type>\nbool basic_ios<char_type>::good () const" (binary_expression) "template<class char_type>\nbool basic_ios<char_type>::good ()" (binary_expression) "template<class char_type>\nbool basic_ios<char_type" (binary_expression) "template<class char_type>\nbool basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "bool" (identifier) "bool" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "good ()" (identifier) "good" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return _state == goodbit;\n}" ({) "{" (return_statement) "return _state == goodbit;" (return) "return" (binary_expression) "_state == goodbit" (identifier) "_state" (==) "==" (identifier) "goodbit" (;) ";" (}) "}" (ERROR) "template<class char_type>\nbool basic_ios<char_type>::fail () const" (binary_expression) "template<class char_type>\nbool basic_ios<char_type>::fail ()" (binary_expression) "template<class char_type>\nbool basic_ios<char_type" (binary_expression) "template<class char_type>\nbool basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "bool" (identifier) "bool" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "fail ()" (identifier) "fail" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return _state & failbit;\n}" ({) "{" (return_statement) "return _state & failbit;" (return) "return" (binary_expression) "_state & failbit" (identifier) "_state" (&) "&" (identifier) "failbit" (;) ";" (}) "}" (ERROR) "template<class char_type>\nbool basic_ios<char_type>::bad () const" (binary_expression) "template<class char_type>\nbool basic_ios<char_type>::bad ()" (binary_expression) "template<class char_type>\nbool basic_ios<char_type" (binary_expression) "template<class char_type>\nbool basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "bool" (identifier) "bool" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "bad ()" (identifier) "bad" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return _state & badbit;\n}" ({) "{" (return_statement) "return _state & badbit;" (return) "return" (binary_expression) "_state & badbit" (identifier) "_state" (&) "&" (identifier) "badbit" (;) ";" (}) "}" (ERROR) "template<class char_type>\nbool basic_ios<char_type>::eof ( ) const" (binary_expression) "template<class char_type>\nbool basic_ios<char_type>::eof ( )" (binary_expression) "template<class char_type>\nbool basic_ios<char_type" (binary_expression) "template<class char_type>\nbool basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "bool" (identifier) "bool" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "eof ( )" (identifier) "eof" (argument_list) "( )" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return (_state & eofbit) != 0;\n}" ({) "{" (return_statement) "return (_state & eofbit) != 0;" (return) "return" (binary_expression) "(_state & eofbit) != 0" (parenthesized_expression) "(_state & eofbit)" (() "(" (binary_expression) "_state & eofbit" (identifier) "_state" (&) "&" (identifier) "eofbit" ()) ")" (!=) "!=" (number_literal) "0" (;) ";" (}) "}" (ERROR) "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( ) const" (binary_expression) "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( )" (binary_expression) "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type" (binary_expression) "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios" (binary_expression) "template<class char_type>\ntypename basic_ios<char_type" (binary_expression) "template<class char_type>\ntypename basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "typename" (identifier) "typename" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::iostate" (:) ":" (:) ":" (identifier) "iostate" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "rdstate ( )" (identifier) "rdstate" (argument_list) "( )" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return _state;\n}" ({) "{" (return_statement) "return _state;" (return) "return" (identifier) "_state" (;) ";" (}) "}" (expression_statement) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n uint8_t tmp = _fillch;" (update_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n uint8_t tmp = _fillch" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n uint8_t tmp = _fillch" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type>\nchar_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch;\n}\n\ntemplate<class char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n return _fillch" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type>\nchar_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state;\n}\n\ntemplate<class char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n _state = state" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state;\n}\n\ntemplate<class char_type" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n _state |= state" (binary_expression) "template<class char_type>\nvoid basic_ios<char_type" (binary_expression) "template<class char_type>\nvoid basic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::setstate (typename basic_ios<char_type>::iostate state ) {" (:) ":" (:) ":" (call_expression) "setstate (typename basic_ios<char_type>::iostate state )" (identifier) "setstate" (argument_list) "(typename basic_ios<char_type>::iostate state )" (() "(" (ERROR) "typename" (identifier) "typename" (binary_expression) "basic_ios<char_type>::iostate state" (binary_expression) "basic_ios<char_type" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::iostate" (:) ":" (:) ":" (identifier) "iostate" (identifier) "state" ()) ")" ({) "{" (assignment_expression) "_state |= state" (identifier) "_state" (|=) "|=" (identifier) "state" (ERROR) ";\n}\n\ntemplate" (;) ";" (}) "}" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::clear (typename basic_ios<char_type>::iostate state ) {" (:) ":" (:) ":" (call_expression) "clear (typename basic_ios<char_type>::iostate state )" (identifier) "clear" (argument_list) "(typename basic_ios<char_type>::iostate state )" (() "(" (ERROR) "typename" (identifier) "typename" (binary_expression) "basic_ios<char_type>::iostate state" (binary_expression) "basic_ios<char_type" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::iostate" (:) ":" (:) ":" (identifier) "iostate" (identifier) "state" ()) ")" ({) "{" (assignment_expression) "_state = state" (identifier) "_state" (=) "=" (identifier) "state" (ERROR) ";\n}\n\ntemplate" (;) ";" (}) "}" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (identifier) "char_type" (ERROR) "basic_ios" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::fill ( ) const {\n return" (:) ":" (:) ":" (call_expression) "fill ( )" (identifier) "fill" (argument_list) "( )" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "_fillch" (ERROR) ";\n}\n\ntemplate" (;) ";" (}) "}" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (identifier) "char_type" (ERROR) "basic_ios" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::fill ( char_type fillch ) {\n uint8_t" (:) ":" (:) ":" (call_expression) "fill ( char_type fillch )" (identifier) "fill" (argument_list) "( char_type fillch )" (() "(" (identifier) "char_type" (ERROR) "fillch" (identifier) "fillch" ()) ")" ({) "{" (primitive_type) "uint8_t" (assignment_expression) "tmp = _fillch" (identifier) "tmp" (=) "=" (identifier) "_fillch" (--) "" (;) ";" (expression_statement) "_fillch = fillch;" (assignment_expression) "_fillch = fillch" (identifier) "_fillch" (=) "=" (identifier) "fillch" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (ERROR) "}\n\ntemplate<class char_type>\nbasic_ios<char_type>::operator const void* () const" (}) "}" (binary_expression) "template<class char_type>\nbasic_ios<char_type>::operator" (binary_expression) "template<class char_type>\nbasic_ios<char_type" (binary_expression) "template<class char_type>\nbasic_ios" (binary_expression) "template<class char_type" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "char_type" (>) ">" (identifier) "basic_ios" (<) "<" (identifier) "char_type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (identifier) "operator" (identifier) "const" (primitive_type) "void" (*) "*" (ERROR) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return _state & (badbit | failbit) ? 0 : this;\n}" ({) "{" (return_statement) "return _state & (badbit | failbit) ? 0 : this;" (return) "return" (conditional_expression) "_state & (badbit | failbit) ? 0 : this" (binary_expression) "_state & (badbit | failbit)" (identifier) "_state" (&) "&" (parenthesized_expression) "(badbit | failbit)" (() "(" (binary_expression) "badbit | failbit" (identifier) "badbit" (|) "|" (identifier) "failbit" ()) ")" (?) "?" (number_literal) "0" (:) ":" (identifier) "this" (;) ";" (}) "}"
732
65
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 25.27, "nodes": 462, "errors": 0, "source_hash": "b0158449e50d55a3f953bcd2db7dcdbaab86bc1649bfb9e763f5eafaaf3cec0a", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <cph/string.h>//string_util.h\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<cph/string.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "labeled_statement", "text": "ios_base::fmtflags ios_base::flags ( ) const\n{return _flags;}", "parent": null, "children": [4, 5, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 16}}, {"id": 4, "type": "statement_identifier", "text": "ios_base", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "ERROR", "text": "::fmtflags ios_base:", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 28}}, {"id": 6, "type": "type_identifier", "text": "fmtflags", "parent": 5, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 18}}, {"id": 7, "type": "identifier", "text": "ios_base", "parent": 5, "children": [], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 27}}, {"id": 8, "type": "ERROR", "text": "flags ( ) const", "parent": 3, "children": [9], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 44}}, {"id": 9, "type": "call_expression", "text": "flags ( )", "parent": 8, "children": [10, 11], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 38}}, {"id": 10, "type": "identifier", "text": "flags", "parent": 9, "children": [], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 34}}, {"id": 11, "type": "argument_list", "text": "( )", "parent": 9, "children": [], "start_point": {"row": 2, "column": 35}, "end_point": {"row": 2, "column": 38}}, {"id": 12, "type": "return_statement", "text": "return _flags;", "parent": 3, "children": [13], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 15}}, {"id": 13, "type": "identifier", "text": "_flags", "parent": 12, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 14, "type": "labeled_statement", "text": "ios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) {\n\tfmtflags tmp = _flags;\n\t_flags = fmtfl;\n\treturn tmp;\n}", "parent": null, "children": [15, 16, 19], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 15, "type": "statement_identifier", "text": "ios_base", "parent": 14, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 16, "type": "ERROR", "text": "::fmtflags ios_base:", "parent": 14, "children": [17, 18], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 28}}, {"id": 17, "type": "type_identifier", "text": "fmtflags", "parent": 16, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 18}}, {"id": 18, "type": "identifier", "text": "ios_base", "parent": 16, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 27}}, {"id": 19, "type": "ERROR", "text": "flags ( ios_base::fmtflags fmtfl )", "parent": 14, "children": [20], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 63}}, {"id": 20, "type": "macro_type_specifier", "text": "flags ( ios_base::fmtflags fmtfl )", "parent": 19, "children": [21, 22, 26], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 63}}, {"id": 21, "type": "identifier", "text": "flags", "parent": 20, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 34}}, {"id": 22, "type": "ERROR", "text": "ios_base::fmtflags", "parent": 20, "children": [23, 25], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 55}}, {"id": 23, "type": "type_descriptor", "text": "ios_base", "parent": 22, "children": [24], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 45}}, {"id": 24, "type": "type_identifier", "text": "ios_base", "parent": 23, "children": [], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 45}}, {"id": 25, "type": "identifier", "text": "fmtflags", "parent": 22, "children": [], "start_point": {"row": 5, "column": 47}, "end_point": {"row": 5, "column": 55}}, {"id": 26, "type": "type_descriptor", "text": "fmtfl", "parent": 20, "children": [27], "start_point": {"row": 5, "column": 56}, "end_point": {"row": 5, "column": 61}}, {"id": 27, "type": "type_identifier", "text": "fmtfl", "parent": 26, "children": [], "start_point": {"row": 5, "column": 56}, "end_point": {"row": 5, "column": 61}}, {"id": 28, "type": "declaration", "text": "fmtflags tmp = _flags;", "parent": 14, "children": [29, 30], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 23}}, {"id": 29, "type": "type_identifier", "text": "fmtflags", "parent": 28, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 9}}, {"id": 30, "type": "init_declarator", "text": "tmp = _flags", "parent": 28, "children": [31, 32, 33], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 22}}, {"id": 31, "type": "identifier", "text": "tmp", "parent": 30, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 15}}, {"id": 33, "type": "identifier", "text": "_flags", "parent": 30, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 22}}, {"id": 34, "type": "assignment_expression", "text": "_flags = fmtfl", "parent": 14, "children": [35, 36, 37], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 15}}, {"id": 35, "type": "identifier", "text": "_flags", "parent": 34, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 36, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 37, "type": "identifier", "text": "fmtfl", "parent": 34, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 15}}, {"id": 38, "type": "return_statement", "text": "return tmp;", "parent": 14, "children": [39], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 12}}, {"id": 39, "type": "identifier", "text": "tmp", "parent": 38, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 40, "type": "labeled_statement", "text": "ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) {\n\tfmtflags tmp = _flags;\n\t_flags |= fmtfl;\n\treturn tmp;\n}", "parent": null, "children": [41, 42, 45], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 41, "type": "statement_identifier", "text": "ios_base", "parent": 40, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 42, "type": "ERROR", "text": "::fmtflags ios_base:", "parent": 40, "children": [43, 44], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 28}}, {"id": 43, "type": "type_identifier", "text": "fmtflags", "parent": 42, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 18}}, {"id": 44, "type": "identifier", "text": "ios_base", "parent": 42, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 27}}, {"id": 45, "type": "ERROR", "text": "setf ( ios_base::fmtflags fmtfl )", "parent": 40, "children": [46], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 62}}, {"id": 46, "type": "macro_type_specifier", "text": "setf ( ios_base::fmtflags fmtfl )", "parent": 45, "children": [47, 48, 52], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 62}}, {"id": 47, "type": "identifier", "text": "setf", "parent": 46, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 33}}, {"id": 48, "type": "ERROR", "text": "ios_base::fmtflags", "parent": 46, "children": [49, 51], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 54}}, {"id": 49, "type": "type_descriptor", "text": "ios_base", "parent": 48, "children": [50], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 44}}, {"id": 50, "type": "type_identifier", "text": "ios_base", "parent": 49, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 44}}, {"id": 51, "type": "identifier", "text": "fmtflags", "parent": 48, "children": [], "start_point": {"row": 11, "column": 46}, "end_point": {"row": 11, "column": 54}}, {"id": 52, "type": "type_descriptor", "text": "fmtfl", "parent": 46, "children": [53], "start_point": {"row": 11, "column": 55}, "end_point": {"row": 11, "column": 60}}, {"id": 53, "type": "type_identifier", "text": "fmtfl", "parent": 52, "children": [], "start_point": {"row": 11, "column": 55}, "end_point": {"row": 11, "column": 60}}, {"id": 54, "type": "declaration", "text": "fmtflags tmp = _flags;", "parent": 40, "children": [55, 56], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 23}}, {"id": 55, "type": "type_identifier", "text": "fmtflags", "parent": 54, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 56, "type": "init_declarator", "text": "tmp = _flags", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 22}}, {"id": 57, "type": "identifier", "text": "tmp", "parent": 56, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 13}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 15}}, {"id": 59, "type": "identifier", "text": "_flags", "parent": 56, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 22}}, {"id": 60, "type": "assignment_expression", "text": "_flags |= fmtfl", "parent": 40, "children": [61, 62, 63], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 16}}, {"id": 61, "type": "identifier", "text": "_flags", "parent": 60, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 7}}, {"id": 62, "type": "|=", "text": "|=", "parent": 60, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 10}}, {"id": 63, "type": "identifier", "text": "fmtfl", "parent": 60, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 64, "type": "return_statement", "text": "return tmp;", "parent": 40, "children": [65], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 12}}, {"id": 65, "type": "identifier", "text": "tmp", "parent": 64, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 11}}, {"id": 66, "type": "labeled_statement", "text": "ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n\tfmtflags tmp = _flags;\n\t_flags = (_flags & ~mask) | fmtfl;\n\treturn tmp;\n}", "parent": null, "children": [67, 68, 71], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 67, "type": "statement_identifier", "text": "ios_base", "parent": 66, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 68, "type": "ERROR", "text": "::fmtflags ios_base:", "parent": 66, "children": [69, 70], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 28}}, {"id": 69, "type": "type_identifier", "text": "fmtflags", "parent": 68, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 18}}, {"id": 70, "type": "identifier", "text": "ios_base", "parent": 68, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 27}}, {"id": 71, "type": "labeled_statement", "text": "setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n\tfmtflags tmp = _flags;\n\t_flags = (_flags & ~mask) | fmtfl;\n\treturn tmp;\n}", "parent": 66, "children": [72, 73, 79], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 21, "column": 1}}, {"id": 72, "type": "statement_identifier", "text": "setf", "parent": 71, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 33}}, {"id": 73, "type": "ERROR", "text": "( ios_base::fmtflags fmtfl, ios_base:", "parent": 71, "children": [74, 76, 77, 78], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 71}}, {"id": 74, "type": "type_descriptor", "text": "ios_base", "parent": 73, "children": [75], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 44}}, {"id": 75, "type": "type_identifier", "text": "ios_base", "parent": 74, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 44}}, {"id": 76, "type": "type_identifier", "text": "fmtflags", "parent": 73, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 54}}, {"id": 77, "type": "identifier", "text": "fmtfl", "parent": 73, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 60}}, {"id": 78, "type": "identifier", "text": "ios_base", "parent": 73, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 70}}, {"id": 79, "type": "ERROR", "text": "fmtflags mask )", "parent": 71, "children": [80, 81], "start_point": {"row": 17, "column": 72}, "end_point": {"row": 17, "column": 87}}, {"id": 80, "type": "type_identifier", "text": "fmtflags", "parent": 79, "children": [], "start_point": {"row": 17, "column": 72}, "end_point": {"row": 17, "column": 80}}, {"id": 81, "type": "identifier", "text": "mask", "parent": 79, "children": [], "start_point": {"row": 17, "column": 81}, "end_point": {"row": 17, "column": 85}}, {"id": 82, "type": "declaration", "text": "fmtflags tmp = _flags;", "parent": 71, "children": [83, 84], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 23}}, {"id": 83, "type": "type_identifier", "text": "fmtflags", "parent": 82, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 84, "type": "init_declarator", "text": "tmp = _flags", "parent": 82, "children": [85, 86, 87], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 22}}, {"id": 85, "type": "identifier", "text": "tmp", "parent": 84, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 13}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 15}}, {"id": 87, "type": "identifier", "text": "_flags", "parent": 84, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 22}}, {"id": 88, "type": "assignment_expression", "text": "_flags = (_flags & ~mask) | fmtfl", "parent": 71, "children": [89, 90, 91], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 34}}, {"id": 89, "type": "identifier", "text": "_flags", "parent": 88, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 91, "type": "binary_expression", "text": "(_flags & ~mask) | fmtfl", "parent": 88, "children": [92, 98], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 34}}, {"id": 92, "type": "parenthesized_expression", "text": "(_flags & ~mask)", "parent": 91, "children": [93], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 26}}, {"id": 93, "type": "binary_expression", "text": "_flags & ~mask", "parent": 92, "children": [94, 95], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 25}}, {"id": 94, "type": "identifier", "text": "_flags", "parent": 93, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 17}}, {"id": 95, "type": "unary_expression", "text": "~mask", "parent": 93, "children": [96, 97], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 25}}, {"id": 96, "type": "~", "text": "~", "parent": 95, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 97, "type": "identifier", "text": "mask", "parent": 95, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 98, "type": "identifier", "text": "fmtfl", "parent": 91, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 34}}, {"id": 99, "type": "return_statement", "text": "return tmp;", "parent": 71, "children": [100], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 12}}, {"id": 100, "type": "identifier", "text": "tmp", "parent": 99, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 11}}, {"id": 101, "type": "labeled_statement", "text": "ios_base::fmtflags ios_base::unsetf ( ios_base::fmtflags mask ) {\n\tfmtflags tmp = _flags;\n\t_flags &= ~mask;\n\treturn tmp;\n}", "parent": null, "children": [102, 103, 106], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 102, "type": "statement_identifier", "text": "ios_base", "parent": 101, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 103, "type": "ERROR", "text": "::fmtflags ios_base:", "parent": 101, "children": [104, 105], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 28}}, {"id": 104, "type": "type_identifier", "text": "fmtflags", "parent": 103, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 18}}, {"id": 105, "type": "identifier", "text": "ios_base", "parent": 103, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 27}}, {"id": 106, "type": "ERROR", "text": "unsetf ( ios_base::fmtflags mask )", "parent": 101, "children": [107], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 63}}, {"id": 107, "type": "macro_type_specifier", "text": "unsetf ( ios_base::fmtflags mask )", "parent": 106, "children": [108, 109, 113], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 63}}, {"id": 108, "type": "identifier", "text": "unsetf", "parent": 107, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 35}}, {"id": 109, "type": "ERROR", "text": "ios_base::fmtflags", "parent": 107, "children": [110, 112], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 56}}, {"id": 110, "type": "type_descriptor", "text": "ios_base", "parent": 109, "children": [111], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 46}}, {"id": 111, "type": "type_identifier", "text": "ios_base", "parent": 110, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 46}}, {"id": 112, "type": "identifier", "text": "fmtflags", "parent": 109, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 56}}, {"id": 113, "type": "type_descriptor", "text": "mask", "parent": 107, "children": [114], "start_point": {"row": 23, "column": 57}, "end_point": {"row": 23, "column": 61}}, {"id": 114, "type": "type_identifier", "text": "mask", "parent": 113, "children": [], "start_point": {"row": 23, "column": 57}, "end_point": {"row": 23, "column": 61}}, {"id": 115, "type": "declaration", "text": "fmtflags tmp = _flags;", "parent": 101, "children": [116, 117], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 23}}, {"id": 116, "type": "type_identifier", "text": "fmtflags", "parent": 115, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 117, "type": "init_declarator", "text": "tmp = _flags", "parent": 115, "children": [118, 119, 120], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 22}}, {"id": 118, "type": "identifier", "text": "tmp", "parent": 117, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 119, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 120, "type": "identifier", "text": "_flags", "parent": 117, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 121, "type": "assignment_expression", "text": "_flags &= ~mask", "parent": 101, "children": [122, 123, 124], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 16}}, {"id": 122, "type": "identifier", "text": "_flags", "parent": 121, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 123, "type": "&=", "text": "&=", "parent": 121, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 10}}, {"id": 124, "type": "unary_expression", "text": "~mask", "parent": 121, "children": [125, 126], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 16}}, {"id": 125, "type": "~", "text": "~", "parent": 124, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 126, "type": "identifier", "text": "mask", "parent": 124, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 127, "type": "return_statement", "text": "return tmp;", "parent": 101, "children": [128], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 12}}, {"id": 128, "type": "identifier", "text": "tmp", "parent": 127, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 129, "type": "ERROR", "text": "streamsize_t ios_base::width ( ) const", "parent": null, "children": [130, 131], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 38}}, {"id": 130, "type": "type_identifier", "text": "streamsize_t", "parent": 129, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 12}}, {"id": 131, "type": "function_declarator", "text": "ios_base::width ( )", "parent": 129, "children": [132, 133, 135], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 32}}, {"id": 132, "type": "identifier", "text": "ios_base", "parent": 131, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 21}}, {"id": 133, "type": "ERROR", "text": "::width", "parent": 131, "children": [134], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 28}}, {"id": 134, "type": "identifier", "text": "width", "parent": 133, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 28}}, {"id": 135, "type": "parameter_list", "text": "( )", "parent": 131, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 32}}, {"id": 136, "type": "return_statement", "text": "return _width;", "parent": null, "children": [137], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 15}}, {"id": 137, "type": "identifier", "text": "_width", "parent": 136, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 14}}, {"id": 138, "type": "function_definition", "text": "streamsize_t ios_base::width ( streamsize_t width ) {\n\tstreamsize_t tmp = _width;\n\t_width = width;\n\treturn tmp;\n}", "parent": null, "children": [139, 140], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 139, "type": "type_identifier", "text": "streamsize_t", "parent": 138, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 12}}, {"id": 140, "type": "function_declarator", "text": "ios_base::width ( streamsize_t width )", "parent": 138, "children": [141, 142, 144], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 51}}, {"id": 141, "type": "identifier", "text": "ios_base", "parent": 140, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 21}}, {"id": 142, "type": "ERROR", "text": "::width", "parent": 140, "children": [143], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 28}}, {"id": 143, "type": "identifier", "text": "width", "parent": 142, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 28}}, {"id": 144, "type": "parameter_list", "text": "( streamsize_t width )", "parent": 140, "children": [145], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 51}}, {"id": 145, "type": "parameter_declaration", "text": "streamsize_t width", "parent": 144, "children": [146, 147], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 49}}, {"id": 146, "type": "type_identifier", "text": "streamsize_t", "parent": 145, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 43}}, {"id": 147, "type": "identifier", "text": "width", "parent": 145, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 49}}, {"id": 148, "type": "declaration", "text": "streamsize_t tmp = _width;", "parent": 138, "children": [149, 150], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 27}}, {"id": 149, "type": "type_identifier", "text": "streamsize_t", "parent": 148, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 13}}, {"id": 150, "type": "init_declarator", "text": "tmp = _width", "parent": 148, "children": [151, 152, 153], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 26}}, {"id": 151, "type": "identifier", "text": "tmp", "parent": 150, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 17}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 153, "type": "identifier", "text": "_width", "parent": 150, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 26}}, {"id": 154, "type": "assignment_expression", "text": "_width = width", "parent": 138, "children": [155, 156, 157], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 15}}, {"id": 155, "type": "identifier", "text": "_width", "parent": 154, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 7}}, {"id": 156, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 157, "type": "identifier", "text": "width", "parent": 154, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 15}}, {"id": 158, "type": "return_statement", "text": "return tmp;", "parent": 138, "children": [159], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 12}}, {"id": 159, "type": "identifier", "text": "tmp", "parent": 158, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 11}}, {"id": 160, "type": "ERROR", "text": "streamsize_t ios_base::precision ( ) const", "parent": null, "children": [161, 162, 164], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 42}}, {"id": 161, "type": "type_identifier", "text": "streamsize_t", "parent": 160, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 12}}, {"id": 162, "type": "ERROR", "text": "ios_base::", "parent": 160, "children": [163], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 23}}, {"id": 163, "type": "identifier", "text": "ios_base", "parent": 162, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 21}}, {"id": 164, "type": "function_declarator", "text": "precision ( )", "parent": 160, "children": [165, 166], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 36}}, {"id": 165, "type": "identifier", "text": "precision", "parent": 164, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 32}}, {"id": 166, "type": "parameter_list", "text": "( )", "parent": 164, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 36}}, {"id": 167, "type": "return_statement", "text": "return _prec;", "parent": null, "children": [168], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 14}}, {"id": 168, "type": "identifier", "text": "_prec", "parent": 167, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 13}}, {"id": 169, "type": "function_definition", "text": "streamsize_t ios_base::precision ( streamsize_t prec ) {\n\tstreamsize_t tmp = _prec;\n\t_prec = prec;\n\treturn tmp;\n}", "parent": null, "children": [170, 171, 173], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 170, "type": "type_identifier", "text": "streamsize_t", "parent": 169, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 12}}, {"id": 171, "type": "ERROR", "text": "ios_base::", "parent": 169, "children": [172], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 23}}, {"id": 172, "type": "identifier", "text": "ios_base", "parent": 171, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 21}}, {"id": 173, "type": "function_declarator", "text": "precision ( streamsize_t prec )", "parent": 169, "children": [174, 175], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 54}}, {"id": 174, "type": "identifier", "text": "precision", "parent": 173, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 32}}, {"id": 175, "type": "parameter_list", "text": "( streamsize_t prec )", "parent": 173, "children": [176], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 54}}, {"id": 176, "type": "parameter_declaration", "text": "streamsize_t prec", "parent": 175, "children": [177, 178], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 52}}, {"id": 177, "type": "type_identifier", "text": "streamsize_t", "parent": 176, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 47}}, {"id": 178, "type": "identifier", "text": "prec", "parent": 176, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 52}}, {"id": 179, "type": "declaration", "text": "streamsize_t tmp = _prec;", "parent": 169, "children": [180, 181], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 26}}, {"id": 180, "type": "type_identifier", "text": "streamsize_t", "parent": 179, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 181, "type": "init_declarator", "text": "tmp = _prec", "parent": 179, "children": [182, 183, 184], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 25}}, {"id": 182, "type": "identifier", "text": "tmp", "parent": 181, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 17}}, {"id": 183, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 184, "type": "identifier", "text": "_prec", "parent": 181, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 25}}, {"id": 185, "type": "assignment_expression", "text": "_prec = prec", "parent": 169, "children": [186, 187, 188], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 186, "type": "identifier", "text": "_prec", "parent": 185, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 6}}, {"id": 187, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 188, "type": "identifier", "text": "prec", "parent": 185, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 189, "type": "return_statement", "text": "return tmp;", "parent": 169, "children": [190], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 12}}, {"id": 190, "type": "identifier", "text": "tmp", "parent": 189, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 191, "type": "ERROR", "text": "template<class char_type>\nbool basic_ios<char_type>::good () const", "parent": null, "children": [192], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 40}}, {"id": 192, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type>::good ()", "parent": 191, "children": [193, 205, 206], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 34}}, {"id": 193, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type", "parent": 192, "children": [194, 203, 204], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 24}}, {"id": 194, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios", "parent": 193, "children": [195, 199, 200, 202], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 14}}, {"id": 195, "type": "binary_expression", "text": "template<class char_type", "parent": 194, "children": [196, 197, 198], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 24}}, {"id": 196, "type": "identifier", "text": "template", "parent": 195, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 197, "type": "<", "text": "<", "parent": 195, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 198, "type": "identifier", "text": "char_type", "parent": 195, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 24}}, {"id": 199, "type": ">", "text": ">", "parent": 194, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 25}}, {"id": 200, "type": "ERROR", "text": "bool", "parent": 194, "children": [201], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 201, "type": "identifier", "text": "bool", "parent": 200, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 202, "type": "identifier", "text": "basic_ios", "parent": 194, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 14}}, {"id": 203, "type": "<", "text": "<", "parent": 193, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 15}}, {"id": 204, "type": "identifier", "text": "char_type", "parent": 193, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 24}}, {"id": 205, "type": ">", "text": ">", "parent": 192, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 206, "type": "call_expression", "text": "good ()", "parent": 192, "children": [207, 208], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 34}}, {"id": 207, "type": "identifier", "text": "good", "parent": 206, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 31}}, {"id": 208, "type": "argument_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 34}}, {"id": 209, "type": "return_statement", "text": "return _state == goodbit;", "parent": null, "children": [210], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 26}}, {"id": 210, "type": "binary_expression", "text": "_state == goodbit", "parent": 209, "children": [211, 212, 213], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 25}}, {"id": 211, "type": "identifier", "text": "_state", "parent": 210, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 212, "type": "==", "text": "==", "parent": 210, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 17}}, {"id": 213, "type": "identifier", "text": "goodbit", "parent": 210, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 25}}, {"id": 214, "type": "ERROR", "text": "template<class char_type>\nbool basic_ios<char_type>::fail () const", "parent": null, "children": [215], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 40}}, {"id": 215, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type>::fail ()", "parent": 214, "children": [216, 228, 229], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 34}}, {"id": 216, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type", "parent": 215, "children": [217, 226, 227], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 24}}, {"id": 217, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios", "parent": 216, "children": [218, 222, 223, 225], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 14}}, {"id": 218, "type": "binary_expression", "text": "template<class char_type", "parent": 217, "children": [219, 220, 221], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 24}}, {"id": 219, "type": "identifier", "text": "template", "parent": 218, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 8}}, {"id": 220, "type": "<", "text": "<", "parent": 218, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 9}}, {"id": 221, "type": "identifier", "text": "char_type", "parent": 218, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 222, "type": ">", "text": ">", "parent": 217, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 223, "type": "ERROR", "text": "bool", "parent": 217, "children": [224], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 224, "type": "identifier", "text": "bool", "parent": 223, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 225, "type": "identifier", "text": "basic_ios", "parent": 217, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 14}}, {"id": 226, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 227, "type": "identifier", "text": "char_type", "parent": 216, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 24}}, {"id": 228, "type": ">", "text": ">", "parent": 215, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 25}}, {"id": 229, "type": "call_expression", "text": "fail ()", "parent": 215, "children": [230, 231], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 34}}, {"id": 230, "type": "identifier", "text": "fail", "parent": 229, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 31}}, {"id": 231, "type": "argument_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 34}}, {"id": 232, "type": "return_statement", "text": "return _state & failbit;", "parent": null, "children": [233], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 25}}, {"id": 233, "type": "binary_expression", "text": "_state & failbit", "parent": 232, "children": [234, 235], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 24}}, {"id": 234, "type": "identifier", "text": "_state", "parent": 233, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 14}}, {"id": 235, "type": "identifier", "text": "failbit", "parent": 233, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 24}}, {"id": 236, "type": "ERROR", "text": "template<class char_type>\nbool basic_ios<char_type>::bad () const", "parent": null, "children": [237], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 39}}, {"id": 237, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type>::bad ()", "parent": 236, "children": [238, 250, 251], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 33}}, {"id": 238, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type", "parent": 237, "children": [239, 248, 249], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 24}}, {"id": 239, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios", "parent": 238, "children": [240, 244, 245, 247], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 14}}, {"id": 240, "type": "binary_expression", "text": "template<class char_type", "parent": 239, "children": [241, 242, 243], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 24}}, {"id": 241, "type": "identifier", "text": "template", "parent": 240, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 242, "type": "<", "text": "<", "parent": 240, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 9}}, {"id": 243, "type": "identifier", "text": "char_type", "parent": 240, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 24}}, {"id": 244, "type": ">", "text": ">", "parent": 239, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 245, "type": "ERROR", "text": "bool", "parent": 239, "children": [246], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 246, "type": "identifier", "text": "bool", "parent": 245, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 247, "type": "identifier", "text": "basic_ios", "parent": 239, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 14}}, {"id": 248, "type": "<", "text": "<", "parent": 238, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 249, "type": "identifier", "text": "char_type", "parent": 238, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 24}}, {"id": 250, "type": ">", "text": ">", "parent": 237, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 25}}, {"id": 251, "type": "call_expression", "text": "bad ()", "parent": 237, "children": [252, 253], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 33}}, {"id": 252, "type": "identifier", "text": "bad", "parent": 251, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 30}}, {"id": 253, "type": "argument_list", "text": "()", "parent": 251, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 33}}, {"id": 254, "type": "return_statement", "text": "return _state & badbit;", "parent": null, "children": [255], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 24}}, {"id": 255, "type": "binary_expression", "text": "_state & badbit", "parent": 254, "children": [256, 257], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 23}}, {"id": 256, "type": "identifier", "text": "_state", "parent": 255, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 14}}, {"id": 257, "type": "identifier", "text": "badbit", "parent": 255, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 23}}, {"id": 258, "type": "ERROR", "text": "template<class char_type>\nbool basic_ios<char_type>::eof ( ) const", "parent": null, "children": [259], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 40}}, {"id": 259, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type>::eof ( )", "parent": 258, "children": [260, 272, 273], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 34}}, {"id": 260, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios<char_type", "parent": 259, "children": [261, 270, 271], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 24}}, {"id": 261, "type": "binary_expression", "text": "template<class char_type>\nbool basic_ios", "parent": 260, "children": [262, 266, 267, 269], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 14}}, {"id": 262, "type": "binary_expression", "text": "template<class char_type", "parent": 261, "children": [263, 264, 265], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 24}}, {"id": 263, "type": "identifier", "text": "template", "parent": 262, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 264, "type": "<", "text": "<", "parent": 262, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 265, "type": "identifier", "text": "char_type", "parent": 262, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 24}}, {"id": 266, "type": ">", "text": ">", "parent": 261, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 267, "type": "ERROR", "text": "bool", "parent": 261, "children": [268], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 268, "type": "identifier", "text": "bool", "parent": 267, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 269, "type": "identifier", "text": "basic_ios", "parent": 261, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 14}}, {"id": 270, "type": "<", "text": "<", "parent": 260, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 271, "type": "identifier", "text": "char_type", "parent": 260, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 24}}, {"id": 272, "type": ">", "text": ">", "parent": 259, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 273, "type": "call_expression", "text": "eof ( )", "parent": 259, "children": [274, 275], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 34}}, {"id": 274, "type": "identifier", "text": "eof", "parent": 273, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 30}}, {"id": 275, "type": "argument_list", "text": "( )", "parent": 273, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 34}}, {"id": 276, "type": "return_statement", "text": "return (_state & eofbit) != 0;", "parent": null, "children": [277], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 31}}, {"id": 277, "type": "binary_expression", "text": "(_state & eofbit) != 0", "parent": 276, "children": [278, 282, 283], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 30}}, {"id": 278, "type": "parenthesized_expression", "text": "(_state & eofbit)", "parent": 277, "children": [279], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 25}}, {"id": 279, "type": "binary_expression", "text": "_state & eofbit", "parent": 278, "children": [280, 281], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 24}}, {"id": 280, "type": "identifier", "text": "_state", "parent": 279, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 15}}, {"id": 281, "type": "identifier", "text": "eofbit", "parent": 279, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 24}}, {"id": 282, "type": "!=", "text": "!=", "parent": 277, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 28}}, {"id": 283, "type": "number_literal", "text": "0", "parent": 277, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 284, "type": "ERROR", "text": "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( ) const", "parent": null, "children": [285], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 78}}, {"id": 285, "type": "binary_expression", "text": "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( )", "parent": 284, "children": [286, 306, 307], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 72}}, {"id": 286, "type": "binary_expression", "text": "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type", "parent": 285, "children": [287, 304, 305], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 58}}, {"id": 287, "type": "binary_expression", "text": "template<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios", "parent": 286, "children": [288, 300, 301, 303], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 48}}, {"id": 288, "type": "binary_expression", "text": "template<class char_type>\ntypename basic_ios<char_type", "parent": 287, "children": [289, 298, 299], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 28}}, {"id": 289, "type": "binary_expression", "text": "template<class char_type>\ntypename basic_ios", "parent": 288, "children": [290, 294, 295, 297], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 18}}, {"id": 290, "type": "binary_expression", "text": "template<class char_type", "parent": 289, "children": [291, 292, 293], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 24}}, {"id": 291, "type": "identifier", "text": "template", "parent": 290, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 292, "type": "<", "text": "<", "parent": 290, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 293, "type": "identifier", "text": "char_type", "parent": 290, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 24}}, {"id": 294, "type": ">", "text": ">", "parent": 289, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 295, "type": "ERROR", "text": "typename", "parent": 289, "children": [296], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 8}}, {"id": 296, "type": "identifier", "text": "typename", "parent": 295, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 8}}, {"id": 297, "type": "identifier", "text": "basic_ios", "parent": 289, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 18}}, {"id": 298, "type": "<", "text": "<", "parent": 288, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 299, "type": "identifier", "text": "char_type", "parent": 288, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 28}}, {"id": 300, "type": ">", "text": ">", "parent": 287, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 29}}, {"id": 301, "type": "ERROR", "text": "::iostate", "parent": 287, "children": [302], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 38}}, {"id": 302, "type": "identifier", "text": "iostate", "parent": 301, "children": [], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 38}}, {"id": 303, "type": "identifier", "text": "basic_ios", "parent": 287, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 48}}, {"id": 304, "type": "<", "text": "<", "parent": 286, "children": [], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 49}}, {"id": 305, "type": "identifier", "text": "char_type", "parent": 286, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 58}}, {"id": 306, "type": ">", "text": ">", "parent": 285, "children": [], "start_point": {"row": 69, "column": 58}, "end_point": {"row": 69, "column": 59}}, {"id": 307, "type": "call_expression", "text": "rdstate ( )", "parent": 285, "children": [308, 309], "start_point": {"row": 69, "column": 61}, "end_point": {"row": 69, "column": 72}}, {"id": 308, "type": "identifier", "text": "rdstate", "parent": 307, "children": [], "start_point": {"row": 69, "column": 61}, "end_point": {"row": 69, "column": 68}}, {"id": 309, "type": "argument_list", "text": "( )", "parent": 307, "children": [], "start_point": {"row": 69, "column": 69}, "end_point": {"row": 69, "column": 72}}, {"id": 310, "type": "return_statement", "text": "return _state;", "parent": null, "children": [311], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 15}}, {"id": 311, "type": "identifier", "text": "_state", "parent": 310, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 14}}, {"id": 312, "type": "update_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n\tuint8_t tmp = _fillch", "parent": null, "children": [313, 427], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 90, "column": 22}}, {"id": 313, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n\tuint8_t tmp = _fillch", "parent": 312, "children": [314, 414, 415, 423], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 90, "column": 22}}, {"id": 314, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type", "parent": 313, "children": [315, 410, 412, 413], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 89, "column": 29}}, {"id": 315, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type>\nchar_type", "parent": 314, "children": [316, 408, 409], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 89, "column": 9}}, {"id": 316, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type", "parent": 315, "children": [317, 404, 406, 407], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 88, "column": 24}}, {"id": 317, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch", "parent": 316, "children": [318, 398, 399, 403], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 85, "column": 15}}, {"id": 318, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type", "parent": 317, "children": [319, 394, 396, 397], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 84, "column": 29}}, {"id": 319, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type", "parent": 318, "children": [320, 392, 393], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 84, "column": 9}}, {"id": 320, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type", "parent": 319, "children": [321, 388, 390, 391], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 83, "column": 24}}, {"id": 321, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state", "parent": 320, "children": [322, 368, 369, 384], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 80, "column": 15}}, {"id": 322, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type", "parent": 321, "children": [323, 366, 367], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 79, "column": 24}}, {"id": 323, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios", "parent": 322, "children": [324, 362, 363, 365], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 79, "column": 14}}, {"id": 324, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type", "parent": 323, "children": [325, 358, 360, 361], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 78, "column": 24}}, {"id": 325, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state", "parent": 324, "children": [326, 338, 339, 354], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 75, "column": 16}}, {"id": 326, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios<char_type", "parent": 325, "children": [327, 336, 337], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 24}}, {"id": 327, "type": "binary_expression", "text": "template<class char_type>\nvoid basic_ios", "parent": 326, "children": [328, 332, 333, 335], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 14}}, {"id": 328, "type": "binary_expression", "text": "template<class char_type", "parent": 327, "children": [329, 330, 331], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 24}}, {"id": 329, "type": "identifier", "text": "template", "parent": 328, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 330, "type": "<", "text": "<", "parent": 328, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 331, "type": "identifier", "text": "char_type", "parent": 328, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 24}}, {"id": 332, "type": ">", "text": ">", "parent": 327, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 333, "type": "ERROR", "text": "void", "parent": 327, "children": [334], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 4}}, {"id": 334, "type": "identifier", "text": "void", "parent": 333, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 4}}, {"id": 335, "type": "identifier", "text": "basic_ios", "parent": 327, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 14}}, {"id": 336, "type": "<", "text": "<", "parent": 326, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 337, "type": "identifier", "text": "char_type", "parent": 326, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 24}}, {"id": 338, "type": ">", "text": ">", "parent": 325, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 25}}, {"id": 339, "type": "ERROR", "text": "::setstate (typename basic_ios<char_type>::iostate state ) {", "parent": 325, "children": [340], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 85}}, {"id": 340, "type": "call_expression", "text": "setstate (typename basic_ios<char_type>::iostate state )", "parent": 339, "children": [341, 342], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 83}}, {"id": 341, "type": "identifier", "text": "setstate", "parent": 340, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 35}}, {"id": 342, "type": "argument_list", "text": "(typename basic_ios<char_type>::iostate state )", "parent": 340, "children": [343, 345], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 83}}, {"id": 343, "type": "ERROR", "text": "typename", "parent": 342, "children": [344], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 45}}, {"id": 344, "type": "identifier", "text": "typename", "parent": 343, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 45}}, {"id": 345, "type": "binary_expression", "text": "basic_ios<char_type>::iostate state", "parent": 342, "children": [346, 350, 351, 353], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 81}}, {"id": 346, "type": "binary_expression", "text": "basic_ios<char_type", "parent": 345, "children": [347, 348, 349], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 65}}, {"id": 347, "type": "identifier", "text": "basic_ios", "parent": 346, "children": [], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 55}}, {"id": 348, "type": "<", "text": "<", "parent": 346, "children": [], "start_point": {"row": 74, "column": 55}, "end_point": {"row": 74, "column": 56}}, {"id": 349, "type": "identifier", "text": "char_type", "parent": 346, "children": [], "start_point": {"row": 74, "column": 56}, "end_point": {"row": 74, "column": 65}}, {"id": 350, "type": ">", "text": ">", "parent": 345, "children": [], "start_point": {"row": 74, "column": 65}, "end_point": {"row": 74, "column": 66}}, {"id": 351, "type": "ERROR", "text": "::iostate", "parent": 345, "children": [352], "start_point": {"row": 74, "column": 66}, "end_point": {"row": 74, "column": 75}}, {"id": 352, "type": "identifier", "text": "iostate", "parent": 351, "children": [], "start_point": {"row": 74, "column": 68}, "end_point": {"row": 74, "column": 75}}, {"id": 353, "type": "identifier", "text": "state", "parent": 345, "children": [], "start_point": {"row": 74, "column": 76}, "end_point": {"row": 74, "column": 81}}, {"id": 354, "type": "assignment_expression", "text": "_state |= state", "parent": 325, "children": [355, 356, 357], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 16}}, {"id": 355, "type": "identifier", "text": "_state", "parent": 354, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 7}}, {"id": 356, "type": "|=", "text": "|=", "parent": 354, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 10}}, {"id": 357, "type": "identifier", "text": "state", "parent": 354, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 16}}, {"id": 358, "type": "ERROR", "text": ";\n}\n\ntemplate", "parent": 324, "children": [359], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 78, "column": 8}}, {"id": 359, "type": "identifier", "text": "template", "parent": 358, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 8}}, {"id": 360, "type": "<", "text": "<", "parent": 324, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 361, "type": "identifier", "text": "char_type", "parent": 324, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 24}}, {"id": 362, "type": ">", "text": ">", "parent": 323, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 25}}, {"id": 363, "type": "ERROR", "text": "void", "parent": 323, "children": [364], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 364, "type": "identifier", "text": "void", "parent": 363, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 365, "type": "identifier", "text": "basic_ios", "parent": 323, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 14}}, {"id": 366, "type": "<", "text": "<", "parent": 322, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 15}}, {"id": 367, "type": "identifier", "text": "char_type", "parent": 322, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 24}}, {"id": 368, "type": ">", "text": ">", "parent": 321, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 25}}, {"id": 369, "type": "ERROR", "text": "::clear (typename basic_ios<char_type>::iostate state ) {", "parent": 321, "children": [370], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 82}}, {"id": 370, "type": "call_expression", "text": "clear (typename basic_ios<char_type>::iostate state )", "parent": 369, "children": [371, 372], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 80}}, {"id": 371, "type": "identifier", "text": "clear", "parent": 370, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 32}}, {"id": 372, "type": "argument_list", "text": "(typename basic_ios<char_type>::iostate state )", "parent": 370, "children": [373, 375], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 80}}, {"id": 373, "type": "ERROR", "text": "typename", "parent": 372, "children": [374], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 42}}, {"id": 374, "type": "identifier", "text": "typename", "parent": 373, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 42}}, {"id": 375, "type": "binary_expression", "text": "basic_ios<char_type>::iostate state", "parent": 372, "children": [376, 380, 381, 383], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 78}}, {"id": 376, "type": "binary_expression", "text": "basic_ios<char_type", "parent": 375, "children": [377, 378, 379], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 62}}, {"id": 377, "type": "identifier", "text": "basic_ios", "parent": 376, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 52}}, {"id": 378, "type": "<", "text": "<", "parent": 376, "children": [], "start_point": {"row": 79, "column": 52}, "end_point": {"row": 79, "column": 53}}, {"id": 379, "type": "identifier", "text": "char_type", "parent": 376, "children": [], "start_point": {"row": 79, "column": 53}, "end_point": {"row": 79, "column": 62}}, {"id": 380, "type": ">", "text": ">", "parent": 375, "children": [], "start_point": {"row": 79, "column": 62}, "end_point": {"row": 79, "column": 63}}, {"id": 381, "type": "ERROR", "text": "::iostate", "parent": 375, "children": [382], "start_point": {"row": 79, "column": 63}, "end_point": {"row": 79, "column": 72}}, {"id": 382, "type": "identifier", "text": "iostate", "parent": 381, "children": [], "start_point": {"row": 79, "column": 65}, "end_point": {"row": 79, "column": 72}}, {"id": 383, "type": "identifier", "text": "state", "parent": 375, "children": [], "start_point": {"row": 79, "column": 73}, "end_point": {"row": 79, "column": 78}}, {"id": 384, "type": "assignment_expression", "text": "_state = state", "parent": 321, "children": [385, 386, 387], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 15}}, {"id": 385, "type": "identifier", "text": "_state", "parent": 384, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 7}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 9}}, {"id": 387, "type": "identifier", "text": "state", "parent": 384, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 15}}, {"id": 388, "type": "ERROR", "text": ";\n}\n\ntemplate", "parent": 320, "children": [389], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 83, "column": 8}}, {"id": 389, "type": "identifier", "text": "template", "parent": 388, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 8}}, {"id": 390, "type": "<", "text": "<", "parent": 320, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 9}}, {"id": 391, "type": "identifier", "text": "char_type", "parent": 320, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 24}}, {"id": 392, "type": ">", "text": ">", "parent": 319, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 393, "type": "identifier", "text": "char_type", "parent": 319, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 9}}, {"id": 394, "type": "ERROR", "text": "basic_ios", "parent": 318, "children": [395], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 19}}, {"id": 395, "type": "identifier", "text": "basic_ios", "parent": 394, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 19}}, {"id": 396, "type": "<", "text": "<", "parent": 318, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 20}}, {"id": 397, "type": "identifier", "text": "char_type", "parent": 318, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 29}}, {"id": 398, "type": ">", "text": ">", "parent": 317, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 30}}, {"id": 399, "type": "ERROR", "text": "::fill ( ) const {\n\treturn", "parent": 317, "children": [400], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 85, "column": 7}}, {"id": 400, "type": "call_expression", "text": "fill ( )", "parent": 399, "children": [401, 402], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 40}}, {"id": 401, "type": "identifier", "text": "fill", "parent": 400, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 36}}, {"id": 402, "type": "argument_list", "text": "( )", "parent": 400, "children": [], "start_point": {"row": 84, "column": 37}, "end_point": {"row": 84, "column": 40}}, {"id": 403, "type": "identifier", "text": "_fillch", "parent": 317, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 15}}, {"id": 404, "type": "ERROR", "text": ";\n}\n\ntemplate", "parent": 316, "children": [405], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 88, "column": 8}}, {"id": 405, "type": "identifier", "text": "template", "parent": 404, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 8}}, {"id": 406, "type": "<", "text": "<", "parent": 316, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 9}}, {"id": 407, "type": "identifier", "text": "char_type", "parent": 316, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 24}}, {"id": 408, "type": ">", "text": ">", "parent": 315, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 25}}, {"id": 409, "type": "identifier", "text": "char_type", "parent": 315, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 9}}, {"id": 410, "type": "ERROR", "text": "basic_ios", "parent": 314, "children": [411], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 19}}, {"id": 411, "type": "identifier", "text": "basic_ios", "parent": 410, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 19}}, {"id": 412, "type": "<", "text": "<", "parent": 314, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 413, "type": "identifier", "text": "char_type", "parent": 314, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 29}}, {"id": 414, "type": ">", "text": ">", "parent": 313, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 30}}, {"id": 415, "type": "ERROR", "text": "::fill ( char_type fillch ) {\n\tuint8_t", "parent": 313, "children": [416, 422], "start_point": {"row": 89, "column": 30}, "end_point": {"row": 90, "column": 8}}, {"id": 416, "type": "call_expression", "text": "fill ( char_type fillch )", "parent": 415, "children": [417, 418], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 57}}, {"id": 417, "type": "identifier", "text": "fill", "parent": 416, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 36}}, {"id": 418, "type": "argument_list", "text": "( char_type fillch )", "parent": 416, "children": [419, 420], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 57}}, {"id": 419, "type": "identifier", "text": "char_type", "parent": 418, "children": [], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 48}}, {"id": 420, "type": "ERROR", "text": "fillch", "parent": 418, "children": [421], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 55}}, {"id": 421, "type": "identifier", "text": "fillch", "parent": 420, "children": [], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 55}}, {"id": 422, "type": "primitive_type", "text": "uint8_t", "parent": 415, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 8}}, {"id": 423, "type": "assignment_expression", "text": "tmp = _fillch", "parent": 313, "children": [424, 425, 426], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 22}}, {"id": 424, "type": "identifier", "text": "tmp", "parent": 423, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 12}}, {"id": 425, "type": "=", "text": "=", "parent": 423, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 426, "type": "identifier", "text": "_fillch", "parent": 423, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 22}}, {"id": 427, "type": "--", "text": "", "parent": 312, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 22}}, {"id": 428, "type": "assignment_expression", "text": "_fillch = fillch", "parent": null, "children": [429, 430, 431], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 17}}, {"id": 429, "type": "identifier", "text": "_fillch", "parent": 428, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 8}}, {"id": 430, "type": "=", "text": "=", "parent": 428, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 10}}, {"id": 431, "type": "identifier", "text": "fillch", "parent": 428, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 17}}, {"id": 432, "type": "return_statement", "text": "return tmp;", "parent": null, "children": [433], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 12}}, {"id": 433, "type": "identifier", "text": "tmp", "parent": 432, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 11}}, {"id": 434, "type": "ERROR", "text": "}\n\ntemplate<class char_type>\nbasic_ios<char_type>::operator const void* () const", "parent": null, "children": [435, 448, 449, 450], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 96, "column": 51}}, {"id": 435, "type": "binary_expression", "text": "template<class char_type>\nbasic_ios<char_type>::operator", "parent": 434, "children": [436, 446, 447], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 30}}, {"id": 436, "type": "binary_expression", "text": "template<class char_type>\nbasic_ios<char_type", "parent": 435, "children": [437, 444, 445], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 19}}, {"id": 437, "type": "binary_expression", "text": "template<class char_type>\nbasic_ios", "parent": 436, "children": [438, 442, 443], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 9}}, {"id": 438, "type": "binary_expression", "text": "template<class char_type", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 24}}, {"id": 439, "type": "identifier", "text": "template", "parent": 438, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 8}}, {"id": 440, "type": "<", "text": "<", "parent": 438, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 441, "type": "identifier", "text": "char_type", "parent": 438, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 24}}, {"id": 442, "type": ">", "text": ">", "parent": 437, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 25}}, {"id": 443, "type": "identifier", "text": "basic_ios", "parent": 437, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 9}}, {"id": 444, "type": "<", "text": "<", "parent": 436, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 10}}, {"id": 445, "type": "identifier", "text": "char_type", "parent": 436, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 19}}, {"id": 446, "type": ">", "text": ">", "parent": 435, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 447, "type": "identifier", "text": "operator", "parent": 435, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 30}}, {"id": 448, "type": "primitive_type", "text": "void", "parent": 434, "children": [], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 41}}, {"id": 449, "type": "*", "text": "*", "parent": 434, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 42}}, {"id": 450, "type": "ERROR", "text": "()", "parent": 434, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 45}}, {"id": 451, "type": "return_statement", "text": "return _state & (badbit | failbit) ? 0 : this;", "parent": null, "children": [452], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 47}}, {"id": 452, "type": "conditional_expression", "text": "_state & (badbit | failbit) ? 0 : this", "parent": 451, "children": [453, 459, 460, 461], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 46}}, {"id": 453, "type": "binary_expression", "text": "_state & (badbit | failbit)", "parent": 452, "children": [454, 455], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 35}}, {"id": 454, "type": "identifier", "text": "_state", "parent": 453, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 455, "type": "parenthesized_expression", "text": "(badbit | failbit)", "parent": 453, "children": [456], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 35}}, {"id": 456, "type": "binary_expression", "text": "badbit | failbit", "parent": 455, "children": [457, 458], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 34}}, {"id": 457, "type": "identifier", "text": "badbit", "parent": 456, "children": [], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 24}}, {"id": 458, "type": "identifier", "text": "failbit", "parent": 456, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 34}}, {"id": 459, "type": "?", "text": "?", "parent": 452, "children": [], "start_point": {"row": 97, "column": 36}, "end_point": {"row": 97, "column": 37}}, {"id": 460, "type": "number_literal", "text": "0", "parent": 452, "children": [], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 39}}, {"id": 461, "type": "identifier", "text": "this", "parent": 452, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 46}}]}, "node_categories": {"declarations": {"functions": [131, 138, 140, 164, 169, 173], "variables": [28, 54, 82, 115, 145, 148, 176, 179], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [9, 91, 92, 93, 95, 124, 192, 193, 194, 195, 206, 210, 215, 216, 217, 218, 229, 233, 237, 238, 239, 240, 251, 255, 259, 260, 261, 262, 273, 277, 278, 279, 285, 286, 287, 288, 289, 290, 307, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 340, 345, 346, 370, 375, 376, 400, 416, 435, 436, 437, 438, 453, 455, 456], "assignments": [34, 60, 88, 121, 154, 185, 354, 384, 423, 428], "loops": [], "conditionals": [4, 6, 7, 10, 13, 15, 17, 18, 20, 21, 24, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 44, 46, 47, 50, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 70, 72, 75, 76, 77, 78, 80, 81, 83, 85, 87, 89, 94, 97, 98, 100, 102, 104, 105, 107, 108, 111, 112, 114, 116, 118, 120, 122, 126, 128, 130, 132, 134, 137, 139, 141, 143, 146, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 168, 170, 172, 174, 177, 178, 180, 182, 184, 186, 188, 190, 196, 198, 201, 202, 204, 207, 211, 213, 219, 221, 224, 225, 227, 230, 234, 235, 241, 243, 246, 247, 249, 252, 256, 257, 263, 265, 268, 269, 271, 274, 280, 281, 291, 293, 296, 297, 299, 302, 303, 305, 308, 311, 329, 331, 334, 335, 337, 341, 344, 347, 349, 352, 353, 355, 357, 359, 361, 364, 365, 367, 371, 374, 377, 379, 382, 383, 385, 387, 389, 391, 393, 395, 397, 401, 403, 405, 407, 409, 411, 413, 417, 419, 421, 424, 426, 429, 431, 433, 439, 441, 443, 445, 447, 452, 454, 457, 458, 461], "returns": [12, 38, 64, 99, 127, 136, 158, 167, 189, 209, 232, 254, 276, 310, 432, 451], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 283, 460], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "ios_base::width ( )"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "streamsize_t ios_base::width ( streamsize_t width ) {\n\tstreamsize_t tmp = _width;\n\t_width = width;\n\t"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "ios_base::width ( streamsize_t width )"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "precision ( )"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "streamsize_t ios_base::precision ( streamsize_t prec ) {\n\tstreamsize_t tmp = _prec;\n\t_prec = prec;\n\t"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "precision ( streamsize_t prec )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <cph/string.h>//string_util.h\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <cph/string.h>//string_util.h\n\nios_base::fmtflags ios_base::flags ( ) const\n{return _flags;}\n\nios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) {\n\tfmtflags tmp = _flags;\n\t_flags = fmtfl;\n\treturn tmp;\n}\n\nios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) {\n\tfmtflags tmp = _flags;\n\t_flags |= fmtfl;\n\treturn tmp;\n}\n\nios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl, ios_base::fmtflags mask ) {\n\tfmtflags tmp = _flags;\n\t_flags = (_flags & ~mask) | fmtfl;\n\treturn tmp;\n}\n\nios_base::fmtflags ios_base::unsetf ( ios_base::fmtflags mask ) {\n\tfmtflags tmp = _flags;\n\t_flags &= ~mask;\n\treturn tmp;\n}\n\nstreamsize_t ios_base::width ( ) const {\n\treturn _width;\n}\n\nstreamsize_t ios_base::width ( streamsize_t width ) {\n\tstreamsize_t tmp = _width;\n\t_width = width;\n\treturn tmp;\n}\n\nstreamsize_t ios_base::precision ( ) const {\n\treturn _prec;\n}\nstreamsize_t ios_base::precision ( streamsize_t prec ) {\n\tstreamsize_t tmp = _prec;\n\t_prec = prec;\n\treturn tmp;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::good () const {\n\treturn _state == goodbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::fail () const {\n\treturn _state & failbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::bad () const {\n\treturn _state & badbit;\n}\n\ntemplate<class char_type>\nbool basic_ios<char_type>::eof ( ) const {\n\treturn (_state & eofbit) != 0;\n}\n\ntemplate<class char_type>\ntypename basic_ios<char_type>::iostate basic_ios<char_type>::rdstate ( ) const {\n\treturn _state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::setstate (typename basic_ios<char_type>::iostate state ) {\n\t_state |= state;\n}\n\ntemplate<class char_type>\nvoid basic_ios<char_type>::clear (typename basic_ios<char_type>::iostate state ) {\n\t_state = state;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( ) const {\n\treturn _fillch;\n}\n\ntemplate<class char_type>\nchar_type basic_ios<char_type>::fill ( char_type fillch ) {\n\tuint8_t tmp = _fillch;\n\t_fillch = fillch;\n\treturn tmp;\n}\n\ntemplate<class char_type>\nbasic_ios<char_type>::operator const void* () const {\n\treturn _state & (badbit | failbit) ? 0 : this;\n}\n"}
81,017
c
// // ViewController.h // 30_UITableViewDynamicCells_FontsTest // // Created by <NAME> on 26.11.15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UITableViewDataSource> @property (weak, nonatomic) IBOutlet UITableView *tableView; @end
27.64
11
(translation_unit) "//\n// ViewController.h\n// 30_UITableViewDynamicCells_FontsTest\n//\n// Created by <NAME> on 26.11.15.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController <UITableViewDataSource>\n\n@property (weak, nonatomic) IBOutlet UITableView *tableView;\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// 30_UITableViewDynamicCells_FontsTest" (comment) "//" (comment) "// Created by <NAME> on 26.11.15." (comment) "// Copyright © 2015 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (ERROR) "interface ViewController : UIViewController <UITableViewDataSource>\n\n@property (weak, nonatomic) IBOutlet UITableView *tableView;\n\n@end\n" (ERROR) "i" (type_identifier) "nterface " (ERROR) "iewController : UIViewController <UITableViewDataSource>\n\n@p" (identifier) "iewController " (:) " " (identifier) "IViewController " (<) "U" (identifier) "ITableViewDataSource>" (>) "\n" (ERROR) "p" (function_declarator) "roperty (weak, nonatomic) " (identifier) "roperty " (parameter_list) "weak, nonatomic) " (() "w" (identifier) "eak," (,) " " (identifier) "onatomic)" ()) " " (declaration) "BOutlet UITableView *tableView;\n" (type_identifier) "BOutlet " (ERROR) "ITableView " (identifier) "ITableView " (pointer_declarator) "tableView;" (*) "t" (identifier) "ableView;" (;) "\n" (ERROR) "e" (ERROR) "e" (identifier) "nd\n"
41
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.64, "nodes": 27, "errors": 0, "source_hash": "5de494407abcb69e7e7fe54763b81d62ac876f1f863be2126ec2701b278f574d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "ERROR", "text": "interface ViewController : UIViewController <UITableViewDataSource>\n\n@property (weak, nonatomic) IBOutlet UITableView *tableView;\n\n@end\n", "parent": null, "children": [3, 4, 5, 12, 17, 24, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 3, "type": "ERROR", "text": "i", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 5, "type": "ERROR", "text": "iewController : UIViewController <UITableViewDataSource>\n\n@p", "parent": 2, "children": [6, 7, 8, 9, 10, 11], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "identifier", "text": "iewController ", "parent": 5, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 7, "type": "identifier", "text": "IViewController ", "parent": 5, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 44}}, {"id": 8, "type": "<", "text": "U", "parent": 5, "children": [], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 46}}, {"id": 9, "type": "identifier", "text": "ITableViewDataSource>", "parent": 5, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 67}}, {"id": 10, "type": ">", "text": "\n", "parent": 5, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 68}}, {"id": 11, "type": "ERROR", "text": "p", "parent": 5, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "function_declarator", "text": "roperty (weak, nonatomic) ", "parent": 2, "children": [13, 14], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 13, "type": "identifier", "text": "roperty ", "parent": 12, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "parameter_list", "text": "weak, nonatomic) ", "parent": 12, "children": [15, 16], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 27}}, {"id": 15, "type": "identifier", "text": "eak,", "parent": 14, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 16, "type": "identifier", "text": "onatomic)", "parent": 14, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 26}}, {"id": 17, "type": "declaration", "text": "BOutlet UITableView *tableView;\n", "parent": 2, "children": [18, 19, 21], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 60}}, {"id": 18, "type": "type_identifier", "text": "BOutlet ", "parent": 17, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 36}}, {"id": 19, "type": "ERROR", "text": "ITableView ", "parent": 17, "children": [20], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 48}}, {"id": 20, "type": "identifier", "text": "ITableView ", "parent": 19, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 48}}, {"id": 21, "type": "pointer_declarator", "text": "tableView;", "parent": 17, "children": [22, 23], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 59}}, {"id": 22, "type": "*", "text": "t", "parent": 21, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 50}}, {"id": 23, "type": "identifier", "text": "ableView;", "parent": 21, "children": [], "start_point": {"row": 12, "column": 50}, "end_point": {"row": 12, "column": 59}}, {"id": 24, "type": "ERROR", "text": "e", "parent": 2, "children": [25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 25, "type": "ERROR", "text": "e", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 26, "type": "identifier", "text": "nd\n", "parent": 2, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [17], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 7, 9, 13, 15, 16, 18, 20, 23, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (weak, nonatomic) "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ViewController.h\n// 30_UITableViewDynamicCells_FontsTest\n//\n// Created by <NAME> on 26.11.15.\n// Copyright \u00a9 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController <UITableViewDataSource>\n\n@property (weak, nonatomic) IBOutlet UITableView *tableView;\n\n@end\n\n"}
81,018
c
/****************************************************************************** * File: abstractstatemachine.h * Author: <NAME> * This file is part of the 'Simple Statemachine for Embedded Systems' * * Copyright (C) 2016,2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************/ #ifndef ABSTRACTSTATEMACHINE_H #define ABSTRACTSTATEMACHINE_H #include "istatemachinenode.h" class State; class StmEvent; /*! * \brief The AbstractStateMachine class */ class AbstractStateMachine : public IStateMachineNode { public: /*! * \brief AbstractStateMachine */ AbstractStateMachine(); /*! * \brief type * \return */ virtual NodeType type() const { return NodeTypeStateMachine; } /*! * \brief setCurrentState * \param s */ void setCurrentState(State* s) { currentState = s; } /*! * \brief getCurrentState * \return */ State* getCurrentState() const { return currentState; } /*! * \brief startStateMachine */ virtual void startStateMachine() = 0; /*! * \brief setUpStateMachine */ virtual void setUpStateMachine() = 0; /*! * \brief handleEvent * \param ev * \return */ bool handleEvent(StmEvent& ev) const; protected: /*! * \brief action * \return */ virtual bool action(const StmEvent&) { return false; } /*! * \brief hasAction * \return */ virtual bool hasAction() const { return false; } /*! * \brief setInitialState * \param s */ void setInitialState(State* s) { initialState = s; } /*! * \brief getInitialState * \return */ State* getInitialState() { return initialState; } private: AbstractStateMachine(const AbstractStateMachine&); AbstractStateMachine& operator =(const AbstractStateMachine&); State* currentState; State* initialState; }; #endif // ABSTRACTSTATEMACHINE_H
24.61
103
(translation_unit) "/****************************************************************************** \n * File: abstractstatemachine.h \n * Author: <NAME> \n * This file is part of the 'Simple Statemachine for Embedded Systems' \n * \n * Copyright (C) 2016,2018 <NAME> \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at \n * \n * http://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unless required by applicable law or agreed to in writing, software \n * distributed under the License is distributed on an "AS IS" BASIS, \n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n * See the License for the specific language governing permissions and \n * limitations under the License. \n *****************************************************************************/ \n#ifndef ABSTRACTSTATEMACHINE_H \n#define ABSTRACTSTATEMACHINE_H \n \n#include "istatemachinenode.h" \n \nclass State; \nclass StmEvent; \n \n/*! \n * \brief The AbstractStateMachine class \n */ \nclass AbstractStateMachine : public IStateMachineNode \n{ \npublic: \n /*! \n * \brief AbstractStateMachine \n */ \n AbstractStateMachine(); \n \n /*! \n * \brief type \n * \return \n */ \n virtual NodeType type() const { return NodeTypeStateMachine; } \n \n /*! \n * \brief setCurrentState \n * \param s \n */ \n void setCurrentState(State* s) { currentState = s; } \n /*! \n * \brief getCurrentState \n * \return \n */ \n State* getCurrentState() const { return currentState; } \n \n /*! \n * \brief startStateMachine \n */ \n virtual void startStateMachine() = 0; \n /*! \n * \brief setUpStateMachine \n */ \n virtual void setUpStateMachine() = 0; \n \n /*! \n * \brief handleEvent \n * \param ev \n * \return \n */ \n bool handleEvent(StmEvent& ev) const; \n \nprotected: \n /*! \n * \brief action \n * \return \n */ \n virtual bool action(const StmEvent&) { return false; } \n /*! \n * \brief hasAction \n * \return \n */ \n virtual bool hasAction() const { return false; } \n \n /*! \n * \brief setInitialState \n * \param s \n */ \n void setInitialState(State* s) { initialState = s; } \n /*! \n * \brief getInitialState \n * \return \n */ \n State* getInitialState() { return initialState; } \n \nprivate: \n AbstractStateMachine(const AbstractStateMachine&); \n AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState; \n State* initialState; \n}; \n \n#endif // ABSTRACTSTATEMACHINE_H \n" (comment) "/****************************************************************************** \n * File: abstractstatemachine.h \n * Author: <NAME> \n * This file is part of the 'Simple Statemachine for Embedded Systems' \n * \n * Copyright (C) 2016,2018 <NAME> \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at \n * \n * http://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unless required by applicable law or agreed to in writing, software \n * distributed under the License is distributed on an "AS IS" BASIS, \n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n * See the License for the specific language governing permissions and \n * limitations under the License. \n *****************************************************************************/" (preproc_ifdef) "#ifndef ABSTRACTSTATEMACHINE_H \n#define ABSTRACTSTATEMACHINE_H \n \n#include "istatemachinenode.h" \n \nclass State; \nclass StmEvent; \n \n/*! \n * \brief The AbstractStateMachine class \n */ \nclass AbstractStateMachine : public IStateMachineNode \n{ \npublic: \n /*! \n * \brief AbstractStateMachine \n */ \n AbstractStateMachine(); \n \n /*! \n * \brief type \n * \return \n */ \n virtual NodeType type() const { return NodeTypeStateMachine; } \n \n /*! \n * \brief setCurrentState \n * \param s \n */ \n void setCurrentState(State* s) { currentState = s; } \n /*! \n * \brief getCurrentState \n * \return \n */ \n State* getCurrentState() const { return currentState; } \n \n /*! \n * \brief startStateMachine \n */ \n virtual void startStateMachine() = 0; \n /*! \n * \brief setUpStateMachine \n */ \n virtual void setUpStateMachine() = 0; \n \n /*! \n * \brief handleEvent \n * \param ev \n * \return \n */ \n bool handleEvent(StmEvent& ev) const; \n \nprotected: \n /*! \n * \brief action \n * \return \n */ \n virtual bool action(const StmEvent&) { return false; } \n /*! \n * \brief hasAction \n * \return \n */ \n virtual bool hasAction() const { return false; } \n \n /*! \n * \brief setInitialState \n * \param s \n */ \n void setInitialState(State* s) { initialState = s; } \n /*! \n * \brief getInitialState \n * \return \n */ \n State* getInitialState() { return initialState; } \n \nprivate: \n AbstractStateMachine(const AbstractStateMachine&); \n AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState; \n State* initialState; \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "ABSTRACTSTATEMACHINE_H" (preproc_def) "#define ABSTRACTSTATEMACHINE_H \n" (#define) "#define" (identifier) "ABSTRACTSTATEMACHINE_H" (preproc_include) "#include "istatemachinenode.h" \n" (#include) "#include" (string_literal) ""istatemachinenode.h"" (") """ (string_content) "istatemachinenode.h" (") """ (declaration) "class State;" (type_identifier) "class" (identifier) "State" (;) ";" (declaration) "class StmEvent;" (type_identifier) "class" (identifier) "StmEvent" (;) ";" (comment) "/*! \n * \brief The AbstractStateMachine class \n */" (function_definition) "class AbstractStateMachine : public IStateMachineNode \n{ \npublic: \n /*! \n * \brief AbstractStateMachine \n */ \n AbstractStateMachine(); \n \n /*! \n * \brief type \n * \return \n */ \n virtual NodeType type() const { return NodeTypeStateMachine; } \n \n /*! \n * \brief setCurrentState \n * \param s \n */ \n void setCurrentState(State* s) { currentState = s; } \n /*! \n * \brief getCurrentState \n * \return \n */ \n State* getCurrentState() const { return currentState; } \n \n /*! \n * \brief startStateMachine \n */ \n virtual void startStateMachine() = 0; \n /*! \n * \brief setUpStateMachine \n */ \n virtual void setUpStateMachine() = 0; \n \n /*! \n * \brief handleEvent \n * \param ev \n * \return \n */ \n bool handleEvent(StmEvent& ev) const; \n \nprotected: \n /*! \n * \brief action \n * \return \n */ \n virtual bool action(const StmEvent&) { return false; } \n /*! \n * \brief hasAction \n * \return \n */ \n virtual bool hasAction() const { return false; } \n \n /*! \n * \brief setInitialState \n * \param s \n */ \n void setInitialState(State* s) { initialState = s; } \n /*! \n * \brief getInitialState \n * \return \n */ \n State* getInitialState() { return initialState; } \n \nprivate: \n AbstractStateMachine(const AbstractStateMachine&); \n AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState; \n State* initialState; \n}" (type_identifier) "class" (identifier) "AbstractStateMachine" (ERROR) ": public IStateMachineNode" (:) ":" (identifier) "public" (identifier) "IStateMachineNode" (compound_statement) "{ \npublic: \n /*! \n * \brief AbstractStateMachine \n */ \n AbstractStateMachine(); \n \n /*! \n * \brief type \n * \return \n */ \n virtual NodeType type() const { return NodeTypeStateMachine; } \n \n /*! \n * \brief setCurrentState \n * \param s \n */ \n void setCurrentState(State* s) { currentState = s; } \n /*! \n * \brief getCurrentState \n * \return \n */ \n State* getCurrentState() const { return currentState; } \n \n /*! \n * \brief startStateMachine \n */ \n virtual void startStateMachine() = 0; \n /*! \n * \brief setUpStateMachine \n */ \n virtual void setUpStateMachine() = 0; \n \n /*! \n * \brief handleEvent \n * \param ev \n * \return \n */ \n bool handleEvent(StmEvent& ev) const; \n \nprotected: \n /*! \n * \brief action \n * \return \n */ \n virtual bool action(const StmEvent&) { return false; } \n /*! \n * \brief hasAction \n * \return \n */ \n virtual bool hasAction() const { return false; } \n \n /*! \n * \brief setInitialState \n * \param s \n */ \n void setInitialState(State* s) { initialState = s; } \n /*! \n * \brief getInitialState \n * \return \n */ \n State* getInitialState() { return initialState; } \n \nprivate: \n AbstractStateMachine(const AbstractStateMachine&); \n AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState; \n State* initialState; \n}" ({) "{" (labeled_statement) "public: \n /*! \n * \brief AbstractStateMachine \n */ \n AbstractStateMachine();" (statement_identifier) "public" (:) ":" (comment) "/*! \n * \brief AbstractStateMachine \n */" (expression_statement) "AbstractStateMachine();" (call_expression) "AbstractStateMachine()" (identifier) "AbstractStateMachine" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*! \n * \brief type \n * \return \n */" (ERROR) "virtual NodeType type() const" (type_identifier) "virtual" (ERROR) "NodeType" (identifier) "NodeType" (function_declarator) "type()" (identifier) "type" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return NodeTypeStateMachine; }" ({) "{" (return_statement) "return NodeTypeStateMachine;" (return) "return" (identifier) "NodeTypeStateMachine" (;) ";" (}) "}" (comment) "/*! \n * \brief setCurrentState \n * \param s \n */" (function_definition) "void setCurrentState(State* s) { currentState = s; }" (primitive_type) "void" (function_declarator) "setCurrentState(State* s)" (identifier) "setCurrentState" (parameter_list) "(State* s)" (() "(" (parameter_declaration) "State* s" (type_identifier) "State" (pointer_declarator) "* s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{ currentState = s; }" ({) "{" (expression_statement) "currentState = s;" (assignment_expression) "currentState = s" (identifier) "currentState" (=) "=" (identifier) "s" (;) ";" (}) "}" (comment) "/*! \n * \brief getCurrentState \n * \return \n */" (function_definition) "State* getCurrentState() const { return currentState; }" (type_identifier) "State" (pointer_declarator) "* getCurrentState() const" (*) "*" (function_declarator) "getCurrentState() const" (identifier) "getCurrentState" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return currentState; }" ({) "{" (return_statement) "return currentState;" (return) "return" (identifier) "currentState" (;) ";" (}) "}" (comment) "/*! \n * \brief startStateMachine \n */" (declaration) "virtual void startStateMachine() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "startStateMachine() = 0" (function_declarator) "startStateMachine()" (identifier) "startStateMachine" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "/*! \n * \brief setUpStateMachine \n */" (declaration) "virtual void setUpStateMachine() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setUpStateMachine() = 0" (function_declarator) "setUpStateMachine()" (identifier) "setUpStateMachine" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "/*! \n * \brief handleEvent \n * \param ev \n * \return \n */" (ERROR) "bool handleEvent(StmEvent& ev) const" (primitive_type) "bool" (function_declarator) "handleEvent(StmEvent& ev) const" (identifier) "handleEvent" (parameter_list) "(StmEvent& ev)" (() "(" (parameter_declaration) "StmEvent& ev" (type_identifier) "StmEvent" (ERROR) "&" (&) "&" (identifier) "ev" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "protected: \n /*! \n * \brief action \n * \return \n */ \n virtual bool action(const StmEvent&) { return false; }" (statement_identifier) "protected" (:) ":" (comment) "/*! \n * \brief action \n * \return \n */" (ERROR) "virtual bool action(const StmEvent&)" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "action(const StmEvent&)" (identifier) "action" (parameter_list) "(const StmEvent&)" (() "(" (parameter_declaration) "const StmEvent" (type_qualifier) "const" (const) "const" (type_identifier) "StmEvent" (ERROR) "&" (&) "&" ()) ")" (compound_statement) "{ return false; }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/*! \n * \brief hasAction \n * \return \n */" (ERROR) "virtual bool hasAction() const" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "hasAction()" (identifier) "hasAction" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return false; }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/*! \n * \brief setInitialState \n * \param s \n */" (function_definition) "void setInitialState(State* s) { initialState = s; }" (primitive_type) "void" (function_declarator) "setInitialState(State* s)" (identifier) "setInitialState" (parameter_list) "(State* s)" (() "(" (parameter_declaration) "State* s" (type_identifier) "State" (pointer_declarator) "* s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{ initialState = s; }" ({) "{" (expression_statement) "initialState = s;" (assignment_expression) "initialState = s" (identifier) "initialState" (=) "=" (identifier) "s" (;) ";" (}) "}" (comment) "/*! \n * \brief getInitialState \n * \return \n */" (function_definition) "State* getInitialState() { return initialState; }" (type_identifier) "State" (pointer_declarator) "* getInitialState()" (*) "*" (function_declarator) "getInitialState()" (identifier) "getInitialState" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return initialState; }" ({) "{" (return_statement) "return initialState;" (return) "return" (identifier) "initialState" (;) ";" (}) "}" (labeled_statement) "private: \n AbstractStateMachine(const AbstractStateMachine&);" (statement_identifier) "private" (:) ":" (declaration) "AbstractStateMachine(const AbstractStateMachine&);" (macro_type_specifier) "AbstractStateMachine(const AbstractStateMachine&)" (identifier) "AbstractStateMachine" (() "(" (type_descriptor) "const AbstractStateMachine" (type_qualifier) "const" (const) "const" (type_identifier) "AbstractStateMachine" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (expression_statement) "AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState;" (binary_expression) "AbstractStateMachine& operator =(const AbstractStateMachine&); \n \n State* currentState" (identifier) "AbstractStateMachine" (&) "&" (assignment_expression) "operator =(const AbstractStateMachine&); \n \n State* currentState" (identifier) "operator" (=) "=" (binary_expression) "(const AbstractStateMachine&); \n \n State* currentState" (cast_expression) "(const AbstractStateMachine&); \n \n State" (() "(" (type_descriptor) "const AbstractStateMachine" (type_qualifier) "const" (const) "const" (type_identifier) "AbstractStateMachine" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";" (;) ";" (identifier) "State" (*) "*" (identifier) "currentState" (;) ";" (declaration) "State* initialState;" (type_identifier) "State" (pointer_declarator) "* initialState" (*) "*" (identifier) "initialState" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// ABSTRACTSTATEMACHINE_H "
280
15
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 24.61, "nodes": 150, "errors": 0, "source_hash": "454b51f6c7ce5090fb0e63810cc95c40569602fdb916cc30a1d29bd3f44a1f98", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ABSTRACTSTATEMACHINE_H\r\n#define ABSTRACTSTATEMACHINE_H\r\n\r\n#include \"istatemachinenode.h\"\r\n\r\nclass State;\r\nclass StmEvent;\r\n\r\n/*!\r\n * \\brief The AbstractStateMachine class\r\n */\r\nclass AbstractStateMachine : public IStateMachineNode\r\n{\r\npublic:\r\n /*!\r\n * \\brief AbstractStateMachine\r\n */\r\n AbstractStateMachine();\r\n\r\n /*!\r\n * \\brief type\r\n * \\return\r\n */\r\n virtual NodeType type() const { return NodeTypeStateMachine; }\r\n\r\n /*!\r\n * \\brief setCurrentState\r\n * \\param s\r\n */\r\n void setCurrentState(State* s) { currentState = s; }\r\n /*!\r\n * \\brief getCurrentState\r\n * \\return\r\n */\r\n State* getCurrentState() const { return currentState; }\r\n\r\n /*!\r\n * \\brief startStateMachine\r\n */\r\n virtual void startStateMachine() = 0;\r\n /*!\r\n * \\brief setUpStateMachine\r\n */\r\n virtual void setUpStateMachine() = 0;\r\n\r\n /*!\r\n * \\brief handleEvent\r\n * \\param ev\r\n * \\return\r\n */\r\n bool handleEvent(StmEvent& ev) const;\r\n\r\nprotected:\r\n /*!\r\n * \\brief action\r\n * \\return\r\n */\r\n virtual bool action(const StmEvent&) { return false; }\r\n /*!\r\n * \\brief hasAction\r\n * \\return\r\n */\r\n virtual bool hasAction() const { return false; }\r\n\r\n /*!\r\n * \\brief setInitialState\r\n * \\param s\r\n */\r\n void setInitialState(State* s) { initialState = s; }\r\n /*!\r\n * \\brief getInitialState\r\n * \\return\r\n */\r\n State* getInitialState() { return initialState; }\r\n\r\nprivate:\r\n AbstractStateMachine(const AbstractStateMachine&);\r\n AbstractStateMachine& operator =(const AbstractStateMachine&);\r\n\r\n State* currentState;\r\n State* initialState;\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 11, 13, 149], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "ABSTRACTSTATEMACHINE_H", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define ABSTRACTSTATEMACHINE_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "identifier", "text": "ABSTRACTSTATEMACHINE_H", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"istatemachinenode.h\"\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"istatemachinenode.h\"", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 30}}, {"id": 9, "type": "declaration", "text": "class State;", "parent": 0, "children": [10], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 12}}, {"id": 10, "type": "identifier", "text": "State", "parent": 9, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 11}}, {"id": 11, "type": "declaration", "text": "class StmEvent;", "parent": 0, "children": [12], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 15}}, {"id": 12, "type": "identifier", "text": "StmEvent", "parent": 11, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 14}}, {"id": 13, "type": "function_definition", "text": "class AbstractStateMachine : public IStateMachineNode\r\n{\r\npublic:\r\n /*!\r\n * \\brief AbstractStateMachine\r\n */\r\n AbstractStateMachine();\r\n\r\n /*!\r\n * \\brief type\r\n * \\return\r\n */\r\n virtual NodeType type() const { return NodeTypeStateMachine; }\r\n\r\n /*!\r\n * \\brief setCurrentState\r\n * \\param s\r\n */\r\n void setCurrentState(State* s) { currentState = s; }\r\n /*!\r\n * \\brief getCurrentState\r\n * \\return\r\n */\r\n State* getCurrentState() const { return currentState; }\r\n\r\n /*!\r\n * \\brief startStateMachine\r\n */\r\n virtual void startStateMachine() = 0;\r\n /*!\r\n * \\brief setUpStateMachine\r\n */\r\n virtual void setUpStateMachine() = 0;\r\n\r\n /*!\r\n * \\brief handleEvent\r\n * \\param ev\r\n * \\return\r\n */\r\n bool handleEvent(StmEvent& ev) const;\r\n\r\nprotected:\r\n /*!\r\n * \\brief action\r\n * \\return\r\n */\r\n virtual bool action(const StmEvent&) { return false; }\r\n /*!\r\n * \\brief hasAction\r\n * \\return\r\n */\r\n virtual bool hasAction() const { return false; }\r\n\r\n /*!\r\n * \\brief setInitialState\r\n * \\param s\r\n */\r\n void setInitialState(State* s) { initialState = s; }\r\n /*!\r\n * \\brief getInitialState\r\n * \\return\r\n */\r\n State* getInitialState() { return initialState; }\r\n\r\nprivate:\r\n AbstractStateMachine(const AbstractStateMachine&);\r\n AbstractStateMachine& operator =(const AbstractStateMachine&);\r\n\r\n State* currentState;\r\n State* initialState;\r\n}", "parent": 0, "children": [14, 15], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 14, "type": "identifier", "text": "AbstractStateMachine", "parent": 13, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 26}}, {"id": 15, "type": "ERROR", "text": ": public IStateMachineNode", "parent": 13, "children": [16], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 53}}, {"id": 16, "type": "identifier", "text": "IStateMachineNode", "parent": 15, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 53}}, {"id": 17, "type": "labeled_statement", "text": "public:\r\n /*!\r\n * \\brief AbstractStateMachine\r\n */\r\n AbstractStateMachine();", "parent": 13, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 36, "column": 27}}, {"id": 18, "type": "call_expression", "text": "AbstractStateMachine()", "parent": 17, "children": [19, 20], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 26}}, {"id": 19, "type": "identifier", "text": "AbstractStateMachine", "parent": 18, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 24}}, {"id": 20, "type": "argument_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 26}}, {"id": 21, "type": "ERROR", "text": "virtual NodeType type() const", "parent": 13, "children": [22, 23, 25], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 33}}, {"id": 22, "type": "type_identifier", "text": "virtual", "parent": 21, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 23, "type": "ERROR", "text": "NodeType", "parent": 21, "children": [24], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 24, "type": "identifier", "text": "NodeType", "parent": 23, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 25, "type": "function_declarator", "text": "type()", "parent": 21, "children": [26, 27], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 27}}, {"id": 26, "type": "identifier", "text": "type", "parent": 25, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 25}}, {"id": 27, "type": "parameter_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 27}}, {"id": 28, "type": "return_statement", "text": "return NodeTypeStateMachine;", "parent": 13, "children": [29], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 64}}, {"id": 29, "type": "identifier", "text": "NodeTypeStateMachine", "parent": 28, "children": [], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 63}}, {"id": 30, "type": "function_definition", "text": "void setCurrentState(State* s) { currentState = s; }", "parent": 13, "children": [31, 32], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 56}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 30, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 8}}, {"id": 32, "type": "function_declarator", "text": "setCurrentState(State* s)", "parent": 30, "children": [33, 34], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 34}}, {"id": 33, "type": "identifier", "text": "setCurrentState", "parent": 32, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 24}}, {"id": 34, "type": "parameter_list", "text": "(State* s)", "parent": 32, "children": [35], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 34}}, {"id": 35, "type": "parameter_declaration", "text": "State* s", "parent": 34, "children": [36, 37], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 33}}, {"id": 36, "type": "type_identifier", "text": "State", "parent": 35, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 30}}, {"id": 37, "type": "pointer_declarator", "text": "* s", "parent": 35, "children": [38, 39], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 33}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 31}}, {"id": 39, "type": "identifier", "text": "s", "parent": 37, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 33}}, {"id": 40, "type": "assignment_expression", "text": "currentState = s", "parent": 30, "children": [41, 42, 43], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 53}}, {"id": 41, "type": "identifier", "text": "currentState", "parent": 40, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 49}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 51}}, {"id": 43, "type": "identifier", "text": "s", "parent": 40, "children": [], "start_point": {"row": 48, "column": 52}, "end_point": {"row": 48, "column": 53}}, {"id": 44, "type": "function_definition", "text": "State* getCurrentState() const { return currentState; }", "parent": 13, "children": [45, 46], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 59}}, {"id": 45, "type": "type_identifier", "text": "State", "parent": 44, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 9}}, {"id": 46, "type": "pointer_declarator", "text": "* getCurrentState() const", "parent": 44, "children": [47, 48], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 34}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 48, "type": "function_declarator", "text": "getCurrentState() const", "parent": 46, "children": [49, 50], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 34}}, {"id": 49, "type": "identifier", "text": "getCurrentState", "parent": 48, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 26}}, {"id": 50, "type": "parameter_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 28}}, {"id": 51, "type": "return_statement", "text": "return currentState;", "parent": 44, "children": [52], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 57}}, {"id": 52, "type": "identifier", "text": "currentState", "parent": 51, "children": [], "start_point": {"row": 53, "column": 44}, "end_point": {"row": 53, "column": 56}}, {"id": 53, "type": "declaration", "text": "virtual void startStateMachine() = 0;", "parent": 13, "children": [54, 55, 57], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 41}}, {"id": 54, "type": "type_identifier", "text": "virtual", "parent": 53, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 11}}, {"id": 55, "type": "ERROR", "text": "void", "parent": 53, "children": [56], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 16}}, {"id": 56, "type": "identifier", "text": "void", "parent": 55, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 16}}, {"id": 57, "type": "init_declarator", "text": "startStateMachine() = 0", "parent": 53, "children": [58, 61, 62], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 40}}, {"id": 58, "type": "function_declarator", "text": "startStateMachine()", "parent": 57, "children": [59, 60], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 36}}, {"id": 59, "type": "identifier", "text": "startStateMachine", "parent": 58, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 34}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 58, "column": 34}, "end_point": {"row": 58, "column": 36}}, {"id": 61, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 58, "column": 37}, "end_point": {"row": 58, "column": 38}}, {"id": 62, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 40}}, {"id": 63, "type": "declaration", "text": "virtual void setUpStateMachine() = 0;", "parent": 13, "children": [64, 65, 67], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 41}}, {"id": 64, "type": "type_identifier", "text": "virtual", "parent": 63, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 11}}, {"id": 65, "type": "ERROR", "text": "void", "parent": 63, "children": [66], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 16}}, {"id": 66, "type": "identifier", "text": "void", "parent": 65, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 16}}, {"id": 67, "type": "init_declarator", "text": "setUpStateMachine() = 0", "parent": 63, "children": [68, 71, 72], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 40}}, {"id": 68, "type": "function_declarator", "text": "setUpStateMachine()", "parent": 67, "children": [69, 70], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 36}}, {"id": 69, "type": "identifier", "text": "setUpStateMachine", "parent": 68, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 34}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 36}}, {"id": 71, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 38}}, {"id": 72, "type": "number_literal", "text": "0", "parent": 67, "children": [], "start_point": {"row": 62, "column": 39}, "end_point": {"row": 62, "column": 40}}, {"id": 73, "type": "ERROR", "text": "bool handleEvent(StmEvent& ev) const", "parent": 13, "children": [74, 75], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 40}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 75, "type": "function_declarator", "text": "handleEvent(StmEvent& ev) const", "parent": 73, "children": [76, 77], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 40}}, {"id": 76, "type": "identifier", "text": "handleEvent", "parent": 75, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 20}}, {"id": 77, "type": "parameter_list", "text": "(StmEvent& ev)", "parent": 75, "children": [78], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 34}}, {"id": 78, "type": "parameter_declaration", "text": "StmEvent& ev", "parent": 77, "children": [79, 80], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 33}}, {"id": 79, "type": "type_identifier", "text": "StmEvent", "parent": 78, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 29}}, {"id": 80, "type": "identifier", "text": "ev", "parent": 78, "children": [], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 33}}, {"id": 81, "type": "labeled_statement", "text": "protected:\r\n /*!\r\n * \\brief action\r\n * \\return\r\n */\r\n virtual bool action(const StmEvent&) { return false; }", "parent": 13, "children": [82], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 76, "column": 58}}, {"id": 82, "type": "ERROR", "text": "virtual bool action(const StmEvent&)", "parent": 81, "children": [83, 84, 86], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 40}}, {"id": 83, "type": "type_identifier", "text": "virtual", "parent": 82, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 11}}, {"id": 84, "type": "ERROR", "text": "bool", "parent": 82, "children": [85], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 16}}, {"id": 85, "type": "identifier", "text": "bool", "parent": 84, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 16}}, {"id": 86, "type": "function_declarator", "text": "action(const StmEvent&)", "parent": 82, "children": [87, 88], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 40}}, {"id": 87, "type": "identifier", "text": "action", "parent": 86, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 23}}, {"id": 88, "type": "parameter_list", "text": "(const StmEvent&)", "parent": 86, "children": [89], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 40}}, {"id": 89, "type": "parameter_declaration", "text": "const StmEvent", "parent": 88, "children": [90], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 38}}, {"id": 90, "type": "type_identifier", "text": "StmEvent", "parent": 89, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 38}}, {"id": 91, "type": "return_statement", "text": "return false;", "parent": 81, "children": [92], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 56}}, {"id": 92, "type": "false", "text": "false", "parent": 91, "children": [], "start_point": {"row": 76, "column": 50}, "end_point": {"row": 76, "column": 55}}, {"id": 93, "type": "ERROR", "text": "virtual bool hasAction() const", "parent": 13, "children": [94, 95, 97], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 34}}, {"id": 94, "type": "type_identifier", "text": "virtual", "parent": 93, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 11}}, {"id": 95, "type": "ERROR", "text": "bool", "parent": 93, "children": [96], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 16}}, {"id": 96, "type": "identifier", "text": "bool", "parent": 95, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 16}}, {"id": 97, "type": "function_declarator", "text": "hasAction()", "parent": 93, "children": [98, 99], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 28}}, {"id": 98, "type": "identifier", "text": "hasAction", "parent": 97, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 26}}, {"id": 99, "type": "parameter_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 28}}, {"id": 100, "type": "return_statement", "text": "return false;", "parent": 13, "children": [101], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 50}}, {"id": 101, "type": "false", "text": "false", "parent": 100, "children": [], "start_point": {"row": 81, "column": 44}, "end_point": {"row": 81, "column": 49}}, {"id": 102, "type": "function_definition", "text": "void setInitialState(State* s) { initialState = s; }", "parent": 13, "children": [103, 104], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 56}}, {"id": 103, "type": "primitive_type", "text": "void", "parent": 102, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 8}}, {"id": 104, "type": "function_declarator", "text": "setInitialState(State* s)", "parent": 102, "children": [105, 106], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 34}}, {"id": 105, "type": "identifier", "text": "setInitialState", "parent": 104, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 24}}, {"id": 106, "type": "parameter_list", "text": "(State* s)", "parent": 104, "children": [107], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 34}}, {"id": 107, "type": "parameter_declaration", "text": "State* s", "parent": 106, "children": [108, 109], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 33}}, {"id": 108, "type": "type_identifier", "text": "State", "parent": 107, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 30}}, {"id": 109, "type": "pointer_declarator", "text": "* s", "parent": 107, "children": [110, 111], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 33}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 31}}, {"id": 111, "type": "identifier", "text": "s", "parent": 109, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 33}}, {"id": 112, "type": "assignment_expression", "text": "initialState = s", "parent": 102, "children": [113, 114, 115], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 53}}, {"id": 113, "type": "identifier", "text": "initialState", "parent": 112, "children": [], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 49}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 87, "column": 50}, "end_point": {"row": 87, "column": 51}}, {"id": 115, "type": "identifier", "text": "s", "parent": 112, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 53}}, {"id": 116, "type": "function_definition", "text": "State* getInitialState() { return initialState; }", "parent": 13, "children": [117, 118], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 53}}, {"id": 117, "type": "type_identifier", "text": "State", "parent": 116, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 9}}, {"id": 118, "type": "pointer_declarator", "text": "* getInitialState()", "parent": 116, "children": [119, 120], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 28}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 10}}, {"id": 120, "type": "function_declarator", "text": "getInitialState()", "parent": 118, "children": [121, 122], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 28}}, {"id": 121, "type": "identifier", "text": "getInitialState", "parent": 120, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 26}}, {"id": 122, "type": "parameter_list", "text": "()", "parent": 120, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 28}}, {"id": 123, "type": "return_statement", "text": "return initialState;", "parent": 116, "children": [124], "start_point": {"row": 92, "column": 31}, "end_point": {"row": 92, "column": 51}}, {"id": 124, "type": "identifier", "text": "initialState", "parent": 123, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 50}}, {"id": 125, "type": "labeled_statement", "text": "private:\r\n AbstractStateMachine(const AbstractStateMachine&);", "parent": 13, "children": [126], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 54}}, {"id": 126, "type": "declaration", "text": "AbstractStateMachine(const AbstractStateMachine&);", "parent": 125, "children": [127, 131], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 54}}, {"id": 127, "type": "macro_type_specifier", "text": "AbstractStateMachine(const AbstractStateMachine&)", "parent": 126, "children": [128, 129], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 53}}, {"id": 128, "type": "identifier", "text": "AbstractStateMachine", "parent": 127, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 24}}, {"id": 129, "type": "type_descriptor", "text": "const AbstractStateMachine", "parent": 127, "children": [130], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 51}}, {"id": 130, "type": "type_identifier", "text": "AbstractStateMachine", "parent": 129, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 51}}, {"id": 131, "type": "identifier", "text": "", "parent": 126, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 53}}, {"id": 132, "type": "binary_expression", "text": "AbstractStateMachine& operator =(const AbstractStateMachine&);\r\n\r\n State* currentState", "parent": 13, "children": [133, 134], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 98, "column": 23}}, {"id": 133, "type": "identifier", "text": "AbstractStateMachine", "parent": 132, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 24}}, {"id": 134, "type": "assignment_expression", "text": "operator =(const AbstractStateMachine&);\r\n\r\n State* currentState", "parent": 132, "children": [135, 136, 137], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 98, "column": 23}}, {"id": 135, "type": "identifier", "text": "operator", "parent": 134, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 34}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 36}}, {"id": 137, "type": "binary_expression", "text": "(const AbstractStateMachine&);\r\n\r\n State* currentState", "parent": 134, "children": [138, 142, 143], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 98, "column": 23}}, {"id": 138, "type": "cast_expression", "text": "(const AbstractStateMachine&);\r\n\r\n State", "parent": 137, "children": [139, 141], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 98, "column": 9}}, {"id": 139, "type": "type_descriptor", "text": "const AbstractStateMachine", "parent": 138, "children": [140], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 63}}, {"id": 140, "type": "type_identifier", "text": "AbstractStateMachine", "parent": 139, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 63}}, {"id": 141, "type": "identifier", "text": "State", "parent": 138, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 9}}, {"id": 142, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 143, "type": "identifier", "text": "currentState", "parent": 137, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 23}}, {"id": 144, "type": "declaration", "text": "State* initialState;", "parent": 13, "children": [145, 146], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 24}}, {"id": 145, "type": "type_identifier", "text": "State", "parent": 144, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 9}}, {"id": 146, "type": "pointer_declarator", "text": "* initialState", "parent": 144, "children": [147, 148], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 23}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 10}}, {"id": 148, "type": "identifier", "text": "initialState", "parent": 146, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 23}}, {"id": 149, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}]}, "node_categories": {"declarations": {"functions": [13, 25, 30, 32, 44, 48, 58, 68, 75, 86, 97, 102, 104, 116, 120], "variables": [9, 11, 35, 53, 63, 78, 89, 107, 126, 144], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [18, 132, 137, 138], "assignments": [40, 112, 134], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 14, 16, 19, 22, 24, 26, 29, 33, 36, 39, 41, 43, 45, 49, 52, 54, 56, 59, 64, 66, 69, 76, 79, 80, 83, 85, 87, 90, 94, 96, 98, 105, 108, 111, 113, 115, 117, 121, 124, 127, 128, 130, 131, 133, 135, 140, 141, 143, 145, 148, 149], "returns": [28, 51, 91, 100, 123], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 62, 72], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "AbstractStateMachine", "text_snippet": "class AbstractStateMachine : public IStateMachineNode\r\n{\r\npublic:\r\n /*!\r\n * \\brief AbstractSt"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "type()"}, {"node_id": 30, "universal_type": "function", "name": "setCurrentState", "text_snippet": "void setCurrentState(State* s) { currentState = s; }"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "setCurrentState(State* s)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "State* getCurrentState() const { return currentState; }"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "getCurrentState() const"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "startStateMachine()"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "setUpStateMachine()"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "handleEvent(StmEvent& ev) const"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "action(const StmEvent&)"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "hasAction()"}, {"node_id": 102, "universal_type": "function", "name": "setInitialState", "text_snippet": "void setInitialState(State* s) { initialState = s; }"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "setInitialState(State* s)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "State* getInitialState() { return initialState; }"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "getInitialState()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"istatemachinenode.h\"\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/******************************************************************************\r\n * File: abstractstatemachine.h\r\n * Author: <NAME>\r\n * This file is part of the 'Simple Statemachine for Embedded Systems'\r\n *\r\n * Copyright (C) 2016,2018 <NAME>\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n *****************************************************************************/\r\n#ifndef ABSTRACTSTATEMACHINE_H\r\n#define ABSTRACTSTATEMACHINE_H\r\n\r\n#include \"istatemachinenode.h\"\r\n\r\nclass State;\r\nclass StmEvent;\r\n\r\n/*!\r\n * \\brief The AbstractStateMachine class\r\n */\r\nclass AbstractStateMachine : public IStateMachineNode\r\n{\r\npublic:\r\n /*!\r\n * \\brief AbstractStateMachine\r\n */\r\n AbstractStateMachine();\r\n\r\n /*!\r\n * \\brief type\r\n * \\return\r\n */\r\n virtual NodeType type() const { return NodeTypeStateMachine; }\r\n\r\n /*!\r\n * \\brief setCurrentState\r\n * \\param s\r\n */\r\n void setCurrentState(State* s) { currentState = s; }\r\n /*!\r\n * \\brief getCurrentState\r\n * \\return\r\n */\r\n State* getCurrentState() const { return currentState; }\r\n\r\n /*!\r\n * \\brief startStateMachine\r\n */\r\n virtual void startStateMachine() = 0;\r\n /*!\r\n * \\brief setUpStateMachine\r\n */\r\n virtual void setUpStateMachine() = 0;\r\n\r\n /*!\r\n * \\brief handleEvent\r\n * \\param ev\r\n * \\return\r\n */\r\n bool handleEvent(StmEvent& ev) const;\r\n\r\nprotected:\r\n /*!\r\n * \\brief action\r\n * \\return\r\n */\r\n virtual bool action(const StmEvent&) { return false; }\r\n /*!\r\n * \\brief hasAction\r\n * \\return\r\n */\r\n virtual bool hasAction() const { return false; }\r\n\r\n /*!\r\n * \\brief setInitialState\r\n * \\param s\r\n */\r\n void setInitialState(State* s) { initialState = s; }\r\n /*!\r\n * \\brief getInitialState\r\n * \\return\r\n */\r\n State* getInitialState() { return initialState; }\r\n\r\nprivate:\r\n AbstractStateMachine(const AbstractStateMachine&);\r\n AbstractStateMachine& operator =(const AbstractStateMachine&);\r\n\r\n State* currentState;\r\n State* initialState;\r\n};\r\n\r\n#endif // ABSTRACTSTATEMACHINE_H\r\n"}
81,019
c
/* $NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU Lesser General Public License v.2.1. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "lib.h" #include "uuid.h" #include "lvm-wrappers.h" #include <assert.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <ctype.h> static const char _c[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#"; static int _built_inverse; static char _inverse_c[256]; int lvid_create(union lvid *lvid, struct id *vgid) { memcpy(lvid->id, vgid, sizeof(*lvid->id)); return id_create(&lvid->id[1]); } void uuid_from_num(char *uuid, uint32_t num) { unsigned i; for (i = ID_LEN; i; i--) { uuid[i - 1] = _c[num % (sizeof(_c) - 1)]; num /= sizeof(_c) - 1; } } int lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num) { int i; memcpy(lvid->id, vgid, sizeof(*lvid->id)); for (i = ID_LEN; i; i--) { lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)]; lv_num /= sizeof(_c) - 1; } lvid->s[sizeof(lvid->s) - 1] = '\0'; return 1; } int lvnum_from_lvid(union lvid *lvid) { int i, lv_num = 0; char *c; for (i = 0; i < ID_LEN; i++) { lv_num *= sizeof(_c) - 1; if ((c = strchr(_c, lvid->id[1].uuid[i]))) lv_num += (int) (c - _c); if (lv_num < 0) lv_num = 0; } return lv_num; } int lvid_in_restricted_range(union lvid *lvid) { int i; for (i = 0; i < ID_LEN - 3; i++) if (lvid->id[1].uuid[i] != '0') return 0; for (i = ID_LEN - 3; i < ID_LEN; i++) if (!isdigit(lvid->id[1].uuid[i])) return 0; return 1; } int id_create(struct id *id) { unsigned i; size_t len = sizeof(id->uuid); memset(id->uuid, 0, len); if (!read_urandom(&id->uuid, len)) { return 0; } /* * Skip out the last 2 chars in randomized creation for LVM1 * backwards compatibility. */ for (i = 0; i < len; i++) id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)]; return 1; } /* * The only validity check we have is that * the uuid just contains characters from * '_c'. A checksum would have been nice :( */ static void _build_inverse(void) { const char *ptr; if (_built_inverse) return; memset(_inverse_c, 0, sizeof(_inverse_c)); for (ptr = _c; *ptr; ptr++) _inverse_c[(int) *ptr] = (char) 0x1; } int id_valid(struct id *id) { int i; _build_inverse(); for (i = 0; i < ID_LEN; i++) if (!_inverse_c[id->uuid[i]]) { log_error("UUID contains invalid character"); return 0; } return 1; } int id_equal(const struct id *lhs, const struct id *rhs) { return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid)); } #define GROUPS (ID_LEN / 4) int id_write_format(const struct id *id, char *buffer, size_t size) { int i, tot; static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 }; assert(ID_LEN == 32); /* split into groups separated by dashes */ if (size < (32 + 6 + 1)) { log_error("Couldn't write uuid, buffer too small."); return 0; } for (i = 0, tot = 0; i < 7; i++) { memcpy(buffer, id->uuid + tot, group_size[i]); buffer += group_size[i]; tot += group_size[i]; *buffer++ = '-'; } *--buffer = '\0'; return 1; } int id_read_format(struct id *id, const char *buffer) { int out = 0; /* just strip out any dashes */ while (*buffer) { if (*buffer == '-') { buffer++; continue; } if (out >= ID_LEN) { log_error("Too many characters to be uuid."); return 0; } id->uuid[out++] = *buffer++; } if (out != ID_LEN) { log_error("Couldn't read uuid: incorrect number of " "characters."); return 0; } return id_valid(id); }
23.65
163
(translation_unit) "/* $NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $ */\n\n/*\n * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.\n * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.\n *\n * This file is part of LVM2.\n *\n * This copyrighted material is made available to anyone wishing to use,\n * modify, copy, or redistribute it subject to the terms and conditions\n * of the GNU Lesser General Public License v.2.1.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program; if not, write to the Free Software Foundation,\n * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */\n\n#include "lib.h"\n#include "uuid.h"\n#include "lvm-wrappers.h"\n\n#include <assert.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <ctype.h>\n\nstatic const char _c[] =\n "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#";\n\nstatic int _built_inverse;\nstatic char _inverse_c[256];\n\nint lvid_create(union lvid *lvid, struct id *vgid)\n{\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n return id_create(&lvid->id[1]);\n}\n\nvoid uuid_from_num(char *uuid, uint32_t num)\n{\n unsigned i;\n\n for (i = ID_LEN; i; i--) {\n uuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n num /= sizeof(_c) - 1;\n }\n}\n\nint lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)\n{\n int i;\n\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n\n for (i = ID_LEN; i; i--) {\n lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n lv_num /= sizeof(_c) - 1;\n }\n\n lvid->s[sizeof(lvid->s) - 1] = '\0';\n\n return 1;\n}\n\nint lvnum_from_lvid(union lvid *lvid)\n{\n int i, lv_num = 0;\n char *c;\n\n for (i = 0; i < ID_LEN; i++) {\n lv_num *= sizeof(_c) - 1;\n if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);\n if (lv_num < 0)\n lv_num = 0;\n }\n\n return lv_num;\n}\n\nint lvid_in_restricted_range(union lvid *lvid)\n{\n int i;\n\n for (i = 0; i < ID_LEN - 3; i++)\n if (lvid->id[1].uuid[i] != '0')\n return 0;\n\n for (i = ID_LEN - 3; i < ID_LEN; i++)\n if (!isdigit(lvid->id[1].uuid[i]))\n return 0;\n\n return 1;\n}\n\n\nint id_create(struct id *id)\n{\n unsigned i;\n size_t len = sizeof(id->uuid);\n\n memset(id->uuid, 0, len);\n if (!read_urandom(&id->uuid, len)) {\n return 0;\n }\n\n /*\n * Skip out the last 2 chars in randomized creation for LVM1\n * backwards compatibility.\n */\n for (i = 0; i < len; i++)\n id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];\n\n return 1;\n}\n\n/*\n * The only validity check we have is that\n * the uuid just contains characters from\n * '_c'. A checksum would have been nice :(\n */\nstatic void _build_inverse(void)\n{\n const char *ptr;\n\n if (_built_inverse)\n return;\n\n memset(_inverse_c, 0, sizeof(_inverse_c));\n\n for (ptr = _c; *ptr; ptr++)\n _inverse_c[(int) *ptr] = (char) 0x1;\n}\n\nint id_valid(struct id *id)\n{\n int i;\n\n _build_inverse();\n\n for (i = 0; i < ID_LEN; i++)\n if (!_inverse_c[id->uuid[i]]) {\n log_error("UUID contains invalid character");\n return 0;\n }\n\n return 1;\n}\n\nint id_equal(const struct id *lhs, const struct id *rhs)\n{\n return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));\n}\n\n#define GROUPS (ID_LEN / 4)\n\nint id_write_format(const struct id *id, char *buffer, size_t size)\n{\n int i, tot;\n\n static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };\n\n assert(ID_LEN == 32);\n\n /* split into groups separated by dashes */\n if (size < (32 + 6 + 1)) {\n log_error("Couldn't write uuid, buffer too small.");\n return 0;\n }\n\n for (i = 0, tot = 0; i < 7; i++) {\n memcpy(buffer, id->uuid + tot, group_size[i]);\n buffer += group_size[i];\n tot += group_size[i];\n *buffer++ = '-';\n }\n\n *--buffer = '\0';\n return 1;\n}\n\nint id_read_format(struct id *id, const char *buffer)\n{\n int out = 0;\n\n /* just strip out any dashes */\n while (*buffer) {\n\n if (*buffer == '-') {\n buffer++;\n continue;\n }\n\n if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }\n\n id->uuid[out++] = *buffer++;\n }\n\n if (out != ID_LEN) {\n log_error("Couldn't read uuid: incorrect number of "\n "characters.");\n return 0;\n }\n\n return id_valid(id);\n}\n" (comment) "/* $NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $ */" (comment) "/*\n * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.\n * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.\n *\n * This file is part of LVM2.\n *\n * This copyrighted material is made available to anyone wishing to use,\n * modify, copy, or redistribute it subject to the terms and conditions\n * of the GNU Lesser General Public License v.2.1.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program; if not, write to the Free Software Foundation,\n * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */" (preproc_include) "#include "lib.h"\n" (#include) "#include" (string_literal) ""lib.h"" (") """ (string_content) "lib.h" (") """ (preproc_include) "#include "uuid.h"\n" (#include) "#include" (string_literal) ""uuid.h"" (") """ (string_content) "uuid.h" (") """ (preproc_include) "#include "lvm-wrappers.h"\n" (#include) "#include" (string_literal) ""lvm-wrappers.h"" (") """ (string_content) "lvm-wrappers.h" (") """ (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (declaration) "static const char _c[] =\n "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#";" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "_c[] =\n "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#"" (array_declarator) "_c[]" (identifier) "_c" ([) "[" (]) "]" (=) "=" (string_literal) ""0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#"" (") """ (string_content) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#" (") """ (;) ";" (declaration) "static int _built_inverse;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "_built_inverse" (;) ";" (declaration) "static char _inverse_c[256];" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (array_declarator) "_inverse_c[256]" (identifier) "_inverse_c" ([) "[" (number_literal) "256" (]) "]" (;) ";" (function_definition) "int lvid_create(union lvid *lvid, struct id *vgid)\n{\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n return id_create(&lvid->id[1]);\n}" (primitive_type) "int" (function_declarator) "lvid_create(union lvid *lvid, struct id *vgid)" (identifier) "lvid_create" (parameter_list) "(union lvid *lvid, struct id *vgid)" (() "(" (parameter_declaration) "union lvid *lvid" (union_specifier) "union lvid" (union) "union" (type_identifier) "lvid" (pointer_declarator) "*lvid" (*) "*" (identifier) "lvid" (,) "," (parameter_declaration) "struct id *vgid" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*vgid" (*) "*" (identifier) "vgid" ()) ")" (compound_statement) "{\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n return id_create(&lvid->id[1]);\n}" ({) "{" (expression_statement) "memcpy(lvid->id, vgid, sizeof(*lvid->id));" (call_expression) "memcpy(lvid->id, vgid, sizeof(*lvid->id))" (identifier) "memcpy" (argument_list) "(lvid->id, vgid, sizeof(*lvid->id))" (() "(" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" (,) "," (identifier) "vgid" (,) "," (sizeof_expression) "sizeof(*lvid->id)" (sizeof) "sizeof" (parenthesized_expression) "(*lvid->id)" (() "(" (pointer_expression) "*lvid->id" (*) "*" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ()) ")" ()) ")" (;) ";" (return_statement) "return id_create(&lvid->id[1]);" (return) "return" (call_expression) "id_create(&lvid->id[1])" (identifier) "id_create" (argument_list) "(&lvid->id[1])" (() "(" (pointer_expression) "&lvid->id[1]" (&) "&" (subscript_expression) "lvid->id[1]" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (}) "}" (function_definition) "void uuid_from_num(char *uuid, uint32_t num)\n{\n unsigned i;\n\n for (i = ID_LEN; i; i--) {\n uuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n num /= sizeof(_c) - 1;\n }\n}" (primitive_type) "void" (function_declarator) "uuid_from_num(char *uuid, uint32_t num)" (identifier) "uuid_from_num" (parameter_list) "(char *uuid, uint32_t num)" (() "(" (parameter_declaration) "char *uuid" (primitive_type) "char" (pointer_declarator) "*uuid" (*) "*" (identifier) "uuid" (,) "," (parameter_declaration) "uint32_t num" (primitive_type) "uint32_t" (identifier) "num" ()) ")" (compound_statement) "{\n unsigned i;\n\n for (i = ID_LEN; i; i--) {\n uuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n num /= sizeof(_c) - 1;\n }\n}" ({) "{" (declaration) "unsigned i;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "i" (;) ";" (for_statement) "for (i = ID_LEN; i; i--) {\n uuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n num /= sizeof(_c) - 1;\n }" (for) "for" (() "(" (assignment_expression) "i = ID_LEN" (identifier) "i" (=) "=" (identifier) "ID_LEN" (;) ";" (identifier) "i" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (compound_statement) "{\n uuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n num /= sizeof(_c) - 1;\n }" ({) "{" (expression_statement) "uuid[i - 1] = _c[num % (sizeof(_c) - 1)];" (assignment_expression) "uuid[i - 1] = _c[num % (sizeof(_c) - 1)]" (subscript_expression) "uuid[i - 1]" (identifier) "uuid" ([) "[" (binary_expression) "i - 1" (identifier) "i" (-) "-" (number_literal) "1" (]) "]" (=) "=" (subscript_expression) "_c[num % (sizeof(_c) - 1)]" (identifier) "_c" ([) "[" (binary_expression) "num % (sizeof(_c) - 1)" (identifier) "num" (%) "%" (parenthesized_expression) "(sizeof(_c) - 1)" (() "(" (binary_expression) "sizeof(_c) - 1" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "1" ()) ")" (]) "]" (;) ";" (expression_statement) "num /= sizeof(_c) - 1;" (assignment_expression) "num /= sizeof(_c) - 1" (identifier) "num" (/=) "/=" (binary_expression) "sizeof(_c) - 1" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "1" (;) ";" (}) "}" (}) "}" (function_definition) "int lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)\n{\n int i;\n\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n\n for (i = ID_LEN; i; i--) {\n lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n lv_num /= sizeof(_c) - 1;\n }\n\n lvid->s[sizeof(lvid->s) - 1] = '\0';\n\n return 1;\n}" (primitive_type) "int" (function_declarator) "lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)" (identifier) "lvid_from_lvnum" (parameter_list) "(union lvid *lvid, struct id *vgid, uint32_t lv_num)" (() "(" (parameter_declaration) "union lvid *lvid" (union_specifier) "union lvid" (union) "union" (type_identifier) "lvid" (pointer_declarator) "*lvid" (*) "*" (identifier) "lvid" (,) "," (parameter_declaration) "struct id *vgid" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*vgid" (*) "*" (identifier) "vgid" (,) "," (parameter_declaration) "uint32_t lv_num" (primitive_type) "uint32_t" (identifier) "lv_num" ()) ")" (compound_statement) "{\n int i;\n\n memcpy(lvid->id, vgid, sizeof(*lvid->id));\n\n for (i = ID_LEN; i; i--) {\n lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n lv_num /= sizeof(_c) - 1;\n }\n\n lvid->s[sizeof(lvid->s) - 1] = '\0';\n\n return 1;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (expression_statement) "memcpy(lvid->id, vgid, sizeof(*lvid->id));" (call_expression) "memcpy(lvid->id, vgid, sizeof(*lvid->id))" (identifier) "memcpy" (argument_list) "(lvid->id, vgid, sizeof(*lvid->id))" (() "(" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" (,) "," (identifier) "vgid" (,) "," (sizeof_expression) "sizeof(*lvid->id)" (sizeof) "sizeof" (parenthesized_expression) "(*lvid->id)" (() "(" (pointer_expression) "*lvid->id" (*) "*" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ()) ")" ()) ")" (;) ";" (for_statement) "for (i = ID_LEN; i; i--) {\n lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n lv_num /= sizeof(_c) - 1;\n }" (for) "for" (() "(" (assignment_expression) "i = ID_LEN" (identifier) "i" (=) "=" (identifier) "ID_LEN" (;) ";" (identifier) "i" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (compound_statement) "{\n lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n lv_num /= sizeof(_c) - 1;\n }" ({) "{" (expression_statement) "lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];" (assignment_expression) "lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)]" (subscript_expression) "lvid->id[1].uuid[i - 1]" (field_expression) "lvid->id[1].uuid" (subscript_expression) "lvid->id[1]" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "uuid" ([) "[" (binary_expression) "i - 1" (identifier) "i" (-) "-" (number_literal) "1" (]) "]" (=) "=" (subscript_expression) "_c[lv_num % (sizeof(_c) - 1)]" (identifier) "_c" ([) "[" (binary_expression) "lv_num % (sizeof(_c) - 1)" (identifier) "lv_num" (%) "%" (parenthesized_expression) "(sizeof(_c) - 1)" (() "(" (binary_expression) "sizeof(_c) - 1" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "1" ()) ")" (]) "]" (;) ";" (expression_statement) "lv_num /= sizeof(_c) - 1;" (assignment_expression) "lv_num /= sizeof(_c) - 1" (identifier) "lv_num" (/=) "/=" (binary_expression) "sizeof(_c) - 1" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "lvid->s[sizeof(lvid->s) - 1] = '\0';" (assignment_expression) "lvid->s[sizeof(lvid->s) - 1] = '\0'" (subscript_expression) "lvid->s[sizeof(lvid->s) - 1]" (field_expression) "lvid->s" (identifier) "lvid" (->) "->" (field_identifier) "s" ([) "[" (binary_expression) "sizeof(lvid->s) - 1" (sizeof_expression) "sizeof(lvid->s)" (sizeof) "sizeof" (parenthesized_expression) "(lvid->s)" (() "(" (field_expression) "lvid->s" (identifier) "lvid" (->) "->" (field_identifier) "s" ()) ")" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "int lvnum_from_lvid(union lvid *lvid)\n{\n int i, lv_num = 0;\n char *c;\n\n for (i = 0; i < ID_LEN; i++) {\n lv_num *= sizeof(_c) - 1;\n if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);\n if (lv_num < 0)\n lv_num = 0;\n }\n\n return lv_num;\n}" (primitive_type) "int" (function_declarator) "lvnum_from_lvid(union lvid *lvid)" (identifier) "lvnum_from_lvid" (parameter_list) "(union lvid *lvid)" (() "(" (parameter_declaration) "union lvid *lvid" (union_specifier) "union lvid" (union) "union" (type_identifier) "lvid" (pointer_declarator) "*lvid" (*) "*" (identifier) "lvid" ()) ")" (compound_statement) "{\n int i, lv_num = 0;\n char *c;\n\n for (i = 0; i < ID_LEN; i++) {\n lv_num *= sizeof(_c) - 1;\n if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);\n if (lv_num < 0)\n lv_num = 0;\n }\n\n return lv_num;\n}" ({) "{" (declaration) "int i, lv_num = 0;" (primitive_type) "int" (identifier) "i" (,) "," (init_declarator) "lv_num = 0" (identifier) "lv_num" (=) "=" (number_literal) "0" (;) ";" (declaration) "char *c;" (primitive_type) "char" (pointer_declarator) "*c" (*) "*" (identifier) "c" (;) ";" (for_statement) "for (i = 0; i < ID_LEN; i++) {\n lv_num *= sizeof(_c) - 1;\n if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);\n if (lv_num < 0)\n lv_num = 0;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < ID_LEN" (identifier) "i" (<) "<" (identifier) "ID_LEN" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n lv_num *= sizeof(_c) - 1;\n if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);\n if (lv_num < 0)\n lv_num = 0;\n }" ({) "{" (expression_statement) "lv_num *= sizeof(_c) - 1;" (assignment_expression) "lv_num *= sizeof(_c) - 1" (identifier) "lv_num" (*=) "*=" (binary_expression) "sizeof(_c) - 1" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "1" (;) ";" (if_statement) "if ((c = strchr(_c, lvid->id[1].uuid[i])))\n lv_num += (int) (c - _c);" (if) "if" (parenthesized_expression) "((c = strchr(_c, lvid->id[1].uuid[i])))" (() "(" (parenthesized_expression) "(c = strchr(_c, lvid->id[1].uuid[i]))" (() "(" (assignment_expression) "c = strchr(_c, lvid->id[1].uuid[i])" (identifier) "c" (=) "=" (call_expression) "strchr(_c, lvid->id[1].uuid[i])" (identifier) "strchr" (argument_list) "(_c, lvid->id[1].uuid[i])" (() "(" (identifier) "_c" (,) "," (subscript_expression) "lvid->id[1].uuid[i]" (field_expression) "lvid->id[1].uuid" (subscript_expression) "lvid->id[1]" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" ()) ")" (expression_statement) "lv_num += (int) (c - _c);" (assignment_expression) "lv_num += (int) (c - _c)" (identifier) "lv_num" (+=) "+=" (cast_expression) "(int) (c - _c)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(c - _c)" (() "(" (binary_expression) "c - _c" (identifier) "c" (-) "-" (identifier) "_c" ()) ")" (;) ";" (if_statement) "if (lv_num < 0)\n lv_num = 0;" (if) "if" (parenthesized_expression) "(lv_num < 0)" (() "(" (binary_expression) "lv_num < 0" (identifier) "lv_num" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "lv_num = 0;" (assignment_expression) "lv_num = 0" (identifier) "lv_num" (=) "=" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return lv_num;" (return) "return" (identifier) "lv_num" (;) ";" (}) "}" (function_definition) "int lvid_in_restricted_range(union lvid *lvid)\n{\n int i;\n\n for (i = 0; i < ID_LEN - 3; i++)\n if (lvid->id[1].uuid[i] != '0')\n return 0;\n\n for (i = ID_LEN - 3; i < ID_LEN; i++)\n if (!isdigit(lvid->id[1].uuid[i]))\n return 0;\n\n return 1;\n}" (primitive_type) "int" (function_declarator) "lvid_in_restricted_range(union lvid *lvid)" (identifier) "lvid_in_restricted_range" (parameter_list) "(union lvid *lvid)" (() "(" (parameter_declaration) "union lvid *lvid" (union_specifier) "union lvid" (union) "union" (type_identifier) "lvid" (pointer_declarator) "*lvid" (*) "*" (identifier) "lvid" ()) ")" (compound_statement) "{\n int i;\n\n for (i = 0; i < ID_LEN - 3; i++)\n if (lvid->id[1].uuid[i] != '0')\n return 0;\n\n for (i = ID_LEN - 3; i < ID_LEN; i++)\n if (!isdigit(lvid->id[1].uuid[i]))\n return 0;\n\n return 1;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (i = 0; i < ID_LEN - 3; i++)\n if (lvid->id[1].uuid[i] != '0')\n return 0;" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < ID_LEN - 3" (identifier) "i" (<) "<" (binary_expression) "ID_LEN - 3" (identifier) "ID_LEN" (-) "-" (number_literal) "3" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (lvid->id[1].uuid[i] != '0')\n return 0;" (if) "if" (parenthesized_expression) "(lvid->id[1].uuid[i] != '0')" (() "(" (binary_expression) "lvid->id[1].uuid[i] != '0'" (subscript_expression) "lvid->id[1].uuid[i]" (field_expression) "lvid->id[1].uuid" (subscript_expression) "lvid->id[1]" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (for_statement) "for (i = ID_LEN - 3; i < ID_LEN; i++)\n if (!isdigit(lvid->id[1].uuid[i]))\n return 0;" (for) "for" (() "(" (assignment_expression) "i = ID_LEN - 3" (identifier) "i" (=) "=" (binary_expression) "ID_LEN - 3" (identifier) "ID_LEN" (-) "-" (number_literal) "3" (;) ";" (binary_expression) "i < ID_LEN" (identifier) "i" (<) "<" (identifier) "ID_LEN" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (!isdigit(lvid->id[1].uuid[i]))\n return 0;" (if) "if" (parenthesized_expression) "(!isdigit(lvid->id[1].uuid[i]))" (() "(" (unary_expression) "!isdigit(lvid->id[1].uuid[i])" (!) "!" (call_expression) "isdigit(lvid->id[1].uuid[i])" (identifier) "isdigit" (argument_list) "(lvid->id[1].uuid[i])" (() "(" (subscript_expression) "lvid->id[1].uuid[i]" (field_expression) "lvid->id[1].uuid" (subscript_expression) "lvid->id[1]" (field_expression) "lvid->id" (identifier) "lvid" (->) "->" (field_identifier) "id" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "int id_create(struct id *id)\n{\n unsigned i;\n size_t len = sizeof(id->uuid);\n\n memset(id->uuid, 0, len);\n if (!read_urandom(&id->uuid, len)) {\n return 0;\n }\n\n /*\n * Skip out the last 2 chars in randomized creation for LVM1\n * backwards compatibility.\n */\n for (i = 0; i < len; i++)\n id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];\n\n return 1;\n}" (primitive_type) "int" (function_declarator) "id_create(struct id *id)" (identifier) "id_create" (parameter_list) "(struct id *id)" (() "(" (parameter_declaration) "struct id *id" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*id" (*) "*" (identifier) "id" ()) ")" (compound_statement) "{\n unsigned i;\n size_t len = sizeof(id->uuid);\n\n memset(id->uuid, 0, len);\n if (!read_urandom(&id->uuid, len)) {\n return 0;\n }\n\n /*\n * Skip out the last 2 chars in randomized creation for LVM1\n * backwards compatibility.\n */\n for (i = 0; i < len; i++)\n id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];\n\n return 1;\n}" ({) "{" (declaration) "unsigned i;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "i" (;) ";" (declaration) "size_t len = sizeof(id->uuid);" (primitive_type) "size_t" (init_declarator) "len = sizeof(id->uuid)" (identifier) "len" (=) "=" (sizeof_expression) "sizeof(id->uuid)" (sizeof) "sizeof" (parenthesized_expression) "(id->uuid)" (() "(" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" ()) ")" (;) ";" (expression_statement) "memset(id->uuid, 0, len);" (call_expression) "memset(id->uuid, 0, len)" (identifier) "memset" (argument_list) "(id->uuid, 0, len)" (() "(" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" (,) "," (number_literal) "0" (,) "," (identifier) "len" ()) ")" (;) ";" (if_statement) "if (!read_urandom(&id->uuid, len)) {\n return 0;\n }" (if) "if" (parenthesized_expression) "(!read_urandom(&id->uuid, len))" (() "(" (unary_expression) "!read_urandom(&id->uuid, len)" (!) "!" (call_expression) "read_urandom(&id->uuid, len)" (identifier) "read_urandom" (argument_list) "(&id->uuid, len)" (() "(" (pointer_expression) "&id->uuid" (&) "&" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" (,) "," (identifier) "len" ()) ")" ()) ")" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/*\n * Skip out the last 2 chars in randomized creation for LVM1\n * backwards compatibility.\n */" (for_statement) "for (i = 0; i < len; i++)\n id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < len" (identifier) "i" (<) "<" (identifier) "len" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];" (assignment_expression) "id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)]" (subscript_expression) "id->uuid[i]" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "_c[id->uuid[i] % (sizeof(_c) - 3)]" (identifier) "_c" ([) "[" (binary_expression) "id->uuid[i] % (sizeof(_c) - 3)" (subscript_expression) "id->uuid[i]" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" (%) "%" (parenthesized_expression) "(sizeof(_c) - 3)" (() "(" (binary_expression) "sizeof(_c) - 3" (sizeof_expression) "sizeof(_c)" (sizeof) "sizeof" (parenthesized_expression) "(_c)" (() "(" (identifier) "_c" ()) ")" (-) "-" (number_literal) "3" ()) ")" (]) "]" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "/*\n * The only validity check we have is that\n * the uuid just contains characters from\n * '_c'. A checksum would have been nice :(\n */" (function_definition) "static void _build_inverse(void)\n{\n const char *ptr;\n\n if (_built_inverse)\n return;\n\n memset(_inverse_c, 0, sizeof(_inverse_c));\n\n for (ptr = _c; *ptr; ptr++)\n _inverse_c[(int) *ptr] = (char) 0x1;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "_build_inverse(void)" (identifier) "_build_inverse" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n const char *ptr;\n\n if (_built_inverse)\n return;\n\n memset(_inverse_c, 0, sizeof(_inverse_c));\n\n for (ptr = _c; *ptr; ptr++)\n _inverse_c[(int) *ptr] = (char) 0x1;\n}" ({) "{" (declaration) "const char *ptr;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (;) ";" (if_statement) "if (_built_inverse)\n return;" (if) "if" (parenthesized_expression) "(_built_inverse)" (() "(" (identifier) "_built_inverse" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "memset(_inverse_c, 0, sizeof(_inverse_c));" (call_expression) "memset(_inverse_c, 0, sizeof(_inverse_c))" (identifier) "memset" (argument_list) "(_inverse_c, 0, sizeof(_inverse_c))" (() "(" (identifier) "_inverse_c" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(_inverse_c)" (sizeof) "sizeof" (parenthesized_expression) "(_inverse_c)" (() "(" (identifier) "_inverse_c" ()) ")" ()) ")" (;) ";" (for_statement) "for (ptr = _c; *ptr; ptr++)\n _inverse_c[(int) *ptr] = (char) 0x1;" (for) "for" (() "(" (assignment_expression) "ptr = _c" (identifier) "ptr" (=) "=" (identifier) "_c" (;) ";" (pointer_expression) "*ptr" (*) "*" (identifier) "ptr" (;) ";" (update_expression) "ptr++" (identifier) "ptr" (++) "++" ()) ")" (expression_statement) "_inverse_c[(int) *ptr] = (char) 0x1;" (assignment_expression) "_inverse_c[(int) *ptr] = (char) 0x1" (subscript_expression) "_inverse_c[(int) *ptr]" (identifier) "_inverse_c" ([) "[" (cast_expression) "(int) *ptr" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (pointer_expression) "*ptr" (*) "*" (identifier) "ptr" (]) "]" (=) "=" (cast_expression) "(char) 0x1" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (number_literal) "0x1" (;) ";" (}) "}" (function_definition) "int id_valid(struct id *id)\n{\n int i;\n\n _build_inverse();\n\n for (i = 0; i < ID_LEN; i++)\n if (!_inverse_c[id->uuid[i]]) {\n log_error("UUID contains invalid character");\n return 0;\n }\n\n return 1;\n}" (primitive_type) "int" (function_declarator) "id_valid(struct id *id)" (identifier) "id_valid" (parameter_list) "(struct id *id)" (() "(" (parameter_declaration) "struct id *id" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*id" (*) "*" (identifier) "id" ()) ")" (compound_statement) "{\n int i;\n\n _build_inverse();\n\n for (i = 0; i < ID_LEN; i++)\n if (!_inverse_c[id->uuid[i]]) {\n log_error("UUID contains invalid character");\n return 0;\n }\n\n return 1;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (expression_statement) "_build_inverse();" (call_expression) "_build_inverse()" (identifier) "_build_inverse" (argument_list) "()" (() "(" ()) ")" (;) ";" (for_statement) "for (i = 0; i < ID_LEN; i++)\n if (!_inverse_c[id->uuid[i]]) {\n log_error("UUID contains invalid character");\n return 0;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < ID_LEN" (identifier) "i" (<) "<" (identifier) "ID_LEN" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (!_inverse_c[id->uuid[i]]) {\n log_error("UUID contains invalid character");\n return 0;\n }" (if) "if" (parenthesized_expression) "(!_inverse_c[id->uuid[i]])" (() "(" (unary_expression) "!_inverse_c[id->uuid[i]]" (!) "!" (subscript_expression) "_inverse_c[id->uuid[i]]" (identifier) "_inverse_c" ([) "[" (subscript_expression) "id->uuid[i]" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" ([) "[" (identifier) "i" (]) "]" (]) "]" ()) ")" (compound_statement) "{\n log_error("UUID contains invalid character");\n return 0;\n }" ({) "{" (expression_statement) "log_error("UUID contains invalid character");" (call_expression) "log_error("UUID contains invalid character")" (identifier) "log_error" (argument_list) "("UUID contains invalid character")" (() "(" (string_literal) ""UUID contains invalid character"" (") """ (string_content) "UUID contains invalid character" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "int id_equal(const struct id *lhs, const struct id *rhs)\n{\n return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));\n}" (primitive_type) "int" (function_declarator) "id_equal(const struct id *lhs, const struct id *rhs)" (identifier) "id_equal" (parameter_list) "(const struct id *lhs, const struct id *rhs)" (() "(" (parameter_declaration) "const struct id *lhs" (type_qualifier) "const" (const) "const" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*lhs" (*) "*" (identifier) "lhs" (,) "," (parameter_declaration) "const struct id *rhs" (type_qualifier) "const" (const) "const" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*rhs" (*) "*" (identifier) "rhs" ()) ")" (compound_statement) "{\n return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));\n}" ({) "{" (return_statement) "return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));" (return) "return" (unary_expression) "!memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))" (!) "!" (call_expression) "memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))" (identifier) "memcmp" (argument_list) "(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))" (() "(" (field_expression) "lhs->uuid" (identifier) "lhs" (->) "->" (field_identifier) "uuid" (,) "," (field_expression) "rhs->uuid" (identifier) "rhs" (->) "->" (field_identifier) "uuid" (,) "," (sizeof_expression) "sizeof(lhs->uuid)" (sizeof) "sizeof" (parenthesized_expression) "(lhs->uuid)" (() "(" (field_expression) "lhs->uuid" (identifier) "lhs" (->) "->" (field_identifier) "uuid" ()) ")" ()) ")" (;) ";" (}) "}" (preproc_def) "#define GROUPS (ID_LEN / 4)\n" (#define) "#define" (identifier) "GROUPS" (preproc_arg) "(ID_LEN / 4)" (function_definition) "int id_write_format(const struct id *id, char *buffer, size_t size)\n{\n int i, tot;\n\n static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };\n\n assert(ID_LEN == 32);\n\n /* split into groups separated by dashes */\n if (size < (32 + 6 + 1)) {\n log_error("Couldn't write uuid, buffer too small.");\n return 0;\n }\n\n for (i = 0, tot = 0; i < 7; i++) {\n memcpy(buffer, id->uuid + tot, group_size[i]);\n buffer += group_size[i];\n tot += group_size[i];\n *buffer++ = '-';\n }\n\n *--buffer = '\0';\n return 1;\n}" (primitive_type) "int" (function_declarator) "id_write_format(const struct id *id, char *buffer, size_t size)" (identifier) "id_write_format" (parameter_list) "(const struct id *id, char *buffer, size_t size)" (() "(" (parameter_declaration) "const struct id *id" (type_qualifier) "const" (const) "const" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*id" (*) "*" (identifier) "id" (,) "," (parameter_declaration) "char *buffer" (primitive_type) "char" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n int i, tot;\n\n static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };\n\n assert(ID_LEN == 32);\n\n /* split into groups separated by dashes */\n if (size < (32 + 6 + 1)) {\n log_error("Couldn't write uuid, buffer too small.");\n return 0;\n }\n\n for (i = 0, tot = 0; i < 7; i++) {\n memcpy(buffer, id->uuid + tot, group_size[i]);\n buffer += group_size[i];\n tot += group_size[i];\n *buffer++ = '-';\n }\n\n *--buffer = '\0';\n return 1;\n}" ({) "{" (declaration) "int i, tot;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "tot" (;) ";" (declaration) "static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "group_size[] = { 6, 4, 4, 4, 4, 4, 6 }" (array_declarator) "group_size[]" (identifier) "group_size" ([) "[" (]) "]" (=) "=" (initializer_list) "{ 6, 4, 4, 4, 4, 4, 6 }" ({) "{" (number_literal) "6" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "6" (}) "}" (;) ";" (expression_statement) "assert(ID_LEN == 32);" (call_expression) "assert(ID_LEN == 32)" (identifier) "assert" (argument_list) "(ID_LEN == 32)" (() "(" (binary_expression) "ID_LEN == 32" (identifier) "ID_LEN" (==) "==" (number_literal) "32" ()) ")" (;) ";" (comment) "/* split into groups separated by dashes */" (if_statement) "if (size < (32 + 6 + 1)) {\n log_error("Couldn't write uuid, buffer too small.");\n return 0;\n }" (if) "if" (parenthesized_expression) "(size < (32 + 6 + 1))" (() "(" (binary_expression) "size < (32 + 6 + 1)" (identifier) "size" (<) "<" (parenthesized_expression) "(32 + 6 + 1)" (() "(" (binary_expression) "32 + 6 + 1" (binary_expression) "32 + 6" (number_literal) "32" (+) "+" (number_literal) "6" (+) "+" (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n log_error("Couldn't write uuid, buffer too small.");\n return 0;\n }" ({) "{" (expression_statement) "log_error("Couldn't write uuid, buffer too small.");" (call_expression) "log_error("Couldn't write uuid, buffer too small.")" (identifier) "log_error" (argument_list) "("Couldn't write uuid, buffer too small.")" (() "(" (string_literal) ""Couldn't write uuid, buffer too small."" (") """ (string_content) "Couldn't write uuid, buffer too small." (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (for_statement) "for (i = 0, tot = 0; i < 7; i++) {\n memcpy(buffer, id->uuid + tot, group_size[i]);\n buffer += group_size[i];\n tot += group_size[i];\n *buffer++ = '-';\n }" (for) "for" (() "(" (comma_expression) "i = 0, tot = 0" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (,) "," (assignment_expression) "tot = 0" (identifier) "tot" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 7" (identifier) "i" (<) "<" (number_literal) "7" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n memcpy(buffer, id->uuid + tot, group_size[i]);\n buffer += group_size[i];\n tot += group_size[i];\n *buffer++ = '-';\n }" ({) "{" (expression_statement) "memcpy(buffer, id->uuid + tot, group_size[i]);" (call_expression) "memcpy(buffer, id->uuid + tot, group_size[i])" (identifier) "memcpy" (argument_list) "(buffer, id->uuid + tot, group_size[i])" (() "(" (identifier) "buffer" (,) "," (binary_expression) "id->uuid + tot" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" (+) "+" (identifier) "tot" (,) "," (subscript_expression) "group_size[i]" (identifier) "group_size" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "buffer += group_size[i];" (assignment_expression) "buffer += group_size[i]" (identifier) "buffer" (+=) "+=" (subscript_expression) "group_size[i]" (identifier) "group_size" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "tot += group_size[i];" (assignment_expression) "tot += group_size[i]" (identifier) "tot" (+=) "+=" (subscript_expression) "group_size[i]" (identifier) "group_size" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "*buffer++ = '-';" (assignment_expression) "*buffer++ = '-'" (pointer_expression) "*buffer++" (*) "*" (update_expression) "buffer++" (identifier) "buffer" (++) "++" (=) "=" (char_literal) "'-'" (') "'" (character) "-" (') "'" (;) ";" (}) "}" (expression_statement) "*--buffer = '\0';" (assignment_expression) "*--buffer = '\0'" (pointer_expression) "*--buffer" (*) "*" (update_expression) "--buffer" (--) "--" (identifier) "buffer" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "int id_read_format(struct id *id, const char *buffer)\n{\n int out = 0;\n\n /* just strip out any dashes */\n while (*buffer) {\n\n if (*buffer == '-') {\n buffer++;\n continue;\n }\n\n if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }\n\n id->uuid[out++] = *buffer++;\n }\n\n if (out != ID_LEN) {\n log_error("Couldn't read uuid: incorrect number of "\n "characters.");\n return 0;\n }\n\n return id_valid(id);\n}" (primitive_type) "int" (function_declarator) "id_read_format(struct id *id, const char *buffer)" (identifier) "id_read_format" (parameter_list) "(struct id *id, const char *buffer)" (() "(" (parameter_declaration) "struct id *id" (struct_specifier) "struct id" (struct) "struct" (type_identifier) "id" (pointer_declarator) "*id" (*) "*" (identifier) "id" (,) "," (parameter_declaration) "const char *buffer" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" ()) ")" (compound_statement) "{\n int out = 0;\n\n /* just strip out any dashes */\n while (*buffer) {\n\n if (*buffer == '-') {\n buffer++;\n continue;\n }\n\n if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }\n\n id->uuid[out++] = *buffer++;\n }\n\n if (out != ID_LEN) {\n log_error("Couldn't read uuid: incorrect number of "\n "characters.");\n return 0;\n }\n\n return id_valid(id);\n}" ({) "{" (declaration) "int out = 0;" (primitive_type) "int" (init_declarator) "out = 0" (identifier) "out" (=) "=" (number_literal) "0" (;) ";" (comment) "/* just strip out any dashes */" (while_statement) "while (*buffer) {\n\n if (*buffer == '-') {\n buffer++;\n continue;\n }\n\n if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }\n\n id->uuid[out++] = *buffer++;\n }" (while) "while" (parenthesized_expression) "(*buffer)" (() "(" (pointer_expression) "*buffer" (*) "*" (identifier) "buffer" ()) ")" (compound_statement) "{\n\n if (*buffer == '-') {\n buffer++;\n continue;\n }\n\n if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }\n\n id->uuid[out++] = *buffer++;\n }" ({) "{" (if_statement) "if (*buffer == '-') {\n buffer++;\n continue;\n }" (if) "if" (parenthesized_expression) "(*buffer == '-')" (() "(" (binary_expression) "*buffer == '-'" (pointer_expression) "*buffer" (*) "*" (identifier) "buffer" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" (compound_statement) "{\n buffer++;\n continue;\n }" ({) "{" (expression_statement) "buffer++;" (update_expression) "buffer++" (identifier) "buffer" (++) "++" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if (out >= ID_LEN) {\n log_error("Too many characters to be uuid.");\n return 0;\n }" (if) "if" (parenthesized_expression) "(out >= ID_LEN)" (() "(" (binary_expression) "out >= ID_LEN" (identifier) "out" (>=) ">=" (identifier) "ID_LEN" ()) ")" (compound_statement) "{\n log_error("Too many characters to be uuid.");\n return 0;\n }" ({) "{" (expression_statement) "log_error("Too many characters to be uuid.");" (call_expression) "log_error("Too many characters to be uuid.")" (identifier) "log_error" (argument_list) "("Too many characters to be uuid.")" (() "(" (string_literal) ""Too many characters to be uuid."" (") """ (string_content) "Too many characters to be uuid." (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "id->uuid[out++] = *buffer++;" (assignment_expression) "id->uuid[out++] = *buffer++" (subscript_expression) "id->uuid[out++]" (field_expression) "id->uuid" (identifier) "id" (->) "->" (field_identifier) "uuid" ([) "[" (update_expression) "out++" (identifier) "out" (++) "++" (]) "]" (=) "=" (pointer_expression) "*buffer++" (*) "*" (update_expression) "buffer++" (identifier) "buffer" (++) "++" (;) ";" (}) "}" (if_statement) "if (out != ID_LEN) {\n log_error("Couldn't read uuid: incorrect number of "\n "characters.");\n return 0;\n }" (if) "if" (parenthesized_expression) "(out != ID_LEN)" (() "(" (binary_expression) "out != ID_LEN" (identifier) "out" (!=) "!=" (identifier) "ID_LEN" ()) ")" (compound_statement) "{\n log_error("Couldn't read uuid: incorrect number of "\n "characters.");\n return 0;\n }" ({) "{" (expression_statement) "log_error("Couldn't read uuid: incorrect number of "\n "characters.");" (call_expression) "log_error("Couldn't read uuid: incorrect number of "\n "characters.")" (identifier) "log_error" (argument_list) "("Couldn't read uuid: incorrect number of "\n "characters.")" (() "(" (concatenated_string) ""Couldn't read uuid: incorrect number of "\n "characters."" (string_literal) ""Couldn't read uuid: incorrect number of "" (") """ (string_content) "Couldn't read uuid: incorrect number of " (") """ (string_literal) ""characters."" (") """ (string_content) "characters." (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return id_valid(id);" (return) "return" (call_expression) "id_valid(id)" (identifier) "id_valid" (argument_list) "(id)" (() "(" (identifier) "id" ()) ")" (;) ";" (}) "}"
1,384
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 23.65, "nodes": 854, "errors": 0, "source_hash": "96af93be68c5d658aa5f84d316cfee49dcc8ece8a0a4c02a11ecbc77f0861168", "categorized_nodes": 635}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"lib.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"lib.h\"", "parent": 0, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include \"uuid.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"uuid.h\"", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"lvm-wrappers.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"lvm-wrappers.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<assert.h>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 12, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include <fcntl.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 15, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 18, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unistd.h>", "parent": 18, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include <ctype.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<ctype.h>", "parent": 21, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 18}}, {"id": 24, "type": "declaration", "text": "static const char _c[] =\n \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#\";", "parent": null, "children": [25, 26], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 71}}, {"id": 25, "type": "primitive_type", "text": "char", "parent": 24, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 17}}, {"id": 26, "type": "init_declarator", "text": "_c[] =\n \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#\"", "parent": 24, "children": [27, 29, 30], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 28, "column": 70}}, {"id": 27, "type": "array_declarator", "text": "_c[]", "parent": 26, "children": [28], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 22}}, {"id": 28, "type": "identifier", "text": "_c", "parent": 27, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 20}}, {"id": 29, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 30, "type": "string_literal", "text": "\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#\"", "parent": 26, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 70}}, {"id": 31, "type": "declaration", "text": "static int _built_inverse;", "parent": null, "children": [32, 33], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 26}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 10}}, {"id": 33, "type": "identifier", "text": "_built_inverse", "parent": 31, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 25}}, {"id": 34, "type": "declaration", "text": "static char _inverse_c[256];", "parent": null, "children": [35, 36], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 28}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 34, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 36, "type": "array_declarator", "text": "_inverse_c[256]", "parent": 34, "children": [37, 38], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 27}}, {"id": 37, "type": "identifier", "text": "_inverse_c", "parent": 36, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 22}}, {"id": 38, "type": "number_literal", "text": "256", "parent": 36, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 26}}, {"id": 39, "type": "function_definition", "text": "int lvid_create(union lvid *lvid, struct id *vgid)\n{\n\tmemcpy(lvid->id, vgid, sizeof(*lvid->id));\n\treturn id_create(&lvid->id[1]);\n}", "parent": null, "children": [40, 41], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 41, "type": "function_declarator", "text": "lvid_create(union lvid *lvid, struct id *vgid)", "parent": 39, "children": [42, 43], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 50}}, {"id": 42, "type": "identifier", "text": "lvid_create", "parent": 41, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 15}}, {"id": 43, "type": "parameter_list", "text": "(union lvid *lvid, struct id *vgid)", "parent": 41, "children": [44, 51], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 50}}, {"id": 44, "type": "parameter_declaration", "text": "union lvid *lvid", "parent": 43, "children": [45, 48], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 32}}, {"id": 45, "type": "union_specifier", "text": "union lvid", "parent": 44, "children": [46, 47], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 26}}, {"id": 46, "type": "union", "text": "union", "parent": 45, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 21}}, {"id": 47, "type": "type_identifier", "text": "lvid", "parent": 45, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 48, "type": "pointer_declarator", "text": "*lvid", "parent": 44, "children": [49, 50], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 32}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 28}}, {"id": 50, "type": "identifier", "text": "lvid", "parent": 48, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 32}}, {"id": 51, "type": "parameter_declaration", "text": "struct id *vgid", "parent": 43, "children": [52, 55], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 49}}, {"id": 52, "type": "struct_specifier", "text": "struct id", "parent": 51, "children": [53, 54], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 43}}, {"id": 53, "type": "struct", "text": "struct", "parent": 52, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 40}}, {"id": 54, "type": "type_identifier", "text": "id", "parent": 52, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 43}}, {"id": 55, "type": "pointer_declarator", "text": "*vgid", "parent": 51, "children": [56, 57], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 49}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 45}}, {"id": 57, "type": "identifier", "text": "vgid", "parent": 55, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 49}}, {"id": 58, "type": "call_expression", "text": "memcpy(lvid->id, vgid, sizeof(*lvid->id))", "parent": 39, "children": [59, 60], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 42}}, {"id": 59, "type": "identifier", "text": "memcpy", "parent": 58, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 7}}, {"id": 60, "type": "argument_list", "text": "(lvid->id, vgid, sizeof(*lvid->id))", "parent": 58, "children": [61, 64, 65], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 42}}, {"id": 61, "type": "field_expression", "text": "lvid->id", "parent": 60, "children": [62, 63], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 16}}, {"id": 62, "type": "identifier", "text": "lvid", "parent": 61, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 63, "type": "field_identifier", "text": "id", "parent": 61, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 16}}, {"id": 64, "type": "identifier", "text": "vgid", "parent": 60, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 22}}, {"id": 65, "type": "sizeof_expression", "text": "sizeof(*lvid->id)", "parent": 60, "children": [66], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 41}}, {"id": 66, "type": "parenthesized_expression", "text": "(*lvid->id)", "parent": 65, "children": [67], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 41}}, {"id": 67, "type": "pointer_expression", "text": "*lvid->id", "parent": 66, "children": [68, 69], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 40}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 32}}, {"id": 69, "type": "field_expression", "text": "lvid->id", "parent": 67, "children": [70, 71], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 40}}, {"id": 70, "type": "identifier", "text": "lvid", "parent": 69, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 36}}, {"id": 71, "type": "field_identifier", "text": "id", "parent": 69, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 40}}, {"id": 72, "type": "return_statement", "text": "return id_create(&lvid->id[1]);", "parent": 39, "children": [73], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 32}}, {"id": 73, "type": "call_expression", "text": "id_create(&lvid->id[1])", "parent": 72, "children": [74, 75], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 31}}, {"id": 74, "type": "identifier", "text": "id_create", "parent": 73, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 17}}, {"id": 75, "type": "argument_list", "text": "(&lvid->id[1])", "parent": 73, "children": [76], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 31}}, {"id": 76, "type": "pointer_expression", "text": "&lvid->id[1]", "parent": 75, "children": [77], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 30}}, {"id": 77, "type": "subscript_expression", "text": "lvid->id[1]", "parent": 76, "children": [78, 81], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 30}}, {"id": 78, "type": "field_expression", "text": "lvid->id", "parent": 77, "children": [79, 80], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 27}}, {"id": 79, "type": "identifier", "text": "lvid", "parent": 78, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 23}}, {"id": 80, "type": "field_identifier", "text": "id", "parent": 78, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 27}}, {"id": 81, "type": "number_literal", "text": "1", "parent": 77, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 29}}, {"id": 82, "type": "function_definition", "text": "void uuid_from_num(char *uuid, uint32_t num)\n{\n\tunsigned i;\n\n\tfor (i = ID_LEN; i; i--) {\n\t\tuuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n\t\tnum /= sizeof(_c) - 1;\n\t}\n}", "parent": null, "children": [83, 84], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 4}}, {"id": 84, "type": "function_declarator", "text": "uuid_from_num(char *uuid, uint32_t num)", "parent": 82, "children": [85, 86], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 44}}, {"id": 85, "type": "identifier", "text": "uuid_from_num", "parent": 84, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 18}}, {"id": 86, "type": "parameter_list", "text": "(char *uuid, uint32_t num)", "parent": 84, "children": [87, 92], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 44}}, {"id": 87, "type": "parameter_declaration", "text": "char *uuid", "parent": 86, "children": [88, 89], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 29}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 23}}, {"id": 89, "type": "pointer_declarator", "text": "*uuid", "parent": 87, "children": [90, 91], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 29}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 91, "type": "identifier", "text": "uuid", "parent": 89, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 29}}, {"id": 92, "type": "parameter_declaration", "text": "uint32_t num", "parent": 86, "children": [93, 94], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 43}}, {"id": 93, "type": "primitive_type", "text": "uint32_t", "parent": 92, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 39}}, {"id": 94, "type": "identifier", "text": "num", "parent": 92, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 43}}, {"id": 95, "type": "declaration", "text": "unsigned i;", "parent": 82, "children": [96, 98], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 12}}, {"id": 96, "type": "sized_type_specifier", "text": "unsigned", "parent": 95, "children": [97], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 97, "type": "unsigned", "text": "unsigned", "parent": 96, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 98, "type": "identifier", "text": "i", "parent": 95, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 11}}, {"id": 99, "type": "for_statement", "text": "for (i = ID_LEN; i; i--) {\n\t\tuuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n\t\tnum /= sizeof(_c) - 1;\n\t}", "parent": 82, "children": [100, 104, 105], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 100, "type": "assignment_expression", "text": "i = ID_LEN", "parent": 99, "children": [101, 102, 103], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 16}}, {"id": 101, "type": "identifier", "text": "i", "parent": 100, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 7}}, {"id": 102, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 9}}, {"id": 103, "type": "identifier", "text": "ID_LEN", "parent": 100, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 16}}, {"id": 104, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 105, "type": "update_expression", "text": "i--", "parent": 99, "children": [106, 107], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 24}}, {"id": 106, "type": "identifier", "text": "i", "parent": 105, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 22}}, {"id": 107, "type": "--", "text": "--", "parent": 105, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 24}}, {"id": 108, "type": "assignment_expression", "text": "uuid[i - 1] = _c[num % (sizeof(_c) - 1)]", "parent": 99, "children": [109, 115, 116], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 42}}, {"id": 109, "type": "subscript_expression", "text": "uuid[i - 1]", "parent": 108, "children": [110, 111], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 13}}, {"id": 110, "type": "identifier", "text": "uuid", "parent": 109, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 111, "type": "binary_expression", "text": "i - 1", "parent": 109, "children": [112, 113, 114], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 12}}, {"id": 112, "type": "identifier", "text": "i", "parent": 111, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 113, "type": "-", "text": "-", "parent": 111, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 114, "type": "number_literal", "text": "1", "parent": 111, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 115, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 116, "type": "subscript_expression", "text": "_c[num % (sizeof(_c) - 1)]", "parent": 108, "children": [117, 118], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 42}}, {"id": 117, "type": "identifier", "text": "_c", "parent": 116, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 18}}, {"id": 118, "type": "binary_expression", "text": "num % (sizeof(_c) - 1)", "parent": 116, "children": [119, 120, 121], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 41}}, {"id": 119, "type": "identifier", "text": "num", "parent": 118, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 22}}, {"id": 120, "type": "%", "text": "%", "parent": 118, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 24}}, {"id": 121, "type": "parenthesized_expression", "text": "(sizeof(_c) - 1)", "parent": 118, "children": [122], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 41}}, {"id": 122, "type": "binary_expression", "text": "sizeof(_c) - 1", "parent": 121, "children": [123, 126, 127], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 40}}, {"id": 123, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 122, "children": [124], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 36}}, {"id": 124, "type": "parenthesized_expression", "text": "(_c)", "parent": 123, "children": [125], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 36}}, {"id": 125, "type": "identifier", "text": "_c", "parent": 124, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 35}}, {"id": 126, "type": "-", "text": "-", "parent": 122, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 127, "type": "number_literal", "text": "1", "parent": 122, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 40}}, {"id": 128, "type": "assignment_expression", "text": "num /= sizeof(_c) - 1", "parent": 99, "children": [129, 130, 131], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 23}}, {"id": 129, "type": "identifier", "text": "num", "parent": 128, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 5}}, {"id": 130, "type": "/=", "text": "/=", "parent": 128, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 8}}, {"id": 131, "type": "binary_expression", "text": "sizeof(_c) - 1", "parent": 128, "children": [132, 135, 136], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 23}}, {"id": 132, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 131, "children": [133], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 19}}, {"id": 133, "type": "parenthesized_expression", "text": "(_c)", "parent": 132, "children": [134], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 19}}, {"id": 134, "type": "identifier", "text": "_c", "parent": 133, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 18}}, {"id": 135, "type": "-", "text": "-", "parent": 131, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 136, "type": "number_literal", "text": "1", "parent": 131, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 137, "type": "function_definition", "text": "int lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)\n{\n\tint i;\n\n\tmemcpy(lvid->id, vgid, sizeof(*lvid->id));\n\n\tfor (i = ID_LEN; i; i--) {\n\t\tlvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n\t\tlv_num /= sizeof(_c) - 1;\n\t}\n\n\tlvid->s[sizeof(lvid->s) - 1] = '\\0';\n\n\treturn 1;\n}", "parent": null, "children": [138, 139], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 139, "type": "function_declarator", "text": "lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)", "parent": 137, "children": [140, 141], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 71}}, {"id": 140, "type": "identifier", "text": "lvid_from_lvnum", "parent": 139, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 19}}, {"id": 141, "type": "parameter_list", "text": "(union lvid *lvid, struct id *vgid, uint32_t lv_num)", "parent": 139, "children": [142, 149, 156], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 71}}, {"id": 142, "type": "parameter_declaration", "text": "union lvid *lvid", "parent": 141, "children": [143, 146], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 36}}, {"id": 143, "type": "union_specifier", "text": "union lvid", "parent": 142, "children": [144, 145], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 30}}, {"id": 144, "type": "union", "text": "union", "parent": 143, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 25}}, {"id": 145, "type": "type_identifier", "text": "lvid", "parent": 143, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 30}}, {"id": 146, "type": "pointer_declarator", "text": "*lvid", "parent": 142, "children": [147, 148], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 36}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 32}}, {"id": 148, "type": "identifier", "text": "lvid", "parent": 146, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 36}}, {"id": 149, "type": "parameter_declaration", "text": "struct id *vgid", "parent": 141, "children": [150, 153], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 53}}, {"id": 150, "type": "struct_specifier", "text": "struct id", "parent": 149, "children": [151, 152], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 47}}, {"id": 151, "type": "struct", "text": "struct", "parent": 150, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 44}}, {"id": 152, "type": "type_identifier", "text": "id", "parent": 150, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 47}}, {"id": 153, "type": "pointer_declarator", "text": "*vgid", "parent": 149, "children": [154, 155], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 53}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 49}}, {"id": 155, "type": "identifier", "text": "vgid", "parent": 153, "children": [], "start_point": {"row": 49, "column": 49}, "end_point": {"row": 49, "column": 53}}, {"id": 156, "type": "parameter_declaration", "text": "uint32_t lv_num", "parent": 141, "children": [157, 158], "start_point": {"row": 49, "column": 55}, "end_point": {"row": 49, "column": 70}}, {"id": 157, "type": "primitive_type", "text": "uint32_t", "parent": 156, "children": [], "start_point": {"row": 49, "column": 55}, "end_point": {"row": 49, "column": 63}}, {"id": 158, "type": "identifier", "text": "lv_num", "parent": 156, "children": [], "start_point": {"row": 49, "column": 64}, "end_point": {"row": 49, "column": 70}}, {"id": 159, "type": "declaration", "text": "int i;", "parent": 137, "children": [160, 161], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 7}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 4}}, {"id": 161, "type": "identifier", "text": "i", "parent": 159, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 6}}, {"id": 162, "type": "call_expression", "text": "memcpy(lvid->id, vgid, sizeof(*lvid->id))", "parent": 137, "children": [163, 164], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 42}}, {"id": 163, "type": "identifier", "text": "memcpy", "parent": 162, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 7}}, {"id": 164, "type": "argument_list", "text": "(lvid->id, vgid, sizeof(*lvid->id))", "parent": 162, "children": [165, 168, 169], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 42}}, {"id": 165, "type": "field_expression", "text": "lvid->id", "parent": 164, "children": [166, 167], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 16}}, {"id": 166, "type": "identifier", "text": "lvid", "parent": 165, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 12}}, {"id": 167, "type": "field_identifier", "text": "id", "parent": 165, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 168, "type": "identifier", "text": "vgid", "parent": 164, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 22}}, {"id": 169, "type": "sizeof_expression", "text": "sizeof(*lvid->id)", "parent": 164, "children": [170], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 41}}, {"id": 170, "type": "parenthesized_expression", "text": "(*lvid->id)", "parent": 169, "children": [171], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 41}}, {"id": 171, "type": "pointer_expression", "text": "*lvid->id", "parent": 170, "children": [172, 173], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 40}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 173, "type": "field_expression", "text": "lvid->id", "parent": 171, "children": [174, 175], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 40}}, {"id": 174, "type": "identifier", "text": "lvid", "parent": 173, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 36}}, {"id": 175, "type": "field_identifier", "text": "id", "parent": 173, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 40}}, {"id": 176, "type": "for_statement", "text": "for (i = ID_LEN; i; i--) {\n\t\tlvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n\t\tlv_num /= sizeof(_c) - 1;\n\t}", "parent": 137, "children": [177, 181, 182], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 58, "column": 2}}, {"id": 177, "type": "assignment_expression", "text": "i = ID_LEN", "parent": 176, "children": [178, 179, 180], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 16}}, {"id": 178, "type": "identifier", "text": "i", "parent": 177, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 7}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 180, "type": "identifier", "text": "ID_LEN", "parent": 177, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 16}}, {"id": 181, "type": "identifier", "text": "i", "parent": 176, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 19}}, {"id": 182, "type": "update_expression", "text": "i--", "parent": 176, "children": [183, 184], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 24}}, {"id": 183, "type": "identifier", "text": "i", "parent": 182, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 184, "type": "--", "text": "--", "parent": 182, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 24}}, {"id": 185, "type": "assignment_expression", "text": "lvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)]", "parent": 176, "children": [186, 198, 199], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 57}}, {"id": 186, "type": "subscript_expression", "text": "lvid->id[1].uuid[i - 1]", "parent": 185, "children": [187, 194], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 25}}, {"id": 187, "type": "field_expression", "text": "lvid->id[1].uuid", "parent": 186, "children": [188, 193], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 18}}, {"id": 188, "type": "subscript_expression", "text": "lvid->id[1]", "parent": 187, "children": [189, 192], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 13}}, {"id": 189, "type": "field_expression", "text": "lvid->id", "parent": 188, "children": [190, 191], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 10}}, {"id": 190, "type": "identifier", "text": "lvid", "parent": 189, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 191, "type": "field_identifier", "text": "id", "parent": 189, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 10}}, {"id": 192, "type": "number_literal", "text": "1", "parent": 188, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 193, "type": "field_identifier", "text": "uuid", "parent": 187, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 18}}, {"id": 194, "type": "binary_expression", "text": "i - 1", "parent": 186, "children": [195, 196, 197], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 24}}, {"id": 195, "type": "identifier", "text": "i", "parent": 194, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 20}}, {"id": 196, "type": "-", "text": "-", "parent": 194, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 22}}, {"id": 197, "type": "number_literal", "text": "1", "parent": 194, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 24}}, {"id": 198, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 27}}, {"id": 199, "type": "subscript_expression", "text": "_c[lv_num % (sizeof(_c) - 1)]", "parent": 185, "children": [200, 201], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 57}}, {"id": 200, "type": "identifier", "text": "_c", "parent": 199, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 30}}, {"id": 201, "type": "binary_expression", "text": "lv_num % (sizeof(_c) - 1)", "parent": 199, "children": [202, 203, 204], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 56}}, {"id": 202, "type": "identifier", "text": "lv_num", "parent": 201, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 37}}, {"id": 203, "type": "%", "text": "%", "parent": 201, "children": [], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 39}}, {"id": 204, "type": "parenthesized_expression", "text": "(sizeof(_c) - 1)", "parent": 201, "children": [205], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 56}}, {"id": 205, "type": "binary_expression", "text": "sizeof(_c) - 1", "parent": 204, "children": [206, 209, 210], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 55}}, {"id": 206, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 205, "children": [207], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 51}}, {"id": 207, "type": "parenthesized_expression", "text": "(_c)", "parent": 206, "children": [208], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 51}}, {"id": 208, "type": "identifier", "text": "_c", "parent": 207, "children": [], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 50}}, {"id": 209, "type": "-", "text": "-", "parent": 205, "children": [], "start_point": {"row": 56, "column": 52}, "end_point": {"row": 56, "column": 53}}, {"id": 210, "type": "number_literal", "text": "1", "parent": 205, "children": [], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 55}}, {"id": 211, "type": "assignment_expression", "text": "lv_num /= sizeof(_c) - 1", "parent": 176, "children": [212, 213, 214], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 26}}, {"id": 212, "type": "identifier", "text": "lv_num", "parent": 211, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 8}}, {"id": 213, "type": "/=", "text": "/=", "parent": 211, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 11}}, {"id": 214, "type": "binary_expression", "text": "sizeof(_c) - 1", "parent": 211, "children": [215, 218, 219], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 26}}, {"id": 215, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 214, "children": [216], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 216, "type": "parenthesized_expression", "text": "(_c)", "parent": 215, "children": [217], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 217, "type": "identifier", "text": "_c", "parent": 216, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 21}}, {"id": 218, "type": "-", "text": "-", "parent": 214, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 24}}, {"id": 219, "type": "number_literal", "text": "1", "parent": 214, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 220, "type": "assignment_expression", "text": "lvid->s[sizeof(lvid->s) - 1] = '\\0'", "parent": 137, "children": [221, 233, 234], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 36}}, {"id": 221, "type": "subscript_expression", "text": "lvid->s[sizeof(lvid->s) - 1]", "parent": 220, "children": [222, 225], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 29}}, {"id": 222, "type": "field_expression", "text": "lvid->s", "parent": 221, "children": [223, 224], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 8}}, {"id": 223, "type": "identifier", "text": "lvid", "parent": 222, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 5}}, {"id": 224, "type": "field_identifier", "text": "s", "parent": 222, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 8}}, {"id": 225, "type": "binary_expression", "text": "sizeof(lvid->s) - 1", "parent": 221, "children": [226, 231, 232], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 28}}, {"id": 226, "type": "sizeof_expression", "text": "sizeof(lvid->s)", "parent": 225, "children": [227], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 24}}, {"id": 227, "type": "parenthesized_expression", "text": "(lvid->s)", "parent": 226, "children": [228], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 24}}, {"id": 228, "type": "field_expression", "text": "lvid->s", "parent": 227, "children": [229, 230], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 23}}, {"id": 229, "type": "identifier", "text": "lvid", "parent": 228, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 20}}, {"id": 230, "type": "field_identifier", "text": "s", "parent": 228, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 231, "type": "-", "text": "-", "parent": 225, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 26}}, {"id": 232, "type": "number_literal", "text": "1", "parent": 225, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 28}}, {"id": 233, "type": "=", "text": "=", "parent": 220, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 31}}, {"id": 234, "type": "char_literal", "text": "'\\0'", "parent": 220, "children": [235, 236, 237], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 36}}, {"id": 235, "type": "'", "text": "'", "parent": 234, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 33}}, {"id": 236, "type": "escape_sequence", "text": "\\0", "parent": 234, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 35}}, {"id": 237, "type": "'", "text": "'", "parent": 234, "children": [], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 36}}, {"id": 238, "type": "return_statement", "text": "return 1;", "parent": 137, "children": [239], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 10}}, {"id": 239, "type": "number_literal", "text": "1", "parent": 238, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 9}}, {"id": 240, "type": "function_definition", "text": "int lvnum_from_lvid(union lvid *lvid)\n{\n\tint i, lv_num = 0;\n\tchar *c;\n\n\tfor (i = 0; i < ID_LEN; i++) {\n\t\tlv_num *= sizeof(_c) - 1;\n\t\tif ((c = strchr(_c, lvid->id[1].uuid[i])))\n\t\t\tlv_num += (int) (c - _c);\n\t\tif (lv_num < 0)\n\t\t\tlv_num = 0;\n\t}\n\n\treturn lv_num;\n}", "parent": null, "children": [241, 242], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 242, "type": "function_declarator", "text": "lvnum_from_lvid(union lvid *lvid)", "parent": 240, "children": [243, 244], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 37}}, {"id": 243, "type": "identifier", "text": "lvnum_from_lvid", "parent": 242, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 19}}, {"id": 244, "type": "parameter_list", "text": "(union lvid *lvid)", "parent": 242, "children": [245], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 37}}, {"id": 245, "type": "parameter_declaration", "text": "union lvid *lvid", "parent": 244, "children": [246, 249], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 36}}, {"id": 246, "type": "union_specifier", "text": "union lvid", "parent": 245, "children": [247, 248], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 30}}, {"id": 247, "type": "union", "text": "union", "parent": 246, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 25}}, {"id": 248, "type": "type_identifier", "text": "lvid", "parent": 246, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 30}}, {"id": 249, "type": "pointer_declarator", "text": "*lvid", "parent": 245, "children": [250, 251], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 36}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 251, "type": "identifier", "text": "lvid", "parent": 249, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 36}}, {"id": 252, "type": "declaration", "text": "int i, lv_num = 0;", "parent": 240, "children": [253, 254, 255], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 19}}, {"id": 253, "type": "primitive_type", "text": "int", "parent": 252, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 4}}, {"id": 254, "type": "identifier", "text": "i", "parent": 252, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 6}}, {"id": 255, "type": "init_declarator", "text": "lv_num = 0", "parent": 252, "children": [256, 257, 258], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 18}}, {"id": 256, "type": "identifier", "text": "lv_num", "parent": 255, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 14}}, {"id": 257, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 16}}, {"id": 258, "type": "number_literal", "text": "0", "parent": 255, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 18}}, {"id": 259, "type": "declaration", "text": "char *c;", "parent": 240, "children": [260, 261], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 9}}, {"id": 260, "type": "primitive_type", "text": "char", "parent": 259, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 5}}, {"id": 261, "type": "pointer_declarator", "text": "*c", "parent": 259, "children": [262, 263], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 8}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 263, "type": "identifier", "text": "c", "parent": 261, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 8}}, {"id": 264, "type": "for_statement", "text": "for (i = 0; i < ID_LEN; i++) {\n\t\tlv_num *= sizeof(_c) - 1;\n\t\tif ((c = strchr(_c, lvid->id[1].uuid[i])))\n\t\t\tlv_num += (int) (c - _c);\n\t\tif (lv_num < 0)\n\t\t\tlv_num = 0;\n\t}", "parent": 240, "children": [265, 269, 273], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 76, "column": 2}}, {"id": 265, "type": "assignment_expression", "text": "i = 0", "parent": 264, "children": [266, 267, 268], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 11}}, {"id": 266, "type": "identifier", "text": "i", "parent": 265, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 267, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 268, "type": "number_literal", "text": "0", "parent": 265, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 11}}, {"id": 269, "type": "binary_expression", "text": "i < ID_LEN", "parent": 264, "children": [270, 271, 272], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 23}}, {"id": 270, "type": "identifier", "text": "i", "parent": 269, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 14}}, {"id": 271, "type": "<", "text": "<", "parent": 269, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 272, "type": "identifier", "text": "ID_LEN", "parent": 269, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 23}}, {"id": 273, "type": "update_expression", "text": "i++", "parent": 264, "children": [274, 275], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 28}}, {"id": 274, "type": "identifier", "text": "i", "parent": 273, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 26}}, {"id": 275, "type": "++", "text": "++", "parent": 273, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 28}}, {"id": 276, "type": "assignment_expression", "text": "lv_num *= sizeof(_c) - 1", "parent": 264, "children": [277, 278, 279], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 26}}, {"id": 277, "type": "identifier", "text": "lv_num", "parent": 276, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 8}}, {"id": 278, "type": "*=", "text": "*=", "parent": 276, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 11}}, {"id": 279, "type": "binary_expression", "text": "sizeof(_c) - 1", "parent": 276, "children": [280, 283, 284], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 26}}, {"id": 280, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 279, "children": [281], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 22}}, {"id": 281, "type": "parenthesized_expression", "text": "(_c)", "parent": 280, "children": [282], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 282, "type": "identifier", "text": "_c", "parent": 281, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 21}}, {"id": 283, "type": "-", "text": "-", "parent": 279, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 24}}, {"id": 284, "type": "number_literal", "text": "1", "parent": 279, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 26}}, {"id": 285, "type": "if_statement", "text": "if ((c = strchr(_c, lvid->id[1].uuid[i])))\n\t\t\tlv_num += (int) (c - _c);", "parent": 264, "children": [286], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 73, "column": 28}}, {"id": 286, "type": "parenthesized_expression", "text": "((c = strchr(_c, lvid->id[1].uuid[i])))", "parent": 285, "children": [287], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 44}}, {"id": 287, "type": "parenthesized_expression", "text": "(c = strchr(_c, lvid->id[1].uuid[i]))", "parent": 286, "children": [288], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 43}}, {"id": 288, "type": "assignment_expression", "text": "c = strchr(_c, lvid->id[1].uuid[i])", "parent": 287, "children": [289, 290, 291], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 42}}, {"id": 289, "type": "identifier", "text": "c", "parent": 288, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 8}}, {"id": 290, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 10}}, {"id": 291, "type": "call_expression", "text": "strchr(_c, lvid->id[1].uuid[i])", "parent": 288, "children": [292, 293], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 42}}, {"id": 292, "type": "identifier", "text": "strchr", "parent": 291, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 17}}, {"id": 293, "type": "argument_list", "text": "(_c, lvid->id[1].uuid[i])", "parent": 291, "children": [294, 295], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 42}}, {"id": 294, "type": "identifier", "text": "_c", "parent": 293, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 20}}, {"id": 295, "type": "subscript_expression", "text": "lvid->id[1].uuid[i]", "parent": 293, "children": [296, 303], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 41}}, {"id": 296, "type": "field_expression", "text": "lvid->id[1].uuid", "parent": 295, "children": [297, 302], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 38}}, {"id": 297, "type": "subscript_expression", "text": "lvid->id[1]", "parent": 296, "children": [298, 301], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 33}}, {"id": 298, "type": "field_expression", "text": "lvid->id", "parent": 297, "children": [299, 300], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 30}}, {"id": 299, "type": "identifier", "text": "lvid", "parent": 298, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 26}}, {"id": 300, "type": "field_identifier", "text": "id", "parent": 298, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 30}}, {"id": 301, "type": "number_literal", "text": "1", "parent": 297, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 32}}, {"id": 302, "type": "field_identifier", "text": "uuid", "parent": 296, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 38}}, {"id": 303, "type": "identifier", "text": "i", "parent": 295, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 40}}, {"id": 304, "type": "assignment_expression", "text": "lv_num += (int) (c - _c)", "parent": 285, "children": [305, 306, 307], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 27}}, {"id": 305, "type": "identifier", "text": "lv_num", "parent": 304, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 9}}, {"id": 306, "type": "+=", "text": "+=", "parent": 304, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 12}}, {"id": 307, "type": "cast_expression", "text": "(int) (c - _c)", "parent": 304, "children": [308, 310], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 27}}, {"id": 308, "type": "type_descriptor", "text": "int", "parent": 307, "children": [309], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 17}}, {"id": 309, "type": "primitive_type", "text": "int", "parent": 308, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 17}}, {"id": 310, "type": "parenthesized_expression", "text": "(c - _c)", "parent": 307, "children": [311], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 27}}, {"id": 311, "type": "binary_expression", "text": "c - _c", "parent": 310, "children": [312, 313, 314], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 26}}, {"id": 312, "type": "identifier", "text": "c", "parent": 311, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 313, "type": "-", "text": "-", "parent": 311, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 23}}, {"id": 314, "type": "identifier", "text": "_c", "parent": 311, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 26}}, {"id": 315, "type": "if_statement", "text": "if (lv_num < 0)\n\t\t\tlv_num = 0;", "parent": 264, "children": [316], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 75, "column": 14}}, {"id": 316, "type": "parenthesized_expression", "text": "(lv_num < 0)", "parent": 315, "children": [317], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 17}}, {"id": 317, "type": "binary_expression", "text": "lv_num < 0", "parent": 316, "children": [318, 319, 320], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 16}}, {"id": 318, "type": "identifier", "text": "lv_num", "parent": 317, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 12}}, {"id": 319, "type": "<", "text": "<", "parent": 317, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 320, "type": "number_literal", "text": "0", "parent": 317, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 16}}, {"id": 321, "type": "assignment_expression", "text": "lv_num = 0", "parent": 315, "children": [322, 323, 324], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 13}}, {"id": 322, "type": "identifier", "text": "lv_num", "parent": 321, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 9}}, {"id": 323, "type": "=", "text": "=", "parent": 321, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 11}}, {"id": 324, "type": "number_literal", "text": "0", "parent": 321, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 13}}, {"id": 325, "type": "return_statement", "text": "return lv_num;", "parent": 240, "children": [326], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 15}}, {"id": 326, "type": "identifier", "text": "lv_num", "parent": 325, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 14}}, {"id": 327, "type": "function_definition", "text": "int lvid_in_restricted_range(union lvid *lvid)\n{\n\tint i;\n\n\tfor (i = 0; i < ID_LEN - 3; i++)\n\t\tif (lvid->id[1].uuid[i] != '0')\n\t\t\treturn 0;\n\n\tfor (i = ID_LEN - 3; i < ID_LEN; i++)\n\t\tif (!isdigit(lvid->id[1].uuid[i]))\n\t\t\treturn 0;\n\n\treturn 1;\n}", "parent": null, "children": [328, 329], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 328, "type": "primitive_type", "text": "int", "parent": 327, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 3}}, {"id": 329, "type": "function_declarator", "text": "lvid_in_restricted_range(union lvid *lvid)", "parent": 327, "children": [330, 331], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 46}}, {"id": 330, "type": "identifier", "text": "lvid_in_restricted_range", "parent": 329, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 28}}, {"id": 331, "type": "parameter_list", "text": "(union lvid *lvid)", "parent": 329, "children": [332], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 46}}, {"id": 332, "type": "parameter_declaration", "text": "union lvid *lvid", "parent": 331, "children": [333, 336], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 45}}, {"id": 333, "type": "union_specifier", "text": "union lvid", "parent": 332, "children": [334, 335], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 39}}, {"id": 334, "type": "union", "text": "union", "parent": 333, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 34}}, {"id": 335, "type": "type_identifier", "text": "lvid", "parent": 333, "children": [], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 39}}, {"id": 336, "type": "pointer_declarator", "text": "*lvid", "parent": 332, "children": [337, 338], "start_point": {"row": 81, "column": 40}, "end_point": {"row": 81, "column": 45}}, {"id": 337, "type": "*", "text": "*", "parent": 336, "children": [], "start_point": {"row": 81, "column": 40}, "end_point": {"row": 81, "column": 41}}, {"id": 338, "type": "identifier", "text": "lvid", "parent": 336, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 45}}, {"id": 339, "type": "declaration", "text": "int i;", "parent": 327, "children": [340, 341], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 7}}, {"id": 340, "type": "primitive_type", "text": "int", "parent": 339, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 4}}, {"id": 341, "type": "identifier", "text": "i", "parent": 339, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 6}}, {"id": 342, "type": "for_statement", "text": "for (i = 0; i < ID_LEN - 3; i++)\n\t\tif (lvid->id[1].uuid[i] != '0')\n\t\t\treturn 0;", "parent": 327, "children": [343, 347, 354, 357], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 87, "column": 12}}, {"id": 343, "type": "assignment_expression", "text": "i = 0", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 11}}, {"id": 344, "type": "identifier", "text": "i", "parent": 343, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 7}}, {"id": 345, "type": "=", "text": "=", "parent": 343, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 9}}, {"id": 346, "type": "number_literal", "text": "0", "parent": 343, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 11}}, {"id": 347, "type": "binary_expression", "text": "i < ID_LEN - 3", "parent": 342, "children": [348, 349, 350], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 27}}, {"id": 348, "type": "identifier", "text": "i", "parent": 347, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 14}}, {"id": 349, "type": "<", "text": "<", "parent": 347, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 16}}, {"id": 350, "type": "binary_expression", "text": "ID_LEN - 3", "parent": 347, "children": [351, 352, 353], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 27}}, {"id": 351, "type": "identifier", "text": "ID_LEN", "parent": 350, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 23}}, {"id": 352, "type": "-", "text": "-", "parent": 350, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 25}}, {"id": 353, "type": "number_literal", "text": "3", "parent": 350, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 27}}, {"id": 354, "type": "update_expression", "text": "i++", "parent": 342, "children": [355, 356], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 32}}, {"id": 355, "type": "identifier", "text": "i", "parent": 354, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 30}}, {"id": 356, "type": "++", "text": "++", "parent": 354, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 32}}, {"id": 357, "type": "if_statement", "text": "if (lvid->id[1].uuid[i] != '0')\n\t\t\treturn 0;", "parent": 342, "children": [358, 374], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 87, "column": 12}}, {"id": 358, "type": "parenthesized_expression", "text": "(lvid->id[1].uuid[i] != '0')", "parent": 357, "children": [359], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 33}}, {"id": 359, "type": "binary_expression", "text": "lvid->id[1].uuid[i] != '0'", "parent": 358, "children": [360, 369, 370], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 32}}, {"id": 360, "type": "subscript_expression", "text": "lvid->id[1].uuid[i]", "parent": 359, "children": [361, 368], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 25}}, {"id": 361, "type": "field_expression", "text": "lvid->id[1].uuid", "parent": 360, "children": [362, 367], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 22}}, {"id": 362, "type": "subscript_expression", "text": "lvid->id[1]", "parent": 361, "children": [363, 366], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 17}}, {"id": 363, "type": "field_expression", "text": "lvid->id", "parent": 362, "children": [364, 365], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 14}}, {"id": 364, "type": "identifier", "text": "lvid", "parent": 363, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 10}}, {"id": 365, "type": "field_identifier", "text": "id", "parent": 363, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 14}}, {"id": 366, "type": "number_literal", "text": "1", "parent": 362, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 16}}, {"id": 367, "type": "field_identifier", "text": "uuid", "parent": 361, "children": [], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 22}}, {"id": 368, "type": "identifier", "text": "i", "parent": 360, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 24}}, {"id": 369, "type": "!=", "text": "!=", "parent": 359, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 28}}, {"id": 370, "type": "char_literal", "text": "'0'", "parent": 359, "children": [371, 372, 373], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 32}}, {"id": 371, "type": "'", "text": "'", "parent": 370, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 30}}, {"id": 372, "type": "character", "text": "0", "parent": 370, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 31}}, {"id": 373, "type": "'", "text": "'", "parent": 370, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 32}}, {"id": 374, "type": "return_statement", "text": "return 0;", "parent": 357, "children": [375], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 12}}, {"id": 375, "type": "number_literal", "text": "0", "parent": 374, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 11}}, {"id": 376, "type": "for_statement", "text": "for (i = ID_LEN - 3; i < ID_LEN; i++)\n\t\tif (!isdigit(lvid->id[1].uuid[i]))\n\t\t\treturn 0;", "parent": 327, "children": [377, 384, 388, 391], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 91, "column": 12}}, {"id": 377, "type": "assignment_expression", "text": "i = ID_LEN - 3", "parent": 376, "children": [378, 379, 380], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 20}}, {"id": 378, "type": "identifier", "text": "i", "parent": 377, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 7}}, {"id": 379, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 380, "type": "binary_expression", "text": "ID_LEN - 3", "parent": 377, "children": [381, 382, 383], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 20}}, {"id": 381, "type": "identifier", "text": "ID_LEN", "parent": 380, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 16}}, {"id": 382, "type": "-", "text": "-", "parent": 380, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 18}}, {"id": 383, "type": "number_literal", "text": "3", "parent": 380, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 384, "type": "binary_expression", "text": "i < ID_LEN", "parent": 376, "children": [385, 386, 387], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 32}}, {"id": 385, "type": "identifier", "text": "i", "parent": 384, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 23}}, {"id": 386, "type": "<", "text": "<", "parent": 384, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 25}}, {"id": 387, "type": "identifier", "text": "ID_LEN", "parent": 384, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 32}}, {"id": 388, "type": "update_expression", "text": "i++", "parent": 376, "children": [389, 390], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 37}}, {"id": 389, "type": "identifier", "text": "i", "parent": 388, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 35}}, {"id": 390, "type": "++", "text": "++", "parent": 388, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 37}}, {"id": 391, "type": "if_statement", "text": "if (!isdigit(lvid->id[1].uuid[i]))\n\t\t\treturn 0;", "parent": 376, "children": [392, 407], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 91, "column": 12}}, {"id": 392, "type": "parenthesized_expression", "text": "(!isdigit(lvid->id[1].uuid[i]))", "parent": 391, "children": [393], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 36}}, {"id": 393, "type": "unary_expression", "text": "!isdigit(lvid->id[1].uuid[i])", "parent": 392, "children": [394, 395], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 35}}, {"id": 394, "type": "!", "text": "!", "parent": 393, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 7}}, {"id": 395, "type": "call_expression", "text": "isdigit(lvid->id[1].uuid[i])", "parent": 393, "children": [396, 397], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 35}}, {"id": 396, "type": "identifier", "text": "isdigit", "parent": 395, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 14}}, {"id": 397, "type": "argument_list", "text": "(lvid->id[1].uuid[i])", "parent": 395, "children": [398], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 35}}, {"id": 398, "type": "subscript_expression", "text": "lvid->id[1].uuid[i]", "parent": 397, "children": [399, 406], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 34}}, {"id": 399, "type": "field_expression", "text": "lvid->id[1].uuid", "parent": 398, "children": [400, 405], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 31}}, {"id": 400, "type": "subscript_expression", "text": "lvid->id[1]", "parent": 399, "children": [401, 404], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 26}}, {"id": 401, "type": "field_expression", "text": "lvid->id", "parent": 400, "children": [402, 403], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 23}}, {"id": 402, "type": "identifier", "text": "lvid", "parent": 401, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 19}}, {"id": 403, "type": "field_identifier", "text": "id", "parent": 401, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 23}}, {"id": 404, "type": "number_literal", "text": "1", "parent": 400, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 25}}, {"id": 405, "type": "field_identifier", "text": "uuid", "parent": 399, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 31}}, {"id": 406, "type": "identifier", "text": "i", "parent": 398, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 33}}, {"id": 407, "type": "return_statement", "text": "return 0;", "parent": 391, "children": [408], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 12}}, {"id": 408, "type": "number_literal", "text": "0", "parent": 407, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 11}}, {"id": 409, "type": "return_statement", "text": "return 1;", "parent": 327, "children": [410], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 10}}, {"id": 410, "type": "number_literal", "text": "1", "parent": 409, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 411, "type": "function_definition", "text": "int id_create(struct id *id)\n{\n\tunsigned i;\n\tsize_t len = sizeof(id->uuid);\n\n\tmemset(id->uuid, 0, len);\n\tif (!read_urandom(&id->uuid, len)) {\n\t\treturn 0;\n\t}\n\n\t/*\n\t * Skip out the last 2 chars in randomized creation for LVM1\n\t * backwards compatibility.\n\t */\n\tfor (i = 0; i < len; i++)\n\t\tid->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];\n\n\treturn 1;\n}", "parent": null, "children": [412, 413], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 412, "type": "primitive_type", "text": "int", "parent": 411, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 3}}, {"id": 413, "type": "function_declarator", "text": "id_create(struct id *id)", "parent": 411, "children": [414, 415], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 28}}, {"id": 414, "type": "identifier", "text": "id_create", "parent": 413, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 13}}, {"id": 415, "type": "parameter_list", "text": "(struct id *id)", "parent": 413, "children": [416], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 28}}, {"id": 416, "type": "parameter_declaration", "text": "struct id *id", "parent": 415, "children": [417, 420], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 27}}, {"id": 417, "type": "struct_specifier", "text": "struct id", "parent": 416, "children": [418, 419], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 23}}, {"id": 418, "type": "struct", "text": "struct", "parent": 417, "children": [], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 20}}, {"id": 419, "type": "type_identifier", "text": "id", "parent": 417, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 23}}, {"id": 420, "type": "pointer_declarator", "text": "*id", "parent": 416, "children": [421, 422], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 27}}, {"id": 421, "type": "*", "text": "*", "parent": 420, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 25}}, {"id": 422, "type": "identifier", "text": "id", "parent": 420, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 27}}, {"id": 423, "type": "declaration", "text": "unsigned i;", "parent": 411, "children": [424, 426], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 12}}, {"id": 424, "type": "sized_type_specifier", "text": "unsigned", "parent": 423, "children": [425], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 9}}, {"id": 425, "type": "unsigned", "text": "unsigned", "parent": 424, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 9}}, {"id": 426, "type": "identifier", "text": "i", "parent": 423, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 11}}, {"id": 427, "type": "declaration", "text": "size_t len = sizeof(id->uuid);", "parent": 411, "children": [428, 429], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 31}}, {"id": 428, "type": "primitive_type", "text": "size_t", "parent": 427, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 7}}, {"id": 429, "type": "init_declarator", "text": "len = sizeof(id->uuid)", "parent": 427, "children": [430, 431, 432], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 30}}, {"id": 430, "type": "identifier", "text": "len", "parent": 429, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 11}}, {"id": 431, "type": "=", "text": "=", "parent": 429, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 13}}, {"id": 432, "type": "sizeof_expression", "text": "sizeof(id->uuid)", "parent": 429, "children": [433], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 30}}, {"id": 433, "type": "parenthesized_expression", "text": "(id->uuid)", "parent": 432, "children": [434], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 30}}, {"id": 434, "type": "field_expression", "text": "id->uuid", "parent": 433, "children": [435, 436], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 29}}, {"id": 435, "type": "identifier", "text": "id", "parent": 434, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 23}}, {"id": 436, "type": "field_identifier", "text": "uuid", "parent": 434, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 29}}, {"id": 437, "type": "call_expression", "text": "memset(id->uuid, 0, len)", "parent": 411, "children": [438, 439], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 25}}, {"id": 438, "type": "identifier", "text": "memset", "parent": 437, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 7}}, {"id": 439, "type": "argument_list", "text": "(id->uuid, 0, len)", "parent": 437, "children": [440, 443, 444], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 25}}, {"id": 440, "type": "field_expression", "text": "id->uuid", "parent": 439, "children": [441, 442], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 16}}, {"id": 441, "type": "identifier", "text": "id", "parent": 440, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 10}}, {"id": 442, "type": "field_identifier", "text": "uuid", "parent": 440, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 16}}, {"id": 443, "type": "number_literal", "text": "0", "parent": 439, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 19}}, {"id": 444, "type": "identifier", "text": "len", "parent": 439, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 24}}, {"id": 445, "type": "if_statement", "text": "if (!read_urandom(&id->uuid, len)) {\n\t\treturn 0;\n\t}", "parent": 411, "children": [446], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 446, "type": "parenthesized_expression", "text": "(!read_urandom(&id->uuid, len))", "parent": 445, "children": [447], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 35}}, {"id": 447, "type": "unary_expression", "text": "!read_urandom(&id->uuid, len)", "parent": 446, "children": [448, 449], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 34}}, {"id": 448, "type": "!", "text": "!", "parent": 447, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 6}}, {"id": 449, "type": "call_expression", "text": "read_urandom(&id->uuid, len)", "parent": 447, "children": [450, 451], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 34}}, {"id": 450, "type": "identifier", "text": "read_urandom", "parent": 449, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 18}}, {"id": 451, "type": "argument_list", "text": "(&id->uuid, len)", "parent": 449, "children": [452, 456], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 34}}, {"id": 452, "type": "pointer_expression", "text": "&id->uuid", "parent": 451, "children": [453], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 28}}, {"id": 453, "type": "field_expression", "text": "id->uuid", "parent": 452, "children": [454, 455], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 28}}, {"id": 454, "type": "identifier", "text": "id", "parent": 453, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 22}}, {"id": 455, "type": "field_identifier", "text": "uuid", "parent": 453, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 28}}, {"id": 456, "type": "identifier", "text": "len", "parent": 451, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 33}}, {"id": 457, "type": "return_statement", "text": "return 0;", "parent": 445, "children": [458], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 11}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 457, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 10}}, {"id": 459, "type": "for_statement", "text": "for (i = 0; i < len; i++)\n\t\tid->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];", "parent": 411, "children": [460, 464, 468], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 112, "column": 51}}, {"id": 460, "type": "assignment_expression", "text": "i = 0", "parent": 459, "children": [461, 462, 463], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 11}}, {"id": 461, "type": "identifier", "text": "i", "parent": 460, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 7}}, {"id": 462, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 9}}, {"id": 463, "type": "number_literal", "text": "0", "parent": 460, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 11}}, {"id": 464, "type": "binary_expression", "text": "i < len", "parent": 459, "children": [465, 466, 467], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 20}}, {"id": 465, "type": "identifier", "text": "i", "parent": 464, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 14}}, {"id": 466, "type": "<", "text": "<", "parent": 464, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 16}}, {"id": 467, "type": "identifier", "text": "len", "parent": 464, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 20}}, {"id": 468, "type": "update_expression", "text": "i++", "parent": 459, "children": [469, 470], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 25}}, {"id": 469, "type": "identifier", "text": "i", "parent": 468, "children": [], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 23}}, {"id": 470, "type": "++", "text": "++", "parent": 468, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 25}}, {"id": 471, "type": "assignment_expression", "text": "id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)]", "parent": 459, "children": [472, 477, 478], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 50}}, {"id": 472, "type": "subscript_expression", "text": "id->uuid[i]", "parent": 471, "children": [473, 476], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 13}}, {"id": 473, "type": "field_expression", "text": "id->uuid", "parent": 472, "children": [474, 475], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 10}}, {"id": 474, "type": "identifier", "text": "id", "parent": 473, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 4}}, {"id": 475, "type": "field_identifier", "text": "uuid", "parent": 473, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 10}}, {"id": 476, "type": "identifier", "text": "i", "parent": 472, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 12}}, {"id": 477, "type": "=", "text": "=", "parent": 471, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 15}}, {"id": 478, "type": "subscript_expression", "text": "_c[id->uuid[i] % (sizeof(_c) - 3)]", "parent": 471, "children": [479, 480], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 50}}, {"id": 479, "type": "identifier", "text": "_c", "parent": 478, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 18}}, {"id": 480, "type": "binary_expression", "text": "id->uuid[i] % (sizeof(_c) - 3)", "parent": 478, "children": [481, 486, 487], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 49}}, {"id": 481, "type": "subscript_expression", "text": "id->uuid[i]", "parent": 480, "children": [482, 485], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 30}}, {"id": 482, "type": "field_expression", "text": "id->uuid", "parent": 481, "children": [483, 484], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 27}}, {"id": 483, "type": "identifier", "text": "id", "parent": 482, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 21}}, {"id": 484, "type": "field_identifier", "text": "uuid", "parent": 482, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 27}}, {"id": 485, "type": "identifier", "text": "i", "parent": 481, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 29}}, {"id": 486, "type": "%", "text": "%", "parent": 480, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 32}}, {"id": 487, "type": "parenthesized_expression", "text": "(sizeof(_c) - 3)", "parent": 480, "children": [488], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 49}}, {"id": 488, "type": "binary_expression", "text": "sizeof(_c) - 3", "parent": 487, "children": [489, 492, 493], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 48}}, {"id": 489, "type": "sizeof_expression", "text": "sizeof(_c)", "parent": 488, "children": [490], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 44}}, {"id": 490, "type": "parenthesized_expression", "text": "(_c)", "parent": 489, "children": [491], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 44}}, {"id": 491, "type": "identifier", "text": "_c", "parent": 490, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 43}}, {"id": 492, "type": "-", "text": "-", "parent": 488, "children": [], "start_point": {"row": 112, "column": 45}, "end_point": {"row": 112, "column": 46}}, {"id": 493, "type": "number_literal", "text": "3", "parent": 488, "children": [], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 48}}, {"id": 494, "type": "return_statement", "text": "return 1;", "parent": 411, "children": [495], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 10}}, {"id": 495, "type": "number_literal", "text": "1", "parent": 494, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 9}}, {"id": 496, "type": "function_definition", "text": "static void _build_inverse(void)\n{\n\tconst char *ptr;\n\n\tif (_built_inverse)\n\t\treturn;\n\n\tmemset(_inverse_c, 0, sizeof(_inverse_c));\n\n\tfor (ptr = _c; *ptr; ptr++)\n\t\t_inverse_c[(int) *ptr] = (char) 0x1;\n}", "parent": null, "children": [497, 498], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 133, "column": 1}}, {"id": 497, "type": "primitive_type", "text": "void", "parent": 496, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 11}}, {"id": 498, "type": "function_declarator", "text": "_build_inverse(void)", "parent": 496, "children": [499, 500], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 32}}, {"id": 499, "type": "identifier", "text": "_build_inverse", "parent": 498, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 26}}, {"id": 500, "type": "parameter_list", "text": "(void)", "parent": 498, "children": [501], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 32}}, {"id": 501, "type": "parameter_declaration", "text": "void", "parent": 500, "children": [502], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 31}}, {"id": 502, "type": "primitive_type", "text": "void", "parent": 501, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 31}}, {"id": 503, "type": "declaration", "text": "const char *ptr;", "parent": 496, "children": [504, 505], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 17}}, {"id": 504, "type": "primitive_type", "text": "char", "parent": 503, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 11}}, {"id": 505, "type": "pointer_declarator", "text": "*ptr", "parent": 503, "children": [506, 507], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 16}}, {"id": 506, "type": "*", "text": "*", "parent": 505, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 13}}, {"id": 507, "type": "identifier", "text": "ptr", "parent": 505, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 16}}, {"id": 508, "type": "if_statement", "text": "if (_built_inverse)\n\t\treturn;", "parent": 496, "children": [509, 511], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 509, "type": "parenthesized_expression", "text": "(_built_inverse)", "parent": 508, "children": [510], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 20}}, {"id": 510, "type": "identifier", "text": "_built_inverse", "parent": 509, "children": [], "start_point": {"row": 126, "column": 5}, "end_point": {"row": 126, "column": 19}}, {"id": 511, "type": "return_statement", "text": "return;", "parent": 508, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 9}}, {"id": 512, "type": "call_expression", "text": "memset(_inverse_c, 0, sizeof(_inverse_c))", "parent": 496, "children": [513, 514], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 42}}, {"id": 513, "type": "identifier", "text": "memset", "parent": 512, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 7}}, {"id": 514, "type": "argument_list", "text": "(_inverse_c, 0, sizeof(_inverse_c))", "parent": 512, "children": [515, 516, 517], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 42}}, {"id": 515, "type": "identifier", "text": "_inverse_c", "parent": 514, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 18}}, {"id": 516, "type": "number_literal", "text": "0", "parent": 514, "children": [], "start_point": {"row": 129, "column": 20}, "end_point": {"row": 129, "column": 21}}, {"id": 517, "type": "sizeof_expression", "text": "sizeof(_inverse_c)", "parent": 514, "children": [518], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 41}}, {"id": 518, "type": "parenthesized_expression", "text": "(_inverse_c)", "parent": 517, "children": [519], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 41}}, {"id": 519, "type": "identifier", "text": "_inverse_c", "parent": 518, "children": [], "start_point": {"row": 129, "column": 30}, "end_point": {"row": 129, "column": 40}}, {"id": 520, "type": "for_statement", "text": "for (ptr = _c; *ptr; ptr++)\n\t\t_inverse_c[(int) *ptr] = (char) 0x1;", "parent": 496, "children": [521, 525, 528], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 132, "column": 38}}, {"id": 521, "type": "assignment_expression", "text": "ptr = _c", "parent": 520, "children": [522, 523, 524], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 14}}, {"id": 522, "type": "identifier", "text": "ptr", "parent": 521, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 9}}, {"id": 523, "type": "=", "text": "=", "parent": 521, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 524, "type": "identifier", "text": "_c", "parent": 521, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 14}}, {"id": 525, "type": "pointer_expression", "text": "*ptr", "parent": 520, "children": [526, 527], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 20}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 527, "type": "identifier", "text": "ptr", "parent": 525, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 20}}, {"id": 528, "type": "update_expression", "text": "ptr++", "parent": 520, "children": [529, 530], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 27}}, {"id": 529, "type": "identifier", "text": "ptr", "parent": 528, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 25}}, {"id": 530, "type": "++", "text": "++", "parent": 528, "children": [], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 27}}, {"id": 531, "type": "assignment_expression", "text": "_inverse_c[(int) *ptr] = (char) 0x1", "parent": 520, "children": [532, 540, 541], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 37}}, {"id": 532, "type": "subscript_expression", "text": "_inverse_c[(int) *ptr]", "parent": 531, "children": [533, 534], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 24}}, {"id": 533, "type": "identifier", "text": "_inverse_c", "parent": 532, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 12}}, {"id": 534, "type": "cast_expression", "text": "(int) *ptr", "parent": 532, "children": [535, 537], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 23}}, {"id": 535, "type": "type_descriptor", "text": "int", "parent": 534, "children": [536], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 17}}, {"id": 536, "type": "primitive_type", "text": "int", "parent": 535, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 17}}, {"id": 537, "type": "pointer_expression", "text": "*ptr", "parent": 534, "children": [538, 539], "start_point": {"row": 132, "column": 19}, "end_point": {"row": 132, "column": 23}}, {"id": 538, "type": "*", "text": "*", "parent": 537, "children": [], "start_point": {"row": 132, "column": 19}, "end_point": {"row": 132, "column": 20}}, {"id": 539, "type": "identifier", "text": "ptr", "parent": 537, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 23}}, {"id": 540, "type": "=", "text": "=", "parent": 531, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 26}}, {"id": 541, "type": "cast_expression", "text": "(char) 0x1", "parent": 531, "children": [542, 544], "start_point": {"row": 132, "column": 27}, "end_point": {"row": 132, "column": 37}}, {"id": 542, "type": "type_descriptor", "text": "char", "parent": 541, "children": [543], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 32}}, {"id": 543, "type": "primitive_type", "text": "char", "parent": 542, "children": [], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 32}}, {"id": 544, "type": "number_literal", "text": "0x1", "parent": 541, "children": [], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 37}}, {"id": 545, "type": "function_definition", "text": "int id_valid(struct id *id)\n{\n\tint i;\n\n\t_build_inverse();\n\n\tfor (i = 0; i < ID_LEN; i++)\n\t\tif (!_inverse_c[id->uuid[i]]) {\n\t\t\tlog_error(\"UUID contains invalid character\");\n\t\t\treturn 0;\n\t\t}\n\n\treturn 1;\n}", "parent": null, "children": [546, 547], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 148, "column": 1}}, {"id": 546, "type": "primitive_type", "text": "int", "parent": 545, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 3}}, {"id": 547, "type": "function_declarator", "text": "id_valid(struct id *id)", "parent": 545, "children": [548, 549], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 27}}, {"id": 548, "type": "identifier", "text": "id_valid", "parent": 547, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 12}}, {"id": 549, "type": "parameter_list", "text": "(struct id *id)", "parent": 547, "children": [550], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 27}}, {"id": 550, "type": "parameter_declaration", "text": "struct id *id", "parent": 549, "children": [551, 554], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 26}}, {"id": 551, "type": "struct_specifier", "text": "struct id", "parent": 550, "children": [552, 553], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 22}}, {"id": 552, "type": "struct", "text": "struct", "parent": 551, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 19}}, {"id": 553, "type": "type_identifier", "text": "id", "parent": 551, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 22}}, {"id": 554, "type": "pointer_declarator", "text": "*id", "parent": 550, "children": [555, 556], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 26}}, {"id": 555, "type": "*", "text": "*", "parent": 554, "children": [], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 24}}, {"id": 556, "type": "identifier", "text": "id", "parent": 554, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 26}}, {"id": 557, "type": "declaration", "text": "int i;", "parent": 545, "children": [558, 559], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 7}}, {"id": 558, "type": "primitive_type", "text": "int", "parent": 557, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 4}}, {"id": 559, "type": "identifier", "text": "i", "parent": 557, "children": [], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 6}}, {"id": 560, "type": "call_expression", "text": "_build_inverse()", "parent": 545, "children": [561, 562], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 17}}, {"id": 561, "type": "identifier", "text": "_build_inverse", "parent": 560, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 15}}, {"id": 562, "type": "argument_list", "text": "()", "parent": 560, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 17}}, {"id": 563, "type": "for_statement", "text": "for (i = 0; i < ID_LEN; i++)\n\t\tif (!_inverse_c[id->uuid[i]]) {\n\t\t\tlog_error(\"UUID contains invalid character\");\n\t\t\treturn 0;\n\t\t}", "parent": 545, "children": [564, 568, 572, 575], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 145, "column": 3}}, {"id": 564, "type": "assignment_expression", "text": "i = 0", "parent": 563, "children": [565, 566, 567], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 11}}, {"id": 565, "type": "identifier", "text": "i", "parent": 564, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 7}}, {"id": 566, "type": "=", "text": "=", "parent": 564, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 9}}, {"id": 567, "type": "number_literal", "text": "0", "parent": 564, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 11}}, {"id": 568, "type": "binary_expression", "text": "i < ID_LEN", "parent": 563, "children": [569, 570, 571], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 23}}, {"id": 569, "type": "identifier", "text": "i", "parent": 568, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 14}}, {"id": 570, "type": "<", "text": "<", "parent": 568, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 16}}, {"id": 571, "type": "identifier", "text": "ID_LEN", "parent": 568, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 23}}, {"id": 572, "type": "update_expression", "text": "i++", "parent": 563, "children": [573, 574], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 28}}, {"id": 573, "type": "identifier", "text": "i", "parent": 572, "children": [], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 26}}, {"id": 574, "type": "++", "text": "++", "parent": 572, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 28}}, {"id": 575, "type": "if_statement", "text": "if (!_inverse_c[id->uuid[i]]) {\n\t\t\tlog_error(\"UUID contains invalid character\");\n\t\t\treturn 0;\n\t\t}", "parent": 563, "children": [576], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 145, "column": 3}}, {"id": 576, "type": "parenthesized_expression", "text": "(!_inverse_c[id->uuid[i]])", "parent": 575, "children": [577], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 31}}, {"id": 577, "type": "unary_expression", "text": "!_inverse_c[id->uuid[i]]", "parent": 576, "children": [578, 579], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 30}}, {"id": 578, "type": "!", "text": "!", "parent": 577, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 7}}, {"id": 579, "type": "subscript_expression", "text": "_inverse_c[id->uuid[i]]", "parent": 577, "children": [580, 581], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 30}}, {"id": 580, "type": "identifier", "text": "_inverse_c", "parent": 579, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 17}}, {"id": 581, "type": "subscript_expression", "text": "id->uuid[i]", "parent": 579, "children": [582, 585], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 29}}, {"id": 582, "type": "field_expression", "text": "id->uuid", "parent": 581, "children": [583, 584], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 26}}, {"id": 583, "type": "identifier", "text": "id", "parent": 582, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 20}}, {"id": 584, "type": "field_identifier", "text": "uuid", "parent": 582, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 26}}, {"id": 585, "type": "identifier", "text": "i", "parent": 581, "children": [], "start_point": {"row": 142, "column": 27}, "end_point": {"row": 142, "column": 28}}, {"id": 586, "type": "call_expression", "text": "log_error(\"UUID contains invalid character\")", "parent": 575, "children": [587, 588], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 47}}, {"id": 587, "type": "identifier", "text": "log_error", "parent": 586, "children": [], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 12}}, {"id": 588, "type": "argument_list", "text": "(\"UUID contains invalid character\")", "parent": 586, "children": [589], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 47}}, {"id": 589, "type": "string_literal", "text": "\"UUID contains invalid character\"", "parent": 588, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 46}}, {"id": 590, "type": "return_statement", "text": "return 0;", "parent": 575, "children": [591], "start_point": {"row": 144, "column": 3}, "end_point": {"row": 144, "column": 12}}, {"id": 591, "type": "number_literal", "text": "0", "parent": 590, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 11}}, {"id": 592, "type": "return_statement", "text": "return 1;", "parent": 545, "children": [593], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 10}}, {"id": 593, "type": "number_literal", "text": "1", "parent": 592, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 9}}, {"id": 594, "type": "function_definition", "text": "int id_equal(const struct id *lhs, const struct id *rhs)\n{\n\treturn !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));\n}", "parent": null, "children": [595, 596], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 595, "type": "primitive_type", "text": "int", "parent": 594, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 3}}, {"id": 596, "type": "function_declarator", "text": "id_equal(const struct id *lhs, const struct id *rhs)", "parent": 594, "children": [597, 598], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 56}}, {"id": 597, "type": "identifier", "text": "id_equal", "parent": 596, "children": [], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 12}}, {"id": 598, "type": "parameter_list", "text": "(const struct id *lhs, const struct id *rhs)", "parent": 596, "children": [599, 606], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 56}}, {"id": 599, "type": "parameter_declaration", "text": "const struct id *lhs", "parent": 598, "children": [600, 603], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 33}}, {"id": 600, "type": "struct_specifier", "text": "struct id", "parent": 599, "children": [601, 602], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 28}}, {"id": 601, "type": "struct", "text": "struct", "parent": 600, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 25}}, {"id": 602, "type": "type_identifier", "text": "id", "parent": 600, "children": [], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 28}}, {"id": 603, "type": "pointer_declarator", "text": "*lhs", "parent": 599, "children": [604, 605], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 33}}, {"id": 604, "type": "*", "text": "*", "parent": 603, "children": [], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 30}}, {"id": 605, "type": "identifier", "text": "lhs", "parent": 603, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 33}}, {"id": 606, "type": "parameter_declaration", "text": "const struct id *rhs", "parent": 598, "children": [607, 610], "start_point": {"row": 150, "column": 35}, "end_point": {"row": 150, "column": 55}}, {"id": 607, "type": "struct_specifier", "text": "struct id", "parent": 606, "children": [608, 609], "start_point": {"row": 150, "column": 41}, "end_point": {"row": 150, "column": 50}}, {"id": 608, "type": "struct", "text": "struct", "parent": 607, "children": [], "start_point": {"row": 150, "column": 41}, "end_point": {"row": 150, "column": 47}}, {"id": 609, "type": "type_identifier", "text": "id", "parent": 607, "children": [], "start_point": {"row": 150, "column": 48}, "end_point": {"row": 150, "column": 50}}, {"id": 610, "type": "pointer_declarator", "text": "*rhs", "parent": 606, "children": [611, 612], "start_point": {"row": 150, "column": 51}, "end_point": {"row": 150, "column": 55}}, {"id": 611, "type": "*", "text": "*", "parent": 610, "children": [], "start_point": {"row": 150, "column": 51}, "end_point": {"row": 150, "column": 52}}, {"id": 612, "type": "identifier", "text": "rhs", "parent": 610, "children": [], "start_point": {"row": 150, "column": 52}, "end_point": {"row": 150, "column": 55}}, {"id": 613, "type": "return_statement", "text": "return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));", "parent": 594, "children": [614], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 57}}, {"id": 614, "type": "unary_expression", "text": "!memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))", "parent": 613, "children": [615, 616], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 56}}, {"id": 615, "type": "!", "text": "!", "parent": 614, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 9}}, {"id": 616, "type": "call_expression", "text": "memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))", "parent": 614, "children": [617, 618], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 56}}, {"id": 617, "type": "identifier", "text": "memcmp", "parent": 616, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 15}}, {"id": 618, "type": "argument_list", "text": "(lhs->uuid, rhs->uuid, sizeof(lhs->uuid))", "parent": 616, "children": [619, 622, 625], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 56}}, {"id": 619, "type": "field_expression", "text": "lhs->uuid", "parent": 618, "children": [620, 621], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 25}}, {"id": 620, "type": "identifier", "text": "lhs", "parent": 619, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 19}}, {"id": 621, "type": "field_identifier", "text": "uuid", "parent": 619, "children": [], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 25}}, {"id": 622, "type": "field_expression", "text": "rhs->uuid", "parent": 618, "children": [623, 624], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 36}}, {"id": 623, "type": "identifier", "text": "rhs", "parent": 622, "children": [], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 30}}, {"id": 624, "type": "field_identifier", "text": "uuid", "parent": 622, "children": [], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 36}}, {"id": 625, "type": "sizeof_expression", "text": "sizeof(lhs->uuid)", "parent": 618, "children": [626], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 55}}, {"id": 626, "type": "parenthesized_expression", "text": "(lhs->uuid)", "parent": 625, "children": [627], "start_point": {"row": 152, "column": 44}, "end_point": {"row": 152, "column": 55}}, {"id": 627, "type": "field_expression", "text": "lhs->uuid", "parent": 626, "children": [628, 629], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 54}}, {"id": 628, "type": "identifier", "text": "lhs", "parent": 627, "children": [], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 48}}, {"id": 629, "type": "field_identifier", "text": "uuid", "parent": 627, "children": [], "start_point": {"row": 152, "column": 50}, "end_point": {"row": 152, "column": 54}}, {"id": 630, "type": "preproc_def", "text": "#define GROUPS (ID_LEN / 4)\n", "parent": null, "children": [631, 632, 633], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 631, "type": "#define", "text": "#define", "parent": 630, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 632, "type": "identifier", "text": "GROUPS", "parent": 630, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 14}}, {"id": 633, "type": "preproc_arg", "text": "(ID_LEN / 4)", "parent": 630, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 27}}, {"id": 634, "type": "function_definition", "text": "int id_write_format(const struct id *id, char *buffer, size_t size)\n{\n\tint i, tot;\n\n\tstatic unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };\n\n\tassert(ID_LEN == 32);\n\n\t/* split into groups separated by dashes */\n\tif (size < (32 + 6 + 1)) {\n\t\tlog_error(\"Couldn't write uuid, buffer too small.\");\n\t\treturn 0;\n\t}\n\n\tfor (i = 0, tot = 0; i < 7; i++) {\n\t\tmemcpy(buffer, id->uuid + tot, group_size[i]);\n\t\tbuffer += group_size[i];\n\t\ttot += group_size[i];\n\t\t*buffer++ = '-';\n\t}\n\n\t*--buffer = '\\0';\n\treturn 1;\n}", "parent": null, "children": [635, 636], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 180, "column": 1}}, {"id": 635, "type": "primitive_type", "text": "int", "parent": 634, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 3}}, {"id": 636, "type": "function_declarator", "text": "id_write_format(const struct id *id, char *buffer, size_t size)", "parent": 634, "children": [637, 638], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 67}}, {"id": 637, "type": "identifier", "text": "id_write_format", "parent": 636, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 19}}, {"id": 638, "type": "parameter_list", "text": "(const struct id *id, char *buffer, size_t size)", "parent": 636, "children": [639, 646, 651], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 67}}, {"id": 639, "type": "parameter_declaration", "text": "const struct id *id", "parent": 638, "children": [640, 643], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 39}}, {"id": 640, "type": "struct_specifier", "text": "struct id", "parent": 639, "children": [641, 642], "start_point": {"row": 157, "column": 26}, "end_point": {"row": 157, "column": 35}}, {"id": 641, "type": "struct", "text": "struct", "parent": 640, "children": [], "start_point": {"row": 157, "column": 26}, "end_point": {"row": 157, "column": 32}}, {"id": 642, "type": "type_identifier", "text": "id", "parent": 640, "children": [], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 35}}, {"id": 643, "type": "pointer_declarator", "text": "*id", "parent": 639, "children": [644, 645], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 39}}, {"id": 644, "type": "*", "text": "*", "parent": 643, "children": [], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 37}}, {"id": 645, "type": "identifier", "text": "id", "parent": 643, "children": [], "start_point": {"row": 157, "column": 37}, "end_point": {"row": 157, "column": 39}}, {"id": 646, "type": "parameter_declaration", "text": "char *buffer", "parent": 638, "children": [647, 648], "start_point": {"row": 157, "column": 41}, "end_point": {"row": 157, "column": 53}}, {"id": 647, "type": "primitive_type", "text": "char", "parent": 646, "children": [], "start_point": {"row": 157, "column": 41}, "end_point": {"row": 157, "column": 45}}, {"id": 648, "type": "pointer_declarator", "text": "*buffer", "parent": 646, "children": [649, 650], "start_point": {"row": 157, "column": 46}, "end_point": {"row": 157, "column": 53}}, {"id": 649, "type": "*", "text": "*", "parent": 648, "children": [], "start_point": {"row": 157, "column": 46}, "end_point": {"row": 157, "column": 47}}, {"id": 650, "type": "identifier", "text": "buffer", "parent": 648, "children": [], "start_point": {"row": 157, "column": 47}, "end_point": {"row": 157, "column": 53}}, {"id": 651, "type": "parameter_declaration", "text": "size_t size", "parent": 638, "children": [652, 653], "start_point": {"row": 157, "column": 55}, "end_point": {"row": 157, "column": 66}}, {"id": 652, "type": "primitive_type", "text": "size_t", "parent": 651, "children": [], "start_point": {"row": 157, "column": 55}, "end_point": {"row": 157, "column": 61}}, {"id": 653, "type": "identifier", "text": "size", "parent": 651, "children": [], "start_point": {"row": 157, "column": 62}, "end_point": {"row": 157, "column": 66}}, {"id": 654, "type": "declaration", "text": "int i, tot;", "parent": 634, "children": [655, 656, 657], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 12}}, {"id": 655, "type": "primitive_type", "text": "int", "parent": 654, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 4}}, {"id": 656, "type": "identifier", "text": "i", "parent": 654, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 6}}, {"id": 657, "type": "identifier", "text": "tot", "parent": 654, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 11}}, {"id": 658, "type": "declaration", "text": "static unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };", "parent": 634, "children": [659, 661], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 56}}, {"id": 659, "type": "sized_type_specifier", "text": "unsigned", "parent": 658, "children": [660], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 16}}, {"id": 660, "type": "unsigned", "text": "unsigned", "parent": 659, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 16}}, {"id": 661, "type": "init_declarator", "text": "group_size[] = { 6, 4, 4, 4, 4, 4, 6 }", "parent": 658, "children": [662, 664, 665], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 55}}, {"id": 662, "type": "array_declarator", "text": "group_size[]", "parent": 661, "children": [663], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 29}}, {"id": 663, "type": "identifier", "text": "group_size", "parent": 662, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 27}}, {"id": 664, "type": "=", "text": "=", "parent": 661, "children": [], "start_point": {"row": 161, "column": 30}, "end_point": {"row": 161, "column": 31}}, {"id": 665, "type": "initializer_list", "text": "{ 6, 4, 4, 4, 4, 4, 6 }", "parent": 661, "children": [666, 667, 668, 669, 670, 671, 672], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 55}}, {"id": 666, "type": "number_literal", "text": "6", "parent": 665, "children": [], "start_point": {"row": 161, "column": 34}, "end_point": {"row": 161, "column": 35}}, {"id": 667, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 161, "column": 37}, "end_point": {"row": 161, "column": 38}}, {"id": 668, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 161, "column": 40}, "end_point": {"row": 161, "column": 41}}, {"id": 669, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 161, "column": 43}, "end_point": {"row": 161, "column": 44}}, {"id": 670, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 161, "column": 46}, "end_point": {"row": 161, "column": 47}}, {"id": 671, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 161, "column": 49}, "end_point": {"row": 161, "column": 50}}, {"id": 672, "type": "number_literal", "text": "6", "parent": 665, "children": [], "start_point": {"row": 161, "column": 52}, "end_point": {"row": 161, "column": 53}}, {"id": 673, "type": "call_expression", "text": "assert(ID_LEN == 32)", "parent": 634, "children": [674, 675], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 21}}, {"id": 674, "type": "identifier", "text": "assert", "parent": 673, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 7}}, {"id": 675, "type": "argument_list", "text": "(ID_LEN == 32)", "parent": 673, "children": [676], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 21}}, {"id": 676, "type": "binary_expression", "text": "ID_LEN == 32", "parent": 675, "children": [677, 678, 679], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 20}}, {"id": 677, "type": "identifier", "text": "ID_LEN", "parent": 676, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 14}}, {"id": 678, "type": "==", "text": "==", "parent": 676, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 17}}, {"id": 679, "type": "number_literal", "text": "32", "parent": 676, "children": [], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 20}}, {"id": 680, "type": "if_statement", "text": "if (size < (32 + 6 + 1)) {\n\t\tlog_error(\"Couldn't write uuid, buffer too small.\");\n\t\treturn 0;\n\t}", "parent": 634, "children": [681], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 169, "column": 2}}, {"id": 681, "type": "parenthesized_expression", "text": "(size < (32 + 6 + 1))", "parent": 680, "children": [682], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 25}}, {"id": 682, "type": "binary_expression", "text": "size < (32 + 6 + 1)", "parent": 681, "children": [683, 684, 685], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 24}}, {"id": 683, "type": "identifier", "text": "size", "parent": 682, "children": [], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 9}}, {"id": 684, "type": "<", "text": "<", "parent": 682, "children": [], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 11}}, {"id": 685, "type": "parenthesized_expression", "text": "(32 + 6 + 1)", "parent": 682, "children": [686], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 24}}, {"id": 686, "type": "binary_expression", "text": "32 + 6 + 1", "parent": 685, "children": [687, 691, 692], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 23}}, {"id": 687, "type": "binary_expression", "text": "32 + 6", "parent": 686, "children": [688, 689, 690], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 19}}, {"id": 688, "type": "number_literal", "text": "32", "parent": 687, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 15}}, {"id": 689, "type": "+", "text": "+", "parent": 687, "children": [], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 17}}, {"id": 690, "type": "number_literal", "text": "6", "parent": 687, "children": [], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 19}}, {"id": 691, "type": "+", "text": "+", "parent": 686, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 21}}, {"id": 692, "type": "number_literal", "text": "1", "parent": 686, "children": [], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 23}}, {"id": 693, "type": "call_expression", "text": "log_error(\"Couldn't write uuid, buffer too small.\")", "parent": 680, "children": [694, 695], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 53}}, {"id": 694, "type": "identifier", "text": "log_error", "parent": 693, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 11}}, {"id": 695, "type": "argument_list", "text": "(\"Couldn't write uuid, buffer too small.\")", "parent": 693, "children": [696], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 53}}, {"id": 696, "type": "string_literal", "text": "\"Couldn't write uuid, buffer too small.\"", "parent": 695, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 52}}, {"id": 697, "type": "return_statement", "text": "return 0;", "parent": 680, "children": [698], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 11}}, {"id": 698, "type": "number_literal", "text": "0", "parent": 697, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 10}}, {"id": 699, "type": "for_statement", "text": "for (i = 0, tot = 0; i < 7; i++) {\n\t\tmemcpy(buffer, id->uuid + tot, group_size[i]);\n\t\tbuffer += group_size[i];\n\t\ttot += group_size[i];\n\t\t*buffer++ = '-';\n\t}", "parent": 634, "children": [700, 709, 713], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 176, "column": 2}}, {"id": 700, "type": "comma_expression", "text": "i = 0, tot = 0", "parent": 699, "children": [701, 705], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 20}}, {"id": 701, "type": "assignment_expression", "text": "i = 0", "parent": 700, "children": [702, 703, 704], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 11}}, {"id": 702, "type": "identifier", "text": "i", "parent": 701, "children": [], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 7}}, {"id": 703, "type": "=", "text": "=", "parent": 701, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 9}}, {"id": 704, "type": "number_literal", "text": "0", "parent": 701, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 11}}, {"id": 705, "type": "assignment_expression", "text": "tot = 0", "parent": 700, "children": [706, 707, 708], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 20}}, {"id": 706, "type": "identifier", "text": "tot", "parent": 705, "children": [], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 16}}, {"id": 707, "type": "=", "text": "=", "parent": 705, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 708, "type": "number_literal", "text": "0", "parent": 705, "children": [], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 20}}, {"id": 709, "type": "binary_expression", "text": "i < 7", "parent": 699, "children": [710, 711, 712], "start_point": {"row": 171, "column": 22}, "end_point": {"row": 171, "column": 27}}, {"id": 710, "type": "identifier", "text": "i", "parent": 709, "children": [], "start_point": {"row": 171, "column": 22}, "end_point": {"row": 171, "column": 23}}, {"id": 711, "type": "<", "text": "<", "parent": 709, "children": [], "start_point": {"row": 171, "column": 24}, "end_point": {"row": 171, "column": 25}}, {"id": 712, "type": "number_literal", "text": "7", "parent": 709, "children": [], "start_point": {"row": 171, "column": 26}, "end_point": {"row": 171, "column": 27}}, {"id": 713, "type": "update_expression", "text": "i++", "parent": 699, "children": [714, 715], "start_point": {"row": 171, "column": 29}, "end_point": {"row": 171, "column": 32}}, {"id": 714, "type": "identifier", "text": "i", "parent": 713, "children": [], "start_point": {"row": 171, "column": 29}, "end_point": {"row": 171, "column": 30}}, {"id": 715, "type": "++", "text": "++", "parent": 713, "children": [], "start_point": {"row": 171, "column": 30}, "end_point": {"row": 171, "column": 32}}, {"id": 716, "type": "call_expression", "text": "memcpy(buffer, id->uuid + tot, group_size[i])", "parent": 699, "children": [717, 718], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 47}}, {"id": 717, "type": "identifier", "text": "memcpy", "parent": 716, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 8}}, {"id": 718, "type": "argument_list", "text": "(buffer, id->uuid + tot, group_size[i])", "parent": 716, "children": [719, 720, 726], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 47}}, {"id": 719, "type": "identifier", "text": "buffer", "parent": 718, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 15}}, {"id": 720, "type": "binary_expression", "text": "id->uuid + tot", "parent": 718, "children": [721, 724, 725], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 31}}, {"id": 721, "type": "field_expression", "text": "id->uuid", "parent": 720, "children": [722, 723], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 25}}, {"id": 722, "type": "identifier", "text": "id", "parent": 721, "children": [], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 19}}, {"id": 723, "type": "field_identifier", "text": "uuid", "parent": 721, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 25}}, {"id": 724, "type": "+", "text": "+", "parent": 720, "children": [], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 27}}, {"id": 725, "type": "identifier", "text": "tot", "parent": 720, "children": [], "start_point": {"row": 172, "column": 28}, "end_point": {"row": 172, "column": 31}}, {"id": 726, "type": "subscript_expression", "text": "group_size[i]", "parent": 718, "children": [727, 728], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 46}}, {"id": 727, "type": "identifier", "text": "group_size", "parent": 726, "children": [], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 43}}, {"id": 728, "type": "identifier", "text": "i", "parent": 726, "children": [], "start_point": {"row": 172, "column": 44}, "end_point": {"row": 172, "column": 45}}, {"id": 729, "type": "assignment_expression", "text": "buffer += group_size[i]", "parent": 699, "children": [730, 731, 732], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 25}}, {"id": 730, "type": "identifier", "text": "buffer", "parent": 729, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 8}}, {"id": 731, "type": "+=", "text": "+=", "parent": 729, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 11}}, {"id": 732, "type": "subscript_expression", "text": "group_size[i]", "parent": 729, "children": [733, 734], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 25}}, {"id": 733, "type": "identifier", "text": "group_size", "parent": 732, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 22}}, {"id": 734, "type": "identifier", "text": "i", "parent": 732, "children": [], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 24}}, {"id": 735, "type": "assignment_expression", "text": "tot += group_size[i]", "parent": 699, "children": [736, 737, 738], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 22}}, {"id": 736, "type": "identifier", "text": "tot", "parent": 735, "children": [], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 5}}, {"id": 737, "type": "+=", "text": "+=", "parent": 735, "children": [], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 174, "column": 8}}, {"id": 738, "type": "subscript_expression", "text": "group_size[i]", "parent": 735, "children": [739, 740], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 22}}, {"id": 739, "type": "identifier", "text": "group_size", "parent": 738, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 19}}, {"id": 740, "type": "identifier", "text": "i", "parent": 738, "children": [], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 21}}, {"id": 741, "type": "assignment_expression", "text": "*buffer++ = '-'", "parent": 699, "children": [742, 747, 748], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 17}}, {"id": 742, "type": "pointer_expression", "text": "*buffer++", "parent": 741, "children": [743, 744], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 11}}, {"id": 743, "type": "*", "text": "*", "parent": 742, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 3}}, {"id": 744, "type": "update_expression", "text": "buffer++", "parent": 742, "children": [745, 746], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 11}}, {"id": 745, "type": "identifier", "text": "buffer", "parent": 744, "children": [], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 9}}, {"id": 746, "type": "++", "text": "++", "parent": 744, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 11}}, {"id": 747, "type": "=", "text": "=", "parent": 741, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 748, "type": "char_literal", "text": "'-'", "parent": 741, "children": [749, 750, 751], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 17}}, {"id": 749, "type": "'", "text": "'", "parent": 748, "children": [], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 15}}, {"id": 750, "type": "character", "text": "-", "parent": 748, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 16}}, {"id": 751, "type": "'", "text": "'", "parent": 748, "children": [], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 17}}, {"id": 752, "type": "assignment_expression", "text": "*--buffer = '\\0'", "parent": 634, "children": [753, 758, 759], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 17}}, {"id": 753, "type": "pointer_expression", "text": "*--buffer", "parent": 752, "children": [754, 755], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 10}}, {"id": 754, "type": "*", "text": "*", "parent": 753, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 2}}, {"id": 755, "type": "update_expression", "text": "--buffer", "parent": 753, "children": [756, 757], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 10}}, {"id": 756, "type": "--", "text": "--", "parent": 755, "children": [], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 4}}, {"id": 757, "type": "identifier", "text": "buffer", "parent": 755, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 10}}, {"id": 758, "type": "=", "text": "=", "parent": 752, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 12}}, {"id": 759, "type": "char_literal", "text": "'\\0'", "parent": 752, "children": [760, 761, 762], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 17}}, {"id": 760, "type": "'", "text": "'", "parent": 759, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 761, "type": "escape_sequence", "text": "\\0", "parent": 759, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 16}}, {"id": 762, "type": "'", "text": "'", "parent": 759, "children": [], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 17}}, {"id": 763, "type": "return_statement", "text": "return 1;", "parent": 634, "children": [764], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 10}}, {"id": 764, "type": "number_literal", "text": "1", "parent": 763, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 9}}, {"id": 765, "type": "function_definition", "text": "int id_read_format(struct id *id, const char *buffer)\n{\n\tint out = 0;\n\n\t/* just strip out any dashes */\n\twhile (*buffer) {\n\n\t\tif (*buffer == '-') {\n\t\t\tbuffer++;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (out >= ID_LEN) {\n\t\t\tlog_error(\"Too many characters to be uuid.\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tid->uuid[out++] = *buffer++;\n\t}\n\n\tif (out != ID_LEN) {\n\t\tlog_error(\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\");\n\t\treturn 0;\n\t}\n\n\treturn id_valid(id);\n}", "parent": null, "children": [766, 767], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 209, "column": 1}}, {"id": 766, "type": "primitive_type", "text": "int", "parent": 765, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 3}}, {"id": 767, "type": "function_declarator", "text": "id_read_format(struct id *id, const char *buffer)", "parent": 765, "children": [768, 769], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 53}}, {"id": 768, "type": "identifier", "text": "id_read_format", "parent": 767, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 18}}, {"id": 769, "type": "parameter_list", "text": "(struct id *id, const char *buffer)", "parent": 767, "children": [770, 777], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 53}}, {"id": 770, "type": "parameter_declaration", "text": "struct id *id", "parent": 769, "children": [771, 774], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 32}}, {"id": 771, "type": "struct_specifier", "text": "struct id", "parent": 770, "children": [772, 773], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 28}}, {"id": 772, "type": "struct", "text": "struct", "parent": 771, "children": [], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 25}}, {"id": 773, "type": "type_identifier", "text": "id", "parent": 771, "children": [], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 28}}, {"id": 774, "type": "pointer_declarator", "text": "*id", "parent": 770, "children": [775, 776], "start_point": {"row": 182, "column": 29}, "end_point": {"row": 182, "column": 32}}, {"id": 775, "type": "*", "text": "*", "parent": 774, "children": [], "start_point": {"row": 182, "column": 29}, "end_point": {"row": 182, "column": 30}}, {"id": 776, "type": "identifier", "text": "id", "parent": 774, "children": [], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 32}}, {"id": 777, "type": "parameter_declaration", "text": "const char *buffer", "parent": 769, "children": [778, 779], "start_point": {"row": 182, "column": 34}, "end_point": {"row": 182, "column": 52}}, {"id": 778, "type": "primitive_type", "text": "char", "parent": 777, "children": [], "start_point": {"row": 182, "column": 40}, "end_point": {"row": 182, "column": 44}}, {"id": 779, "type": "pointer_declarator", "text": "*buffer", "parent": 777, "children": [780, 781], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 52}}, {"id": 780, "type": "*", "text": "*", "parent": 779, "children": [], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 46}}, {"id": 781, "type": "identifier", "text": "buffer", "parent": 779, "children": [], "start_point": {"row": 182, "column": 46}, "end_point": {"row": 182, "column": 52}}, {"id": 782, "type": "declaration", "text": "int out = 0;", "parent": 765, "children": [783, 784], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 13}}, {"id": 783, "type": "primitive_type", "text": "int", "parent": 782, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 4}}, {"id": 784, "type": "init_declarator", "text": "out = 0", "parent": 782, "children": [785, 786, 787], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 12}}, {"id": 785, "type": "identifier", "text": "out", "parent": 784, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 8}}, {"id": 786, "type": "=", "text": "=", "parent": 784, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 10}}, {"id": 787, "type": "number_literal", "text": "0", "parent": 784, "children": [], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 12}}, {"id": 788, "type": "while_statement", "text": "while (*buffer) {\n\n\t\tif (*buffer == '-') {\n\t\t\tbuffer++;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (out >= ID_LEN) {\n\t\t\tlog_error(\"Too many characters to be uuid.\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tid->uuid[out++] = *buffer++;\n\t}", "parent": 765, "children": [789], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 200, "column": 2}}, {"id": 789, "type": "parenthesized_expression", "text": "(*buffer)", "parent": 788, "children": [790], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 16}}, {"id": 790, "type": "pointer_expression", "text": "*buffer", "parent": 789, "children": [791, 792], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 15}}, {"id": 791, "type": "*", "text": "*", "parent": 790, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 9}}, {"id": 792, "type": "identifier", "text": "buffer", "parent": 790, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 15}}, {"id": 793, "type": "if_statement", "text": "if (*buffer == '-') {\n\t\t\tbuffer++;\n\t\t\tcontinue;\n\t\t}", "parent": 788, "children": [794], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 192, "column": 3}}, {"id": 794, "type": "parenthesized_expression", "text": "(*buffer == '-')", "parent": 793, "children": [795], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 21}}, {"id": 795, "type": "binary_expression", "text": "*buffer == '-'", "parent": 794, "children": [796, 799, 800], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 20}}, {"id": 796, "type": "pointer_expression", "text": "*buffer", "parent": 795, "children": [797, 798], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 13}}, {"id": 797, "type": "*", "text": "*", "parent": 796, "children": [], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 7}}, {"id": 798, "type": "identifier", "text": "buffer", "parent": 796, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 13}}, {"id": 799, "type": "==", "text": "==", "parent": 795, "children": [], "start_point": {"row": 189, "column": 14}, "end_point": {"row": 189, "column": 16}}, {"id": 800, "type": "char_literal", "text": "'-'", "parent": 795, "children": [801, 802, 803], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 20}}, {"id": 801, "type": "'", "text": "'", "parent": 800, "children": [], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 18}}, {"id": 802, "type": "character", "text": "-", "parent": 800, "children": [], "start_point": {"row": 189, "column": 18}, "end_point": {"row": 189, "column": 19}}, {"id": 803, "type": "'", "text": "'", "parent": 800, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 804, "type": "update_expression", "text": "buffer++", "parent": 793, "children": [805, 806], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 11}}, {"id": 805, "type": "identifier", "text": "buffer", "parent": 804, "children": [], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 9}}, {"id": 806, "type": "++", "text": "++", "parent": 804, "children": [], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 11}}, {"id": 807, "type": "continue_statement", "text": "continue;", "parent": 793, "children": [808], "start_point": {"row": 191, "column": 3}, "end_point": {"row": 191, "column": 12}}, {"id": 808, "type": "continue", "text": "continue", "parent": 807, "children": [], "start_point": {"row": 191, "column": 3}, "end_point": {"row": 191, "column": 11}}, {"id": 809, "type": "if_statement", "text": "if (out >= ID_LEN) {\n\t\t\tlog_error(\"Too many characters to be uuid.\");\n\t\t\treturn 0;\n\t\t}", "parent": 788, "children": [810], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 197, "column": 3}}, {"id": 810, "type": "parenthesized_expression", "text": "(out >= ID_LEN)", "parent": 809, "children": [811], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 20}}, {"id": 811, "type": "binary_expression", "text": "out >= ID_LEN", "parent": 810, "children": [812, 813, 814], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 19}}, {"id": 812, "type": "identifier", "text": "out", "parent": 811, "children": [], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 9}}, {"id": 813, "type": ">=", "text": ">=", "parent": 811, "children": [], "start_point": {"row": 194, "column": 10}, "end_point": {"row": 194, "column": 12}}, {"id": 814, "type": "identifier", "text": "ID_LEN", "parent": 811, "children": [], "start_point": {"row": 194, "column": 13}, "end_point": {"row": 194, "column": 19}}, {"id": 815, "type": "call_expression", "text": "log_error(\"Too many characters to be uuid.\")", "parent": 809, "children": [816, 817], "start_point": {"row": 195, "column": 3}, "end_point": {"row": 195, "column": 47}}, {"id": 816, "type": "identifier", "text": "log_error", "parent": 815, "children": [], "start_point": {"row": 195, "column": 3}, "end_point": {"row": 195, "column": 12}}, {"id": 817, "type": "argument_list", "text": "(\"Too many characters to be uuid.\")", "parent": 815, "children": [818], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 47}}, {"id": 818, "type": "string_literal", "text": "\"Too many characters to be uuid.\"", "parent": 817, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 46}}, {"id": 819, "type": "return_statement", "text": "return 0;", "parent": 809, "children": [820], "start_point": {"row": 196, "column": 3}, "end_point": {"row": 196, "column": 12}}, {"id": 820, "type": "number_literal", "text": "0", "parent": 819, "children": [], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 11}}, {"id": 821, "type": "assignment_expression", "text": "id->uuid[out++] = *buffer++", "parent": 788, "children": [822, 829, 830], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 29}}, {"id": 822, "type": "subscript_expression", "text": "id->uuid[out++]", "parent": 821, "children": [823, 826], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 17}}, {"id": 823, "type": "field_expression", "text": "id->uuid", "parent": 822, "children": [824, 825], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 10}}, {"id": 824, "type": "identifier", "text": "id", "parent": 823, "children": [], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 4}}, {"id": 825, "type": "field_identifier", "text": "uuid", "parent": 823, "children": [], "start_point": {"row": 199, "column": 6}, "end_point": {"row": 199, "column": 10}}, {"id": 826, "type": "update_expression", "text": "out++", "parent": 822, "children": [827, 828], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 16}}, {"id": 827, "type": "identifier", "text": "out", "parent": 826, "children": [], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 14}}, {"id": 828, "type": "++", "text": "++", "parent": 826, "children": [], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 16}}, {"id": 829, "type": "=", "text": "=", "parent": 821, "children": [], "start_point": {"row": 199, "column": 18}, "end_point": {"row": 199, "column": 19}}, {"id": 830, "type": "pointer_expression", "text": "*buffer++", "parent": 821, "children": [831, 832], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 29}}, {"id": 831, "type": "*", "text": "*", "parent": 830, "children": [], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 21}}, {"id": 832, "type": "update_expression", "text": "buffer++", "parent": 830, "children": [833, 834], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 29}}, {"id": 833, "type": "identifier", "text": "buffer", "parent": 832, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 27}}, {"id": 834, "type": "++", "text": "++", "parent": 832, "children": [], "start_point": {"row": 199, "column": 27}, "end_point": {"row": 199, "column": 29}}, {"id": 835, "type": "if_statement", "text": "if (out != ID_LEN) {\n\t\tlog_error(\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\");\n\t\treturn 0;\n\t}", "parent": 765, "children": [836], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 206, "column": 2}}, {"id": 836, "type": "parenthesized_expression", "text": "(out != ID_LEN)", "parent": 835, "children": [837], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 19}}, {"id": 837, "type": "binary_expression", "text": "out != ID_LEN", "parent": 836, "children": [838, 839, 840], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 18}}, {"id": 838, "type": "identifier", "text": "out", "parent": 837, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 8}}, {"id": 839, "type": "!=", "text": "!=", "parent": 837, "children": [], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 11}}, {"id": 840, "type": "identifier", "text": "ID_LEN", "parent": 837, "children": [], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 18}}, {"id": 841, "type": "call_expression", "text": "log_error(\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\")", "parent": 835, "children": [842, 843], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 204, "column": 19}}, {"id": 842, "type": "identifier", "text": "log_error", "parent": 841, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 11}}, {"id": 843, "type": "argument_list", "text": "(\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\")", "parent": 841, "children": [844], "start_point": {"row": 203, "column": 11}, "end_point": {"row": 204, "column": 19}}, {"id": 844, "type": "concatenated_string", "text": "\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\"", "parent": 843, "children": [845, 846], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 204, "column": 18}}, {"id": 845, "type": "string_literal", "text": "\"Couldn't read uuid: incorrect number of \"", "parent": 844, "children": [], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 54}}, {"id": 846, "type": "string_literal", "text": "\"characters.\"", "parent": 844, "children": [], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 18}}, {"id": 847, "type": "return_statement", "text": "return 0;", "parent": 835, "children": [848], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 11}}, {"id": 848, "type": "number_literal", "text": "0", "parent": 847, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 10}}, {"id": 849, "type": "return_statement", "text": "return id_valid(id);", "parent": 765, "children": [850], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 21}}, {"id": 850, "type": "call_expression", "text": "id_valid(id)", "parent": 849, "children": [851, 852], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 20}}, {"id": 851, "type": "identifier", "text": "id_valid", "parent": 850, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 16}}, {"id": 852, "type": "argument_list", "text": "(id)", "parent": 850, "children": [853], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 20}}, {"id": 853, "type": "identifier", "text": "id", "parent": 852, "children": [], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 19}}]}, "node_categories": {"declarations": {"functions": [39, 41, 82, 84, 137, 139, 240, 242, 327, 329, 411, 413, 496, 498, 545, 547, 594, 596, 634, 636, 765, 767], "variables": [24, 31, 34, 44, 51, 87, 92, 95, 142, 149, 156, 159, 245, 252, 259, 332, 339, 416, 423, 427, 501, 503, 550, 557, 599, 606, 639, 646, 651, 654, 658, 770, 777, 782], "classes": [45, 46, 52, 53, 143, 144, 150, 151, 246, 247, 333, 334, 417, 418, 551, 552, 600, 601, 607, 608, 640, 641, 771, 772], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [58, 61, 65, 66, 67, 69, 73, 76, 77, 78, 105, 109, 111, 116, 118, 121, 122, 123, 124, 131, 132, 133, 162, 165, 169, 170, 171, 173, 182, 186, 187, 188, 189, 194, 199, 201, 204, 205, 206, 207, 214, 215, 216, 221, 222, 225, 226, 227, 228, 269, 273, 279, 280, 281, 286, 287, 291, 295, 296, 297, 298, 307, 310, 311, 316, 317, 347, 350, 354, 358, 359, 360, 361, 362, 363, 380, 384, 388, 392, 393, 395, 398, 399, 400, 401, 432, 433, 434, 437, 440, 446, 447, 449, 452, 453, 464, 468, 472, 473, 478, 480, 481, 482, 487, 488, 489, 490, 509, 512, 517, 518, 525, 528, 532, 534, 537, 541, 560, 568, 572, 576, 577, 579, 581, 582, 586, 614, 616, 619, 622, 625, 626, 627, 673, 676, 681, 682, 685, 686, 687, 693, 700, 709, 713, 716, 720, 721, 726, 732, 738, 742, 744, 753, 755, 789, 790, 794, 795, 796, 804, 810, 811, 815, 822, 823, 826, 830, 832, 836, 837, 841, 850], "assignments": [100, 108, 128, 177, 185, 211, 220, 265, 276, 288, 304, 321, 343, 377, 460, 471, 521, 531, 564, 701, 705, 729, 735, 741, 752, 821], "loops": [99, 176, 264, 342, 376, 459, 520, 563, 699, 788], "conditionals": [28, 33, 37, 42, 47, 50, 54, 57, 59, 62, 63, 64, 70, 71, 74, 79, 80, 85, 91, 94, 96, 98, 101, 103, 104, 106, 110, 112, 117, 119, 125, 129, 134, 140, 145, 148, 152, 155, 158, 161, 163, 166, 167, 168, 174, 175, 178, 180, 181, 183, 190, 191, 193, 195, 200, 202, 208, 212, 217, 223, 224, 229, 230, 243, 248, 251, 254, 256, 263, 266, 270, 272, 274, 277, 282, 285, 289, 292, 294, 299, 300, 302, 303, 305, 312, 314, 315, 318, 322, 326, 330, 335, 338, 341, 344, 348, 351, 355, 357, 364, 365, 367, 368, 378, 381, 385, 387, 389, 391, 396, 402, 403, 405, 406, 414, 419, 422, 424, 426, 430, 435, 436, 438, 441, 442, 444, 445, 450, 454, 455, 456, 461, 465, 467, 469, 474, 475, 476, 479, 483, 484, 485, 491, 499, 507, 508, 510, 513, 515, 519, 522, 524, 527, 529, 533, 539, 548, 553, 556, 559, 561, 565, 569, 571, 573, 575, 580, 583, 584, 585, 587, 597, 602, 605, 609, 612, 617, 620, 621, 623, 624, 628, 629, 632, 637, 642, 645, 650, 653, 656, 657, 659, 663, 674, 677, 680, 683, 694, 702, 706, 710, 714, 717, 719, 722, 723, 725, 727, 728, 730, 733, 734, 736, 739, 740, 745, 757, 768, 773, 776, 781, 785, 792, 793, 798, 805, 809, 812, 814, 816, 824, 825, 827, 833, 835, 838, 840, 842, 851, 853], "returns": [72, 238, 325, 374, 407, 409, 457, 494, 511, 590, 592, 613, 697, 763, 819, 847, 849], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 30, 38, 81, 114, 127, 136, 192, 197, 210, 219, 232, 234, 239, 258, 268, 284, 301, 320, 324, 346, 353, 366, 370, 375, 383, 404, 408, 410, 443, 458, 463, 493, 495, 516, 544, 567, 589, 591, 593, 666, 667, 668, 669, 670, 671, 672, 679, 688, 690, 692, 696, 698, 704, 708, 712, 748, 759, 764, 787, 800, 818, 820, 844, 845, 846, 848], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "lvid_create", "text_snippet": "int lvid_create(union lvid *lvid, struct id *vgid)\n{\n\tmemcpy(lvid->id, vgid, sizeof(*lvid->id));\n\tre"}, {"node_id": 41, "universal_type": "function", "name": "id", "text_snippet": "lvid_create(union lvid *lvid, struct id *vgid)"}, {"node_id": 82, "universal_type": "function", "name": "uuid_from_num", "text_snippet": "void uuid_from_num(char *uuid, uint32_t num)\n{\n\tunsigned i;\n\n\tfor (i = ID_LEN; i; i--) {\n\t\tuuid[i - "}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "uuid_from_num(char *uuid, uint32_t num)"}, {"node_id": 137, "universal_type": "function", "name": "lvid_from_lvnum", "text_snippet": "int lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)\n{\n\tint i;\n\n\tmemcpy(lvid->id,"}, {"node_id": 139, "universal_type": "function", "name": "id", "text_snippet": "lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)"}, {"node_id": 240, "universal_type": "function", "name": "lvnum_from_lvid", "text_snippet": "int lvnum_from_lvid(union lvid *lvid)\n{\n\tint i, lv_num = 0;\n\tchar *c;\n\n\tfor (i = 0; i < ID_LEN; i++)"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "lvnum_from_lvid(union lvid *lvid)"}, {"node_id": 327, "universal_type": "function", "name": "lvid_in_restricted_range", "text_snippet": "int lvid_in_restricted_range(union lvid *lvid)\n{\n\tint i;\n\n\tfor (i = 0; i < ID_LEN - 3; i++)\n\t\tif (lv"}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "lvid_in_restricted_range(union lvid *lvid)"}, {"node_id": 411, "universal_type": "function", "name": "id_create", "text_snippet": "int id_create(struct id *id)\n{\n\tunsigned i;\n\tsize_t len = sizeof(id->uuid);\n\n\tmemset(id->uuid, 0, le"}, {"node_id": 413, "universal_type": "function", "name": "unknown", "text_snippet": "id_create(struct id *id)"}, {"node_id": 496, "universal_type": "function", "name": "_build_inverse", "text_snippet": "static void _build_inverse(void)\n{\n\tconst char *ptr;\n\n\tif (_built_inverse)\n\t\treturn;\n\n\tmemset(_inver"}, {"node_id": 498, "universal_type": "function", "name": "unknown", "text_snippet": "_build_inverse(void)"}, {"node_id": 545, "universal_type": "function", "name": "id_valid", "text_snippet": "int id_valid(struct id *id)\n{\n\tint i;\n\n\t_build_inverse();\n\n\tfor (i = 0; i < ID_LEN; i++)\n\t\tif (!_inv"}, {"node_id": 547, "universal_type": "function", "name": "unknown", "text_snippet": "id_valid(struct id *id)"}, {"node_id": 594, "universal_type": "function", "name": "id_equal", "text_snippet": "int id_equal(const struct id *lhs, const struct id *rhs)\n{\n\treturn !memcmp(lhs->uuid, rhs->uuid, siz"}, {"node_id": 596, "universal_type": "function", "name": "id", "text_snippet": "id_equal(const struct id *lhs, const struct id *rhs)"}, {"node_id": 634, "universal_type": "function", "name": "id_write_format", "text_snippet": "int id_write_format(const struct id *id, char *buffer, size_t size)\n{\n\tint i, tot;\n\n\tstatic unsigned"}, {"node_id": 636, "universal_type": "function", "name": "id", "text_snippet": "id_write_format(const struct id *id, char *buffer, size_t size)"}, {"node_id": 765, "universal_type": "function", "name": "id_read_format", "text_snippet": "int id_read_format(struct id *id, const char *buffer)\n{\n\tint out = 0;\n\n\t/* just strip out any dashes"}, {"node_id": 767, "universal_type": "function", "name": "unknown", "text_snippet": "id_read_format(struct id *id, const char *buffer)"}], "class_declarations": [{"node_id": 45, "universal_type": "class", "name": "lvid", "text_snippet": "union lvid"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 52, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 143, "universal_type": "class", "name": "lvid", "text_snippet": "union lvid"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 150, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 151, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 246, "universal_type": "class", "name": "lvid", "text_snippet": "union lvid"}, {"node_id": 247, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 333, "universal_type": "class", "name": "lvid", "text_snippet": "union lvid"}, {"node_id": 334, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 417, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 418, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 551, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 552, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 600, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 601, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 607, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 608, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 640, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 641, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 771, "universal_type": "class", "name": "id", "text_snippet": "struct id"}, {"node_id": 772, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"lib.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"uuid.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"lvm-wrappers.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <assert.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sys/stat.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <fcntl.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unistd.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <ctype.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/*\t$NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $\t*/\n\n/*\n * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.\n * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.\n *\n * This file is part of LVM2.\n *\n * This copyrighted material is made available to anyone wishing to use,\n * modify, copy, or redistribute it subject to the terms and conditions\n * of the GNU Lesser General Public License v.2.1.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program; if not, write to the Free Software Foundation,\n * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */\n\n#include \"lib.h\"\n#include \"uuid.h\"\n#include \"lvm-wrappers.h\"\n\n#include <assert.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <ctype.h>\n\nstatic const char _c[] =\n \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#\";\n\nstatic int _built_inverse;\nstatic char _inverse_c[256];\n\nint lvid_create(union lvid *lvid, struct id *vgid)\n{\n\tmemcpy(lvid->id, vgid, sizeof(*lvid->id));\n\treturn id_create(&lvid->id[1]);\n}\n\nvoid uuid_from_num(char *uuid, uint32_t num)\n{\n\tunsigned i;\n\n\tfor (i = ID_LEN; i; i--) {\n\t\tuuid[i - 1] = _c[num % (sizeof(_c) - 1)];\n\t\tnum /= sizeof(_c) - 1;\n\t}\n}\n\nint lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num)\n{\n\tint i;\n\n\tmemcpy(lvid->id, vgid, sizeof(*lvid->id));\n\n\tfor (i = ID_LEN; i; i--) {\n\t\tlvid->id[1].uuid[i - 1] = _c[lv_num % (sizeof(_c) - 1)];\n\t\tlv_num /= sizeof(_c) - 1;\n\t}\n\n\tlvid->s[sizeof(lvid->s) - 1] = '\\0';\n\n\treturn 1;\n}\n\nint lvnum_from_lvid(union lvid *lvid)\n{\n\tint i, lv_num = 0;\n\tchar *c;\n\n\tfor (i = 0; i < ID_LEN; i++) {\n\t\tlv_num *= sizeof(_c) - 1;\n\t\tif ((c = strchr(_c, lvid->id[1].uuid[i])))\n\t\t\tlv_num += (int) (c - _c);\n\t\tif (lv_num < 0)\n\t\t\tlv_num = 0;\n\t}\n\n\treturn lv_num;\n}\n\nint lvid_in_restricted_range(union lvid *lvid)\n{\n\tint i;\n\n\tfor (i = 0; i < ID_LEN - 3; i++)\n\t\tif (lvid->id[1].uuid[i] != '0')\n\t\t\treturn 0;\n\n\tfor (i = ID_LEN - 3; i < ID_LEN; i++)\n\t\tif (!isdigit(lvid->id[1].uuid[i]))\n\t\t\treturn 0;\n\n\treturn 1;\n}\n\n\nint id_create(struct id *id)\n{\n\tunsigned i;\n\tsize_t len = sizeof(id->uuid);\n\n\tmemset(id->uuid, 0, len);\n\tif (!read_urandom(&id->uuid, len)) {\n\t\treturn 0;\n\t}\n\n\t/*\n\t * Skip out the last 2 chars in randomized creation for LVM1\n\t * backwards compatibility.\n\t */\n\tfor (i = 0; i < len; i++)\n\t\tid->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];\n\n\treturn 1;\n}\n\n/*\n * The only validity check we have is that\n * the uuid just contains characters from\n * '_c'. A checksum would have been nice :(\n */\nstatic void _build_inverse(void)\n{\n\tconst char *ptr;\n\n\tif (_built_inverse)\n\t\treturn;\n\n\tmemset(_inverse_c, 0, sizeof(_inverse_c));\n\n\tfor (ptr = _c; *ptr; ptr++)\n\t\t_inverse_c[(int) *ptr] = (char) 0x1;\n}\n\nint id_valid(struct id *id)\n{\n\tint i;\n\n\t_build_inverse();\n\n\tfor (i = 0; i < ID_LEN; i++)\n\t\tif (!_inverse_c[id->uuid[i]]) {\n\t\t\tlog_error(\"UUID contains invalid character\");\n\t\t\treturn 0;\n\t\t}\n\n\treturn 1;\n}\n\nint id_equal(const struct id *lhs, const struct id *rhs)\n{\n\treturn !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));\n}\n\n#define GROUPS (ID_LEN / 4)\n\nint id_write_format(const struct id *id, char *buffer, size_t size)\n{\n\tint i, tot;\n\n\tstatic unsigned group_size[] = { 6, 4, 4, 4, 4, 4, 6 };\n\n\tassert(ID_LEN == 32);\n\n\t/* split into groups separated by dashes */\n\tif (size < (32 + 6 + 1)) {\n\t\tlog_error(\"Couldn't write uuid, buffer too small.\");\n\t\treturn 0;\n\t}\n\n\tfor (i = 0, tot = 0; i < 7; i++) {\n\t\tmemcpy(buffer, id->uuid + tot, group_size[i]);\n\t\tbuffer += group_size[i];\n\t\ttot += group_size[i];\n\t\t*buffer++ = '-';\n\t}\n\n\t*--buffer = '\\0';\n\treturn 1;\n}\n\nint id_read_format(struct id *id, const char *buffer)\n{\n\tint out = 0;\n\n\t/* just strip out any dashes */\n\twhile (*buffer) {\n\n\t\tif (*buffer == '-') {\n\t\t\tbuffer++;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (out >= ID_LEN) {\n\t\t\tlog_error(\"Too many characters to be uuid.\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tid->uuid[out++] = *buffer++;\n\t}\n\n\tif (out != ID_LEN) {\n\t\tlog_error(\"Couldn't read uuid: incorrect number of \"\n\t\t\t \"characters.\");\n\t\treturn 0;\n\t}\n\n\treturn id_valid(id);\n}\n"}
81,020
c
#include <stdio.h> int main(void) { int w,h,b,sum; long long int to; double re; scanf("%d", &w); sum=1; for(h=0; h<=w; h++){ if(0==h%3)continue; printf("%d ",h); } return 0; }
10.88
17
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n \n int w,h,b,sum;\n long long int to;\n double re;\n \n scanf("%d", &w); \n sum=1;\n for(h=0; h<=w; h++){\n \n if(0==h%3)continue; \n printf("%d ",h);\n }\n \n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(void) {\n \n int w,h,b,sum;\n long long int to;\n double re;\n \n scanf("%d", &w); \n sum=1;\n for(h=0; h<=w; h++){\n \n if(0==h%3)continue; \n printf("%d ",h);\n }\n \n return 0;\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n \n int w,h,b,sum;\n long long int to;\n double re;\n \n scanf("%d", &w); \n sum=1;\n for(h=0; h<=w; h++){\n \n if(0==h%3)continue; \n printf("%d ",h);\n }\n \n return 0;\n}" ({) "{" (declaration) "int w,h,b,sum;" (primitive_type) "int" (identifier) "w" (,) "," (identifier) "h" (,) "," (identifier) "b" (,) "," (identifier) "sum" (;) ";" (declaration) "long long int to;" (sized_type_specifier) "long long int" (long) "long" (long) "long" (primitive_type) "int" (identifier) "to" (;) ";" (declaration) "double re;" (primitive_type) "double" (identifier) "re" (;) ";" (expression_statement) "scanf("%d", &w);" (call_expression) "scanf("%d", &w)" (identifier) "scanf" (argument_list) "("%d", &w)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&w" (&) "&" (identifier) "w" ()) ")" (;) ";" (expression_statement) "sum=1;" (assignment_expression) "sum=1" (identifier) "sum" (=) "=" (number_literal) "1" (;) ";" (for_statement) "for(h=0; h<=w; h++){\n \n if(0==h%3)continue; \n printf("%d ",h);\n }" (for) "for" (() "(" (assignment_expression) "h=0" (identifier) "h" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "h<=w" (identifier) "h" (<=) "<=" (identifier) "w" (;) ";" (update_expression) "h++" (identifier) "h" (++) "++" ()) ")" (compound_statement) "{\n \n if(0==h%3)continue; \n printf("%d ",h);\n }" ({) "{" (if_statement) "if(0==h%3)continue;" (if) "if" (parenthesized_expression) "(0==h%3)" (() "(" (binary_expression) "0==h%3" (number_literal) "0" (==) "==" (binary_expression) "h%3" (identifier) "h" (%) "%" (number_literal) "3" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "printf("%d ",h);" (call_expression) "printf("%d ",h)" (identifier) "printf" (argument_list) "("%d ",h)" (() "(" (string_literal) ""%d "" (") """ (string_content) "%d " (") """ (,) "," (identifier) "h" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 10.88, "nodes": 65, "errors": 0, "source_hash": "615fefdd936c7eebab084979b6ebbce902eea9edce040362ca94034444d77524", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main(void) {\n\t\n\tint w,h,b,sum;\n\tlong long int to;\n\tdouble re;\n\t\n\tscanf(\"%d\", &w); \n\tsum=1;\n\tfor(h=0; h<=w; h++){\n\t\t \n\t\tif(0==h%3)continue;\t\n\t\tprintf(\"%d \",h);\n\t}\n\t \n\treturn 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(void)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 10, "type": "declaration", "text": "int w,h,b,sum;", "parent": 3, "children": [11, 12, 13, 14, 15], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 15}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 4}}, {"id": 12, "type": "identifier", "text": "w", "parent": 10, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 6}}, {"id": 13, "type": "identifier", "text": "h", "parent": 10, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 8}}, {"id": 14, "type": "identifier", "text": "b", "parent": 10, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 10}}, {"id": 15, "type": "identifier", "text": "sum", "parent": 10, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 14}}, {"id": 16, "type": "declaration", "text": "long long int to;", "parent": 3, "children": [17, 21], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 18}}, {"id": 17, "type": "sized_type_specifier", "text": "long long int", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 14}}, {"id": 18, "type": "long", "text": "long", "parent": 17, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 5}}, {"id": 19, "type": "long", "text": "long", "parent": 17, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 10}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 14}}, {"id": 21, "type": "identifier", "text": "to", "parent": 16, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 17}}, {"id": 22, "type": "declaration", "text": "double re;", "parent": 3, "children": [23, 24], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 11}}, {"id": 23, "type": "primitive_type", "text": "double", "parent": 22, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 7}}, {"id": 24, "type": "identifier", "text": "re", "parent": 22, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 10}}, {"id": 25, "type": "call_expression", "text": "scanf(\"%d\", &w)", "parent": 3, "children": [26, 27], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 16}}, {"id": 26, "type": "identifier", "text": "scanf", "parent": 25, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 6}}, {"id": 27, "type": "argument_list", "text": "(\"%d\", &w)", "parent": 25, "children": [28, 29], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 16}}, {"id": 28, "type": "string_literal", "text": "\"%d\"", "parent": 27, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 11}}, {"id": 29, "type": "pointer_expression", "text": "&w", "parent": 27, "children": [30], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 15}}, {"id": 30, "type": "identifier", "text": "w", "parent": 29, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 15}}, {"id": 31, "type": "assignment_expression", "text": "sum=1", "parent": 3, "children": [32, 33, 34], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 6}}, {"id": 32, "type": "identifier", "text": "sum", "parent": 31, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 4}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 5}}, {"id": 34, "type": "number_literal", "text": "1", "parent": 31, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 6}}, {"id": 35, "type": "for_statement", "text": "for(h=0; h<=w; h++){\n\t\t \n\t\tif(0==h%3)continue;\t\n\t\tprintf(\"%d \",h);\n\t}", "parent": 3, "children": [36, 40, 44], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 14, "column": 2}}, {"id": 36, "type": "assignment_expression", "text": "h=0", "parent": 35, "children": [37, 38, 39], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 8}}, {"id": 37, "type": "identifier", "text": "h", "parent": 36, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 6}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 7}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 36, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 40, "type": "binary_expression", "text": "h<=w", "parent": 35, "children": [41, 42, 43], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 14}}, {"id": 41, "type": "identifier", "text": "h", "parent": 40, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 42, "type": "<=", "text": "<=", "parent": 40, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 13}}, {"id": 43, "type": "identifier", "text": "w", "parent": 40, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 44, "type": "update_expression", "text": "h++", "parent": 35, "children": [45, 46], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 19}}, {"id": 45, "type": "identifier", "text": "h", "parent": 44, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 46, "type": "++", "text": "++", "parent": 44, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 19}}, {"id": 47, "type": "if_statement", "text": "if(0==h%3)continue;", "parent": 35, "children": [48, 56], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 21}}, {"id": 48, "type": "parenthesized_expression", "text": "(0==h%3)", "parent": 47, "children": [49], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 49, "type": "binary_expression", "text": "0==h%3", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 50, "type": "number_literal", "text": "0", "parent": 49, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 6}}, {"id": 51, "type": "==", "text": "==", "parent": 49, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 8}}, {"id": 52, "type": "binary_expression", "text": "h%3", "parent": 49, "children": [53, 54, 55], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 53, "type": "identifier", "text": "h", "parent": 52, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 54, "type": "%", "text": "%", "parent": 52, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 55, "type": "number_literal", "text": "3", "parent": 52, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 56, "type": "continue_statement", "text": "continue;", "parent": 47, "children": [57], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 21}}, {"id": 57, "type": "continue", "text": "continue", "parent": 56, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 20}}, {"id": 58, "type": "call_expression", "text": "printf(\"%d \",h)", "parent": 35, "children": [59, 60], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 17}}, {"id": 59, "type": "identifier", "text": "printf", "parent": 58, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 60, "type": "argument_list", "text": "(\"%d \",h)", "parent": 58, "children": [61, 62], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 17}}, {"id": 61, "type": "string_literal", "text": "\"%d \"", "parent": 60, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 62, "type": "identifier", "text": "h", "parent": 60, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 63, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [64], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 10, 16, 22], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [25, 29, 40, 44, 48, 49, 52, 58], "assignments": [31, 36], "loops": [35], "conditionals": [6, 12, 13, 14, 15, 17, 21, 24, 26, 30, 32, 37, 41, 43, 45, 47, 53, 59, 62], "returns": [63], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 28, 34, 39, 50, 55, 61, 64], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(void) {\n\t\n\tint w,h,b,sum;\n\tlong long int to;\n\tdouble re;\n\t\n\tscanf(\"%d\", &w); \n\tsum=1;\n\tfor("}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\nint main(void) {\n\t\n\tint w,h,b,sum;\n\tlong long int to;\n\tdouble re;\n\t\n\tscanf(\"%d\", &w); \n\tsum=1;\n\tfor(h=0; h<=w; h++){\n\t\t \n\t\tif(0==h%3)continue;\t\n\t\tprintf(\"%d \",h);\n\t}\n\t \n\treturn 0;\n}\n"}
81,021
c
#ifndef Py_STRTOD_H #define Py_STRTOD_H #ifdef __cplusplus extern "C" { #endif PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); PyAPI_FUNC(double) PyOS_ascii_atof(const char *str); PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); #ifdef __cplusplus } #endif #endif /* !Py_STRTOD_H */
19.72
18
(translation_unit) "#ifndef Py_STRTOD_H \n#define Py_STRTOD_H \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); \n \n \n#ifdef __cplusplus \n} \n#endif \n \n#endif /* !Py_STRTOD_H */ \n" (preproc_ifdef) "#ifndef Py_STRTOD_H \n#define Py_STRTOD_H \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); \n \n \n#ifdef __cplusplus \n} \n#endif \n \n#endif" (#ifndef) "#ifndef" (identifier) "Py_STRTOD_H" (preproc_def) "#define Py_STRTOD_H \n" (#define) "#define" (identifier) "Py_STRTOD_H" (preproc_ifdef) "#ifdef __cplusplus \nextern "C" { \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); \n \n \n#ifdef __cplusplus \n} \n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" { \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); \n \n \n#ifdef __cplusplus \n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{ \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); \n \n \n#ifdef __cplusplus \n}" ({) "{" (preproc_call) "#endif \n" (preproc_directive) "#endif" (declaration) "PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);" (macro_type_specifier) "PyAPI_FUNC(double)" (identifier) "PyAPI_FUNC" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (function_declarator) "PyOS_ascii_strtod(const char *str, char **ptr)" (identifier) "PyOS_ascii_strtod" (parameter_list) "(const char *str, char **ptr)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "char **ptr" (primitive_type) "char" (pointer_declarator) "**ptr" (*) "*" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" ()) ")" (;) ";" (declaration) "PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);" (macro_type_specifier) "PyAPI_FUNC(double)" (identifier) "PyAPI_FUNC" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (function_declarator) "PyOS_ascii_atof(const char *str)" (identifier) "PyOS_ascii_atof" (parameter_list) "(const char *str)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);" (macro_type_specifier) "PyAPI_FUNC(char *)" (identifier) "PyAPI_FUNC" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (function_declarator) "PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d)" (identifier) "PyOS_ascii_formatd" (parameter_list) "(char *buffer, int buf_len, const char *format, double d)" (() "(" (parameter_declaration) "char *buffer" (primitive_type) "char" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "int buf_len" (primitive_type) "int" (identifier) "buf_len" (,) "," (parameter_declaration) "const char *format" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*format" (*) "*" (identifier) "format" (,) "," (parameter_declaration) "double d" (primitive_type) "double" (identifier) "d" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "/* !Py_STRTOD_H */"
112
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.72, "nodes": 79, "errors": 0, "source_hash": "3a75f2decbdd456011577d73062233b3ce837639a8873a7c71541b43caa96213", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Py_STRTOD_H\r\n#define Py_STRTOD_H\r\n\r\n#ifdef __cplusplus\r\nextern \"C\" {\r\n#endif\r\n\r\n\r\nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);\r\nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str);\r\nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);\r\n\r\n\r\n#ifdef __cplusplus\r\n}\r\n#endif\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 78], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "Py_STRTOD_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define Py_STRTOD_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "Py_STRTOD_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\r\nextern \"C\" {\r\n#endif\r\n\r\n\r\nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);\r\nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str);\r\nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);\r\n\r\n\r\n#ifdef __cplusplus\r\n}\r\n#endif", "parent": 0, "children": [7, 8, 9, 77], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\r\n#endif\r\n\r\n\r\nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);\r\nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str);\r\nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);\r\n\r\n\r\n#ifdef __cplusplus\r\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\r\n", "parent": 9, "children": [13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 14, "type": "declaration", "text": "PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);", "parent": 9, "children": [15, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 66}}, {"id": 15, "type": "macro_type_specifier", "text": "PyAPI_FUNC(double)", "parent": 14, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 18}}, {"id": 16, "type": "identifier", "text": "PyAPI_FUNC", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 10}}, {"id": 17, "type": "type_descriptor", "text": "double", "parent": 15, "children": [18], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 17}}, {"id": 18, "type": "primitive_type", "text": "double", "parent": 17, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 17}}, {"id": 19, "type": "function_declarator", "text": "PyOS_ascii_strtod(const char *str, char **ptr)", "parent": 14, "children": [20, 21], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 65}}, {"id": 20, "type": "identifier", "text": "PyOS_ascii_strtod", "parent": 19, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 36}}, {"id": 21, "type": "parameter_list", "text": "(const char *str, char **ptr)", "parent": 19, "children": [22, 27], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 65}}, {"id": 22, "type": "parameter_declaration", "text": "const char *str", "parent": 21, "children": [23, 24], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 52}}, {"id": 23, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 8, "column": 43}, "end_point": {"row": 8, "column": 47}}, {"id": 24, "type": "pointer_declarator", "text": "*str", "parent": 22, "children": [25, 26], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 52}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 49}}, {"id": 26, "type": "identifier", "text": "str", "parent": 24, "children": [], "start_point": {"row": 8, "column": 49}, "end_point": {"row": 8, "column": 52}}, {"id": 27, "type": "parameter_declaration", "text": "char **ptr", "parent": 21, "children": [28, 29], "start_point": {"row": 8, "column": 54}, "end_point": {"row": 8, "column": 64}}, {"id": 28, "type": "primitive_type", "text": "char", "parent": 27, "children": [], "start_point": {"row": 8, "column": 54}, "end_point": {"row": 8, "column": 58}}, {"id": 29, "type": "pointer_declarator", "text": "**ptr", "parent": 27, "children": [30, 31], "start_point": {"row": 8, "column": 59}, "end_point": {"row": 8, "column": 64}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 8, "column": 59}, "end_point": {"row": 8, "column": 60}}, {"id": 31, "type": "pointer_declarator", "text": "*ptr", "parent": 29, "children": [32, 33], "start_point": {"row": 8, "column": 60}, "end_point": {"row": 8, "column": 64}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 8, "column": 60}, "end_point": {"row": 8, "column": 61}}, {"id": 33, "type": "identifier", "text": "ptr", "parent": 31, "children": [], "start_point": {"row": 8, "column": 61}, "end_point": {"row": 8, "column": 64}}, {"id": 34, "type": "declaration", "text": "PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);", "parent": 9, "children": [35, 39], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 52}}, {"id": 35, "type": "macro_type_specifier", "text": "PyAPI_FUNC(double)", "parent": 34, "children": [36, 37], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 36, "type": "identifier", "text": "PyAPI_FUNC", "parent": 35, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 10}}, {"id": 37, "type": "type_descriptor", "text": "double", "parent": 35, "children": [38], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 17}}, {"id": 38, "type": "primitive_type", "text": "double", "parent": 37, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 17}}, {"id": 39, "type": "function_declarator", "text": "PyOS_ascii_atof(const char *str)", "parent": 34, "children": [40, 41], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 51}}, {"id": 40, "type": "identifier", "text": "PyOS_ascii_atof", "parent": 39, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 34}}, {"id": 41, "type": "parameter_list", "text": "(const char *str)", "parent": 39, "children": [42], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 51}}, {"id": 42, "type": "parameter_declaration", "text": "const char *str", "parent": 41, "children": [43, 44], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 50}}, {"id": 43, "type": "primitive_type", "text": "char", "parent": 42, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 45}}, {"id": 44, "type": "pointer_declarator", "text": "*str", "parent": 42, "children": [45, 46], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 50}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 47}}, {"id": 46, "type": "identifier", "text": "str", "parent": 44, "children": [], "start_point": {"row": 9, "column": 47}, "end_point": {"row": 9, "column": 50}}, {"id": 47, "type": "declaration", "text": "PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);", "parent": 9, "children": [48, 54], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 96}}, {"id": 48, "type": "macro_type_specifier", "text": "PyAPI_FUNC(char *)", "parent": 47, "children": [49, 50], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 18}}, {"id": 49, "type": "identifier", "text": "PyAPI_FUNC", "parent": 48, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 10}}, {"id": 50, "type": "type_descriptor", "text": "char *", "parent": 48, "children": [51, 52], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 17}}, {"id": 51, "type": "primitive_type", "text": "char", "parent": 50, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 15}}, {"id": 52, "type": "abstract_pointer_declarator", "text": "*", "parent": 50, "children": [53], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 54, "type": "function_declarator", "text": "PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d)", "parent": 47, "children": [55, 56], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 95}}, {"id": 55, "type": "identifier", "text": "PyOS_ascii_formatd", "parent": 54, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 37}}, {"id": 56, "type": "parameter_list", "text": "(char *buffer, int buf_len, const char *format, double d)", "parent": 54, "children": [57, 62, 65, 70], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 95}}, {"id": 57, "type": "parameter_declaration", "text": "char *buffer", "parent": 56, "children": [58, 59], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 50}}, {"id": 58, "type": "primitive_type", "text": "char", "parent": 57, "children": [], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 42}}, {"id": 59, "type": "pointer_declarator", "text": "*buffer", "parent": 57, "children": [60, 61], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 50}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 44}}, {"id": 61, "type": "identifier", "text": "buffer", "parent": 59, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 50}}, {"id": 62, "type": "parameter_declaration", "text": "int buf_len", "parent": 56, "children": [63, 64], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 63}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 55}}, {"id": 64, "type": "identifier", "text": "buf_len", "parent": 62, "children": [], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 63}}, {"id": 65, "type": "parameter_declaration", "text": "const char *format", "parent": 56, "children": [66, 67], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 84}}, {"id": 66, "type": "primitive_type", "text": "char", "parent": 65, "children": [], "start_point": {"row": 10, "column": 72}, "end_point": {"row": 10, "column": 76}}, {"id": 67, "type": "pointer_declarator", "text": "*format", "parent": 65, "children": [68, 69], "start_point": {"row": 10, "column": 77}, "end_point": {"row": 10, "column": 84}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 10, "column": 77}, "end_point": {"row": 10, "column": 78}}, {"id": 69, "type": "identifier", "text": "format", "parent": 67, "children": [], "start_point": {"row": 10, "column": 78}, "end_point": {"row": 10, "column": 84}}, {"id": 70, "type": "parameter_declaration", "text": "double d", "parent": 56, "children": [71, 72], "start_point": {"row": 10, "column": 86}, "end_point": {"row": 10, "column": 94}}, {"id": 71, "type": "primitive_type", "text": "double", "parent": 70, "children": [], "start_point": {"row": 10, "column": 86}, "end_point": {"row": 10, "column": 92}}, {"id": 72, "type": "identifier", "text": "d", "parent": 70, "children": [], "start_point": {"row": 10, "column": 93}, "end_point": {"row": 10, "column": 94}}, {"id": 73, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [74, 75, 76], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 18}}, {"id": 74, "type": "#ifdef", "text": "#ifdef", "parent": 73, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 75, "type": "identifier", "text": "__cplusplus", "parent": 73, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 18}}, {"id": 76, "type": "#endif", "text": "", "parent": 73, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 18}}, {"id": 77, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [19, 39, 54], "variables": [14, 22, 27, 34, 42, 47, 57, 62, 65, 70], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 15, 16, 20, 26, 33, 35, 36, 40, 46, 48, 49, 55, 61, 64, 69, 72, 73, 74, 75, 76, 77, 78], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "PyOS_ascii_strtod(const char *str, char **ptr)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "PyOS_ascii_atof(const char *str)"}, {"node_id": 54, "universal_type": "function", "name": "buf_len,", "text_snippet": "PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef Py_STRTOD_H\r\n#define Py_STRTOD_H\r\n\r\n#ifdef __cplusplus\r\nextern \"C\" {\r\n#endif\r\n\r\n\r\nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);\r\nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str);\r\nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);\r\n\r\n\r\n#ifdef __cplusplus\r\n}\r\n#endif\r\n\r\n#endif /* !Py_STRTOD_H */\r\n"}
81,022
c
#include<unistd.h> int main() { char buf[0x80]; read(0,buf,0x150); }
10.83
6
(translation_unit) "#include<unistd.h>\n\nint main()\n{\n char buf[0x80];\n read(0,buf,0x150);\n}\n" (preproc_include) "#include<unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (function_definition) "int main()\n{\n char buf[0x80];\n read(0,buf,0x150);\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char buf[0x80];\n read(0,buf,0x150);\n}" ({) "{" (declaration) "char buf[0x80];" (primitive_type) "char" (array_declarator) "buf[0x80]" (identifier) "buf" ([) "[" (number_literal) "0x80" (]) "]" (;) ";" (expression_statement) "read(0,buf,0x150);" (call_expression) "read(0,buf,0x150)" (identifier) "read" (argument_list) "(0,buf,0x150)" (() "(" (number_literal) "0" (,) "," (identifier) "buf" (,) "," (number_literal) "0x150" ()) ")" (;) ";" (}) "}"
34
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 10.83, "nodes": 19, "errors": 0, "source_hash": "c0ae2a34f649e707fe5520b89ccef34b5afc2cd67efd4e48a7f76ca0f41732fb", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include<unistd.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<unistd.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main()\n{\n\tchar buf[0x80];\n\tread(0,buf,0x150);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main()", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 10}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 10}}, {"id": 8, "type": "declaration", "text": "char buf[0x80];", "parent": 3, "children": [9, 10], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 16}}, {"id": 9, "type": "primitive_type", "text": "char", "parent": 8, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 5}}, {"id": 10, "type": "array_declarator", "text": "buf[0x80]", "parent": 8, "children": [11, 12], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 15}}, {"id": 11, "type": "identifier", "text": "buf", "parent": 10, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 9}}, {"id": 12, "type": "number_literal", "text": "0x80", "parent": 10, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 14}}, {"id": 13, "type": "call_expression", "text": "read(0,buf,0x150)", "parent": 3, "children": [14, 15], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 18}}, {"id": 14, "type": "identifier", "text": "read", "parent": 13, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 5}}, {"id": 15, "type": "argument_list", "text": "(0,buf,0x150)", "parent": 13, "children": [16, 17, 18], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 18}}, {"id": 16, "type": "number_literal", "text": "0", "parent": 15, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 17, "type": "identifier", "text": "buf", "parent": 15, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 11}}, {"id": 18, "type": "number_literal", "text": "0x150", "parent": 15, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 17}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [13], "assignments": [], "loops": [], "conditionals": [6, 11, 14, 17], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 12, 16, 18], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n\tchar buf[0x80];\n\tread(0,buf,0x150);\n}"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include<unistd.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include<unistd.h>\n\nint main()\n{\n\tchar buf[0x80];\n\tread(0,buf,0x150);\n}\n"}
81,023
c
#import <UIKit/UIKit.h> @interface UIFont (Quintessential) + (instancetype)quintessentialRegularFontOfSize:(CGFloat)size; @end
30.75
4
(translation_unit) "#import <UIKit/UIKit.h>\n@interface UIFont (Quintessential)\n\n+ (instancetype)quintessentialRegularFontOfSize:(CGFloat)size;\n\n@end\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface UIFont (Quintessential)\n\n+ (instancetype)quintessentialRegularFontOfSize:(" (ERROR) "@" (type_identifier) "interface" (function_declarator) "UIFont (Quintessential)" (identifier) "UIFont" (parameter_list) "(Quintessential)" (() "(" (identifier) "Quintessential" ()) ")" (unary_expression) "+ (instancetype)quintessentialRegularFontOfSize" (+) "+" (cast_expression) "(instancetype)quintessentialRegularFontOfSize" (() "(" (type_descriptor) "instancetype" (type_identifier) "instancetype" ()) ")" (identifier) "quintessentialRegularFontOfSize" (:) ":" (() "(" (declaration) "CGFloat)size;" (type_identifier) "CGFloat" (ERROR) ")" ()) ")" (identifier) "size" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
34
5
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 30.75, "nodes": 21, "errors": 0, "source_hash": "ad1a6179751e53dcbfcacb498fa799fe585ea4ba6839e50b46ac89c0f4634be6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "ERROR", "text": "@interface UIFont (Quintessential)\n\n+ (instancetype)quintessentialRegularFontOfSize:(", "parent": null, "children": [4, 5, 6, 10], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 3, "column": 49}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 1, "column": 1}, "end_point": {"row": 1, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "UIFont (Quintessential)", "parent": 3, "children": [7, 8], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 34}}, {"id": 7, "type": "identifier", "text": "UIFont", "parent": 6, "children": [], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 17}}, {"id": 8, "type": "parameter_list", "text": "(Quintessential)", "parent": 6, "children": [9], "start_point": {"row": 1, "column": 18}, "end_point": {"row": 1, "column": 34}}, {"id": 9, "type": "identifier", "text": "Quintessential", "parent": 8, "children": [], "start_point": {"row": 1, "column": 19}, "end_point": {"row": 1, "column": 33}}, {"id": 10, "type": "unary_expression", "text": "+ (instancetype)quintessentialRegularFontOfSize", "parent": 3, "children": [11, 12], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 47}}, {"id": 11, "type": "+", "text": "+", "parent": 10, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(instancetype)quintessentialRegularFontOfSize", "parent": 10, "children": [13, 15], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 47}}, {"id": 13, "type": "type_descriptor", "text": "instancetype", "parent": 12, "children": [14], "start_point": {"row": 3, "column": 3}, "end_point": {"row": 3, "column": 15}}, {"id": 14, "type": "type_identifier", "text": "instancetype", "parent": 13, "children": [], "start_point": {"row": 3, "column": 3}, "end_point": {"row": 3, "column": 15}}, {"id": 15, "type": "identifier", "text": "quintessentialRegularFontOfSize", "parent": 12, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 47}}, {"id": 16, "type": "declaration", "text": "CGFloat)size;", "parent": null, "children": [17, 18], "start_point": {"row": 3, "column": 49}, "end_point": {"row": 3, "column": 62}}, {"id": 17, "type": "type_identifier", "text": "CGFloat", "parent": 16, "children": [], "start_point": {"row": 3, "column": 49}, "end_point": {"row": 3, "column": 56}}, {"id": 18, "type": "identifier", "text": "size", "parent": 16, "children": [], "start_point": {"row": 3, "column": 57}, "end_point": {"row": 3, "column": 61}}, {"id": 19, "type": "ERROR", "text": "@", "parent": null, "children": [20], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 1}}, {"id": 20, "type": "ERROR", "text": "@", "parent": 19, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 1}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [16], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 14, 15, 17, 18], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "UIFont (Quintessential)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#import <UIKit/UIKit.h>\n@interface UIFont (Quintessential)\n\n+ (instancetype)quintessentialRegularFontOfSize:(CGFloat)size;\n\n@end\n\n"}
81,024
c
/* main.c Copyright (C) 1999-2003 <NAME>. Copyright (C) 2010-2020 <NAME>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies of the Software and its documentation and acknowledgment shall be given in the documentation and software packages that this Software was used. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "feh.h" #include "filelist.h" #include "winwidget.h" #include "timers.h" #include "options.h" #include "events.h" #include "signals.h" #include "wallpaper.h" #include <termios.h> #ifdef HAVE_INOTIFY #include <sys/inotify.h> #endif char **cmdargv = NULL; int cmdargc = 0; char *mode = NULL; int main(int argc, char **argv) { atexit(feh_clean_exit); srandom(getpid() * time(NULL) % ((unsigned int) -1)); setup_signal_handlers(); init_parse_options(argc, argv); init_imlib_fonts(); if (opt.display) { init_x_and_imlib(); init_keyevents(); init_buttonbindings(); #ifdef HAVE_INOTIFY if (opt.auto_reload) { opt.inotify_fd = inotify_init(); if (opt.inotify_fd < 0) { opt.auto_reload = 0; weprintf("inotify_init failed:"); weprintf("Disabling inotify-based auto-reload"); } } #endif } feh_event_init(); if (opt.index) init_index_mode(); else if (opt.multiwindow) init_multiwindow_mode(); else if (opt.list || opt.customlist) init_list_mode(); else if (opt.loadables) init_loadables_mode(); else if (opt.unloadables) init_unloadables_mode(); else if (opt.thumbs) init_thumbnail_mode(); else if (opt.bgmode) { feh_wm_set_bg_filelist(opt.bgmode); exit(0); } else if (opt.display){ /* Slideshow mode is the default. Because it's spiffy */ opt.slideshow = 1; init_slideshow_mode(); } else { eprintf("Invalid option combination"); } /* main event loop */ while (feh_main_iteration(1)); return(sig_exit); } /* Return 0 to stop iterating, 1 if ok to continue. */ int feh_main_iteration(int block) { static int first = 1; static int xfd = 0; static int fdsize = 0; static double pt = 0.0; XEvent ev; struct timeval tval; fd_set fdset; int count = 0; double t1 = 0.0, t2 = 0.0; fehtimer ft; if (window_num == 0 || sig_exit != 0) return(0); if (first) { /* Only need to set these up the first time */ xfd = ConnectionNumber(disp); fdsize = xfd + 1; pt = feh_get_time(); first = 0; /* * Only accept commands from stdin if * - stdin is a terminal (otherwise it's probably used as an image / filelist) * - we aren't running in multiwindow mode (cause it's not clear which * window commands should be applied to in that case) * - we're in the same process group as stdin, AKA we're not running * in the background. Background processes are stopped with SIGTTOU * if they try to write to stdout or change terminal attributes. They * also don't get input from stdin anyway. */ if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) { setup_stdin(); } } /* Timers */ t1 = feh_get_time(); t2 = t1 - pt; pt = t1; while (XPending(disp)) { XNextEvent(disp, &ev); if (ev_handler[ev.type]) (*(ev_handler[ev.type])) (&ev); if (window_num == 0 || sig_exit != 0) return(0); } XFlush(disp); feh_redraw_menus(); FD_ZERO(&fdset); FD_SET(xfd, &fdset); if (control_via_stdin) { FD_SET(STDIN_FILENO, &fdset); } #ifdef HAVE_INOTIFY if (opt.auto_reload) { FD_SET(opt.inotify_fd, &fdset); if (opt.inotify_fd >= fdsize) fdsize = opt.inotify_fd + 1; } #endif /* Timers */ ft = first_timer; /* Don't do timers if we're zooming/panning/etc or if we are paused */ if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) { D(("There are timers in the queue\n")); if (ft->just_added) { D(("The first timer has just been added\n")); D(("ft->in = %f\n", ft->in)); ft->just_added = 0; t1 = ft->in; } else { D(("The first timer was not just added\n")); t1 = ft->in - t2; if (t1 < 0.0) t1 = 0.0; ft->in = t1; } XSync(disp, False); D(("I next need to action a timer in %f seconds\n", t1)); /* Only do a blocking select if there's a timer due, or no events waiting */ if (t1 == 0.0 || (block && !XPending(disp))) { tval.tv_sec = (long) t1; tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000); if (tval.tv_sec < 0) tval.tv_sec = 0; if (tval.tv_usec <= 1000) tval.tv_usec = 1000; errno = 0; D(("Performing blocking select - waiting for timer or event\n")); count = select(fdsize, &fdset, NULL, NULL, &tval); if ((count < 0) && ((errno == ENOMEM) || (errno == EINVAL) || (errno == EBADF))) eprintf("Connection to X display lost"); if (count == 0) { /* This means the timer is due to be executed. If count was > 0, that would mean an X event had woken us, we're not interested in that */ feh_handle_timer(); } /* * Beware: If stdin is not connected, we may end up with xfd == 0. * However, STDIN_FILENO == 0 holds as well in most cases. So we must * check control_via_stdin to avoid mistaking an X11 event for stdin. */ else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))) feh_event_handle_stdin(); #ifdef HAVE_INOTIFY else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) feh_event_handle_inotify(); #endif } } else { /* Don't block if there are events in the queue. That's a bit rude ;-) */ if (block && !XPending(disp)) { errno = 0; D(("Performing blocking select - no timers, or zooming\n")); count = select(fdsize, &fdset, NULL, NULL, NULL); if ((count < 0) && ((errno == ENOMEM) || (errno == EINVAL) || (errno == EBADF))) eprintf("Connection to X display lost"); else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))) feh_event_handle_stdin(); #ifdef HAVE_INOTIFY else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) feh_event_handle_inotify(); #endif } } if (window_num == 0 || sig_exit != 0) return(0); return(1); } void feh_clean_exit(void) { delete_rm_files(); free(opt.menu_font); #ifdef HAVE_INOTIFY if (opt.auto_reload) if (close(opt.inotify_fd)) eprintf("inotify close failed"); #endif if(disp) XCloseDisplay(disp); /* * Only restore the old terminal settings if * - we changed them in the first place * - stdin still is a terminal (it might have been closed) * - stdin still belongs to us (we might have been detached from the * controlling terminal, in that case we probably shouldn't be messing * around with it) <https://github.com/derf/feh/issues/324> */ if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO))) restore_stdin(); if (opt.filelistfile) feh_write_filelist(filelist, opt.filelistfile); return; }
30.59
246
(translation_unit) "/* main.c\n\nCopyright (C) 1999-2003 <NAME>.\nCopyright (C) 2010-2020 <NAME>.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies of the Software and its documentation and acknowledgment shall be\ngiven in the documentation and software packages that this Software was\nused.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n\n#include "feh.h"\n#include "filelist.h"\n#include "winwidget.h"\n#include "timers.h"\n#include "options.h"\n#include "events.h"\n#include "signals.h"\n#include "wallpaper.h"\n#include <termios.h>\n\n#ifdef HAVE_INOTIFY\n#include <sys/inotify.h>\n#endif\n\nchar **cmdargv = NULL;\nint cmdargc = 0;\nchar *mode = NULL;\n\nint main(int argc, char **argv)\n{\n atexit(feh_clean_exit);\n\n srandom(getpid() * time(NULL) % ((unsigned int) -1));\n\n setup_signal_handlers();\n init_parse_options(argc, argv);\n\n init_imlib_fonts();\n\n if (opt.display) {\n init_x_and_imlib();\n init_keyevents();\n init_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif\n }\n\n feh_event_init();\n\n if (opt.index)\n init_index_mode();\n else if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }\n\n /* main event loop */\n while (feh_main_iteration(1));\n\n return(sig_exit);\n}\n\n/* Return 0 to stop iterating, 1 if ok to continue. */\nint feh_main_iteration(int block)\n{\n static int first = 1;\n static int xfd = 0;\n static int fdsize = 0;\n static double pt = 0.0;\n XEvent ev;\n struct timeval tval;\n fd_set fdset;\n int count = 0;\n double t1 = 0.0, t2 = 0.0;\n fehtimer ft;\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n if (first) {\n /* Only need to set these up the first time */\n xfd = ConnectionNumber(disp);\n fdsize = xfd + 1;\n pt = feh_get_time();\n first = 0;\n /*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */\n if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }\n }\n\n /* Timers */\n t1 = feh_get_time();\n t2 = t1 - pt;\n pt = t1;\n while (XPending(disp)) {\n XNextEvent(disp, &ev);\n if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n }\n XFlush(disp);\n\n feh_redraw_menus();\n\n FD_ZERO(&fdset);\n FD_SET(xfd, &fdset);\n if (control_via_stdin) {\n FD_SET(STDIN_FILENO, &fdset);\n }\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif\n\n /* Timers */\n ft = first_timer;\n /* Don't do timers if we're zooming/panning/etc or if we are paused */\n if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n D(("There are timers in the queue\n"));\n if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }\n\n XSync(disp, False);\n D(("I next need to action a timer in %f seconds\n", t1));\n /* Only do a blocking select if there's a timer due, or no events\n waiting */\n if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n } else {\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n return(1);\n}\n\nvoid feh_clean_exit(void)\n{\n delete_rm_files();\n\n free(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf("inotify close failed");\n#endif\n\n if(disp)\n XCloseDisplay(disp);\n\n /*\n * Only restore the old terminal settings if\n * - we changed them in the first place\n * - stdin still is a terminal (it might have been closed)\n * - stdin still belongs to us (we might have been detached from the\n * controlling terminal, in that case we probably shouldn't be messing\n * around with it) <https://github.com/derf/feh/issues/324>\n */\n if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n restore_stdin();\n\n if (opt.filelistfile)\n feh_write_filelist(filelist, opt.filelistfile);\n\n return;\n}\n" (comment) "/* main.c\n\nCopyright (C) 1999-2003 <NAME>.\nCopyright (C) 2010-2020 <NAME>.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies of the Software and its documentation and acknowledgment shall be\ngiven in the documentation and software packages that this Software was\nused.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/" (preproc_include) "#include "feh.h"\n" (#include) "#include" (string_literal) ""feh.h"" (") """ (string_content) "feh.h" (") """ (preproc_include) "#include "filelist.h"\n" (#include) "#include" (string_literal) ""filelist.h"" (") """ (string_content) "filelist.h" (") """ (preproc_include) "#include "winwidget.h"\n" (#include) "#include" (string_literal) ""winwidget.h"" (") """ (string_content) "winwidget.h" (") """ (preproc_include) "#include "timers.h"\n" (#include) "#include" (string_literal) ""timers.h"" (") """ (string_content) "timers.h" (") """ (preproc_include) "#include "options.h"\n" (#include) "#include" (string_literal) ""options.h"" (") """ (string_content) "options.h" (") """ (preproc_include) "#include "events.h"\n" (#include) "#include" (string_literal) ""events.h"" (") """ (string_content) "events.h" (") """ (preproc_include) "#include "signals.h"\n" (#include) "#include" (string_literal) ""signals.h"" (") """ (string_content) "signals.h" (") """ (preproc_include) "#include "wallpaper.h"\n" (#include) "#include" (string_literal) ""wallpaper.h"" (") """ (string_content) "wallpaper.h" (") """ (preproc_include) "#include <termios.h>\n" (#include) "#include" (system_lib_string) "<termios.h>" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n#include <sys/inotify.h>\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (preproc_include) "#include <sys/inotify.h>\n" (#include) "#include" (system_lib_string) "<sys/inotify.h>" (#endif) "#endif" (declaration) "char **cmdargv = NULL;" (primitive_type) "char" (init_declarator) "**cmdargv = NULL" (pointer_declarator) "**cmdargv" (*) "*" (pointer_declarator) "*cmdargv" (*) "*" (identifier) "cmdargv" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int cmdargc = 0;" (primitive_type) "int" (init_declarator) "cmdargc = 0" (identifier) "cmdargc" (=) "=" (number_literal) "0" (;) ";" (declaration) "char *mode = NULL;" (primitive_type) "char" (init_declarator) "*mode = NULL" (pointer_declarator) "*mode" (*) "*" (identifier) "mode" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (function_definition) "int main(int argc, char **argv)\n{\n atexit(feh_clean_exit);\n\n srandom(getpid() * time(NULL) % ((unsigned int) -1));\n\n setup_signal_handlers();\n init_parse_options(argc, argv);\n\n init_imlib_fonts();\n\n if (opt.display) {\n init_x_and_imlib();\n init_keyevents();\n init_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif\n }\n\n feh_event_init();\n\n if (opt.index)\n init_index_mode();\n else if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }\n\n /* main event loop */\n while (feh_main_iteration(1));\n\n return(sig_exit);\n}" (primitive_type) "int" (function_declarator) "main(int argc, char **argv)" (identifier) "main" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n atexit(feh_clean_exit);\n\n srandom(getpid() * time(NULL) % ((unsigned int) -1));\n\n setup_signal_handlers();\n init_parse_options(argc, argv);\n\n init_imlib_fonts();\n\n if (opt.display) {\n init_x_and_imlib();\n init_keyevents();\n init_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif\n }\n\n feh_event_init();\n\n if (opt.index)\n init_index_mode();\n else if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }\n\n /* main event loop */\n while (feh_main_iteration(1));\n\n return(sig_exit);\n}" ({) "{" (expression_statement) "atexit(feh_clean_exit);" (call_expression) "atexit(feh_clean_exit)" (identifier) "atexit" (argument_list) "(feh_clean_exit)" (() "(" (identifier) "feh_clean_exit" ()) ")" (;) ";" (expression_statement) "srandom(getpid() * time(NULL) % ((unsigned int) -1));" (call_expression) "srandom(getpid() * time(NULL) % ((unsigned int) -1))" (identifier) "srandom" (argument_list) "(getpid() * time(NULL) % ((unsigned int) -1))" (() "(" (binary_expression) "getpid() * time(NULL) % ((unsigned int) -1)" (binary_expression) "getpid() * time(NULL)" (call_expression) "getpid()" (identifier) "getpid" (argument_list) "()" (() "(" ()) ")" (*) "*" (call_expression) "time(NULL)" (identifier) "time" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" (%) "%" (parenthesized_expression) "((unsigned int) -1)" (() "(" (cast_expression) "(unsigned int) -1" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (number_literal) "-1" ()) ")" ()) ")" (;) ";" (expression_statement) "setup_signal_handlers();" (call_expression) "setup_signal_handlers()" (identifier) "setup_signal_handlers" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "init_parse_options(argc, argv);" (call_expression) "init_parse_options(argc, argv)" (identifier) "init_parse_options" (argument_list) "(argc, argv)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" ()) ")" (;) ";" (expression_statement) "init_imlib_fonts();" (call_expression) "init_imlib_fonts()" (identifier) "init_imlib_fonts" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (opt.display) {\n init_x_and_imlib();\n init_keyevents();\n init_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif\n }" (if) "if" (parenthesized_expression) "(opt.display)" (() "(" (field_expression) "opt.display" (identifier) "opt" (.) "." (field_identifier) "display" ()) ")" (compound_statement) "{\n init_x_and_imlib();\n init_keyevents();\n init_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif\n }" ({) "{" (expression_statement) "init_x_and_imlib();" (call_expression) "init_x_and_imlib()" (identifier) "init_x_and_imlib" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "init_keyevents();" (call_expression) "init_keyevents()" (identifier) "init_keyevents" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "init_buttonbindings();" (call_expression) "init_buttonbindings()" (identifier) "init_buttonbindings" (argument_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (if_statement) "if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }" (if) "if" (parenthesized_expression) "(opt.auto_reload)" (() "(" (field_expression) "opt.auto_reload" (identifier) "opt" (.) "." (field_identifier) "auto_reload" ()) ")" (compound_statement) "{\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }\n }" ({) "{" (expression_statement) "opt.inotify_fd = inotify_init();" (assignment_expression) "opt.inotify_fd = inotify_init()" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" (=) "=" (call_expression) "inotify_init()" (identifier) "inotify_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }" (if) "if" (parenthesized_expression) "(opt.inotify_fd < 0)" (() "(" (binary_expression) "opt.inotify_fd < 0" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n opt.auto_reload = 0;\n weprintf("inotify_init failed:");\n weprintf("Disabling inotify-based auto-reload");\n }" ({) "{" (expression_statement) "opt.auto_reload = 0;" (assignment_expression) "opt.auto_reload = 0" (field_expression) "opt.auto_reload" (identifier) "opt" (.) "." (field_identifier) "auto_reload" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "weprintf("inotify_init failed:");" (call_expression) "weprintf("inotify_init failed:")" (identifier) "weprintf" (argument_list) "("inotify_init failed:")" (() "(" (string_literal) ""inotify_init failed:"" (") """ (string_content) "inotify_init failed:" (") """ ()) ")" (;) ";" (expression_statement) "weprintf("Disabling inotify-based auto-reload");" (call_expression) "weprintf("Disabling inotify-based auto-reload")" (identifier) "weprintf" (argument_list) "("Disabling inotify-based auto-reload")" (() "(" (string_literal) ""Disabling inotify-based auto-reload"" (") """ (string_content) "Disabling inotify-based auto-reload" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (#endif) "#endif" (}) "}" (expression_statement) "feh_event_init();" (call_expression) "feh_event_init()" (identifier) "feh_event_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (opt.index)\n init_index_mode();\n else if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.index)" (() "(" (field_expression) "opt.index" (identifier) "opt" (.) "." (field_identifier) "index" ()) ")" (expression_statement) "init_index_mode();" (call_expression) "init_index_mode()" (identifier) "init_index_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.multiwindow)\n init_multiwindow_mode();\n else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.multiwindow)" (() "(" (field_expression) "opt.multiwindow" (identifier) "opt" (.) "." (field_identifier) "multiwindow" ()) ")" (expression_statement) "init_multiwindow_mode();" (call_expression) "init_multiwindow_mode()" (identifier) "init_multiwindow_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.list || opt.customlist)\n init_list_mode();\n else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.list || opt.customlist)" (() "(" (binary_expression) "opt.list || opt.customlist" (field_expression) "opt.list" (identifier) "opt" (.) "." (field_identifier) "list" (||) "||" (field_expression) "opt.customlist" (identifier) "opt" (.) "." (field_identifier) "customlist" ()) ")" (expression_statement) "init_list_mode();" (call_expression) "init_list_mode()" (identifier) "init_list_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.loadables)\n init_loadables_mode();\n else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.loadables)" (() "(" (field_expression) "opt.loadables" (identifier) "opt" (.) "." (field_identifier) "loadables" ()) ")" (expression_statement) "init_loadables_mode();" (call_expression) "init_loadables_mode()" (identifier) "init_loadables_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.unloadables)\n init_unloadables_mode();\n else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.unloadables)" (() "(" (field_expression) "opt.unloadables" (identifier) "opt" (.) "." (field_identifier) "unloadables" ()) ")" (expression_statement) "init_unloadables_mode();" (call_expression) "init_unloadables_mode()" (identifier) "init_unloadables_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.thumbs)\n init_thumbnail_mode();\n else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.thumbs)" (() "(" (field_expression) "opt.thumbs" (identifier) "opt" (.) "." (field_identifier) "thumbs" ()) ")" (expression_statement) "init_thumbnail_mode();" (call_expression) "init_thumbnail_mode()" (identifier) "init_thumbnail_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (else_clause) "else if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.bgmode) {\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }\n else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.bgmode)" (() "(" (field_expression) "opt.bgmode" (identifier) "opt" (.) "." (field_identifier) "bgmode" ()) ")" (compound_statement) "{\n feh_wm_set_bg_filelist(opt.bgmode);\n exit(0);\n }" ({) "{" (expression_statement) "feh_wm_set_bg_filelist(opt.bgmode);" (call_expression) "feh_wm_set_bg_filelist(opt.bgmode)" (identifier) "feh_wm_set_bg_filelist" (argument_list) "(opt.bgmode)" (() "(" (field_expression) "opt.bgmode" (identifier) "opt" (.) "." (field_identifier) "bgmode" ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (else) "else" (if_statement) "if (opt.display){\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }\n else {\n eprintf("Invalid option combination");\n }" (if) "if" (parenthesized_expression) "(opt.display)" (() "(" (field_expression) "opt.display" (identifier) "opt" (.) "." (field_identifier) "display" ()) ")" (compound_statement) "{\n /* Slideshow mode is the default. Because it's spiffy */\n opt.slideshow = 1;\n init_slideshow_mode();\n }" ({) "{" (comment) "/* Slideshow mode is the default. Because it's spiffy */" (expression_statement) "opt.slideshow = 1;" (assignment_expression) "opt.slideshow = 1" (field_expression) "opt.slideshow" (identifier) "opt" (.) "." (field_identifier) "slideshow" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "init_slideshow_mode();" (call_expression) "init_slideshow_mode()" (identifier) "init_slideshow_mode" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n eprintf("Invalid option combination");\n }" (else) "else" (compound_statement) "{\n eprintf("Invalid option combination");\n }" ({) "{" (expression_statement) "eprintf("Invalid option combination");" (call_expression) "eprintf("Invalid option combination")" (identifier) "eprintf" (argument_list) "("Invalid option combination")" (() "(" (string_literal) ""Invalid option combination"" (") """ (string_content) "Invalid option combination" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* main event loop */" (while_statement) "while (feh_main_iteration(1));" (while) "while" (parenthesized_expression) "(feh_main_iteration(1))" (() "(" (call_expression) "feh_main_iteration(1)" (identifier) "feh_main_iteration" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return(sig_exit);" (return) "return" (parenthesized_expression) "(sig_exit)" (() "(" (identifier) "sig_exit" ()) ")" (;) ";" (}) "}" (comment) "/* Return 0 to stop iterating, 1 if ok to continue. */" (function_definition) "int feh_main_iteration(int block)\n{\n static int first = 1;\n static int xfd = 0;\n static int fdsize = 0;\n static double pt = 0.0;\n XEvent ev;\n struct timeval tval;\n fd_set fdset;\n int count = 0;\n double t1 = 0.0, t2 = 0.0;\n fehtimer ft;\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n if (first) {\n /* Only need to set these up the first time */\n xfd = ConnectionNumber(disp);\n fdsize = xfd + 1;\n pt = feh_get_time();\n first = 0;\n /*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */\n if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }\n }\n\n /* Timers */\n t1 = feh_get_time();\n t2 = t1 - pt;\n pt = t1;\n while (XPending(disp)) {\n XNextEvent(disp, &ev);\n if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n }\n XFlush(disp);\n\n feh_redraw_menus();\n\n FD_ZERO(&fdset);\n FD_SET(xfd, &fdset);\n if (control_via_stdin) {\n FD_SET(STDIN_FILENO, &fdset);\n }\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif\n\n /* Timers */\n ft = first_timer;\n /* Don't do timers if we're zooming/panning/etc or if we are paused */\n if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n D(("There are timers in the queue\n"));\n if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }\n\n XSync(disp, False);\n D(("I next need to action a timer in %f seconds\n", t1));\n /* Only do a blocking select if there's a timer due, or no events\n waiting */\n if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n } else {\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n return(1);\n}" (primitive_type) "int" (function_declarator) "feh_main_iteration(int block)" (identifier) "feh_main_iteration" (parameter_list) "(int block)" (() "(" (parameter_declaration) "int block" (primitive_type) "int" (identifier) "block" ()) ")" (compound_statement) "{\n static int first = 1;\n static int xfd = 0;\n static int fdsize = 0;\n static double pt = 0.0;\n XEvent ev;\n struct timeval tval;\n fd_set fdset;\n int count = 0;\n double t1 = 0.0, t2 = 0.0;\n fehtimer ft;\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n if (first) {\n /* Only need to set these up the first time */\n xfd = ConnectionNumber(disp);\n fdsize = xfd + 1;\n pt = feh_get_time();\n first = 0;\n /*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */\n if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }\n }\n\n /* Timers */\n t1 = feh_get_time();\n t2 = t1 - pt;\n pt = t1;\n while (XPending(disp)) {\n XNextEvent(disp, &ev);\n if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n }\n XFlush(disp);\n\n feh_redraw_menus();\n\n FD_ZERO(&fdset);\n FD_SET(xfd, &fdset);\n if (control_via_stdin) {\n FD_SET(STDIN_FILENO, &fdset);\n }\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif\n\n /* Timers */\n ft = first_timer;\n /* Don't do timers if we're zooming/panning/etc or if we are paused */\n if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n D(("There are timers in the queue\n"));\n if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }\n\n XSync(disp, False);\n D(("I next need to action a timer in %f seconds\n", t1));\n /* Only do a blocking select if there's a timer due, or no events\n waiting */\n if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n } else {\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }\n if (window_num == 0 || sig_exit != 0)\n return(0);\n\n return(1);\n}" ({) "{" (declaration) "static int first = 1;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "first = 1" (identifier) "first" (=) "=" (number_literal) "1" (;) ";" (declaration) "static int xfd = 0;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "xfd = 0" (identifier) "xfd" (=) "=" (number_literal) "0" (;) ";" (declaration) "static int fdsize = 0;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "fdsize = 0" (identifier) "fdsize" (=) "=" (number_literal) "0" (;) ";" (declaration) "static double pt = 0.0;" (storage_class_specifier) "static" (static) "static" (primitive_type) "double" (init_declarator) "pt = 0.0" (identifier) "pt" (=) "=" (number_literal) "0.0" (;) ";" (declaration) "XEvent ev;" (type_identifier) "XEvent" (identifier) "ev" (;) ";" (declaration) "struct timeval tval;" (struct_specifier) "struct timeval" (struct) "struct" (type_identifier) "timeval" (identifier) "tval" (;) ";" (declaration) "fd_set fdset;" (type_identifier) "fd_set" (identifier) "fdset" (;) ";" (declaration) "int count = 0;" (primitive_type) "int" (init_declarator) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (declaration) "double t1 = 0.0, t2 = 0.0;" (primitive_type) "double" (init_declarator) "t1 = 0.0" (identifier) "t1" (=) "=" (number_literal) "0.0" (,) "," (init_declarator) "t2 = 0.0" (identifier) "t2" (=) "=" (number_literal) "0.0" (;) ";" (declaration) "fehtimer ft;" (type_identifier) "fehtimer" (identifier) "ft" (;) ";" (if_statement) "if (window_num == 0 || sig_exit != 0)\n return(0);" (if) "if" (parenthesized_expression) "(window_num == 0 || sig_exit != 0)" (() "(" (binary_expression) "window_num == 0 || sig_exit != 0" (binary_expression) "window_num == 0" (identifier) "window_num" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "sig_exit != 0" (identifier) "sig_exit" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return(0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (first) {\n /* Only need to set these up the first time */\n xfd = ConnectionNumber(disp);\n fdsize = xfd + 1;\n pt = feh_get_time();\n first = 0;\n /*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */\n if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }\n }" (if) "if" (parenthesized_expression) "(first)" (() "(" (identifier) "first" ()) ")" (compound_statement) "{\n /* Only need to set these up the first time */\n xfd = ConnectionNumber(disp);\n fdsize = xfd + 1;\n pt = feh_get_time();\n first = 0;\n /*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */\n if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }\n }" ({) "{" (comment) "/* Only need to set these up the first time */" (expression_statement) "xfd = ConnectionNumber(disp);" (assignment_expression) "xfd = ConnectionNumber(disp)" (identifier) "xfd" (=) "=" (call_expression) "ConnectionNumber(disp)" (identifier) "ConnectionNumber" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" (;) ";" (expression_statement) "fdsize = xfd + 1;" (assignment_expression) "fdsize = xfd + 1" (identifier) "fdsize" (=) "=" (binary_expression) "xfd + 1" (identifier) "xfd" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "pt = feh_get_time();" (assignment_expression) "pt = feh_get_time()" (identifier) "pt" (=) "=" (call_expression) "feh_get_time()" (identifier) "feh_get_time" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "first = 0;" (assignment_expression) "first = 0" (identifier) "first" (=) "=" (number_literal) "0" (;) ";" (comment) "/*\n * Only accept commands from stdin if\n * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n * - we aren't running in multiwindow mode (cause it's not clear which\n * window commands should be applied to in that case)\n * - we're in the same process group as stdin, AKA we're not running\n * in the background. Background processes are stopped with SIGTTOU\n * if they try to write to stdout or change terminal attributes. They\n * also don't get input from stdin anyway.\n */" (if_statement) "if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n setup_stdin();\n }" (if) "if" (parenthesized_expression) "(isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO)))" (() "(" (binary_expression) "isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))" (binary_expression) "isatty(STDIN_FILENO) && !opt.multiwindow" (call_expression) "isatty(STDIN_FILENO)" (identifier) "isatty" (argument_list) "(STDIN_FILENO)" (() "(" (identifier) "STDIN_FILENO" ()) ")" (&&) "&&" (unary_expression) "!opt.multiwindow" (!) "!" (field_expression) "opt.multiwindow" (identifier) "opt" (.) "." (field_identifier) "multiwindow" (&&) "&&" (binary_expression) "getpgrp() == (tcgetpgrp(STDIN_FILENO))" (call_expression) "getpgrp()" (identifier) "getpgrp" (argument_list) "()" (() "(" ()) ")" (==) "==" (parenthesized_expression) "(tcgetpgrp(STDIN_FILENO))" (() "(" (call_expression) "tcgetpgrp(STDIN_FILENO)" (identifier) "tcgetpgrp" (argument_list) "(STDIN_FILENO)" (() "(" (identifier) "STDIN_FILENO" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n setup_stdin();\n }" ({) "{" (expression_statement) "setup_stdin();" (call_expression) "setup_stdin()" (identifier) "setup_stdin" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "/* Timers */" (expression_statement) "t1 = feh_get_time();" (assignment_expression) "t1 = feh_get_time()" (identifier) "t1" (=) "=" (call_expression) "feh_get_time()" (identifier) "feh_get_time" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "t2 = t1 - pt;" (assignment_expression) "t2 = t1 - pt" (identifier) "t2" (=) "=" (binary_expression) "t1 - pt" (identifier) "t1" (-) "-" (identifier) "pt" (;) ";" (expression_statement) "pt = t1;" (assignment_expression) "pt = t1" (identifier) "pt" (=) "=" (identifier) "t1" (;) ";" (while_statement) "while (XPending(disp)) {\n XNextEvent(disp, &ev);\n if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n }" (while) "while" (parenthesized_expression) "(XPending(disp))" (() "(" (call_expression) "XPending(disp)" (identifier) "XPending" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" ()) ")" (compound_statement) "{\n XNextEvent(disp, &ev);\n if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);\n\n if (window_num == 0 || sig_exit != 0)\n return(0);\n }" ({) "{" (expression_statement) "XNextEvent(disp, &ev);" (call_expression) "XNextEvent(disp, &ev)" (identifier) "XNextEvent" (argument_list) "(disp, &ev)" (() "(" (identifier) "disp" (,) "," (pointer_expression) "&ev" (&) "&" (identifier) "ev" ()) ")" (;) ";" (if_statement) "if (ev_handler[ev.type])\n (*(ev_handler[ev.type])) (&ev);" (if) "if" (parenthesized_expression) "(ev_handler[ev.type])" (() "(" (subscript_expression) "ev_handler[ev.type]" (identifier) "ev_handler" ([) "[" (field_expression) "ev.type" (identifier) "ev" (.) "." (field_identifier) "type" (]) "]" ()) ")" (expression_statement) "(*(ev_handler[ev.type])) (&ev);" (call_expression) "(*(ev_handler[ev.type])) (&ev)" (parenthesized_expression) "(*(ev_handler[ev.type]))" (() "(" (pointer_expression) "*(ev_handler[ev.type])" (*) "*" (parenthesized_expression) "(ev_handler[ev.type])" (() "(" (subscript_expression) "ev_handler[ev.type]" (identifier) "ev_handler" ([) "[" (field_expression) "ev.type" (identifier) "ev" (.) "." (field_identifier) "type" (]) "]" ()) ")" ()) ")" (argument_list) "(&ev)" (() "(" (pointer_expression) "&ev" (&) "&" (identifier) "ev" ()) ")" (;) ";" (if_statement) "if (window_num == 0 || sig_exit != 0)\n return(0);" (if) "if" (parenthesized_expression) "(window_num == 0 || sig_exit != 0)" (() "(" (binary_expression) "window_num == 0 || sig_exit != 0" (binary_expression) "window_num == 0" (identifier) "window_num" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "sig_exit != 0" (identifier) "sig_exit" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return(0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (expression_statement) "XFlush(disp);" (call_expression) "XFlush(disp)" (identifier) "XFlush" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" (;) ";" (expression_statement) "feh_redraw_menus();" (call_expression) "feh_redraw_menus()" (identifier) "feh_redraw_menus" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "FD_ZERO(&fdset);" (call_expression) "FD_ZERO(&fdset)" (identifier) "FD_ZERO" (argument_list) "(&fdset)" (() "(" (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" (;) ";" (expression_statement) "FD_SET(xfd, &fdset);" (call_expression) "FD_SET(xfd, &fdset)" (identifier) "FD_SET" (argument_list) "(xfd, &fdset)" (() "(" (identifier) "xfd" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" (;) ";" (if_statement) "if (control_via_stdin) {\n FD_SET(STDIN_FILENO, &fdset);\n }" (if) "if" (parenthesized_expression) "(control_via_stdin)" (() "(" (identifier) "control_via_stdin" ()) ")" (compound_statement) "{\n FD_SET(STDIN_FILENO, &fdset);\n }" ({) "{" (expression_statement) "FD_SET(STDIN_FILENO, &fdset);" (call_expression) "FD_SET(STDIN_FILENO, &fdset)" (identifier) "FD_SET" (argument_list) "(STDIN_FILENO, &fdset)" (() "(" (identifier) "STDIN_FILENO" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" (;) ";" (}) "}" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (if_statement) "if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }" (if) "if" (parenthesized_expression) "(opt.auto_reload)" (() "(" (field_expression) "opt.auto_reload" (identifier) "opt" (.) "." (field_identifier) "auto_reload" ()) ")" (compound_statement) "{\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }" ({) "{" (expression_statement) "FD_SET(opt.inotify_fd, &fdset);" (call_expression) "FD_SET(opt.inotify_fd, &fdset)" (identifier) "FD_SET" (argument_list) "(opt.inotify_fd, &fdset)" (() "(" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" (;) ";" (if_statement) "if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;" (if) "if" (parenthesized_expression) "(opt.inotify_fd >= fdsize)" (() "(" (binary_expression) "opt.inotify_fd >= fdsize" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" (>=) ">=" (identifier) "fdsize" ()) ")" (expression_statement) "fdsize = opt.inotify_fd + 1;" (assignment_expression) "fdsize = opt.inotify_fd + 1" (identifier) "fdsize" (=) "=" (binary_expression) "opt.inotify_fd + 1" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" (+) "+" (number_literal) "1" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* Timers */" (expression_statement) "ft = first_timer;" (assignment_expression) "ft = first_timer" (identifier) "ft" (=) "=" (identifier) "first_timer" (;) ";" (comment) "/* Don't do timers if we're zooming/panning/etc or if we are paused */" (if_statement) "if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n D(("There are timers in the queue\n"));\n if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }\n\n XSync(disp, False);\n D(("I next need to action a timer in %f seconds\n", t1));\n /* Only do a blocking select if there's a timer due, or no events\n waiting */\n if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n } else {\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }" (if) "if" (parenthesized_expression) "(ft && (opt.mode == MODE_NORMAL) && !opt.paused)" (() "(" (binary_expression) "ft && (opt.mode == MODE_NORMAL) && !opt.paused" (binary_expression) "ft && (opt.mode == MODE_NORMAL)" (identifier) "ft" (&&) "&&" (parenthesized_expression) "(opt.mode == MODE_NORMAL)" (() "(" (binary_expression) "opt.mode == MODE_NORMAL" (field_expression) "opt.mode" (identifier) "opt" (.) "." (field_identifier) "mode" (==) "==" (identifier) "MODE_NORMAL" ()) ")" (&&) "&&" (unary_expression) "!opt.paused" (!) "!" (field_expression) "opt.paused" (identifier) "opt" (.) "." (field_identifier) "paused" ()) ")" (compound_statement) "{\n D(("There are timers in the queue\n"));\n if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }\n\n XSync(disp, False);\n D(("I next need to action a timer in %f seconds\n", t1));\n /* Only do a blocking select if there's a timer due, or no events\n waiting */\n if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }" ({) "{" (expression_statement) "D(("There are timers in the queue\n"));" (call_expression) "D(("There are timers in the queue\n"))" (identifier) "D" (argument_list) "(("There are timers in the queue\n"))" (() "(" (parenthesized_expression) "("There are timers in the queue\n")" (() "(" (string_literal) ""There are timers in the queue\n"" (") """ (string_content) "There are timers in the queue" (escape_sequence) "\n" (") """ ()) ")" ()) ")" (;) ";" (if_statement) "if (ft->just_added) {\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n } else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }" (if) "if" (parenthesized_expression) "(ft->just_added)" (() "(" (field_expression) "ft->just_added" (identifier) "ft" (->) "->" (field_identifier) "just_added" ()) ")" (compound_statement) "{\n D(("The first timer has just been added\n"));\n D(("ft->in = %f\n", ft->in));\n ft->just_added = 0;\n t1 = ft->in;\n }" ({) "{" (expression_statement) "D(("The first timer has just been added\n"));" (call_expression) "D(("The first timer has just been added\n"))" (identifier) "D" (argument_list) "(("The first timer has just been added\n"))" (() "(" (parenthesized_expression) "("The first timer has just been added\n")" (() "(" (string_literal) ""The first timer has just been added\n"" (") """ (string_content) "The first timer has just been added" (escape_sequence) "\n" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "D(("ft->in = %f\n", ft->in));" (call_expression) "D(("ft->in = %f\n", ft->in))" (identifier) "D" (argument_list) "(("ft->in = %f\n", ft->in))" (() "(" (parenthesized_expression) "("ft->in = %f\n", ft->in)" (() "(" (comma_expression) ""ft->in = %f\n", ft->in" (string_literal) ""ft->in = %f\n"" (") """ (string_content) "ft->in = %f" (escape_sequence) "\n" (") """ (,) "," (field_expression) "ft->in" (identifier) "ft" (->) "->" (field_identifier) "in" ()) ")" ()) ")" (;) ";" (expression_statement) "ft->just_added = 0;" (assignment_expression) "ft->just_added = 0" (field_expression) "ft->just_added" (identifier) "ft" (->) "->" (field_identifier) "just_added" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "t1 = ft->in;" (assignment_expression) "t1 = ft->in" (identifier) "t1" (=) "=" (field_expression) "ft->in" (identifier) "ft" (->) "->" (field_identifier) "in" (;) ";" (}) "}" (else_clause) "else {\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }" (else) "else" (compound_statement) "{\n D(("The first timer was not just added\n"));\n t1 = ft->in - t2;\n if (t1 < 0.0)\n t1 = 0.0;\n ft->in = t1;\n }" ({) "{" (expression_statement) "D(("The first timer was not just added\n"));" (call_expression) "D(("The first timer was not just added\n"))" (identifier) "D" (argument_list) "(("The first timer was not just added\n"))" (() "(" (parenthesized_expression) "("The first timer was not just added\n")" (() "(" (string_literal) ""The first timer was not just added\n"" (") """ (string_content) "The first timer was not just added" (escape_sequence) "\n" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "t1 = ft->in - t2;" (assignment_expression) "t1 = ft->in - t2" (identifier) "t1" (=) "=" (binary_expression) "ft->in - t2" (field_expression) "ft->in" (identifier) "ft" (->) "->" (field_identifier) "in" (-) "-" (identifier) "t2" (;) ";" (if_statement) "if (t1 < 0.0)\n t1 = 0.0;" (if) "if" (parenthesized_expression) "(t1 < 0.0)" (() "(" (binary_expression) "t1 < 0.0" (identifier) "t1" (<) "<" (number_literal) "0.0" ()) ")" (expression_statement) "t1 = 0.0;" (assignment_expression) "t1 = 0.0" (identifier) "t1" (=) "=" (number_literal) "0.0" (;) ";" (expression_statement) "ft->in = t1;" (assignment_expression) "ft->in = t1" (field_expression) "ft->in" (identifier) "ft" (->) "->" (field_identifier) "in" (=) "=" (identifier) "t1" (;) ";" (}) "}" (expression_statement) "XSync(disp, False);" (call_expression) "XSync(disp, False)" (identifier) "XSync" (argument_list) "(disp, False)" (() "(" (identifier) "disp" (,) "," (identifier) "False" ()) ")" (;) ";" (expression_statement) "D(("I next need to action a timer in %f seconds\n", t1));" (call_expression) "D(("I next need to action a timer in %f seconds\n", t1))" (identifier) "D" (argument_list) "(("I next need to action a timer in %f seconds\n", t1))" (() "(" (parenthesized_expression) "("I next need to action a timer in %f seconds\n", t1)" (() "(" (comma_expression) ""I next need to action a timer in %f seconds\n", t1" (string_literal) ""I next need to action a timer in %f seconds\n"" (") """ (string_content) "I next need to action a timer in %f seconds" (escape_sequence) "\n" (") """ (,) "," (identifier) "t1" ()) ")" ()) ")" (;) ";" (comment) "/* Only do a blocking select if there's a timer due, or no events\n waiting */" (if_statement) "if (t1 == 0.0 || (block && !XPending(disp))) {\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }" (if) "if" (parenthesized_expression) "(t1 == 0.0 || (block && !XPending(disp)))" (() "(" (binary_expression) "t1 == 0.0 || (block && !XPending(disp))" (binary_expression) "t1 == 0.0" (identifier) "t1" (==) "==" (number_literal) "0.0" (||) "||" (parenthesized_expression) "(block && !XPending(disp))" (() "(" (binary_expression) "block && !XPending(disp)" (identifier) "block" (&&) "&&" (unary_expression) "!XPending(disp)" (!) "!" (call_expression) "XPending(disp)" (identifier) "XPending" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n tval.tv_sec = (long) t1;\n tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n if (tval.tv_sec < 0)\n tval.tv_sec = 0;\n if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;\n errno = 0;\n D(("Performing blocking select - waiting for timer or event\n"));\n count = select(fdsize, &fdset, NULL, NULL, &tval);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }" ({) "{" (expression_statement) "tval.tv_sec = (long) t1;" (assignment_expression) "tval.tv_sec = (long) t1" (field_expression) "tval.tv_sec" (identifier) "tval" (.) "." (field_identifier) "tv_sec" (=) "=" (cast_expression) "(long) t1" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (identifier) "t1" (;) ";" (expression_statement) "tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);" (assignment_expression) "tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000)" (field_expression) "tval.tv_usec" (identifier) "tval" (.) "." (field_identifier) "tv_usec" (=) "=" (cast_expression) "(long) ((t1 - ((double) tval.tv_sec)) * 1000000)" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (parenthesized_expression) "((t1 - ((double) tval.tv_sec)) * 1000000)" (() "(" (binary_expression) "(t1 - ((double) tval.tv_sec)) * 1000000" (parenthesized_expression) "(t1 - ((double) tval.tv_sec))" (() "(" (binary_expression) "t1 - ((double) tval.tv_sec)" (identifier) "t1" (-) "-" (parenthesized_expression) "((double) tval.tv_sec)" (() "(" (cast_expression) "(double) tval.tv_sec" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (field_expression) "tval.tv_sec" (identifier) "tval" (.) "." (field_identifier) "tv_sec" ()) ")" ()) ")" (*) "*" (number_literal) "1000000" ()) ")" (;) ";" (if_statement) "if (tval.tv_sec < 0)\n tval.tv_sec = 0;" (if) "if" (parenthesized_expression) "(tval.tv_sec < 0)" (() "(" (binary_expression) "tval.tv_sec < 0" (field_expression) "tval.tv_sec" (identifier) "tval" (.) "." (field_identifier) "tv_sec" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "tval.tv_sec = 0;" (assignment_expression) "tval.tv_sec = 0" (field_expression) "tval.tv_sec" (identifier) "tval" (.) "." (field_identifier) "tv_sec" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (tval.tv_usec <= 1000)\n tval.tv_usec = 1000;" (if) "if" (parenthesized_expression) "(tval.tv_usec <= 1000)" (() "(" (binary_expression) "tval.tv_usec <= 1000" (field_expression) "tval.tv_usec" (identifier) "tval" (.) "." (field_identifier) "tv_usec" (<=) "<=" (number_literal) "1000" ()) ")" (expression_statement) "tval.tv_usec = 1000;" (assignment_expression) "tval.tv_usec = 1000" (field_expression) "tval.tv_usec" (identifier) "tval" (.) "." (field_identifier) "tv_usec" (=) "=" (number_literal) "1000" (;) ";" (expression_statement) "errno = 0;" (assignment_expression) "errno = 0" (identifier) "errno" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "D(("Performing blocking select - waiting for timer or event\n"));" (call_expression) "D(("Performing blocking select - waiting for timer or event\n"))" (identifier) "D" (argument_list) "(("Performing blocking select - waiting for timer or event\n"))" (() "(" (parenthesized_expression) "("Performing blocking select - waiting for timer or event\n")" (() "(" (string_literal) ""Performing blocking select - waiting for timer or event\n"" (") """ (string_content) "Performing blocking select - waiting for timer or event" (escape_sequence) "\n" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "count = select(fdsize, &fdset, NULL, NULL, &tval);" (assignment_expression) "count = select(fdsize, &fdset, NULL, NULL, &tval)" (identifier) "count" (=) "=" (call_expression) "select(fdsize, &fdset, NULL, NULL, &tval)" (identifier) "select" (argument_list) "(fdsize, &fdset, NULL, NULL, &tval)" (() "(" (identifier) "fdsize" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&tval" (&) "&" (identifier) "tval" ()) ")" (;) ";" (if_statement) "if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");" (if) "if" (parenthesized_expression) "((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))" (() "(" (binary_expression) "(count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF))" (parenthesized_expression) "(count < 0)" (() "(" (binary_expression) "count < 0" (identifier) "count" (<) "<" (number_literal) "0" ()) ")" (&&) "&&" (parenthesized_expression) "((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF))" (() "(" (binary_expression) "(errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)" (binary_expression) "(errno == ENOMEM) || (errno == EINVAL)" (parenthesized_expression) "(errno == ENOMEM)" (() "(" (binary_expression) "errno == ENOMEM" (identifier) "errno" (==) "==" (identifier) "ENOMEM" ()) ")" (||) "||" (parenthesized_expression) "(errno == EINVAL)" (() "(" (binary_expression) "errno == EINVAL" (identifier) "errno" (==) "==" (identifier) "EINVAL" ()) ")" (||) "||" (parenthesized_expression) "(errno == EBADF)" (() "(" (binary_expression) "errno == EBADF" (identifier) "errno" (==) "==" (identifier) "EBADF" ()) ")" ()) ")" ()) ")" (expression_statement) "eprintf("Connection to X display lost");" (call_expression) "eprintf("Connection to X display lost")" (identifier) "eprintf" (argument_list) "("Connection to X display lost")" (() "(" (string_literal) ""Connection to X display lost"" (") """ (string_content) "Connection to X display lost" (") """ ()) ")" (;) ";" (if_statement) "if (count == 0) {\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }\n /*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (if) "if" (parenthesized_expression) "(count == 0)" (() "(" (binary_expression) "count == 0" (identifier) "count" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n /* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */\n feh_handle_timer();\n }" ({) "{" (comment) "/* This means the timer is due to be executed. If count was > 0,\n that would mean an X event had woken us, we're not interested\n in that */" (expression_statement) "feh_handle_timer();" (call_expression) "feh_handle_timer()" (identifier) "feh_handle_timer" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*\n * Beware: If stdin is not connected, we may end up with xfd == 0.\n * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n * check control_via_stdin to avoid mistaking an X11 event for stdin.\n */" (else_clause) "else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (else) "else" (if_statement) "if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (if) "if" (parenthesized_expression) "((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))" (() "(" (binary_expression) "(count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))" (binary_expression) "(count > 0) && control_via_stdin" (parenthesized_expression) "(count > 0)" (() "(" (binary_expression) "count > 0" (identifier) "count" (>) ">" (number_literal) "0" ()) ")" (&&) "&&" (identifier) "control_via_stdin" (&&) "&&" (parenthesized_expression) "(FD_ISSET(STDIN_FILENO, &fdset))" (() "(" (call_expression) "FD_ISSET(STDIN_FILENO, &fdset)" (identifier) "FD_ISSET" (argument_list) "(STDIN_FILENO, &fdset)" (() "(" (identifier) "STDIN_FILENO" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" ()) ")" ()) ")" (expression_statement) "feh_event_handle_stdin();" (call_expression) "feh_event_handle_stdin()" (identifier) "feh_event_handle_stdin" (argument_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (ERROR) "else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();" (type_identifier) "else" (function_declarator) "if ((count > 0)" (identifier) "if" (ERROR) "(" (() "(" (parameter_list) "(count > 0)" (() "(" (identifier) "count" (ERROR) "> 0" (>) ">" (number_literal) "0" ()) ")" (ERROR) "&& (" (&&) "&&" (() "(" (declaration) "FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();" (macro_type_specifier) "FD_ISSET(opt.inotify_fd, &fdset)" (identifier) "FD_ISSET" (() "(" (type_descriptor) "opt" (type_identifier) "opt" (ERROR) ".inotify_fd, &fdset" (.) "." (identifier) "inotify_fd" (,) "," (&) "&" (identifier) "fdset" ()) ")" (ERROR) "))" ()) ")" ()) ")" (function_declarator) "feh_event_handle_inotify()" (identifier) "feh_event_handle_inotify" (parameter_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (}) "}" (else_clause) "else {\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }" (else) "else" (compound_statement) "{\n /* Don't block if there are events in the queue. That's a bit rude ;-) */\n if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }\n }" ({) "{" (comment) "/* Don't block if there are events in the queue. That's a bit rude ;-) */" (if_statement) "if (block && !XPending(disp)) {\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }" (if) "if" (parenthesized_expression) "(block && !XPending(disp))" (() "(" (binary_expression) "block && !XPending(disp)" (identifier) "block" (&&) "&&" (unary_expression) "!XPending(disp)" (!) "!" (call_expression) "XPending(disp)" (identifier) "XPending" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" ()) ")" (compound_statement) "{\n errno = 0;\n D(("Performing blocking select - no timers, or zooming\n"));\n count = select(fdsize, &fdset, NULL, NULL, NULL);\n if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n }" ({) "{" (expression_statement) "errno = 0;" (assignment_expression) "errno = 0" (identifier) "errno" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "D(("Performing blocking select - no timers, or zooming\n"));" (call_expression) "D(("Performing blocking select - no timers, or zooming\n"))" (identifier) "D" (argument_list) "(("Performing blocking select - no timers, or zooming\n"))" (() "(" (parenthesized_expression) "("Performing blocking select - no timers, or zooming\n")" (() "(" (string_literal) ""Performing blocking select - no timers, or zooming\n"" (") """ (string_content) "Performing blocking select - no timers, or zooming" (escape_sequence) "\n" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "count = select(fdsize, &fdset, NULL, NULL, NULL);" (assignment_expression) "count = select(fdsize, &fdset, NULL, NULL, NULL)" (identifier) "count" (=) "=" (call_expression) "select(fdsize, &fdset, NULL, NULL, NULL)" (identifier) "select" (argument_list) "(fdsize, &fdset, NULL, NULL, NULL)" (() "(" (identifier) "fdsize" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if ((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))\n eprintf("Connection to X display lost");\n else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (if) "if" (parenthesized_expression) "((count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)))" (() "(" (binary_expression) "(count < 0)\n && ((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF))" (parenthesized_expression) "(count < 0)" (() "(" (binary_expression) "count < 0" (identifier) "count" (<) "<" (number_literal) "0" ()) ")" (&&) "&&" (parenthesized_expression) "((errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF))" (() "(" (binary_expression) "(errno == ENOMEM) || (errno == EINVAL)\n || (errno == EBADF)" (binary_expression) "(errno == ENOMEM) || (errno == EINVAL)" (parenthesized_expression) "(errno == ENOMEM)" (() "(" (binary_expression) "errno == ENOMEM" (identifier) "errno" (==) "==" (identifier) "ENOMEM" ()) ")" (||) "||" (parenthesized_expression) "(errno == EINVAL)" (() "(" (binary_expression) "errno == EINVAL" (identifier) "errno" (==) "==" (identifier) "EINVAL" ()) ")" (||) "||" (parenthesized_expression) "(errno == EBADF)" (() "(" (binary_expression) "errno == EBADF" (identifier) "errno" (==) "==" (identifier) "EBADF" ()) ")" ()) ")" ()) ")" (expression_statement) "eprintf("Connection to X display lost");" (call_expression) "eprintf("Connection to X display lost")" (identifier) "eprintf" (argument_list) "("Connection to X display lost")" (() "(" (string_literal) ""Connection to X display lost"" (") """ (string_content) "Connection to X display lost" (") """ ()) ")" (;) ";" (else_clause) "else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (else) "else" (if_statement) "if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n feh_event_handle_stdin();" (if) "if" (parenthesized_expression) "((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))" (() "(" (binary_expression) "(count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))" (binary_expression) "(count > 0) && control_via_stdin" (parenthesized_expression) "(count > 0)" (() "(" (binary_expression) "count > 0" (identifier) "count" (>) ">" (number_literal) "0" ()) ")" (&&) "&&" (identifier) "control_via_stdin" (&&) "&&" (parenthesized_expression) "(FD_ISSET(STDIN_FILENO, &fdset))" (() "(" (call_expression) "FD_ISSET(STDIN_FILENO, &fdset)" (identifier) "FD_ISSET" (argument_list) "(STDIN_FILENO, &fdset)" (() "(" (identifier) "STDIN_FILENO" (,) "," (pointer_expression) "&fdset" (&) "&" (identifier) "fdset" ()) ")" ()) ")" ()) ")" (expression_statement) "feh_event_handle_stdin();" (call_expression) "feh_event_handle_stdin()" (identifier) "feh_event_handle_stdin" (argument_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (ERROR) "else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();" (type_identifier) "else" (function_declarator) "if ((count > 0)" (identifier) "if" (ERROR) "(" (() "(" (parameter_list) "(count > 0)" (() "(" (identifier) "count" (ERROR) "> 0" (>) ">" (number_literal) "0" ()) ")" (ERROR) "&& (" (&&) "&&" (() "(" (declaration) "FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();" (macro_type_specifier) "FD_ISSET(opt.inotify_fd, &fdset)" (identifier) "FD_ISSET" (() "(" (type_descriptor) "opt" (type_identifier) "opt" (ERROR) ".inotify_fd, &fdset" (.) "." (identifier) "inotify_fd" (,) "," (&) "&" (identifier) "fdset" ()) ")" (ERROR) "))" ()) ")" ()) ")" (function_declarator) "feh_event_handle_inotify()" (identifier) "feh_event_handle_inotify" (parameter_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (}) "}" (if_statement) "if (window_num == 0 || sig_exit != 0)\n return(0);" (if) "if" (parenthesized_expression) "(window_num == 0 || sig_exit != 0)" (() "(" (binary_expression) "window_num == 0 || sig_exit != 0" (binary_expression) "window_num == 0" (identifier) "window_num" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "sig_exit != 0" (identifier) "sig_exit" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return(0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return(1);" (return) "return" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "void feh_clean_exit(void)\n{\n delete_rm_files();\n\n free(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf("inotify close failed");\n#endif\n\n if(disp)\n XCloseDisplay(disp);\n\n /*\n * Only restore the old terminal settings if\n * - we changed them in the first place\n * - stdin still is a terminal (it might have been closed)\n * - stdin still belongs to us (we might have been detached from the\n * controlling terminal, in that case we probably shouldn't be messing\n * around with it) <https://github.com/derf/feh/issues/324>\n */\n if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n restore_stdin();\n\n if (opt.filelistfile)\n feh_write_filelist(filelist, opt.filelistfile);\n\n return;\n}" (primitive_type) "void" (function_declarator) "feh_clean_exit(void)" (identifier) "feh_clean_exit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n delete_rm_files();\n\n free(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf("inotify close failed");\n#endif\n\n if(disp)\n XCloseDisplay(disp);\n\n /*\n * Only restore the old terminal settings if\n * - we changed them in the first place\n * - stdin still is a terminal (it might have been closed)\n * - stdin still belongs to us (we might have been detached from the\n * controlling terminal, in that case we probably shouldn't be messing\n * around with it) <https://github.com/derf/feh/issues/324>\n */\n if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n restore_stdin();\n\n if (opt.filelistfile)\n feh_write_filelist(filelist, opt.filelistfile);\n\n return;\n}" ({) "{" (expression_statement) "delete_rm_files();" (call_expression) "delete_rm_files()" (identifier) "delete_rm_files" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "free(opt.menu_font);" (call_expression) "free(opt.menu_font)" (identifier) "free" (argument_list) "(opt.menu_font)" (() "(" (field_expression) "opt.menu_font" (identifier) "opt" (.) "." (field_identifier) "menu_font" ()) ")" (;) ";" (preproc_ifdef) "#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf("inotify close failed");\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_INOTIFY" (if_statement) "if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf("inotify close failed");" (if) "if" (parenthesized_expression) "(opt.auto_reload)" (() "(" (field_expression) "opt.auto_reload" (identifier) "opt" (.) "." (field_identifier) "auto_reload" ()) ")" (if_statement) "if (close(opt.inotify_fd))\n eprintf("inotify close failed");" (if) "if" (parenthesized_expression) "(close(opt.inotify_fd))" (() "(" (call_expression) "close(opt.inotify_fd)" (identifier) "close" (argument_list) "(opt.inotify_fd)" (() "(" (field_expression) "opt.inotify_fd" (identifier) "opt" (.) "." (field_identifier) "inotify_fd" ()) ")" ()) ")" (expression_statement) "eprintf("inotify close failed");" (call_expression) "eprintf("inotify close failed")" (identifier) "eprintf" (argument_list) "("inotify close failed")" (() "(" (string_literal) ""inotify close failed"" (") """ (string_content) "inotify close failed" (") """ ()) ")" (;) ";" (#endif) "#endif" (if_statement) "if(disp)\n XCloseDisplay(disp);" (if) "if" (parenthesized_expression) "(disp)" (() "(" (identifier) "disp" ()) ")" (expression_statement) "XCloseDisplay(disp);" (call_expression) "XCloseDisplay(disp)" (identifier) "XCloseDisplay" (argument_list) "(disp)" (() "(" (identifier) "disp" ()) ")" (;) ";" (comment) "/*\n * Only restore the old terminal settings if\n * - we changed them in the first place\n * - stdin still is a terminal (it might have been closed)\n * - stdin still belongs to us (we might have been detached from the\n * controlling terminal, in that case we probably shouldn't be messing\n * around with it) <https://github.com/derf/feh/issues/324>\n */" (if_statement) "if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n restore_stdin();" (if) "if" (parenthesized_expression) "(control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))" (() "(" (binary_expression) "control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO))" (binary_expression) "control_via_stdin && isatty(STDIN_FILENO)" (identifier) "control_via_stdin" (&&) "&&" (call_expression) "isatty(STDIN_FILENO)" (identifier) "isatty" (argument_list) "(STDIN_FILENO)" (() "(" (identifier) "STDIN_FILENO" ()) ")" (&&) "&&" (binary_expression) "getpgrp() == (tcgetpgrp(STDIN_FILENO))" (call_expression) "getpgrp()" (identifier) "getpgrp" (argument_list) "()" (() "(" ()) ")" (==) "==" (parenthesized_expression) "(tcgetpgrp(STDIN_FILENO))" (() "(" (call_expression) "tcgetpgrp(STDIN_FILENO)" (identifier) "tcgetpgrp" (argument_list) "(STDIN_FILENO)" (() "(" (identifier) "STDIN_FILENO" ()) ")" ()) ")" ()) ")" (expression_statement) "restore_stdin();" (call_expression) "restore_stdin()" (identifier) "restore_stdin" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (opt.filelistfile)\n feh_write_filelist(filelist, opt.filelistfile);" (if) "if" (parenthesized_expression) "(opt.filelistfile)" (() "(" (field_expression) "opt.filelistfile" (identifier) "opt" (.) "." (field_identifier) "filelistfile" ()) ")" (expression_statement) "feh_write_filelist(filelist, opt.filelistfile);" (call_expression) "feh_write_filelist(filelist, opt.filelistfile)" (identifier) "feh_write_filelist" (argument_list) "(filelist, opt.filelistfile)" (() "(" (identifier) "filelist" (,) "," (field_expression) "opt.filelistfile" (identifier) "opt" (.) "." (field_identifier) "filelistfile" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}"
1,839
12
{"language": "c", "success": true, "metadata": {"lines": 246, "avg_line_length": 30.59, "nodes": 1047, "errors": 0, "source_hash": "116cccec02734f3de910c241299c8e33f00a6f29030aa51bcad3489dec33d01e", "categorized_nodes": 777}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"feh.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"feh.h\"", "parent": 0, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include \"filelist.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"filelist.h\"", "parent": 3, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"winwidget.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"winwidget.h\"", "parent": 6, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"timers.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"timers.h\"", "parent": 9, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"options.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"options.h\"", "parent": 12, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include \"events.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"events.h\"", "parent": 15, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include \"signals.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"signals.h\"", "parent": 18, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include \"wallpaper.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"wallpaper.h\"", "parent": 21, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include <termios.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<termios.h>", "parent": 24, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 20}}, {"id": 27, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n#include <sys/inotify.h>\n#endif", "parent": null, "children": [28, 29, 30, 33], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 28, "type": "#ifdef", "text": "#ifdef", "parent": 27, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 29, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 27, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 19}}, {"id": 30, "type": "preproc_include", "text": "#include <sys/inotify.h>\n", "parent": 27, "children": [31, 32], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<sys/inotify.h>", "parent": 30, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 24}}, {"id": 33, "type": "#endif", "text": "#endif", "parent": 27, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 34, "type": "declaration", "text": "char **cmdargv = NULL;", "parent": null, "children": [35, 36], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 22}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 34, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 36, "type": "init_declarator", "text": "**cmdargv = NULL", "parent": 34, "children": [37, 42, 43], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 21}}, {"id": 37, "type": "pointer_declarator", "text": "**cmdargv", "parent": 36, "children": [38, 39], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 14}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 6}}, {"id": 39, "type": "pointer_declarator", "text": "*cmdargv", "parent": 37, "children": [40, 41], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 14}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 7}}, {"id": 41, "type": "identifier", "text": "cmdargv", "parent": 39, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 14}}, {"id": 42, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 16}}, {"id": 43, "type": "null", "text": "NULL", "parent": 36, "children": [44], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 21}}, {"id": 44, "type": "NULL", "text": "NULL", "parent": 43, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 21}}, {"id": 45, "type": "declaration", "text": "int cmdargc = 0;", "parent": null, "children": [46, 47], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 16}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 3}}, {"id": 47, "type": "init_declarator", "text": "cmdargc = 0", "parent": 45, "children": [48, 49, 50], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 15}}, {"id": 48, "type": "identifier", "text": "cmdargc", "parent": 47, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 50, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 51, "type": "declaration", "text": "char *mode = NULL;", "parent": null, "children": [52, 53], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 18}}, {"id": 52, "type": "primitive_type", "text": "char", "parent": 51, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 53, "type": "init_declarator", "text": "*mode = NULL", "parent": 51, "children": [54, 57, 58], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 17}}, {"id": 54, "type": "pointer_declarator", "text": "*mode", "parent": 53, "children": [55, 56], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 10}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 6}}, {"id": 56, "type": "identifier", "text": "mode", "parent": 54, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 10}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 12}}, {"id": 58, "type": "null", "text": "NULL", "parent": 53, "children": [59], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 17}}, {"id": 59, "type": "NULL", "text": "NULL", "parent": 58, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 17}}, {"id": 60, "type": "function_definition", "text": "int main(int argc, char **argv)\n{\n\tatexit(feh_clean_exit);\n\n\tsrandom(getpid() * time(NULL) % ((unsigned int) -1));\n\n\tsetup_signal_handlers();\n\tinit_parse_options(argc, argv);\n\n\tinit_imlib_fonts();\n\n\tif (opt.display) {\n\t\tinit_x_and_imlib();\n\t\tinit_keyevents();\n\t\tinit_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }\n }\n#endif\n\t}\n\n\tfeh_event_init();\n\n\tif (opt.index)\n\t\tinit_index_mode();\n\telse if (opt.multiwindow)\n\t\tinit_multiwindow_mode();\n\telse if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}\n\n\t/* main event loop */\n\twhile (feh_main_iteration(1));\n\n\treturn(sig_exit);\n}", "parent": null, "children": [61, 62], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 3}}, {"id": 62, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 60, "children": [63, 64], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 31}}, {"id": 63, "type": "identifier", "text": "main", "parent": 62, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 64, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 62, "children": [65, 68], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 31}}, {"id": 65, "type": "parameter_declaration", "text": "int argc", "parent": 64, "children": [66, 67], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 17}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 12}}, {"id": 67, "type": "identifier", "text": "argc", "parent": 65, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 17}}, {"id": 68, "type": "parameter_declaration", "text": "char **argv", "parent": 64, "children": [69, 70], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 30}}, {"id": 69, "type": "primitive_type", "text": "char", "parent": 68, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 23}}, {"id": 70, "type": "pointer_declarator", "text": "**argv", "parent": 68, "children": [71, 72], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 30}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 25}}, {"id": 72, "type": "pointer_declarator", "text": "*argv", "parent": 70, "children": [73, 74], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 30}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 26}}, {"id": 74, "type": "identifier", "text": "argv", "parent": 72, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 30}}, {"id": 75, "type": "call_expression", "text": "atexit(feh_clean_exit)", "parent": 60, "children": [76, 77], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 23}}, {"id": 76, "type": "identifier", "text": "atexit", "parent": 75, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 77, "type": "argument_list", "text": "(feh_clean_exit)", "parent": 75, "children": [78], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 23}}, {"id": 78, "type": "identifier", "text": "feh_clean_exit", "parent": 77, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 22}}, {"id": 79, "type": "call_expression", "text": "srandom(getpid() * time(NULL) % ((unsigned int) -1))", "parent": 60, "children": [80, 81], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 53}}, {"id": 80, "type": "identifier", "text": "srandom", "parent": 79, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 81, "type": "argument_list", "text": "(getpid() * time(NULL) % ((unsigned int) -1))", "parent": 79, "children": [82], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 53}}, {"id": 82, "type": "binary_expression", "text": "getpid() * time(NULL) % ((unsigned int) -1)", "parent": 81, "children": [83, 93, 94], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 52}}, {"id": 83, "type": "binary_expression", "text": "getpid() * time(NULL)", "parent": 82, "children": [84, 87, 88], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 30}}, {"id": 84, "type": "call_expression", "text": "getpid()", "parent": 83, "children": [85, 86], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 17}}, {"id": 85, "type": "identifier", "text": "getpid", "parent": 84, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 15}}, {"id": 86, "type": "argument_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 17}}, {"id": 87, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 88, "type": "call_expression", "text": "time(NULL)", "parent": 83, "children": [89, 90], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 30}}, {"id": 89, "type": "identifier", "text": "time", "parent": 88, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 24}}, {"id": 90, "type": "argument_list", "text": "(NULL)", "parent": 88, "children": [91], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 30}}, {"id": 91, "type": "null", "text": "NULL", "parent": 90, "children": [92], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 29}}, {"id": 92, "type": "NULL", "text": "NULL", "parent": 91, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 29}}, {"id": 93, "type": "%", "text": "%", "parent": 82, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 32}}, {"id": 94, "type": "parenthesized_expression", "text": "((unsigned int) -1)", "parent": 82, "children": [95], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 52}}, {"id": 95, "type": "cast_expression", "text": "(unsigned int) -1", "parent": 94, "children": [96, 100], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 51}}, {"id": 96, "type": "type_descriptor", "text": "unsigned int", "parent": 95, "children": [97], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 47}}, {"id": 97, "type": "sized_type_specifier", "text": "unsigned int", "parent": 96, "children": [98, 99], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 47}}, {"id": 98, "type": "unsigned", "text": "unsigned", "parent": 97, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 43}}, {"id": 99, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 47}}, {"id": 100, "type": "number_literal", "text": "-1", "parent": 95, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 51}}, {"id": 101, "type": "call_expression", "text": "setup_signal_handlers()", "parent": 60, "children": [102, 103], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 24}}, {"id": 102, "type": "identifier", "text": "setup_signal_handlers", "parent": 101, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 22}}, {"id": 103, "type": "argument_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 24}}, {"id": 104, "type": "call_expression", "text": "init_parse_options(argc, argv)", "parent": 60, "children": [105, 106], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 31}}, {"id": 105, "type": "identifier", "text": "init_parse_options", "parent": 104, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 19}}, {"id": 106, "type": "argument_list", "text": "(argc, argv)", "parent": 104, "children": [107, 108], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 31}}, {"id": 107, "type": "identifier", "text": "argc", "parent": 106, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 24}}, {"id": 108, "type": "identifier", "text": "argv", "parent": 106, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 30}}, {"id": 109, "type": "call_expression", "text": "init_imlib_fonts()", "parent": 60, "children": [110, 111], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 19}}, {"id": 110, "type": "identifier", "text": "init_imlib_fonts", "parent": 109, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 17}}, {"id": 111, "type": "argument_list", "text": "()", "parent": 109, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 19}}, {"id": 112, "type": "if_statement", "text": "if (opt.display) {\n\t\tinit_x_and_imlib();\n\t\tinit_keyevents();\n\t\tinit_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }\n }\n#endif\n\t}", "parent": 60, "children": [113], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 69, "column": 2}}, {"id": 113, "type": "parenthesized_expression", "text": "(opt.display)", "parent": 112, "children": [114], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 17}}, {"id": 114, "type": "field_expression", "text": "opt.display", "parent": 113, "children": [115, 116], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 16}}, {"id": 115, "type": "identifier", "text": "opt", "parent": 114, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 8}}, {"id": 116, "type": "field_identifier", "text": "display", "parent": 114, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 16}}, {"id": 117, "type": "call_expression", "text": "init_x_and_imlib()", "parent": 112, "children": [118, 119], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 20}}, {"id": 118, "type": "identifier", "text": "init_x_and_imlib", "parent": 117, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 18}}, {"id": 119, "type": "argument_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 20}}, {"id": 120, "type": "call_expression", "text": "init_keyevents()", "parent": 112, "children": [121, 122], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 18}}, {"id": 121, "type": "identifier", "text": "init_keyevents", "parent": 120, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 16}}, {"id": 122, "type": "argument_list", "text": "()", "parent": 120, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 18}}, {"id": 123, "type": "call_expression", "text": "init_buttonbindings()", "parent": 112, "children": [124, 125], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 23}}, {"id": 124, "type": "identifier", "text": "init_buttonbindings", "parent": 123, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 21}}, {"id": 125, "type": "argument_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 23}}, {"id": 126, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }\n }\n#endif", "parent": 112, "children": [127, 128, 129, 164], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 127, "type": "#ifdef", "text": "#ifdef", "parent": 126, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 128, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 126, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 19}}, {"id": 129, "type": "if_statement", "text": "if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }\n }", "parent": 126, "children": [130], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 130, "type": "parenthesized_expression", "text": "(opt.auto_reload)", "parent": 129, "children": [131], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 28}}, {"id": 131, "type": "field_expression", "text": "opt.auto_reload", "parent": 130, "children": [132, 133], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 27}}, {"id": 132, "type": "identifier", "text": "opt", "parent": 131, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 15}}, {"id": 133, "type": "field_identifier", "text": "auto_reload", "parent": 131, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 27}}, {"id": 134, "type": "assignment_expression", "text": "opt.inotify_fd = inotify_init()", "parent": 129, "children": [135, 138, 139], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 43}}, {"id": 135, "type": "field_expression", "text": "opt.inotify_fd", "parent": 134, "children": [136, 137], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 26}}, {"id": 136, "type": "identifier", "text": "opt", "parent": 135, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 15}}, {"id": 137, "type": "field_identifier", "text": "inotify_fd", "parent": 135, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 26}}, {"id": 138, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 28}}, {"id": 139, "type": "call_expression", "text": "inotify_init()", "parent": 134, "children": [140, 141], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 43}}, {"id": 140, "type": "identifier", "text": "inotify_init", "parent": 139, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 41}}, {"id": 141, "type": "argument_list", "text": "()", "parent": 139, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 43}}, {"id": 142, "type": "if_statement", "text": "if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }", "parent": 129, "children": [143], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 143, "type": "parenthesized_expression", "text": "(opt.inotify_fd < 0)", "parent": 142, "children": [144], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 35}}, {"id": 144, "type": "binary_expression", "text": "opt.inotify_fd < 0", "parent": 143, "children": [145, 148, 149], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 34}}, {"id": 145, "type": "field_expression", "text": "opt.inotify_fd", "parent": 144, "children": [146, 147], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 30}}, {"id": 146, "type": "identifier", "text": "opt", "parent": 145, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 19}}, {"id": 147, "type": "field_identifier", "text": "inotify_fd", "parent": 145, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 30}}, {"id": 148, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 62, "column": 31}, "end_point": {"row": 62, "column": 32}}, {"id": 149, "type": "number_literal", "text": "0", "parent": 144, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 34}}, {"id": 150, "type": "assignment_expression", "text": "opt.auto_reload = 0", "parent": 142, "children": [151, 154, 155], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 35}}, {"id": 151, "type": "field_expression", "text": "opt.auto_reload", "parent": 150, "children": [152, 153], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 31}}, {"id": 152, "type": "identifier", "text": "opt", "parent": 151, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 19}}, {"id": 153, "type": "field_identifier", "text": "auto_reload", "parent": 151, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 31}}, {"id": 154, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 33}}, {"id": 155, "type": "number_literal", "text": "0", "parent": 150, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 35}}, {"id": 156, "type": "call_expression", "text": "weprintf(\"inotify_init failed:\")", "parent": 142, "children": [157, 158], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 48}}, {"id": 157, "type": "identifier", "text": "weprintf", "parent": 156, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 24}}, {"id": 158, "type": "argument_list", "text": "(\"inotify_init failed:\")", "parent": 156, "children": [159], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 48}}, {"id": 159, "type": "string_literal", "text": "\"inotify_init failed:\"", "parent": 158, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 47}}, {"id": 160, "type": "call_expression", "text": "weprintf(\"Disabling inotify-based auto-reload\")", "parent": 142, "children": [161, 162], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 63}}, {"id": 161, "type": "identifier", "text": "weprintf", "parent": 160, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 24}}, {"id": 162, "type": "argument_list", "text": "(\"Disabling inotify-based auto-reload\")", "parent": 160, "children": [163], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 63}}, {"id": 163, "type": "string_literal", "text": "\"Disabling inotify-based auto-reload\"", "parent": 162, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 62}}, {"id": 164, "type": "#endif", "text": "#endif", "parent": 126, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 165, "type": "call_expression", "text": "feh_event_init()", "parent": 60, "children": [166, 167], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 17}}, {"id": 166, "type": "identifier", "text": "feh_event_init", "parent": 165, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 15}}, {"id": 167, "type": "argument_list", "text": "()", "parent": 165, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 17}}, {"id": 168, "type": "if_statement", "text": "if (opt.index)\n\t\tinit_index_mode();\n\telse if (opt.multiwindow)\n\t\tinit_multiwindow_mode();\n\telse if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 60, "children": [169, 176], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 169, "type": "parenthesized_expression", "text": "(opt.index)", "parent": 168, "children": [170], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 15}}, {"id": 170, "type": "field_expression", "text": "opt.index", "parent": 169, "children": [171, 172], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 14}}, {"id": 171, "type": "identifier", "text": "opt", "parent": 170, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 8}}, {"id": 172, "type": "field_identifier", "text": "index", "parent": 170, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 14}}, {"id": 173, "type": "call_expression", "text": "init_index_mode()", "parent": 168, "children": [174, 175], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 19}}, {"id": 174, "type": "identifier", "text": "init_index_mode", "parent": 173, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 17}}, {"id": 175, "type": "argument_list", "text": "()", "parent": 173, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 19}}, {"id": 176, "type": "else_clause", "text": "else if (opt.multiwindow)\n\t\tinit_multiwindow_mode();\n\telse if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 168, "children": [177], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 177, "type": "if_statement", "text": "if (opt.multiwindow)\n\t\tinit_multiwindow_mode();\n\telse if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 176, "children": [178, 185], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 178, "type": "parenthesized_expression", "text": "(opt.multiwindow)", "parent": 177, "children": [179], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 26}}, {"id": 179, "type": "field_expression", "text": "opt.multiwindow", "parent": 178, "children": [180, 181], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 25}}, {"id": 180, "type": "identifier", "text": "opt", "parent": 179, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 13}}, {"id": 181, "type": "field_identifier", "text": "multiwindow", "parent": 179, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 25}}, {"id": 182, "type": "call_expression", "text": "init_multiwindow_mode()", "parent": 177, "children": [183, 184], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 25}}, {"id": 183, "type": "identifier", "text": "init_multiwindow_mode", "parent": 182, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 23}}, {"id": 184, "type": "argument_list", "text": "()", "parent": 182, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 25}}, {"id": 185, "type": "else_clause", "text": "else if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 177, "children": [186], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 186, "type": "if_statement", "text": "if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 185, "children": [187, 199], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 187, "type": "parenthesized_expression", "text": "(opt.list || opt.customlist)", "parent": 186, "children": [188], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 37}}, {"id": 188, "type": "binary_expression", "text": "opt.list || opt.customlist", "parent": 187, "children": [189, 192, 193], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 36}}, {"id": 189, "type": "field_expression", "text": "opt.list", "parent": 188, "children": [190, 191], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 18}}, {"id": 190, "type": "identifier", "text": "opt", "parent": 189, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 13}}, {"id": 191, "type": "field_identifier", "text": "list", "parent": 189, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 18}}, {"id": 192, "type": "||", "text": "||", "parent": 188, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 21}}, {"id": 193, "type": "field_expression", "text": "opt.customlist", "parent": 188, "children": [194, 195], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 36}}, {"id": 194, "type": "identifier", "text": "opt", "parent": 193, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 25}}, {"id": 195, "type": "field_identifier", "text": "customlist", "parent": 193, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 36}}, {"id": 196, "type": "call_expression", "text": "init_list_mode()", "parent": 186, "children": [197, 198], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 18}}, {"id": 197, "type": "identifier", "text": "init_list_mode", "parent": 196, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 16}}, {"id": 198, "type": "argument_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 18}}, {"id": 199, "type": "else_clause", "text": "else if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 186, "children": [200], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 200, "type": "if_statement", "text": "if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 199, "children": [201, 208], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 201, "type": "parenthesized_expression", "text": "(opt.loadables)", "parent": 200, "children": [202], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 24}}, {"id": 202, "type": "field_expression", "text": "opt.loadables", "parent": 201, "children": [203, 204], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 23}}, {"id": 203, "type": "identifier", "text": "opt", "parent": 202, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 13}}, {"id": 204, "type": "field_identifier", "text": "loadables", "parent": 202, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 23}}, {"id": 205, "type": "call_expression", "text": "init_loadables_mode()", "parent": 200, "children": [206, 207], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 23}}, {"id": 206, "type": "identifier", "text": "init_loadables_mode", "parent": 205, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 21}}, {"id": 207, "type": "argument_list", "text": "()", "parent": 205, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 23}}, {"id": 208, "type": "else_clause", "text": "else if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 200, "children": [209], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 209, "type": "if_statement", "text": "if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 208, "children": [210, 217], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 210, "type": "parenthesized_expression", "text": "(opt.unloadables)", "parent": 209, "children": [211], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 26}}, {"id": 211, "type": "field_expression", "text": "opt.unloadables", "parent": 210, "children": [212, 213], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 25}}, {"id": 212, "type": "identifier", "text": "opt", "parent": 211, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 13}}, {"id": 213, "type": "field_identifier", "text": "unloadables", "parent": 211, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 25}}, {"id": 214, "type": "call_expression", "text": "init_unloadables_mode()", "parent": 209, "children": [215, 216], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 25}}, {"id": 215, "type": "identifier", "text": "init_unloadables_mode", "parent": 214, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 23}}, {"id": 216, "type": "argument_list", "text": "()", "parent": 214, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 25}}, {"id": 217, "type": "else_clause", "text": "else if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 209, "children": [218], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 218, "type": "if_statement", "text": "if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 217, "children": [219, 226], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 219, "type": "parenthesized_expression", "text": "(opt.thumbs)", "parent": 218, "children": [220], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 21}}, {"id": 220, "type": "field_expression", "text": "opt.thumbs", "parent": 219, "children": [221, 222], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 20}}, {"id": 221, "type": "identifier", "text": "opt", "parent": 220, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 13}}, {"id": 222, "type": "field_identifier", "text": "thumbs", "parent": 220, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 20}}, {"id": 223, "type": "call_expression", "text": "init_thumbnail_mode()", "parent": 218, "children": [224, 225], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 23}}, {"id": 224, "type": "identifier", "text": "init_thumbnail_mode", "parent": 223, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 21}}, {"id": 225, "type": "argument_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 23}}, {"id": 226, "type": "else_clause", "text": "else if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 218, "children": [227], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 227, "type": "if_statement", "text": "if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 226, "children": [228, 242], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 228, "type": "parenthesized_expression", "text": "(opt.bgmode)", "parent": 227, "children": [229], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 21}}, {"id": 229, "type": "field_expression", "text": "opt.bgmode", "parent": 228, "children": [230, 231], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 20}}, {"id": 230, "type": "identifier", "text": "opt", "parent": 229, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 13}}, {"id": 231, "type": "field_identifier", "text": "bgmode", "parent": 229, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 20}}, {"id": 232, "type": "call_expression", "text": "feh_wm_set_bg_filelist(opt.bgmode)", "parent": 227, "children": [233, 234], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 36}}, {"id": 233, "type": "identifier", "text": "feh_wm_set_bg_filelist", "parent": 232, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 24}}, {"id": 234, "type": "argument_list", "text": "(opt.bgmode)", "parent": 232, "children": [235], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 36}}, {"id": 235, "type": "field_expression", "text": "opt.bgmode", "parent": 234, "children": [236, 237], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 35}}, {"id": 236, "type": "identifier", "text": "opt", "parent": 235, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 28}}, {"id": 237, "type": "field_identifier", "text": "bgmode", "parent": 235, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 35}}, {"id": 238, "type": "call_expression", "text": "exit(0)", "parent": 227, "children": [239, 240], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 239, "type": "identifier", "text": "exit", "parent": 238, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 6}}, {"id": 240, "type": "argument_list", "text": "(0)", "parent": 238, "children": [241], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 9}}, {"id": 241, "type": "number_literal", "text": "0", "parent": 240, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 242, "type": "else_clause", "text": "else if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 227, "children": [243], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 243, "type": "if_statement", "text": "if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 242, "children": [244, 257], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 96, "column": 2}}, {"id": 244, "type": "parenthesized_expression", "text": "(opt.display)", "parent": 243, "children": [245], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 22}}, {"id": 245, "type": "field_expression", "text": "opt.display", "parent": 244, "children": [246, 247], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 21}}, {"id": 246, "type": "identifier", "text": "opt", "parent": 245, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 13}}, {"id": 247, "type": "field_identifier", "text": "display", "parent": 245, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 21}}, {"id": 248, "type": "assignment_expression", "text": "opt.slideshow = 1", "parent": 243, "children": [249, 252, 253], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 19}}, {"id": 249, "type": "field_expression", "text": "opt.slideshow", "parent": 248, "children": [250, 251], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 15}}, {"id": 250, "type": "identifier", "text": "opt", "parent": 249, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 5}}, {"id": 251, "type": "field_identifier", "text": "slideshow", "parent": 249, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 15}}, {"id": 252, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 17}}, {"id": 253, "type": "number_literal", "text": "1", "parent": 248, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 19}}, {"id": 254, "type": "call_expression", "text": "init_slideshow_mode()", "parent": 243, "children": [255, 256], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 23}}, {"id": 255, "type": "identifier", "text": "init_slideshow_mode", "parent": 254, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 21}}, {"id": 256, "type": "argument_list", "text": "()", "parent": 254, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 23}}, {"id": 257, "type": "else_clause", "text": "else {\n\t\teprintf(\"Invalid option combination\");\n\t}", "parent": 243, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 258, "type": "call_expression", "text": "eprintf(\"Invalid option combination\")", "parent": 257, "children": [259, 260], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 39}}, {"id": 259, "type": "identifier", "text": "eprintf", "parent": 258, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 9}}, {"id": 260, "type": "argument_list", "text": "(\"Invalid option combination\")", "parent": 258, "children": [261], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 39}}, {"id": 261, "type": "string_literal", "text": "\"Invalid option combination\"", "parent": 260, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 38}}, {"id": 262, "type": "while_statement", "text": "while (feh_main_iteration(1));", "parent": 60, "children": [263], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 31}}, {"id": 263, "type": "parenthesized_expression", "text": "(feh_main_iteration(1))", "parent": 262, "children": [264], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 30}}, {"id": 264, "type": "call_expression", "text": "feh_main_iteration(1)", "parent": 263, "children": [265, 266], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 29}}, {"id": 265, "type": "identifier", "text": "feh_main_iteration", "parent": 264, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 26}}, {"id": 266, "type": "argument_list", "text": "(1)", "parent": 264, "children": [267], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 29}}, {"id": 267, "type": "number_literal", "text": "1", "parent": 266, "children": [], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 28}}, {"id": 268, "type": "return_statement", "text": "return(sig_exit);", "parent": 60, "children": [269], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 18}}, {"id": 269, "type": "parenthesized_expression", "text": "(sig_exit)", "parent": 268, "children": [270], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 17}}, {"id": 270, "type": "identifier", "text": "sig_exit", "parent": 269, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 16}}, {"id": 271, "type": "function_definition", "text": "int feh_main_iteration(int block)\n{\n\tstatic int first = 1;\n\tstatic int xfd = 0;\n\tstatic int fdsize = 0;\n\tstatic double pt = 0.0;\n\tXEvent ev;\n\tstruct timeval tval;\n\tfd_set fdset;\n\tint count = 0;\n\tdouble t1 = 0.0, t2 = 0.0;\n\tfehtimer ft;\n\n\tif (window_num == 0 || sig_exit != 0)\n\t\treturn(0);\n\n\tif (first) {\n\t\t/* Only need to set these up the first time */\n\t\txfd = ConnectionNumber(disp);\n\t\tfdsize = xfd + 1;\n\t\tpt = feh_get_time();\n\t\tfirst = 0;\n\t\t/*\n\t\t * Only accept commands from stdin if\n\t\t * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n\t\t * - we aren't running in multiwindow mode (cause it's not clear which\n\t\t * window commands should be applied to in that case)\n\t\t * - we're in the same process group as stdin, AKA we're not running\n\t\t * in the background. Background processes are stopped with SIGTTOU\n\t\t * if they try to write to stdout or change terminal attributes. They\n\t\t * also don't get input from stdin anyway.\n\t\t */\n\t\tif (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n\t\t\tsetup_stdin();\n\t\t}\n\t}\n\n\t/* Timers */\n\tt1 = feh_get_time();\n\tt2 = t1 - pt;\n\tpt = t1;\n\twhile (XPending(disp)) {\n\t\tXNextEvent(disp, &ev);\n\t\tif (ev_handler[ev.type])\n\t\t\t(*(ev_handler[ev.type])) (&ev);\n\n\t\tif (window_num == 0 || sig_exit != 0)\n\t\t\treturn(0);\n\t}\n\tXFlush(disp);\n\n\tfeh_redraw_menus();\n\n\tFD_ZERO(&fdset);\n\tFD_SET(xfd, &fdset);\n\tif (control_via_stdin) {\n\t\tFD_SET(STDIN_FILENO, &fdset);\n\t}\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif\n\n\t/* Timers */\n\tft = first_timer;\n\t/* Don't do timers if we're zooming/panning/etc or if we are paused */\n\tif (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n\t\tD((\"There are timers in the queue\\n\"));\n\t\tif (ft->just_added) {\n\t\t\tD((\"The first timer has just been added\\n\"));\n\t\t\tD((\"ft->in = %f\\n\", ft->in));\n\t\t\tft->just_added = 0;\n\t\t\tt1 = ft->in;\n\t\t} else {\n\t\t\tD((\"The first timer was not just added\\n\"));\n\t\t\tt1 = ft->in - t2;\n\t\t\tif (t1 < 0.0)\n\t\t\t\tt1 = 0.0;\n\t\t\tft->in = t1;\n\t\t}\n\n\t\tXSync(disp, False);\n\t\tD((\"I next need to action a timer in %f seconds\\n\", t1));\n\t\t/* Only do a blocking select if there's a timer due, or no events\n\t\t waiting */\n\t\tif (t1 == 0.0 || (block && !XPending(disp))) {\n\t\t\ttval.tv_sec = (long) t1;\n\t\t\ttval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n\t\t\tif (tval.tv_sec < 0)\n\t\t\t\ttval.tv_sec = 0;\n\t\t\tif (tval.tv_usec <= 1000)\n\t\t\t\ttval.tv_usec = 1000;\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - waiting for timer or event\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, &tval);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\tif (count == 0) {\n\t\t\t\t/* This means the timer is due to be executed. If count was > 0,\n\t\t\t\t that would mean an X event had woken us, we're not interested\n\t\t\t\t in that */\n\t\t\t\tfeh_handle_timer();\n\t\t\t}\n\t\t\t/*\n\t\t\t * Beware: If stdin is not connected, we may end up with xfd == 0.\n\t\t\t * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n\t\t\t * check control_via_stdin to avoid mistaking an X11 event for stdin.\n\t\t\t */\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t} else {\n\t\t/* Don't block if there are events in the queue. That's a bit rude ;-) */\n\t\tif (block && !XPending(disp)) {\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - no timers, or zooming\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, NULL);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t}\n\tif (window_num == 0 || sig_exit != 0)\n\t\treturn(0);\n\n\treturn(1);\n}", "parent": null, "children": [272, 273], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 247, "column": 1}}, {"id": 272, "type": "primitive_type", "text": "int", "parent": 271, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 3}}, {"id": 273, "type": "function_declarator", "text": "feh_main_iteration(int block)", "parent": 271, "children": [274, 275], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 33}}, {"id": 274, "type": "identifier", "text": "feh_main_iteration", "parent": 273, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 22}}, {"id": 275, "type": "parameter_list", "text": "(int block)", "parent": 273, "children": [276], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 33}}, {"id": 276, "type": "parameter_declaration", "text": "int block", "parent": 275, "children": [277, 278], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 32}}, {"id": 277, "type": "primitive_type", "text": "int", "parent": 276, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 26}}, {"id": 278, "type": "identifier", "text": "block", "parent": 276, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 32}}, {"id": 279, "type": "declaration", "text": "static int first = 1;", "parent": 271, "children": [280, 281], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 22}}, {"id": 280, "type": "primitive_type", "text": "int", "parent": 279, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 11}}, {"id": 281, "type": "init_declarator", "text": "first = 1", "parent": 279, "children": [282, 283, 284], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 21}}, {"id": 282, "type": "identifier", "text": "first", "parent": 281, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 17}}, {"id": 283, "type": "=", "text": "=", "parent": 281, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 284, "type": "number_literal", "text": "1", "parent": 281, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 21}}, {"id": 285, "type": "declaration", "text": "static int xfd = 0;", "parent": 271, "children": [286, 287], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 20}}, {"id": 286, "type": "primitive_type", "text": "int", "parent": 285, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 11}}, {"id": 287, "type": "init_declarator", "text": "xfd = 0", "parent": 285, "children": [288, 289, 290], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 19}}, {"id": 288, "type": "identifier", "text": "xfd", "parent": 287, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 15}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 17}}, {"id": 290, "type": "number_literal", "text": "0", "parent": 287, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 19}}, {"id": 291, "type": "declaration", "text": "static int fdsize = 0;", "parent": 271, "children": [292, 293], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 23}}, {"id": 292, "type": "primitive_type", "text": "int", "parent": 291, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 11}}, {"id": 293, "type": "init_declarator", "text": "fdsize = 0", "parent": 291, "children": [294, 295, 296], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 22}}, {"id": 294, "type": "identifier", "text": "fdsize", "parent": 293, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 18}}, {"id": 295, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 20}}, {"id": 296, "type": "number_literal", "text": "0", "parent": 293, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 22}}, {"id": 297, "type": "declaration", "text": "static double pt = 0.0;", "parent": 271, "children": [298, 299], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 24}}, {"id": 298, "type": "primitive_type", "text": "double", "parent": 297, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 14}}, {"id": 299, "type": "init_declarator", "text": "pt = 0.0", "parent": 297, "children": [300, 301, 302], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 23}}, {"id": 300, "type": "identifier", "text": "pt", "parent": 299, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 17}}, {"id": 301, "type": "=", "text": "=", "parent": 299, "children": [], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 19}}, {"id": 302, "type": "number_literal", "text": "0.0", "parent": 299, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 23}}, {"id": 303, "type": "declaration", "text": "XEvent ev;", "parent": 271, "children": [304, 305], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 11}}, {"id": 304, "type": "type_identifier", "text": "XEvent", "parent": 303, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 7}}, {"id": 305, "type": "identifier", "text": "ev", "parent": 303, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 10}}, {"id": 306, "type": "declaration", "text": "struct timeval tval;", "parent": 271, "children": [307, 310], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 21}}, {"id": 307, "type": "struct_specifier", "text": "struct timeval", "parent": 306, "children": [308, 309], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 15}}, {"id": 308, "type": "struct", "text": "struct", "parent": 307, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 7}}, {"id": 309, "type": "type_identifier", "text": "timeval", "parent": 307, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 15}}, {"id": 310, "type": "identifier", "text": "tval", "parent": 306, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 20}}, {"id": 311, "type": "declaration", "text": "fd_set fdset;", "parent": 271, "children": [312, 313], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 14}}, {"id": 312, "type": "type_identifier", "text": "fd_set", "parent": 311, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 7}}, {"id": 313, "type": "identifier", "text": "fdset", "parent": 311, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 13}}, {"id": 314, "type": "declaration", "text": "int count = 0;", "parent": 271, "children": [315, 316], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 15}}, {"id": 315, "type": "primitive_type", "text": "int", "parent": 314, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 4}}, {"id": 316, "type": "init_declarator", "text": "count = 0", "parent": 314, "children": [317, 318, 319], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 14}}, {"id": 317, "type": "identifier", "text": "count", "parent": 316, "children": [], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 10}}, {"id": 318, "type": "=", "text": "=", "parent": 316, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 12}}, {"id": 319, "type": "number_literal", "text": "0", "parent": 316, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 14}}, {"id": 320, "type": "declaration", "text": "double t1 = 0.0, t2 = 0.0;", "parent": 271, "children": [321, 322, 326], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 27}}, {"id": 321, "type": "primitive_type", "text": "double", "parent": 320, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 7}}, {"id": 322, "type": "init_declarator", "text": "t1 = 0.0", "parent": 320, "children": [323, 324, 325], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 16}}, {"id": 323, "type": "identifier", "text": "t1", "parent": 322, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 10}}, {"id": 324, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 12}}, {"id": 325, "type": "number_literal", "text": "0.0", "parent": 322, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 16}}, {"id": 326, "type": "init_declarator", "text": "t2 = 0.0", "parent": 320, "children": [327, 328, 329], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 26}}, {"id": 327, "type": "identifier", "text": "t2", "parent": 326, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 20}}, {"id": 328, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 22}}, {"id": 329, "type": "number_literal", "text": "0.0", "parent": 326, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 26}}, {"id": 330, "type": "declaration", "text": "fehtimer ft;", "parent": 271, "children": [331, 332], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 13}}, {"id": 331, "type": "type_identifier", "text": "fehtimer", "parent": 330, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 9}}, {"id": 332, "type": "identifier", "text": "ft", "parent": 330, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 12}}, {"id": 333, "type": "if_statement", "text": "if (window_num == 0 || sig_exit != 0)\n\t\treturn(0);", "parent": 271, "children": [334, 345], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 119, "column": 12}}, {"id": 334, "type": "parenthesized_expression", "text": "(window_num == 0 || sig_exit != 0)", "parent": 333, "children": [335], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 38}}, {"id": 335, "type": "binary_expression", "text": "window_num == 0 || sig_exit != 0", "parent": 334, "children": [336, 340, 341], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 37}}, {"id": 336, "type": "binary_expression", "text": "window_num == 0", "parent": 335, "children": [337, 338, 339], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 20}}, {"id": 337, "type": "identifier", "text": "window_num", "parent": 336, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 15}}, {"id": 338, "type": "==", "text": "==", "parent": 336, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 18}}, {"id": 339, "type": "number_literal", "text": "0", "parent": 336, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 20}}, {"id": 340, "type": "||", "text": "||", "parent": 335, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 23}}, {"id": 341, "type": "binary_expression", "text": "sig_exit != 0", "parent": 335, "children": [342, 343, 344], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 37}}, {"id": 342, "type": "identifier", "text": "sig_exit", "parent": 341, "children": [], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 32}}, {"id": 343, "type": "!=", "text": "!=", "parent": 341, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 35}}, {"id": 344, "type": "number_literal", "text": "0", "parent": 341, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 37}}, {"id": 345, "type": "return_statement", "text": "return(0);", "parent": 333, "children": [346], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 12}}, {"id": 346, "type": "parenthesized_expression", "text": "(0)", "parent": 345, "children": [347], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 11}}, {"id": 347, "type": "number_literal", "text": "0", "parent": 346, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 348, "type": "if_statement", "text": "if (first) {\n\t\t/* Only need to set these up the first time */\n\t\txfd = ConnectionNumber(disp);\n\t\tfdsize = xfd + 1;\n\t\tpt = feh_get_time();\n\t\tfirst = 0;\n\t\t/*\n\t\t * Only accept commands from stdin if\n\t\t * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n\t\t * - we aren't running in multiwindow mode (cause it's not clear which\n\t\t * window commands should be applied to in that case)\n\t\t * - we're in the same process group as stdin, AKA we're not running\n\t\t * in the background. Background processes are stopped with SIGTTOU\n\t\t * if they try to write to stdout or change terminal attributes. They\n\t\t * also don't get input from stdin anyway.\n\t\t */\n\t\tif (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n\t\t\tsetup_stdin();\n\t\t}\n\t}", "parent": 271, "children": [349], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 140, "column": 2}}, {"id": 349, "type": "parenthesized_expression", "text": "(first)", "parent": 348, "children": [350], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 11}}, {"id": 350, "type": "identifier", "text": "first", "parent": 349, "children": [], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 10}}, {"id": 351, "type": "assignment_expression", "text": "xfd = ConnectionNumber(disp)", "parent": 348, "children": [352, 353, 354], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 30}}, {"id": 352, "type": "identifier", "text": "xfd", "parent": 351, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 5}}, {"id": 353, "type": "=", "text": "=", "parent": 351, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 7}}, {"id": 354, "type": "call_expression", "text": "ConnectionNumber(disp)", "parent": 351, "children": [355, 356], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 30}}, {"id": 355, "type": "identifier", "text": "ConnectionNumber", "parent": 354, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 24}}, {"id": 356, "type": "argument_list", "text": "(disp)", "parent": 354, "children": [357], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 30}}, {"id": 357, "type": "identifier", "text": "disp", "parent": 356, "children": [], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 29}}, {"id": 358, "type": "assignment_expression", "text": "fdsize = xfd + 1", "parent": 348, "children": [359, 360, 361], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 18}}, {"id": 359, "type": "identifier", "text": "fdsize", "parent": 358, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 8}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 10}}, {"id": 361, "type": "binary_expression", "text": "xfd + 1", "parent": 358, "children": [362, 363, 364], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 18}}, {"id": 362, "type": "identifier", "text": "xfd", "parent": 361, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 14}}, {"id": 363, "type": "+", "text": "+", "parent": 361, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 16}}, {"id": 364, "type": "number_literal", "text": "1", "parent": 361, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 18}}, {"id": 365, "type": "assignment_expression", "text": "pt = feh_get_time()", "parent": 348, "children": [366, 367, 368], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 21}}, {"id": 366, "type": "identifier", "text": "pt", "parent": 365, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 4}}, {"id": 367, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 6}}, {"id": 368, "type": "call_expression", "text": "feh_get_time()", "parent": 365, "children": [369, 370], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 21}}, {"id": 369, "type": "identifier", "text": "feh_get_time", "parent": 368, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 19}}, {"id": 370, "type": "argument_list", "text": "()", "parent": 368, "children": [], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 21}}, {"id": 371, "type": "assignment_expression", "text": "first = 0", "parent": 348, "children": [372, 373, 374], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 11}}, {"id": 372, "type": "identifier", "text": "first", "parent": 371, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 7}}, {"id": 373, "type": "=", "text": "=", "parent": 371, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 9}}, {"id": 374, "type": "number_literal", "text": "0", "parent": 371, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 11}}, {"id": 375, "type": "if_statement", "text": "if (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n\t\t\tsetup_stdin();\n\t\t}", "parent": 348, "children": [376], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 139, "column": 3}}, {"id": 376, "type": "parenthesized_expression", "text": "(isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO)))", "parent": 375, "children": [377], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 89}}, {"id": 377, "type": "binary_expression", "text": "isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))", "parent": 376, "children": [378, 389, 390], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 88}}, {"id": 378, "type": "binary_expression", "text": "isatty(STDIN_FILENO) && !opt.multiwindow", "parent": 377, "children": [379, 383, 384], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 46}}, {"id": 379, "type": "call_expression", "text": "isatty(STDIN_FILENO)", "parent": 378, "children": [380, 381], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 26}}, {"id": 380, "type": "identifier", "text": "isatty", "parent": 379, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 12}}, {"id": 381, "type": "argument_list", "text": "(STDIN_FILENO)", "parent": 379, "children": [382], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 26}}, {"id": 382, "type": "identifier", "text": "STDIN_FILENO", "parent": 381, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 25}}, {"id": 383, "type": "&&", "text": "&&", "parent": 378, "children": [], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 29}}, {"id": 384, "type": "unary_expression", "text": "!opt.multiwindow", "parent": 378, "children": [385, 386], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 46}}, {"id": 385, "type": "!", "text": "!", "parent": 384, "children": [], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 31}}, {"id": 386, "type": "field_expression", "text": "opt.multiwindow", "parent": 384, "children": [387, 388], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 46}}, {"id": 387, "type": "identifier", "text": "opt", "parent": 386, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 34}}, {"id": 388, "type": "field_identifier", "text": "multiwindow", "parent": 386, "children": [], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 46}}, {"id": 389, "type": "&&", "text": "&&", "parent": 377, "children": [], "start_point": {"row": 137, "column": 47}, "end_point": {"row": 137, "column": 49}}, {"id": 390, "type": "binary_expression", "text": "getpgrp() == (tcgetpgrp(STDIN_FILENO))", "parent": 377, "children": [391, 394, 395], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 88}}, {"id": 391, "type": "call_expression", "text": "getpgrp()", "parent": 390, "children": [392, 393], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 59}}, {"id": 392, "type": "identifier", "text": "getpgrp", "parent": 391, "children": [], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 57}}, {"id": 393, "type": "argument_list", "text": "()", "parent": 391, "children": [], "start_point": {"row": 137, "column": 57}, "end_point": {"row": 137, "column": 59}}, {"id": 394, "type": "==", "text": "==", "parent": 390, "children": [], "start_point": {"row": 137, "column": 60}, "end_point": {"row": 137, "column": 62}}, {"id": 395, "type": "parenthesized_expression", "text": "(tcgetpgrp(STDIN_FILENO))", "parent": 390, "children": [396], "start_point": {"row": 137, "column": 63}, "end_point": {"row": 137, "column": 88}}, {"id": 396, "type": "call_expression", "text": "tcgetpgrp(STDIN_FILENO)", "parent": 395, "children": [397, 398], "start_point": {"row": 137, "column": 64}, "end_point": {"row": 137, "column": 87}}, {"id": 397, "type": "identifier", "text": "tcgetpgrp", "parent": 396, "children": [], "start_point": {"row": 137, "column": 64}, "end_point": {"row": 137, "column": 73}}, {"id": 398, "type": "argument_list", "text": "(STDIN_FILENO)", "parent": 396, "children": [399], "start_point": {"row": 137, "column": 73}, "end_point": {"row": 137, "column": 87}}, {"id": 399, "type": "identifier", "text": "STDIN_FILENO", "parent": 398, "children": [], "start_point": {"row": 137, "column": 74}, "end_point": {"row": 137, "column": 86}}, {"id": 400, "type": "call_expression", "text": "setup_stdin()", "parent": 375, "children": [401, 402], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 16}}, {"id": 401, "type": "identifier", "text": "setup_stdin", "parent": 400, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 14}}, {"id": 402, "type": "argument_list", "text": "()", "parent": 400, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 16}}, {"id": 403, "type": "assignment_expression", "text": "t1 = feh_get_time()", "parent": 271, "children": [404, 405, 406], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 20}}, {"id": 404, "type": "identifier", "text": "t1", "parent": 403, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 3}}, {"id": 405, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 5}}, {"id": 406, "type": "call_expression", "text": "feh_get_time()", "parent": 403, "children": [407, 408], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 20}}, {"id": 407, "type": "identifier", "text": "feh_get_time", "parent": 406, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 18}}, {"id": 408, "type": "argument_list", "text": "()", "parent": 406, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 20}}, {"id": 409, "type": "assignment_expression", "text": "t2 = t1 - pt", "parent": 271, "children": [410, 411, 412], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 13}}, {"id": 410, "type": "identifier", "text": "t2", "parent": 409, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 3}}, {"id": 411, "type": "=", "text": "=", "parent": 409, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 5}}, {"id": 412, "type": "binary_expression", "text": "t1 - pt", "parent": 409, "children": [413, 414, 415], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 13}}, {"id": 413, "type": "identifier", "text": "t1", "parent": 412, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 8}}, {"id": 414, "type": "-", "text": "-", "parent": 412, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 10}}, {"id": 415, "type": "identifier", "text": "pt", "parent": 412, "children": [], "start_point": {"row": 144, "column": 11}, "end_point": {"row": 144, "column": 13}}, {"id": 416, "type": "assignment_expression", "text": "pt = t1", "parent": 271, "children": [417, 418, 419], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 8}}, {"id": 417, "type": "identifier", "text": "pt", "parent": 416, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 3}}, {"id": 418, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 5}}, {"id": 419, "type": "identifier", "text": "t1", "parent": 416, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 8}}, {"id": 420, "type": "while_statement", "text": "while (XPending(disp)) {\n\t\tXNextEvent(disp, &ev);\n\t\tif (ev_handler[ev.type])\n\t\t\t(*(ev_handler[ev.type])) (&ev);\n\n\t\tif (window_num == 0 || sig_exit != 0)\n\t\t\treturn(0);\n\t}", "parent": 271, "children": [421], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 153, "column": 2}}, {"id": 421, "type": "parenthesized_expression", "text": "(XPending(disp))", "parent": 420, "children": [422], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 23}}, {"id": 422, "type": "call_expression", "text": "XPending(disp)", "parent": 421, "children": [423, 424], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 22}}, {"id": 423, "type": "identifier", "text": "XPending", "parent": 422, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 16}}, {"id": 424, "type": "argument_list", "text": "(disp)", "parent": 422, "children": [425], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 22}}, {"id": 425, "type": "identifier", "text": "disp", "parent": 424, "children": [], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 21}}, {"id": 426, "type": "call_expression", "text": "XNextEvent(disp, &ev)", "parent": 420, "children": [427, 428], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 23}}, {"id": 427, "type": "identifier", "text": "XNextEvent", "parent": 426, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 12}}, {"id": 428, "type": "argument_list", "text": "(disp, &ev)", "parent": 426, "children": [429, 430], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 23}}, {"id": 429, "type": "identifier", "text": "disp", "parent": 428, "children": [], "start_point": {"row": 147, "column": 13}, "end_point": {"row": 147, "column": 17}}, {"id": 430, "type": "pointer_expression", "text": "&ev", "parent": 428, "children": [431], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 22}}, {"id": 431, "type": "identifier", "text": "ev", "parent": 430, "children": [], "start_point": {"row": 147, "column": 20}, "end_point": {"row": 147, "column": 22}}, {"id": 432, "type": "if_statement", "text": "if (ev_handler[ev.type])\n\t\t\t(*(ev_handler[ev.type])) (&ev);", "parent": 420, "children": [433], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 149, "column": 34}}, {"id": 433, "type": "parenthesized_expression", "text": "(ev_handler[ev.type])", "parent": 432, "children": [434], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 26}}, {"id": 434, "type": "subscript_expression", "text": "ev_handler[ev.type]", "parent": 433, "children": [435, 436], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 25}}, {"id": 435, "type": "identifier", "text": "ev_handler", "parent": 434, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 16}}, {"id": 436, "type": "field_expression", "text": "ev.type", "parent": 434, "children": [437, 438], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 24}}, {"id": 437, "type": "identifier", "text": "ev", "parent": 436, "children": [], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 19}}, {"id": 438, "type": "field_identifier", "text": "type", "parent": 436, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 24}}, {"id": 439, "type": "call_expression", "text": "(*(ev_handler[ev.type])) (&ev)", "parent": 432, "children": [440, 449], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 33}}, {"id": 440, "type": "parenthesized_expression", "text": "(*(ev_handler[ev.type]))", "parent": 439, "children": [441], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 27}}, {"id": 441, "type": "pointer_expression", "text": "*(ev_handler[ev.type])", "parent": 440, "children": [442, 443], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 26}}, {"id": 442, "type": "*", "text": "*", "parent": 441, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 5}}, {"id": 443, "type": "parenthesized_expression", "text": "(ev_handler[ev.type])", "parent": 441, "children": [444], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 26}}, {"id": 444, "type": "subscript_expression", "text": "ev_handler[ev.type]", "parent": 443, "children": [445, 446], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 25}}, {"id": 445, "type": "identifier", "text": "ev_handler", "parent": 444, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 16}}, {"id": 446, "type": "field_expression", "text": "ev.type", "parent": 444, "children": [447, 448], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 24}}, {"id": 447, "type": "identifier", "text": "ev", "parent": 446, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 19}}, {"id": 448, "type": "field_identifier", "text": "type", "parent": 446, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 24}}, {"id": 449, "type": "argument_list", "text": "(&ev)", "parent": 439, "children": [450], "start_point": {"row": 149, "column": 28}, "end_point": {"row": 149, "column": 33}}, {"id": 450, "type": "pointer_expression", "text": "&ev", "parent": 449, "children": [451], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 32}}, {"id": 451, "type": "identifier", "text": "ev", "parent": 450, "children": [], "start_point": {"row": 149, "column": 30}, "end_point": {"row": 149, "column": 32}}, {"id": 452, "type": "if_statement", "text": "if (window_num == 0 || sig_exit != 0)\n\t\t\treturn(0);", "parent": 420, "children": [453, 464], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 152, "column": 13}}, {"id": 453, "type": "parenthesized_expression", "text": "(window_num == 0 || sig_exit != 0)", "parent": 452, "children": [454], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 39}}, {"id": 454, "type": "binary_expression", "text": "window_num == 0 || sig_exit != 0", "parent": 453, "children": [455, 459, 460], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 38}}, {"id": 455, "type": "binary_expression", "text": "window_num == 0", "parent": 454, "children": [456, 457, 458], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 21}}, {"id": 456, "type": "identifier", "text": "window_num", "parent": 455, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 16}}, {"id": 457, "type": "==", "text": "==", "parent": 455, "children": [], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 19}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 455, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 21}}, {"id": 459, "type": "||", "text": "||", "parent": 454, "children": [], "start_point": {"row": 151, "column": 22}, "end_point": {"row": 151, "column": 24}}, {"id": 460, "type": "binary_expression", "text": "sig_exit != 0", "parent": 454, "children": [461, 462, 463], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 38}}, {"id": 461, "type": "identifier", "text": "sig_exit", "parent": 460, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 33}}, {"id": 462, "type": "!=", "text": "!=", "parent": 460, "children": [], "start_point": {"row": 151, "column": 34}, "end_point": {"row": 151, "column": 36}}, {"id": 463, "type": "number_literal", "text": "0", "parent": 460, "children": [], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 38}}, {"id": 464, "type": "return_statement", "text": "return(0);", "parent": 452, "children": [465], "start_point": {"row": 152, "column": 3}, "end_point": {"row": 152, "column": 13}}, {"id": 465, "type": "parenthesized_expression", "text": "(0)", "parent": 464, "children": [466], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 12}}, {"id": 466, "type": "number_literal", "text": "0", "parent": 465, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 11}}, {"id": 467, "type": "call_expression", "text": "XFlush(disp)", "parent": 271, "children": [468, 469], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 13}}, {"id": 468, "type": "identifier", "text": "XFlush", "parent": 467, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 7}}, {"id": 469, "type": "argument_list", "text": "(disp)", "parent": 467, "children": [470], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 13}}, {"id": 470, "type": "identifier", "text": "disp", "parent": 469, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 12}}, {"id": 471, "type": "call_expression", "text": "feh_redraw_menus()", "parent": 271, "children": [472, 473], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 19}}, {"id": 472, "type": "identifier", "text": "feh_redraw_menus", "parent": 471, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 17}}, {"id": 473, "type": "argument_list", "text": "()", "parent": 471, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 19}}, {"id": 474, "type": "call_expression", "text": "FD_ZERO(&fdset)", "parent": 271, "children": [475, 476], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 16}}, {"id": 475, "type": "identifier", "text": "FD_ZERO", "parent": 474, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 8}}, {"id": 476, "type": "argument_list", "text": "(&fdset)", "parent": 474, "children": [477], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 16}}, {"id": 477, "type": "pointer_expression", "text": "&fdset", "parent": 476, "children": [478], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 15}}, {"id": 478, "type": "identifier", "text": "fdset", "parent": 477, "children": [], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 15}}, {"id": 479, "type": "call_expression", "text": "FD_SET(xfd, &fdset)", "parent": 271, "children": [480, 481], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 20}}, {"id": 480, "type": "identifier", "text": "FD_SET", "parent": 479, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 7}}, {"id": 481, "type": "argument_list", "text": "(xfd, &fdset)", "parent": 479, "children": [482, 483], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 20}}, {"id": 482, "type": "identifier", "text": "xfd", "parent": 481, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 11}}, {"id": 483, "type": "pointer_expression", "text": "&fdset", "parent": 481, "children": [484], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 19}}, {"id": 484, "type": "identifier", "text": "fdset", "parent": 483, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 19}}, {"id": 485, "type": "if_statement", "text": "if (control_via_stdin) {\n\t\tFD_SET(STDIN_FILENO, &fdset);\n\t}", "parent": 271, "children": [486], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 162, "column": 2}}, {"id": 486, "type": "parenthesized_expression", "text": "(control_via_stdin)", "parent": 485, "children": [487], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 23}}, {"id": 487, "type": "identifier", "text": "control_via_stdin", "parent": 486, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 22}}, {"id": 488, "type": "call_expression", "text": "FD_SET(STDIN_FILENO, &fdset)", "parent": 485, "children": [489, 490], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 30}}, {"id": 489, "type": "identifier", "text": "FD_SET", "parent": 488, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 8}}, {"id": 490, "type": "argument_list", "text": "(STDIN_FILENO, &fdset)", "parent": 488, "children": [491, 492], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 30}}, {"id": 491, "type": "identifier", "text": "STDIN_FILENO", "parent": 490, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 21}}, {"id": 492, "type": "pointer_expression", "text": "&fdset", "parent": 490, "children": [493], "start_point": {"row": 161, "column": 23}, "end_point": {"row": 161, "column": 29}}, {"id": 493, "type": "identifier", "text": "fdset", "parent": 492, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 29}}, {"id": 494, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif", "parent": 271, "children": [495, 496, 497, 527], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 169, "column": 6}}, {"id": 495, "type": "#ifdef", "text": "#ifdef", "parent": 494, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 6}}, {"id": 496, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 494, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 19}}, {"id": 497, "type": "if_statement", "text": "if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }", "parent": 494, "children": [498], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 168, "column": 5}}, {"id": 498, "type": "parenthesized_expression", "text": "(opt.auto_reload)", "parent": 497, "children": [499], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 24}}, {"id": 499, "type": "field_expression", "text": "opt.auto_reload", "parent": 498, "children": [500, 501], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 23}}, {"id": 500, "type": "identifier", "text": "opt", "parent": 499, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 11}}, {"id": 501, "type": "field_identifier", "text": "auto_reload", "parent": 499, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 23}}, {"id": 502, "type": "call_expression", "text": "FD_SET(opt.inotify_fd, &fdset)", "parent": 497, "children": [503, 504], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 38}}, {"id": 503, "type": "identifier", "text": "FD_SET", "parent": 502, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 14}}, {"id": 504, "type": "argument_list", "text": "(opt.inotify_fd, &fdset)", "parent": 502, "children": [505, 508], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 38}}, {"id": 505, "type": "field_expression", "text": "opt.inotify_fd", "parent": 504, "children": [506, 507], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 29}}, {"id": 506, "type": "identifier", "text": "opt", "parent": 505, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 18}}, {"id": 507, "type": "field_identifier", "text": "inotify_fd", "parent": 505, "children": [], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 29}}, {"id": 508, "type": "pointer_expression", "text": "&fdset", "parent": 504, "children": [509], "start_point": {"row": 165, "column": 31}, "end_point": {"row": 165, "column": 37}}, {"id": 509, "type": "identifier", "text": "fdset", "parent": 508, "children": [], "start_point": {"row": 165, "column": 32}, "end_point": {"row": 165, "column": 37}}, {"id": 510, "type": "if_statement", "text": "if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;", "parent": 497, "children": [511], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 167, "column": 40}}, {"id": 511, "type": "parenthesized_expression", "text": "(opt.inotify_fd >= fdsize)", "parent": 510, "children": [512], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 37}}, {"id": 512, "type": "binary_expression", "text": "opt.inotify_fd >= fdsize", "parent": 511, "children": [513, 516, 517], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 36}}, {"id": 513, "type": "field_expression", "text": "opt.inotify_fd", "parent": 512, "children": [514, 515], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 26}}, {"id": 514, "type": "identifier", "text": "opt", "parent": 513, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 15}}, {"id": 515, "type": "field_identifier", "text": "inotify_fd", "parent": 513, "children": [], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 26}}, {"id": 516, "type": ">=", "text": ">=", "parent": 512, "children": [], "start_point": {"row": 166, "column": 27}, "end_point": {"row": 166, "column": 29}}, {"id": 517, "type": "identifier", "text": "fdsize", "parent": 512, "children": [], "start_point": {"row": 166, "column": 30}, "end_point": {"row": 166, "column": 36}}, {"id": 518, "type": "assignment_expression", "text": "fdsize = opt.inotify_fd + 1", "parent": 510, "children": [519, 520, 521], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 39}}, {"id": 519, "type": "identifier", "text": "fdsize", "parent": 518, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 18}}, {"id": 520, "type": "=", "text": "=", "parent": 518, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 20}}, {"id": 521, "type": "binary_expression", "text": "opt.inotify_fd + 1", "parent": 518, "children": [522, 525, 526], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 39}}, {"id": 522, "type": "field_expression", "text": "opt.inotify_fd", "parent": 521, "children": [523, 524], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 35}}, {"id": 523, "type": "identifier", "text": "opt", "parent": 522, "children": [], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 24}}, {"id": 524, "type": "field_identifier", "text": "inotify_fd", "parent": 522, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 35}}, {"id": 525, "type": "+", "text": "+", "parent": 521, "children": [], "start_point": {"row": 167, "column": 36}, "end_point": {"row": 167, "column": 37}}, {"id": 526, "type": "number_literal", "text": "1", "parent": 521, "children": [], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 39}}, {"id": 527, "type": "#endif", "text": "#endif", "parent": 494, "children": [], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 6}}, {"id": 528, "type": "assignment_expression", "text": "ft = first_timer", "parent": 271, "children": [529, 530, 531], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 17}}, {"id": 529, "type": "identifier", "text": "ft", "parent": 528, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 3}}, {"id": 530, "type": "=", "text": "=", "parent": 528, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 5}}, {"id": 531, "type": "identifier", "text": "first_timer", "parent": 528, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 17}}, {"id": 532, "type": "if_statement", "text": "if (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n\t\tD((\"There are timers in the queue\\n\"));\n\t\tif (ft->just_added) {\n\t\t\tD((\"The first timer has just been added\\n\"));\n\t\t\tD((\"ft->in = %f\\n\", ft->in));\n\t\t\tft->just_added = 0;\n\t\t\tt1 = ft->in;\n\t\t} else {\n\t\t\tD((\"The first timer was not just added\\n\"));\n\t\t\tt1 = ft->in - t2;\n\t\t\tif (t1 < 0.0)\n\t\t\t\tt1 = 0.0;\n\t\t\tft->in = t1;\n\t\t}\n\n\t\tXSync(disp, False);\n\t\tD((\"I next need to action a timer in %f seconds\\n\", t1));\n\t\t/* Only do a blocking select if there's a timer due, or no events\n\t\t waiting */\n\t\tif (t1 == 0.0 || (block && !XPending(disp))) {\n\t\t\ttval.tv_sec = (long) t1;\n\t\t\ttval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n\t\t\tif (tval.tv_sec < 0)\n\t\t\t\ttval.tv_sec = 0;\n\t\t\tif (tval.tv_usec <= 1000)\n\t\t\t\ttval.tv_usec = 1000;\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - waiting for timer or event\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, &tval);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\tif (count == 0) {\n\t\t\t\t/* This means the timer is due to be executed. If count was > 0,\n\t\t\t\t that would mean an X event had woken us, we're not interested\n\t\t\t\t in that */\n\t\t\t\tfeh_handle_timer();\n\t\t\t}\n\t\t\t/*\n\t\t\t * Beware: If stdin is not connected, we may end up with xfd == 0.\n\t\t\t * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n\t\t\t * check control_via_stdin to avoid mistaking an X11 event for stdin.\n\t\t\t */\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t} else {\n\t\t/* Don't block if there are events in the queue. That's a bit rude ;-) */\n\t\tif (block && !XPending(disp)) {\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - no timers, or zooming\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, NULL);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t}", "parent": 271, "children": [533, 830], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 242, "column": 2}}, {"id": 533, "type": "parenthesized_expression", "text": "(ft && (opt.mode == MODE_NORMAL) && !opt.paused)", "parent": 532, "children": [534], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 52}}, {"id": 534, "type": "binary_expression", "text": "ft && (opt.mode == MODE_NORMAL) && !opt.paused", "parent": 533, "children": [535, 545, 546], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 51}}, {"id": 535, "type": "binary_expression", "text": "ft && (opt.mode == MODE_NORMAL)", "parent": 534, "children": [536, 537, 538], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 36}}, {"id": 536, "type": "identifier", "text": "ft", "parent": 535, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 7}}, {"id": 537, "type": "&&", "text": "&&", "parent": 535, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 10}}, {"id": 538, "type": "parenthesized_expression", "text": "(opt.mode == MODE_NORMAL)", "parent": 535, "children": [539], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 36}}, {"id": 539, "type": "binary_expression", "text": "opt.mode == MODE_NORMAL", "parent": 538, "children": [540, 543, 544], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 35}}, {"id": 540, "type": "field_expression", "text": "opt.mode", "parent": 539, "children": [541, 542], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 20}}, {"id": 541, "type": "identifier", "text": "opt", "parent": 540, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 15}}, {"id": 542, "type": "field_identifier", "text": "mode", "parent": 540, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 20}}, {"id": 543, "type": "==", "text": "==", "parent": 539, "children": [], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 23}}, {"id": 544, "type": "identifier", "text": "MODE_NORMAL", "parent": 539, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 35}}, {"id": 545, "type": "&&", "text": "&&", "parent": 534, "children": [], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 39}}, {"id": 546, "type": "unary_expression", "text": "!opt.paused", "parent": 534, "children": [547, 548], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 51}}, {"id": 547, "type": "!", "text": "!", "parent": 546, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 41}}, {"id": 548, "type": "field_expression", "text": "opt.paused", "parent": 546, "children": [549, 550], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 51}}, {"id": 549, "type": "identifier", "text": "opt", "parent": 548, "children": [], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 44}}, {"id": 550, "type": "field_identifier", "text": "paused", "parent": 548, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 51}}, {"id": 551, "type": "call_expression", "text": "D((\"There are timers in the queue\\n\"))", "parent": 532, "children": [552, 553], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 40}}, {"id": 552, "type": "identifier", "text": "D", "parent": 551, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 3}}, {"id": 553, "type": "argument_list", "text": "((\"There are timers in the queue\\n\"))", "parent": 551, "children": [554], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 40}}, {"id": 554, "type": "parenthesized_expression", "text": "(\"There are timers in the queue\\n\")", "parent": 553, "children": [555], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 39}}, {"id": 555, "type": "string_literal", "text": "\"There are timers in the queue\\n\"", "parent": 554, "children": [556], "start_point": {"row": 175, "column": 5}, "end_point": {"row": 175, "column": 38}}, {"id": 556, "type": "escape_sequence", "text": "\\n", "parent": 555, "children": [], "start_point": {"row": 175, "column": 35}, "end_point": {"row": 175, "column": 37}}, {"id": 557, "type": "if_statement", "text": "if (ft->just_added) {\n\t\t\tD((\"The first timer has just been added\\n\"));\n\t\t\tD((\"ft->in = %f\\n\", ft->in));\n\t\t\tft->just_added = 0;\n\t\t\tt1 = ft->in;\n\t\t} else {\n\t\t\tD((\"The first timer was not just added\\n\"));\n\t\t\tt1 = ft->in - t2;\n\t\t\tif (t1 < 0.0)\n\t\t\t\tt1 = 0.0;\n\t\t\tft->in = t1;\n\t\t}", "parent": 532, "children": [558, 590], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 187, "column": 3}}, {"id": 558, "type": "parenthesized_expression", "text": "(ft->just_added)", "parent": 557, "children": [559], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 21}}, {"id": 559, "type": "field_expression", "text": "ft->just_added", "parent": 558, "children": [560, 561], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 20}}, {"id": 560, "type": "identifier", "text": "ft", "parent": 559, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 8}}, {"id": 561, "type": "field_identifier", "text": "just_added", "parent": 559, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 20}}, {"id": 562, "type": "call_expression", "text": "D((\"The first timer has just been added\\n\"))", "parent": 557, "children": [563, 564], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 47}}, {"id": 563, "type": "identifier", "text": "D", "parent": 562, "children": [], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 4}}, {"id": 564, "type": "argument_list", "text": "((\"The first timer has just been added\\n\"))", "parent": 562, "children": [565], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 47}}, {"id": 565, "type": "parenthesized_expression", "text": "(\"The first timer has just been added\\n\")", "parent": 564, "children": [566], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 46}}, {"id": 566, "type": "string_literal", "text": "\"The first timer has just been added\\n\"", "parent": 565, "children": [567], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 45}}, {"id": 567, "type": "escape_sequence", "text": "\\n", "parent": 566, "children": [], "start_point": {"row": 177, "column": 42}, "end_point": {"row": 177, "column": 44}}, {"id": 568, "type": "call_expression", "text": "D((\"ft->in = %f\\n\", ft->in))", "parent": 557, "children": [569, 570], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 31}}, {"id": 569, "type": "identifier", "text": "D", "parent": 568, "children": [], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 4}}, {"id": 570, "type": "argument_list", "text": "((\"ft->in = %f\\n\", ft->in))", "parent": 568, "children": [571], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 31}}, {"id": 571, "type": "parenthesized_expression", "text": "(\"ft->in = %f\\n\", ft->in)", "parent": 570, "children": [572], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 30}}, {"id": 572, "type": "comma_expression", "text": "\"ft->in = %f\\n\", ft->in", "parent": 571, "children": [573, 575], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 29}}, {"id": 573, "type": "string_literal", "text": "\"ft->in = %f\\n\"", "parent": 572, "children": [574], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 21}}, {"id": 574, "type": "escape_sequence", "text": "\\n", "parent": 573, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 20}}, {"id": 575, "type": "field_expression", "text": "ft->in", "parent": 572, "children": [576, 577], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 29}}, {"id": 576, "type": "identifier", "text": "ft", "parent": 575, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 25}}, {"id": 577, "type": "field_identifier", "text": "in", "parent": 575, "children": [], "start_point": {"row": 178, "column": 27}, "end_point": {"row": 178, "column": 29}}, {"id": 578, "type": "assignment_expression", "text": "ft->just_added = 0", "parent": 557, "children": [579, 582, 583], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 21}}, {"id": 579, "type": "field_expression", "text": "ft->just_added", "parent": 578, "children": [580, 581], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 17}}, {"id": 580, "type": "identifier", "text": "ft", "parent": 579, "children": [], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 5}}, {"id": 581, "type": "field_identifier", "text": "just_added", "parent": 579, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 17}}, {"id": 582, "type": "=", "text": "=", "parent": 578, "children": [], "start_point": {"row": 179, "column": 18}, "end_point": {"row": 179, "column": 19}}, {"id": 583, "type": "number_literal", "text": "0", "parent": 578, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 21}}, {"id": 584, "type": "assignment_expression", "text": "t1 = ft->in", "parent": 557, "children": [585, 586, 587], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 14}}, {"id": 585, "type": "identifier", "text": "t1", "parent": 584, "children": [], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 5}}, {"id": 586, "type": "=", "text": "=", "parent": 584, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 7}}, {"id": 587, "type": "field_expression", "text": "ft->in", "parent": 584, "children": [588, 589], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 14}}, {"id": 588, "type": "identifier", "text": "ft", "parent": 587, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 10}}, {"id": 589, "type": "field_identifier", "text": "in", "parent": 587, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 14}}, {"id": 590, "type": "else_clause", "text": "else {\n\t\t\tD((\"The first timer was not just added\\n\"));\n\t\t\tt1 = ft->in - t2;\n\t\t\tif (t1 < 0.0)\n\t\t\t\tt1 = 0.0;\n\t\t\tft->in = t1;\n\t\t}", "parent": 557, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 187, "column": 3}}, {"id": 591, "type": "call_expression", "text": "D((\"The first timer was not just added\\n\"))", "parent": 590, "children": [592, 593], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 46}}, {"id": 592, "type": "identifier", "text": "D", "parent": 591, "children": [], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 4}}, {"id": 593, "type": "argument_list", "text": "((\"The first timer was not just added\\n\"))", "parent": 591, "children": [594], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 46}}, {"id": 594, "type": "parenthesized_expression", "text": "(\"The first timer was not just added\\n\")", "parent": 593, "children": [595], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 182, "column": 45}}, {"id": 595, "type": "string_literal", "text": "\"The first timer was not just added\\n\"", "parent": 594, "children": [596], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 44}}, {"id": 596, "type": "escape_sequence", "text": "\\n", "parent": 595, "children": [], "start_point": {"row": 182, "column": 41}, "end_point": {"row": 182, "column": 43}}, {"id": 597, "type": "assignment_expression", "text": "t1 = ft->in - t2", "parent": 590, "children": [598, 599, 600], "start_point": {"row": 183, "column": 3}, "end_point": {"row": 183, "column": 19}}, {"id": 598, "type": "identifier", "text": "t1", "parent": 597, "children": [], "start_point": {"row": 183, "column": 3}, "end_point": {"row": 183, "column": 5}}, {"id": 599, "type": "=", "text": "=", "parent": 597, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 7}}, {"id": 600, "type": "binary_expression", "text": "ft->in - t2", "parent": 597, "children": [601, 604, 605], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 19}}, {"id": 601, "type": "field_expression", "text": "ft->in", "parent": 600, "children": [602, 603], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 14}}, {"id": 602, "type": "identifier", "text": "ft", "parent": 601, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 10}}, {"id": 603, "type": "field_identifier", "text": "in", "parent": 601, "children": [], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 14}}, {"id": 604, "type": "-", "text": "-", "parent": 600, "children": [], "start_point": {"row": 183, "column": 15}, "end_point": {"row": 183, "column": 16}}, {"id": 605, "type": "identifier", "text": "t2", "parent": 600, "children": [], "start_point": {"row": 183, "column": 17}, "end_point": {"row": 183, "column": 19}}, {"id": 606, "type": "if_statement", "text": "if (t1 < 0.0)\n\t\t\t\tt1 = 0.0;", "parent": 590, "children": [607], "start_point": {"row": 184, "column": 3}, "end_point": {"row": 185, "column": 13}}, {"id": 607, "type": "parenthesized_expression", "text": "(t1 < 0.0)", "parent": 606, "children": [608], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 16}}, {"id": 608, "type": "binary_expression", "text": "t1 < 0.0", "parent": 607, "children": [609, 610, 611], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 15}}, {"id": 609, "type": "identifier", "text": "t1", "parent": 608, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 9}}, {"id": 610, "type": "<", "text": "<", "parent": 608, "children": [], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 11}}, {"id": 611, "type": "number_literal", "text": "0.0", "parent": 608, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 15}}, {"id": 612, "type": "assignment_expression", "text": "t1 = 0.0", "parent": 606, "children": [613, 614, 615], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 12}}, {"id": 613, "type": "identifier", "text": "t1", "parent": 612, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 6}}, {"id": 614, "type": "=", "text": "=", "parent": 612, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 8}}, {"id": 615, "type": "number_literal", "text": "0.0", "parent": 612, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 12}}, {"id": 616, "type": "assignment_expression", "text": "ft->in = t1", "parent": 590, "children": [617, 620, 621], "start_point": {"row": 186, "column": 3}, "end_point": {"row": 186, "column": 14}}, {"id": 617, "type": "field_expression", "text": "ft->in", "parent": 616, "children": [618, 619], "start_point": {"row": 186, "column": 3}, "end_point": {"row": 186, "column": 9}}, {"id": 618, "type": "identifier", "text": "ft", "parent": 617, "children": [], "start_point": {"row": 186, "column": 3}, "end_point": {"row": 186, "column": 5}}, {"id": 619, "type": "field_identifier", "text": "in", "parent": 617, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 9}}, {"id": 620, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 11}}, {"id": 621, "type": "identifier", "text": "t1", "parent": 616, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 14}}, {"id": 622, "type": "call_expression", "text": "XSync(disp, False)", "parent": 532, "children": [623, 624], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 20}}, {"id": 623, "type": "identifier", "text": "XSync", "parent": 622, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 7}}, {"id": 624, "type": "argument_list", "text": "(disp, False)", "parent": 622, "children": [625, 626], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 20}}, {"id": 625, "type": "identifier", "text": "disp", "parent": 624, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 12}}, {"id": 626, "type": "identifier", "text": "False", "parent": 624, "children": [], "start_point": {"row": 189, "column": 14}, "end_point": {"row": 189, "column": 19}}, {"id": 627, "type": "call_expression", "text": "D((\"I next need to action a timer in %f seconds\\n\", t1))", "parent": 532, "children": [628, 629], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 58}}, {"id": 628, "type": "identifier", "text": "D", "parent": 627, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 3}}, {"id": 629, "type": "argument_list", "text": "((\"I next need to action a timer in %f seconds\\n\", t1))", "parent": 627, "children": [630], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 58}}, {"id": 630, "type": "parenthesized_expression", "text": "(\"I next need to action a timer in %f seconds\\n\", t1)", "parent": 629, "children": [631], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 57}}, {"id": 631, "type": "comma_expression", "text": "\"I next need to action a timer in %f seconds\\n\", t1", "parent": 630, "children": [632, 634], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 56}}, {"id": 632, "type": "string_literal", "text": "\"I next need to action a timer in %f seconds\\n\"", "parent": 631, "children": [633], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 52}}, {"id": 633, "type": "escape_sequence", "text": "\\n", "parent": 632, "children": [], "start_point": {"row": 190, "column": 49}, "end_point": {"row": 190, "column": 51}}, {"id": 634, "type": "identifier", "text": "t1", "parent": 631, "children": [], "start_point": {"row": 190, "column": 54}, "end_point": {"row": 190, "column": 56}}, {"id": 635, "type": "if_statement", "text": "if (t1 == 0.0 || (block && !XPending(disp))) {\n\t\t\ttval.tv_sec = (long) t1;\n\t\t\ttval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n\t\t\tif (tval.tv_sec < 0)\n\t\t\t\ttval.tv_sec = 0;\n\t\t\tif (tval.tv_usec <= 1000)\n\t\t\t\ttval.tv_usec = 1000;\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - waiting for timer or event\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, &tval);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\tif (count == 0) {\n\t\t\t\t/* This means the timer is due to be executed. If count was > 0,\n\t\t\t\t that would mean an X event had woken us, we're not interested\n\t\t\t\t in that */\n\t\t\t\tfeh_handle_timer();\n\t\t\t}\n\t\t\t/*\n\t\t\t * Beware: If stdin is not connected, we may end up with xfd == 0.\n\t\t\t * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n\t\t\t * check control_via_stdin to avoid mistaking an X11 event for stdin.\n\t\t\t */\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}", "parent": 532, "children": [636], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 224, "column": 3}}, {"id": 636, "type": "parenthesized_expression", "text": "(t1 == 0.0 || (block && !XPending(disp)))", "parent": 635, "children": [637], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 46}}, {"id": 637, "type": "binary_expression", "text": "t1 == 0.0 || (block && !XPending(disp))", "parent": 636, "children": [638, 642, 643], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 45}}, {"id": 638, "type": "binary_expression", "text": "t1 == 0.0", "parent": 637, "children": [639, 640, 641], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 15}}, {"id": 639, "type": "identifier", "text": "t1", "parent": 638, "children": [], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 8}}, {"id": 640, "type": "==", "text": "==", "parent": 638, "children": [], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 11}}, {"id": 641, "type": "number_literal", "text": "0.0", "parent": 638, "children": [], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 15}}, {"id": 642, "type": "||", "text": "||", "parent": 637, "children": [], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 18}}, {"id": 643, "type": "parenthesized_expression", "text": "(block && !XPending(disp))", "parent": 637, "children": [644], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 45}}, {"id": 644, "type": "binary_expression", "text": "block && !XPending(disp)", "parent": 643, "children": [645, 646, 647], "start_point": {"row": 193, "column": 20}, "end_point": {"row": 193, "column": 44}}, {"id": 645, "type": "identifier", "text": "block", "parent": 644, "children": [], "start_point": {"row": 193, "column": 20}, "end_point": {"row": 193, "column": 25}}, {"id": 646, "type": "&&", "text": "&&", "parent": 644, "children": [], "start_point": {"row": 193, "column": 26}, "end_point": {"row": 193, "column": 28}}, {"id": 647, "type": "unary_expression", "text": "!XPending(disp)", "parent": 644, "children": [648, 649], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 44}}, {"id": 648, "type": "!", "text": "!", "parent": 647, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 30}}, {"id": 649, "type": "call_expression", "text": "XPending(disp)", "parent": 647, "children": [650, 651], "start_point": {"row": 193, "column": 30}, "end_point": {"row": 193, "column": 44}}, {"id": 650, "type": "identifier", "text": "XPending", "parent": 649, "children": [], "start_point": {"row": 193, "column": 30}, "end_point": {"row": 193, "column": 38}}, {"id": 651, "type": "argument_list", "text": "(disp)", "parent": 649, "children": [652], "start_point": {"row": 193, "column": 38}, "end_point": {"row": 193, "column": 44}}, {"id": 652, "type": "identifier", "text": "disp", "parent": 651, "children": [], "start_point": {"row": 193, "column": 39}, "end_point": {"row": 193, "column": 43}}, {"id": 653, "type": "assignment_expression", "text": "tval.tv_sec = (long) t1", "parent": 635, "children": [654, 657, 658], "start_point": {"row": 194, "column": 3}, "end_point": {"row": 194, "column": 26}}, {"id": 654, "type": "field_expression", "text": "tval.tv_sec", "parent": 653, "children": [655, 656], "start_point": {"row": 194, "column": 3}, "end_point": {"row": 194, "column": 14}}, {"id": 655, "type": "identifier", "text": "tval", "parent": 654, "children": [], "start_point": {"row": 194, "column": 3}, "end_point": {"row": 194, "column": 7}}, {"id": 656, "type": "field_identifier", "text": "tv_sec", "parent": 654, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 14}}, {"id": 657, "type": "=", "text": "=", "parent": 653, "children": [], "start_point": {"row": 194, "column": 15}, "end_point": {"row": 194, "column": 16}}, {"id": 658, "type": "cast_expression", "text": "(long) t1", "parent": 653, "children": [659, 662], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 26}}, {"id": 659, "type": "type_descriptor", "text": "long", "parent": 658, "children": [660], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 22}}, {"id": 660, "type": "sized_type_specifier", "text": "long", "parent": 659, "children": [661], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 22}}, {"id": 661, "type": "long", "text": "long", "parent": 660, "children": [], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 22}}, {"id": 662, "type": "identifier", "text": "t1", "parent": 658, "children": [], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 26}}, {"id": 663, "type": "assignment_expression", "text": "tval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000)", "parent": 635, "children": [664, 667, 668], "start_point": {"row": 195, "column": 3}, "end_point": {"row": 195, "column": 66}}, {"id": 664, "type": "field_expression", "text": "tval.tv_usec", "parent": 663, "children": [665, 666], "start_point": {"row": 195, "column": 3}, "end_point": {"row": 195, "column": 15}}, {"id": 665, "type": "identifier", "text": "tval", "parent": 664, "children": [], "start_point": {"row": 195, "column": 3}, "end_point": {"row": 195, "column": 7}}, {"id": 666, "type": "field_identifier", "text": "tv_usec", "parent": 664, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 15}}, {"id": 667, "type": "=", "text": "=", "parent": 663, "children": [], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 195, "column": 17}}, {"id": 668, "type": "cast_expression", "text": "(long) ((t1 - ((double) tval.tv_sec)) * 1000000)", "parent": 663, "children": [669, 672], "start_point": {"row": 195, "column": 18}, "end_point": {"row": 195, "column": 66}}, {"id": 669, "type": "type_descriptor", "text": "long", "parent": 668, "children": [670], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 23}}, {"id": 670, "type": "sized_type_specifier", "text": "long", "parent": 669, "children": [671], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 23}}, {"id": 671, "type": "long", "text": "long", "parent": 670, "children": [], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 23}}, {"id": 672, "type": "parenthesized_expression", "text": "((t1 - ((double) tval.tv_sec)) * 1000000)", "parent": 668, "children": [673], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 66}}, {"id": 673, "type": "binary_expression", "text": "(t1 - ((double) tval.tv_sec)) * 1000000", "parent": 672, "children": [674, 685, 686], "start_point": {"row": 195, "column": 26}, "end_point": {"row": 195, "column": 65}}, {"id": 674, "type": "parenthesized_expression", "text": "(t1 - ((double) tval.tv_sec))", "parent": 673, "children": [675], "start_point": {"row": 195, "column": 26}, "end_point": {"row": 195, "column": 55}}, {"id": 675, "type": "binary_expression", "text": "t1 - ((double) tval.tv_sec)", "parent": 674, "children": [676, 677, 678], "start_point": {"row": 195, "column": 27}, "end_point": {"row": 195, "column": 54}}, {"id": 676, "type": "identifier", "text": "t1", "parent": 675, "children": [], "start_point": {"row": 195, "column": 27}, "end_point": {"row": 195, "column": 29}}, {"id": 677, "type": "-", "text": "-", "parent": 675, "children": [], "start_point": {"row": 195, "column": 30}, "end_point": {"row": 195, "column": 31}}, {"id": 678, "type": "parenthesized_expression", "text": "((double) tval.tv_sec)", "parent": 675, "children": [679], "start_point": {"row": 195, "column": 32}, "end_point": {"row": 195, "column": 54}}, {"id": 679, "type": "cast_expression", "text": "(double) tval.tv_sec", "parent": 678, "children": [680, 682], "start_point": {"row": 195, "column": 33}, "end_point": {"row": 195, "column": 53}}, {"id": 680, "type": "type_descriptor", "text": "double", "parent": 679, "children": [681], "start_point": {"row": 195, "column": 34}, "end_point": {"row": 195, "column": 40}}, {"id": 681, "type": "primitive_type", "text": "double", "parent": 680, "children": [], "start_point": {"row": 195, "column": 34}, "end_point": {"row": 195, "column": 40}}, {"id": 682, "type": "field_expression", "text": "tval.tv_sec", "parent": 679, "children": [683, 684], "start_point": {"row": 195, "column": 42}, "end_point": {"row": 195, "column": 53}}, {"id": 683, "type": "identifier", "text": "tval", "parent": 682, "children": [], "start_point": {"row": 195, "column": 42}, "end_point": {"row": 195, "column": 46}}, {"id": 684, "type": "field_identifier", "text": "tv_sec", "parent": 682, "children": [], "start_point": {"row": 195, "column": 47}, "end_point": {"row": 195, "column": 53}}, {"id": 685, "type": "*", "text": "*", "parent": 673, "children": [], "start_point": {"row": 195, "column": 56}, "end_point": {"row": 195, "column": 57}}, {"id": 686, "type": "number_literal", "text": "1000000", "parent": 673, "children": [], "start_point": {"row": 195, "column": 58}, "end_point": {"row": 195, "column": 65}}, {"id": 687, "type": "if_statement", "text": "if (tval.tv_sec < 0)\n\t\t\t\ttval.tv_sec = 0;", "parent": 635, "children": [688], "start_point": {"row": 196, "column": 3}, "end_point": {"row": 197, "column": 20}}, {"id": 688, "type": "parenthesized_expression", "text": "(tval.tv_sec < 0)", "parent": 687, "children": [689], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 196, "column": 23}}, {"id": 689, "type": "binary_expression", "text": "tval.tv_sec < 0", "parent": 688, "children": [690, 693, 694], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 22}}, {"id": 690, "type": "field_expression", "text": "tval.tv_sec", "parent": 689, "children": [691, 692], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 18}}, {"id": 691, "type": "identifier", "text": "tval", "parent": 690, "children": [], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 11}}, {"id": 692, "type": "field_identifier", "text": "tv_sec", "parent": 690, "children": [], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 18}}, {"id": 693, "type": "<", "text": "<", "parent": 689, "children": [], "start_point": {"row": 196, "column": 19}, "end_point": {"row": 196, "column": 20}}, {"id": 694, "type": "number_literal", "text": "0", "parent": 689, "children": [], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 22}}, {"id": 695, "type": "assignment_expression", "text": "tval.tv_sec = 0", "parent": 687, "children": [696, 699, 700], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 19}}, {"id": 696, "type": "field_expression", "text": "tval.tv_sec", "parent": 695, "children": [697, 698], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 15}}, {"id": 697, "type": "identifier", "text": "tval", "parent": 696, "children": [], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 8}}, {"id": 698, "type": "field_identifier", "text": "tv_sec", "parent": 696, "children": [], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 15}}, {"id": 699, "type": "=", "text": "=", "parent": 695, "children": [], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 17}}, {"id": 700, "type": "number_literal", "text": "0", "parent": 695, "children": [], "start_point": {"row": 197, "column": 18}, "end_point": {"row": 197, "column": 19}}, {"id": 701, "type": "if_statement", "text": "if (tval.tv_usec <= 1000)\n\t\t\t\ttval.tv_usec = 1000;", "parent": 635, "children": [702], "start_point": {"row": 198, "column": 3}, "end_point": {"row": 199, "column": 24}}, {"id": 702, "type": "parenthesized_expression", "text": "(tval.tv_usec <= 1000)", "parent": 701, "children": [703], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 28}}, {"id": 703, "type": "binary_expression", "text": "tval.tv_usec <= 1000", "parent": 702, "children": [704, 707, 708], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 27}}, {"id": 704, "type": "field_expression", "text": "tval.tv_usec", "parent": 703, "children": [705, 706], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 19}}, {"id": 705, "type": "identifier", "text": "tval", "parent": 704, "children": [], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 11}}, {"id": 706, "type": "field_identifier", "text": "tv_usec", "parent": 704, "children": [], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 19}}, {"id": 707, "type": "<=", "text": "<=", "parent": 703, "children": [], "start_point": {"row": 198, "column": 20}, "end_point": {"row": 198, "column": 22}}, {"id": 708, "type": "number_literal", "text": "1000", "parent": 703, "children": [], "start_point": {"row": 198, "column": 23}, "end_point": {"row": 198, "column": 27}}, {"id": 709, "type": "assignment_expression", "text": "tval.tv_usec = 1000", "parent": 701, "children": [710, 713, 714], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 23}}, {"id": 710, "type": "field_expression", "text": "tval.tv_usec", "parent": 709, "children": [711, 712], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 16}}, {"id": 711, "type": "identifier", "text": "tval", "parent": 710, "children": [], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 8}}, {"id": 712, "type": "field_identifier", "text": "tv_usec", "parent": 710, "children": [], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 16}}, {"id": 713, "type": "=", "text": "=", "parent": 709, "children": [], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 18}}, {"id": 714, "type": "number_literal", "text": "1000", "parent": 709, "children": [], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 23}}, {"id": 715, "type": "assignment_expression", "text": "errno = 0", "parent": 635, "children": [716, 717, 718], "start_point": {"row": 200, "column": 3}, "end_point": {"row": 200, "column": 12}}, {"id": 716, "type": "identifier", "text": "errno", "parent": 715, "children": [], "start_point": {"row": 200, "column": 3}, "end_point": {"row": 200, "column": 8}}, {"id": 717, "type": "=", "text": "=", "parent": 715, "children": [], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 10}}, {"id": 718, "type": "number_literal", "text": "0", "parent": 715, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 12}}, {"id": 719, "type": "call_expression", "text": "D((\"Performing blocking select - waiting for timer or event\\n\"))", "parent": 635, "children": [720, 721], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 67}}, {"id": 720, "type": "identifier", "text": "D", "parent": 719, "children": [], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 4}}, {"id": 721, "type": "argument_list", "text": "((\"Performing blocking select - waiting for timer or event\\n\"))", "parent": 719, "children": [722], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 67}}, {"id": 722, "type": "parenthesized_expression", "text": "(\"Performing blocking select - waiting for timer or event\\n\")", "parent": 721, "children": [723], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 66}}, {"id": 723, "type": "string_literal", "text": "\"Performing blocking select - waiting for timer or event\\n\"", "parent": 722, "children": [724], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 65}}, {"id": 724, "type": "escape_sequence", "text": "\\n", "parent": 723, "children": [], "start_point": {"row": 201, "column": 62}, "end_point": {"row": 201, "column": 64}}, {"id": 725, "type": "assignment_expression", "text": "count = select(fdsize, &fdset, NULL, NULL, &tval)", "parent": 635, "children": [726, 727, 728], "start_point": {"row": 202, "column": 3}, "end_point": {"row": 202, "column": 52}}, {"id": 726, "type": "identifier", "text": "count", "parent": 725, "children": [], "start_point": {"row": 202, "column": 3}, "end_point": {"row": 202, "column": 8}}, {"id": 727, "type": "=", "text": "=", "parent": 725, "children": [], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 10}}, {"id": 728, "type": "call_expression", "text": "select(fdsize, &fdset, NULL, NULL, &tval)", "parent": 725, "children": [729, 730], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 52}}, {"id": 729, "type": "identifier", "text": "select", "parent": 728, "children": [], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 17}}, {"id": 730, "type": "argument_list", "text": "(fdsize, &fdset, NULL, NULL, &tval)", "parent": 728, "children": [731, 732, 734, 736, 738], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 52}}, {"id": 731, "type": "identifier", "text": "fdsize", "parent": 730, "children": [], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 24}}, {"id": 732, "type": "pointer_expression", "text": "&fdset", "parent": 730, "children": [733], "start_point": {"row": 202, "column": 26}, "end_point": {"row": 202, "column": 32}}, {"id": 733, "type": "identifier", "text": "fdset", "parent": 732, "children": [], "start_point": {"row": 202, "column": 27}, "end_point": {"row": 202, "column": 32}}, {"id": 734, "type": "null", "text": "NULL", "parent": 730, "children": [735], "start_point": {"row": 202, "column": 34}, "end_point": {"row": 202, "column": 38}}, {"id": 735, "type": "NULL", "text": "NULL", "parent": 734, "children": [], "start_point": {"row": 202, "column": 34}, "end_point": {"row": 202, "column": 38}}, {"id": 736, "type": "null", "text": "NULL", "parent": 730, "children": [737], "start_point": {"row": 202, "column": 40}, "end_point": {"row": 202, "column": 44}}, {"id": 737, "type": "NULL", "text": "NULL", "parent": 736, "children": [], "start_point": {"row": 202, "column": 40}, "end_point": {"row": 202, "column": 44}}, {"id": 738, "type": "pointer_expression", "text": "&tval", "parent": 730, "children": [739], "start_point": {"row": 202, "column": 46}, "end_point": {"row": 202, "column": 51}}, {"id": 739, "type": "identifier", "text": "tval", "parent": 738, "children": [], "start_point": {"row": 202, "column": 47}, "end_point": {"row": 202, "column": 51}}, {"id": 740, "type": "if_statement", "text": "if ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");", "parent": 635, "children": [741], "start_point": {"row": 203, "column": 3}, "end_point": {"row": 206, "column": 44}}, {"id": 741, "type": "parenthesized_expression", "text": "((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))", "parent": 740, "children": [742], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 205, "column": 27}}, {"id": 742, "type": "binary_expression", "text": "(count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF))", "parent": 741, "children": [743, 748, 749], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 205, "column": 26}}, {"id": 743, "type": "parenthesized_expression", "text": "(count < 0)", "parent": 742, "children": [744], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 18}}, {"id": 744, "type": "binary_expression", "text": "count < 0", "parent": 743, "children": [745, 746, 747], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 17}}, {"id": 745, "type": "identifier", "text": "count", "parent": 744, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 13}}, {"id": 746, "type": "<", "text": "<", "parent": 744, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 15}}, {"id": 747, "type": "number_literal", "text": "0", "parent": 744, "children": [], "start_point": {"row": 203, "column": 16}, "end_point": {"row": 203, "column": 17}}, {"id": 748, "type": "&&", "text": "&&", "parent": 742, "children": [], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 7}}, {"id": 749, "type": "parenthesized_expression", "text": "((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF))", "parent": 742, "children": [750], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 205, "column": 26}}, {"id": 750, "type": "binary_expression", "text": "(errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)", "parent": 749, "children": [751, 763, 764], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 205, "column": 25}}, {"id": 751, "type": "binary_expression", "text": "(errno == ENOMEM) || (errno == EINVAL)", "parent": 750, "children": [752, 757, 758], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 47}}, {"id": 752, "type": "parenthesized_expression", "text": "(errno == ENOMEM)", "parent": 751, "children": [753], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 26}}, {"id": 753, "type": "binary_expression", "text": "errno == ENOMEM", "parent": 752, "children": [754, 755, 756], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 204, "column": 25}}, {"id": 754, "type": "identifier", "text": "errno", "parent": 753, "children": [], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 204, "column": 15}}, {"id": 755, "type": "==", "text": "==", "parent": 753, "children": [], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 18}}, {"id": 756, "type": "identifier", "text": "ENOMEM", "parent": 753, "children": [], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 25}}, {"id": 757, "type": "||", "text": "||", "parent": 751, "children": [], "start_point": {"row": 204, "column": 27}, "end_point": {"row": 204, "column": 29}}, {"id": 758, "type": "parenthesized_expression", "text": "(errno == EINVAL)", "parent": 751, "children": [759], "start_point": {"row": 204, "column": 30}, "end_point": {"row": 204, "column": 47}}, {"id": 759, "type": "binary_expression", "text": "errno == EINVAL", "parent": 758, "children": [760, 761, 762], "start_point": {"row": 204, "column": 31}, "end_point": {"row": 204, "column": 46}}, {"id": 760, "type": "identifier", "text": "errno", "parent": 759, "children": [], "start_point": {"row": 204, "column": 31}, "end_point": {"row": 204, "column": 36}}, {"id": 761, "type": "==", "text": "==", "parent": 759, "children": [], "start_point": {"row": 204, "column": 37}, "end_point": {"row": 204, "column": 39}}, {"id": 762, "type": "identifier", "text": "EINVAL", "parent": 759, "children": [], "start_point": {"row": 204, "column": 40}, "end_point": {"row": 204, "column": 46}}, {"id": 763, "type": "||", "text": "||", "parent": 750, "children": [], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 8}}, {"id": 764, "type": "parenthesized_expression", "text": "(errno == EBADF)", "parent": 750, "children": [765], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 25}}, {"id": 765, "type": "binary_expression", "text": "errno == EBADF", "parent": 764, "children": [766, 767, 768], "start_point": {"row": 205, "column": 10}, "end_point": {"row": 205, "column": 24}}, {"id": 766, "type": "identifier", "text": "errno", "parent": 765, "children": [], "start_point": {"row": 205, "column": 10}, "end_point": {"row": 205, "column": 15}}, {"id": 767, "type": "==", "text": "==", "parent": 765, "children": [], "start_point": {"row": 205, "column": 16}, "end_point": {"row": 205, "column": 18}}, {"id": 768, "type": "identifier", "text": "EBADF", "parent": 765, "children": [], "start_point": {"row": 205, "column": 19}, "end_point": {"row": 205, "column": 24}}, {"id": 769, "type": "call_expression", "text": "eprintf(\"Connection to X display lost\")", "parent": 740, "children": [770, 771], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 43}}, {"id": 770, "type": "identifier", "text": "eprintf", "parent": 769, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 11}}, {"id": 771, "type": "argument_list", "text": "(\"Connection to X display lost\")", "parent": 769, "children": [772], "start_point": {"row": 206, "column": 11}, "end_point": {"row": 206, "column": 43}}, {"id": 772, "type": "string_literal", "text": "\"Connection to X display lost\"", "parent": 771, "children": [], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 42}}, {"id": 773, "type": "if_statement", "text": "if (count == 0) {\n\t\t\t\t/* This means the timer is due to be executed. If count was > 0,\n\t\t\t\t that would mean an X event had woken us, we're not interested\n\t\t\t\t in that */\n\t\t\t\tfeh_handle_timer();\n\t\t\t}\n\t\t\t/*\n\t\t\t * Beware: If stdin is not connected, we may end up with xfd == 0.\n\t\t\t * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n\t\t\t * check control_via_stdin to avoid mistaking an X11 event for stdin.\n\t\t\t */\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 635, "children": [774, 782], "start_point": {"row": 207, "column": 3}, "end_point": {"row": 219, "column": 29}}, {"id": 774, "type": "parenthesized_expression", "text": "(count == 0)", "parent": 773, "children": [775], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 207, "column": 18}}, {"id": 775, "type": "binary_expression", "text": "count == 0", "parent": 774, "children": [776, 777, 778], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 17}}, {"id": 776, "type": "identifier", "text": "count", "parent": 775, "children": [], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 12}}, {"id": 777, "type": "==", "text": "==", "parent": 775, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 15}}, {"id": 778, "type": "number_literal", "text": "0", "parent": 775, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 17}}, {"id": 779, "type": "call_expression", "text": "feh_handle_timer()", "parent": 773, "children": [780, 781], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 22}}, {"id": 780, "type": "identifier", "text": "feh_handle_timer", "parent": 779, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 20}}, {"id": 781, "type": "argument_list", "text": "()", "parent": 779, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 22}}, {"id": 782, "type": "else_clause", "text": "else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 773, "children": [783], "start_point": {"row": 218, "column": 3}, "end_point": {"row": 219, "column": 29}}, {"id": 783, "type": "if_statement", "text": "if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 782, "children": [784], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 219, "column": 29}}, {"id": 784, "type": "parenthesized_expression", "text": "((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))", "parent": 783, "children": [785], "start_point": {"row": 218, "column": 11}, "end_point": {"row": 218, "column": 81}}, {"id": 785, "type": "binary_expression", "text": "(count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))", "parent": 784, "children": [786, 794, 795], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 80}}, {"id": 786, "type": "binary_expression", "text": "(count > 0) && control_via_stdin", "parent": 785, "children": [787, 792, 793], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 44}}, {"id": 787, "type": "parenthesized_expression", "text": "(count > 0)", "parent": 786, "children": [788], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 23}}, {"id": 788, "type": "binary_expression", "text": "count > 0", "parent": 787, "children": [789, 790, 791], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 22}}, {"id": 789, "type": "identifier", "text": "count", "parent": 788, "children": [], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 18}}, {"id": 790, "type": ">", "text": ">", "parent": 788, "children": [], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 20}}, {"id": 791, "type": "number_literal", "text": "0", "parent": 788, "children": [], "start_point": {"row": 218, "column": 21}, "end_point": {"row": 218, "column": 22}}, {"id": 792, "type": "&&", "text": "&&", "parent": 786, "children": [], "start_point": {"row": 218, "column": 24}, "end_point": {"row": 218, "column": 26}}, {"id": 793, "type": "identifier", "text": "control_via_stdin", "parent": 786, "children": [], "start_point": {"row": 218, "column": 27}, "end_point": {"row": 218, "column": 44}}, {"id": 794, "type": "&&", "text": "&&", "parent": 785, "children": [], "start_point": {"row": 218, "column": 45}, "end_point": {"row": 218, "column": 47}}, {"id": 795, "type": "parenthesized_expression", "text": "(FD_ISSET(STDIN_FILENO, &fdset))", "parent": 785, "children": [796], "start_point": {"row": 218, "column": 48}, "end_point": {"row": 218, "column": 80}}, {"id": 796, "type": "call_expression", "text": "FD_ISSET(STDIN_FILENO, &fdset)", "parent": 795, "children": [797, 798], "start_point": {"row": 218, "column": 49}, "end_point": {"row": 218, "column": 79}}, {"id": 797, "type": "identifier", "text": "FD_ISSET", "parent": 796, "children": [], "start_point": {"row": 218, "column": 49}, "end_point": {"row": 218, "column": 57}}, {"id": 798, "type": "argument_list", "text": "(STDIN_FILENO, &fdset)", "parent": 796, "children": [799, 800], "start_point": {"row": 218, "column": 57}, "end_point": {"row": 218, "column": 79}}, {"id": 799, "type": "identifier", "text": "STDIN_FILENO", "parent": 798, "children": [], "start_point": {"row": 218, "column": 58}, "end_point": {"row": 218, "column": 70}}, {"id": 800, "type": "pointer_expression", "text": "&fdset", "parent": 798, "children": [801], "start_point": {"row": 218, "column": 72}, "end_point": {"row": 218, "column": 78}}, {"id": 801, "type": "identifier", "text": "fdset", "parent": 800, "children": [], "start_point": {"row": 218, "column": 73}, "end_point": {"row": 218, "column": 78}}, {"id": 802, "type": "call_expression", "text": "feh_event_handle_stdin()", "parent": 783, "children": [803, 804], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 28}}, {"id": 803, "type": "identifier", "text": "feh_event_handle_stdin", "parent": 802, "children": [], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 26}}, {"id": 804, "type": "argument_list", "text": "()", "parent": 802, "children": [], "start_point": {"row": 219, "column": 26}, "end_point": {"row": 219, "column": 28}}, {"id": 805, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif", "parent": 635, "children": [806, 807, 808, 829], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 806, "type": "#ifdef", "text": "#ifdef", "parent": 805, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 6}}, {"id": 807, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 805, "children": [], "start_point": {"row": 220, "column": 7}, "end_point": {"row": 220, "column": 19}}, {"id": 808, "type": "ERROR", "text": "else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();", "parent": 805, "children": [809, 815, 817], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 222, "column": 43}}, {"id": 809, "type": "function_declarator", "text": "if ((count > 0)", "parent": 808, "children": [810], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 23}}, {"id": 810, "type": "parameter_list", "text": "(count > 0)", "parent": 809, "children": [811, 812], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 23}}, {"id": 811, "type": "identifier", "text": "count", "parent": 810, "children": [], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 18}}, {"id": 812, "type": "ERROR", "text": "> 0", "parent": 810, "children": [813, 814], "start_point": {"row": 221, "column": 19}, "end_point": {"row": 221, "column": 22}}, {"id": 813, "type": ">", "text": ">", "parent": 812, "children": [], "start_point": {"row": 221, "column": 19}, "end_point": {"row": 221, "column": 20}}, {"id": 814, "type": "number_literal", "text": "0", "parent": 812, "children": [], "start_point": {"row": 221, "column": 21}, "end_point": {"row": 221, "column": 22}}, {"id": 815, "type": "ERROR", "text": "&& (", "parent": 808, "children": [816], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 28}}, {"id": 816, "type": "&&", "text": "&&", "parent": 815, "children": [], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 26}}, {"id": 817, "type": "declaration", "text": "FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();", "parent": 808, "children": [818, 825, 826], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 222, "column": 43}}, {"id": 818, "type": "macro_type_specifier", "text": "FD_ISSET(opt.inotify_fd, &fdset)", "parent": 817, "children": [819, 820, 822], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 221, "column": 60}}, {"id": 819, "type": "identifier", "text": "FD_ISSET", "parent": 818, "children": [], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 221, "column": 36}}, {"id": 820, "type": "type_descriptor", "text": "opt", "parent": 818, "children": [821], "start_point": {"row": 221, "column": 37}, "end_point": {"row": 221, "column": 40}}, {"id": 821, "type": "type_identifier", "text": "opt", "parent": 820, "children": [], "start_point": {"row": 221, "column": 37}, "end_point": {"row": 221, "column": 40}}, {"id": 822, "type": "ERROR", "text": ".inotify_fd, &fdset", "parent": 818, "children": [823, 824], "start_point": {"row": 221, "column": 40}, "end_point": {"row": 221, "column": 59}}, {"id": 823, "type": "identifier", "text": "inotify_fd", "parent": 822, "children": [], "start_point": {"row": 221, "column": 41}, "end_point": {"row": 221, "column": 51}}, {"id": 824, "type": "identifier", "text": "fdset", "parent": 822, "children": [], "start_point": {"row": 221, "column": 54}, "end_point": {"row": 221, "column": 59}}, {"id": 825, "type": "ERROR", "text": "))", "parent": 817, "children": [], "start_point": {"row": 221, "column": 60}, "end_point": {"row": 221, "column": 62}}, {"id": 826, "type": "function_declarator", "text": "feh_event_handle_inotify()", "parent": 817, "children": [827, 828], "start_point": {"row": 222, "column": 16}, "end_point": {"row": 222, "column": 42}}, {"id": 827, "type": "identifier", "text": "feh_event_handle_inotify", "parent": 826, "children": [], "start_point": {"row": 222, "column": 16}, "end_point": {"row": 222, "column": 40}}, {"id": 828, "type": "parameter_list", "text": "()", "parent": 826, "children": [], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 42}}, {"id": 829, "type": "#endif", "text": "#endif", "parent": 805, "children": [], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 830, "type": "else_clause", "text": "else {\n\t\t/* Don't block if there are events in the queue. That's a bit rude ;-) */\n\t\tif (block && !XPending(disp)) {\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - no timers, or zooming\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, NULL);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t}", "parent": 532, "children": [], "start_point": {"row": 225, "column": 3}, "end_point": {"row": 242, "column": 2}}, {"id": 831, "type": "if_statement", "text": "if (block && !XPending(disp)) {\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - no timers, or zooming\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, NULL);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}", "parent": 830, "children": [832], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 241, "column": 3}}, {"id": 832, "type": "parenthesized_expression", "text": "(block && !XPending(disp))", "parent": 831, "children": [833], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 31}}, {"id": 833, "type": "binary_expression", "text": "block && !XPending(disp)", "parent": 832, "children": [834, 835, 836], "start_point": {"row": 227, "column": 6}, "end_point": {"row": 227, "column": 30}}, {"id": 834, "type": "identifier", "text": "block", "parent": 833, "children": [], "start_point": {"row": 227, "column": 6}, "end_point": {"row": 227, "column": 11}}, {"id": 835, "type": "&&", "text": "&&", "parent": 833, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 14}}, {"id": 836, "type": "unary_expression", "text": "!XPending(disp)", "parent": 833, "children": [837, 838], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 30}}, {"id": 837, "type": "!", "text": "!", "parent": 836, "children": [], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 16}}, {"id": 838, "type": "call_expression", "text": "XPending(disp)", "parent": 836, "children": [839, 840], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 30}}, {"id": 839, "type": "identifier", "text": "XPending", "parent": 838, "children": [], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 24}}, {"id": 840, "type": "argument_list", "text": "(disp)", "parent": 838, "children": [841], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 30}}, {"id": 841, "type": "identifier", "text": "disp", "parent": 840, "children": [], "start_point": {"row": 227, "column": 25}, "end_point": {"row": 227, "column": 29}}, {"id": 842, "type": "assignment_expression", "text": "errno = 0", "parent": 831, "children": [843, 844, 845], "start_point": {"row": 228, "column": 3}, "end_point": {"row": 228, "column": 12}}, {"id": 843, "type": "identifier", "text": "errno", "parent": 842, "children": [], "start_point": {"row": 228, "column": 3}, "end_point": {"row": 228, "column": 8}}, {"id": 844, "type": "=", "text": "=", "parent": 842, "children": [], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 10}}, {"id": 845, "type": "number_literal", "text": "0", "parent": 842, "children": [], "start_point": {"row": 228, "column": 11}, "end_point": {"row": 228, "column": 12}}, {"id": 846, "type": "call_expression", "text": "D((\"Performing blocking select - no timers, or zooming\\n\"))", "parent": 831, "children": [847, 848], "start_point": {"row": 229, "column": 3}, "end_point": {"row": 229, "column": 62}}, {"id": 847, "type": "identifier", "text": "D", "parent": 846, "children": [], "start_point": {"row": 229, "column": 3}, "end_point": {"row": 229, "column": 4}}, {"id": 848, "type": "argument_list", "text": "((\"Performing blocking select - no timers, or zooming\\n\"))", "parent": 846, "children": [849], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 62}}, {"id": 849, "type": "parenthesized_expression", "text": "(\"Performing blocking select - no timers, or zooming\\n\")", "parent": 848, "children": [850], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 61}}, {"id": 850, "type": "string_literal", "text": "\"Performing blocking select - no timers, or zooming\\n\"", "parent": 849, "children": [851], "start_point": {"row": 229, "column": 6}, "end_point": {"row": 229, "column": 60}}, {"id": 851, "type": "escape_sequence", "text": "\\n", "parent": 850, "children": [], "start_point": {"row": 229, "column": 57}, "end_point": {"row": 229, "column": 59}}, {"id": 852, "type": "assignment_expression", "text": "count = select(fdsize, &fdset, NULL, NULL, NULL)", "parent": 831, "children": [853, 854, 855], "start_point": {"row": 230, "column": 3}, "end_point": {"row": 230, "column": 51}}, {"id": 853, "type": "identifier", "text": "count", "parent": 852, "children": [], "start_point": {"row": 230, "column": 3}, "end_point": {"row": 230, "column": 8}}, {"id": 854, "type": "=", "text": "=", "parent": 852, "children": [], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 10}}, {"id": 855, "type": "call_expression", "text": "select(fdsize, &fdset, NULL, NULL, NULL)", "parent": 852, "children": [856, 857], "start_point": {"row": 230, "column": 11}, "end_point": {"row": 230, "column": 51}}, {"id": 856, "type": "identifier", "text": "select", "parent": 855, "children": [], "start_point": {"row": 230, "column": 11}, "end_point": {"row": 230, "column": 17}}, {"id": 857, "type": "argument_list", "text": "(fdsize, &fdset, NULL, NULL, NULL)", "parent": 855, "children": [858, 859, 861, 863, 865], "start_point": {"row": 230, "column": 17}, "end_point": {"row": 230, "column": 51}}, {"id": 858, "type": "identifier", "text": "fdsize", "parent": 857, "children": [], "start_point": {"row": 230, "column": 18}, "end_point": {"row": 230, "column": 24}}, {"id": 859, "type": "pointer_expression", "text": "&fdset", "parent": 857, "children": [860], "start_point": {"row": 230, "column": 26}, "end_point": {"row": 230, "column": 32}}, {"id": 860, "type": "identifier", "text": "fdset", "parent": 859, "children": [], "start_point": {"row": 230, "column": 27}, "end_point": {"row": 230, "column": 32}}, {"id": 861, "type": "null", "text": "NULL", "parent": 857, "children": [862], "start_point": {"row": 230, "column": 34}, "end_point": {"row": 230, "column": 38}}, {"id": 862, "type": "NULL", "text": "NULL", "parent": 861, "children": [], "start_point": {"row": 230, "column": 34}, "end_point": {"row": 230, "column": 38}}, {"id": 863, "type": "null", "text": "NULL", "parent": 857, "children": [864], "start_point": {"row": 230, "column": 40}, "end_point": {"row": 230, "column": 44}}, {"id": 864, "type": "NULL", "text": "NULL", "parent": 863, "children": [], "start_point": {"row": 230, "column": 40}, "end_point": {"row": 230, "column": 44}}, {"id": 865, "type": "null", "text": "NULL", "parent": 857, "children": [866], "start_point": {"row": 230, "column": 46}, "end_point": {"row": 230, "column": 50}}, {"id": 866, "type": "NULL", "text": "NULL", "parent": 865, "children": [], "start_point": {"row": 230, "column": 46}, "end_point": {"row": 230, "column": 50}}, {"id": 867, "type": "if_statement", "text": "if ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 831, "children": [868, 900], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 236, "column": 29}}, {"id": 868, "type": "parenthesized_expression", "text": "((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))", "parent": 867, "children": [869], "start_point": {"row": 231, "column": 6}, "end_point": {"row": 233, "column": 27}}, {"id": 869, "type": "binary_expression", "text": "(count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF))", "parent": 868, "children": [870, 875, 876], "start_point": {"row": 231, "column": 7}, "end_point": {"row": 233, "column": 26}}, {"id": 870, "type": "parenthesized_expression", "text": "(count < 0)", "parent": 869, "children": [871], "start_point": {"row": 231, "column": 7}, "end_point": {"row": 231, "column": 18}}, {"id": 871, "type": "binary_expression", "text": "count < 0", "parent": 870, "children": [872, 873, 874], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 17}}, {"id": 872, "type": "identifier", "text": "count", "parent": 871, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 13}}, {"id": 873, "type": "<", "text": "<", "parent": 871, "children": [], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 15}}, {"id": 874, "type": "number_literal", "text": "0", "parent": 871, "children": [], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 17}}, {"id": 875, "type": "&&", "text": "&&", "parent": 869, "children": [], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 232, "column": 7}}, {"id": 876, "type": "parenthesized_expression", "text": "((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF))", "parent": 869, "children": [877], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 233, "column": 26}}, {"id": 877, "type": "binary_expression", "text": "(errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)", "parent": 876, "children": [878, 890, 891], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 233, "column": 25}}, {"id": 878, "type": "binary_expression", "text": "(errno == ENOMEM) || (errno == EINVAL)", "parent": 877, "children": [879, 884, 885], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 232, "column": 47}}, {"id": 879, "type": "parenthesized_expression", "text": "(errno == ENOMEM)", "parent": 878, "children": [880], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 232, "column": 26}}, {"id": 880, "type": "binary_expression", "text": "errno == ENOMEM", "parent": 879, "children": [881, 882, 883], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 25}}, {"id": 881, "type": "identifier", "text": "errno", "parent": 880, "children": [], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 15}}, {"id": 882, "type": "==", "text": "==", "parent": 880, "children": [], "start_point": {"row": 232, "column": 16}, "end_point": {"row": 232, "column": 18}}, {"id": 883, "type": "identifier", "text": "ENOMEM", "parent": 880, "children": [], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 25}}, {"id": 884, "type": "||", "text": "||", "parent": 878, "children": [], "start_point": {"row": 232, "column": 27}, "end_point": {"row": 232, "column": 29}}, {"id": 885, "type": "parenthesized_expression", "text": "(errno == EINVAL)", "parent": 878, "children": [886], "start_point": {"row": 232, "column": 30}, "end_point": {"row": 232, "column": 47}}, {"id": 886, "type": "binary_expression", "text": "errno == EINVAL", "parent": 885, "children": [887, 888, 889], "start_point": {"row": 232, "column": 31}, "end_point": {"row": 232, "column": 46}}, {"id": 887, "type": "identifier", "text": "errno", "parent": 886, "children": [], "start_point": {"row": 232, "column": 31}, "end_point": {"row": 232, "column": 36}}, {"id": 888, "type": "==", "text": "==", "parent": 886, "children": [], "start_point": {"row": 232, "column": 37}, "end_point": {"row": 232, "column": 39}}, {"id": 889, "type": "identifier", "text": "EINVAL", "parent": 886, "children": [], "start_point": {"row": 232, "column": 40}, "end_point": {"row": 232, "column": 46}}, {"id": 890, "type": "||", "text": "||", "parent": 877, "children": [], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 8}}, {"id": 891, "type": "parenthesized_expression", "text": "(errno == EBADF)", "parent": 877, "children": [892], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 25}}, {"id": 892, "type": "binary_expression", "text": "errno == EBADF", "parent": 891, "children": [893, 894, 895], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 24}}, {"id": 893, "type": "identifier", "text": "errno", "parent": 892, "children": [], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 15}}, {"id": 894, "type": "==", "text": "==", "parent": 892, "children": [], "start_point": {"row": 233, "column": 16}, "end_point": {"row": 233, "column": 18}}, {"id": 895, "type": "identifier", "text": "EBADF", "parent": 892, "children": [], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 24}}, {"id": 896, "type": "call_expression", "text": "eprintf(\"Connection to X display lost\")", "parent": 867, "children": [897, 898], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 234, "column": 43}}, {"id": 897, "type": "identifier", "text": "eprintf", "parent": 896, "children": [], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 234, "column": 11}}, {"id": 898, "type": "argument_list", "text": "(\"Connection to X display lost\")", "parent": 896, "children": [899], "start_point": {"row": 234, "column": 11}, "end_point": {"row": 234, "column": 43}}, {"id": 899, "type": "string_literal", "text": "\"Connection to X display lost\"", "parent": 898, "children": [], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 42}}, {"id": 900, "type": "else_clause", "text": "else if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 867, "children": [901], "start_point": {"row": 235, "column": 3}, "end_point": {"row": 236, "column": 29}}, {"id": 901, "type": "if_statement", "text": "if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();", "parent": 900, "children": [902], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 236, "column": 29}}, {"id": 902, "type": "parenthesized_expression", "text": "((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))", "parent": 901, "children": [903], "start_point": {"row": 235, "column": 11}, "end_point": {"row": 235, "column": 81}}, {"id": 903, "type": "binary_expression", "text": "(count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset))", "parent": 902, "children": [904, 912, 913], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 80}}, {"id": 904, "type": "binary_expression", "text": "(count > 0) && control_via_stdin", "parent": 903, "children": [905, 910, 911], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 44}}, {"id": 905, "type": "parenthesized_expression", "text": "(count > 0)", "parent": 904, "children": [906], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 23}}, {"id": 906, "type": "binary_expression", "text": "count > 0", "parent": 905, "children": [907, 908, 909], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 22}}, {"id": 907, "type": "identifier", "text": "count", "parent": 906, "children": [], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 18}}, {"id": 908, "type": ">", "text": ">", "parent": 906, "children": [], "start_point": {"row": 235, "column": 19}, "end_point": {"row": 235, "column": 20}}, {"id": 909, "type": "number_literal", "text": "0", "parent": 906, "children": [], "start_point": {"row": 235, "column": 21}, "end_point": {"row": 235, "column": 22}}, {"id": 910, "type": "&&", "text": "&&", "parent": 904, "children": [], "start_point": {"row": 235, "column": 24}, "end_point": {"row": 235, "column": 26}}, {"id": 911, "type": "identifier", "text": "control_via_stdin", "parent": 904, "children": [], "start_point": {"row": 235, "column": 27}, "end_point": {"row": 235, "column": 44}}, {"id": 912, "type": "&&", "text": "&&", "parent": 903, "children": [], "start_point": {"row": 235, "column": 45}, "end_point": {"row": 235, "column": 47}}, {"id": 913, "type": "parenthesized_expression", "text": "(FD_ISSET(STDIN_FILENO, &fdset))", "parent": 903, "children": [914], "start_point": {"row": 235, "column": 48}, "end_point": {"row": 235, "column": 80}}, {"id": 914, "type": "call_expression", "text": "FD_ISSET(STDIN_FILENO, &fdset)", "parent": 913, "children": [915, 916], "start_point": {"row": 235, "column": 49}, "end_point": {"row": 235, "column": 79}}, {"id": 915, "type": "identifier", "text": "FD_ISSET", "parent": 914, "children": [], "start_point": {"row": 235, "column": 49}, "end_point": {"row": 235, "column": 57}}, {"id": 916, "type": "argument_list", "text": "(STDIN_FILENO, &fdset)", "parent": 914, "children": [917, 918], "start_point": {"row": 235, "column": 57}, "end_point": {"row": 235, "column": 79}}, {"id": 917, "type": "identifier", "text": "STDIN_FILENO", "parent": 916, "children": [], "start_point": {"row": 235, "column": 58}, "end_point": {"row": 235, "column": 70}}, {"id": 918, "type": "pointer_expression", "text": "&fdset", "parent": 916, "children": [919], "start_point": {"row": 235, "column": 72}, "end_point": {"row": 235, "column": 78}}, {"id": 919, "type": "identifier", "text": "fdset", "parent": 918, "children": [], "start_point": {"row": 235, "column": 73}, "end_point": {"row": 235, "column": 78}}, {"id": 920, "type": "call_expression", "text": "feh_event_handle_stdin()", "parent": 901, "children": [921, 922], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 28}}, {"id": 921, "type": "identifier", "text": "feh_event_handle_stdin", "parent": 920, "children": [], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 26}}, {"id": 922, "type": "argument_list", "text": "()", "parent": 920, "children": [], "start_point": {"row": 236, "column": 26}, "end_point": {"row": 236, "column": 28}}, {"id": 923, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif", "parent": 831, "children": [924, 925, 926, 947], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 240, "column": 6}}, {"id": 924, "type": "#ifdef", "text": "#ifdef", "parent": 923, "children": [], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 237, "column": 6}}, {"id": 925, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 923, "children": [], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 237, "column": 19}}, {"id": 926, "type": "ERROR", "text": "else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();", "parent": 923, "children": [927, 933, 935], "start_point": {"row": 238, "column": 3}, "end_point": {"row": 239, "column": 43}}, {"id": 927, "type": "function_declarator", "text": "if ((count > 0)", "parent": 926, "children": [928], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 23}}, {"id": 928, "type": "parameter_list", "text": "(count > 0)", "parent": 927, "children": [929, 930], "start_point": {"row": 238, "column": 12}, "end_point": {"row": 238, "column": 23}}, {"id": 929, "type": "identifier", "text": "count", "parent": 928, "children": [], "start_point": {"row": 238, "column": 13}, "end_point": {"row": 238, "column": 18}}, {"id": 930, "type": "ERROR", "text": "> 0", "parent": 928, "children": [931, 932], "start_point": {"row": 238, "column": 19}, "end_point": {"row": 238, "column": 22}}, {"id": 931, "type": ">", "text": ">", "parent": 930, "children": [], "start_point": {"row": 238, "column": 19}, "end_point": {"row": 238, "column": 20}}, {"id": 932, "type": "number_literal", "text": "0", "parent": 930, "children": [], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 22}}, {"id": 933, "type": "ERROR", "text": "&& (", "parent": 926, "children": [934], "start_point": {"row": 238, "column": 24}, "end_point": {"row": 238, "column": 28}}, {"id": 934, "type": "&&", "text": "&&", "parent": 933, "children": [], "start_point": {"row": 238, "column": 24}, "end_point": {"row": 238, "column": 26}}, {"id": 935, "type": "declaration", "text": "FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();", "parent": 926, "children": [936, 943, 944], "start_point": {"row": 238, "column": 28}, "end_point": {"row": 239, "column": 43}}, {"id": 936, "type": "macro_type_specifier", "text": "FD_ISSET(opt.inotify_fd, &fdset)", "parent": 935, "children": [937, 938, 940], "start_point": {"row": 238, "column": 28}, "end_point": {"row": 238, "column": 60}}, {"id": 937, "type": "identifier", "text": "FD_ISSET", "parent": 936, "children": [], "start_point": {"row": 238, "column": 28}, "end_point": {"row": 238, "column": 36}}, {"id": 938, "type": "type_descriptor", "text": "opt", "parent": 936, "children": [939], "start_point": {"row": 238, "column": 37}, "end_point": {"row": 238, "column": 40}}, {"id": 939, "type": "type_identifier", "text": "opt", "parent": 938, "children": [], "start_point": {"row": 238, "column": 37}, "end_point": {"row": 238, "column": 40}}, {"id": 940, "type": "ERROR", "text": ".inotify_fd, &fdset", "parent": 936, "children": [941, 942], "start_point": {"row": 238, "column": 40}, "end_point": {"row": 238, "column": 59}}, {"id": 941, "type": "identifier", "text": "inotify_fd", "parent": 940, "children": [], "start_point": {"row": 238, "column": 41}, "end_point": {"row": 238, "column": 51}}, {"id": 942, "type": "identifier", "text": "fdset", "parent": 940, "children": [], "start_point": {"row": 238, "column": 54}, "end_point": {"row": 238, "column": 59}}, {"id": 943, "type": "ERROR", "text": "))", "parent": 935, "children": [], "start_point": {"row": 238, "column": 60}, "end_point": {"row": 238, "column": 62}}, {"id": 944, "type": "function_declarator", "text": "feh_event_handle_inotify()", "parent": 935, "children": [945, 946], "start_point": {"row": 239, "column": 16}, "end_point": {"row": 239, "column": 42}}, {"id": 945, "type": "identifier", "text": "feh_event_handle_inotify", "parent": 944, "children": [], "start_point": {"row": 239, "column": 16}, "end_point": {"row": 239, "column": 40}}, {"id": 946, "type": "parameter_list", "text": "()", "parent": 944, "children": [], "start_point": {"row": 239, "column": 40}, "end_point": {"row": 239, "column": 42}}, {"id": 947, "type": "#endif", "text": "#endif", "parent": 923, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 6}}, {"id": 948, "type": "if_statement", "text": "if (window_num == 0 || sig_exit != 0)\n\t\treturn(0);", "parent": 271, "children": [949, 960], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 244, "column": 12}}, {"id": 949, "type": "parenthesized_expression", "text": "(window_num == 0 || sig_exit != 0)", "parent": 948, "children": [950], "start_point": {"row": 243, "column": 4}, "end_point": {"row": 243, "column": 38}}, {"id": 950, "type": "binary_expression", "text": "window_num == 0 || sig_exit != 0", "parent": 949, "children": [951, 955, 956], "start_point": {"row": 243, "column": 5}, "end_point": {"row": 243, "column": 37}}, {"id": 951, "type": "binary_expression", "text": "window_num == 0", "parent": 950, "children": [952, 953, 954], "start_point": {"row": 243, "column": 5}, "end_point": {"row": 243, "column": 20}}, {"id": 952, "type": "identifier", "text": "window_num", "parent": 951, "children": [], "start_point": {"row": 243, "column": 5}, "end_point": {"row": 243, "column": 15}}, {"id": 953, "type": "==", "text": "==", "parent": 951, "children": [], "start_point": {"row": 243, "column": 16}, "end_point": {"row": 243, "column": 18}}, {"id": 954, "type": "number_literal", "text": "0", "parent": 951, "children": [], "start_point": {"row": 243, "column": 19}, "end_point": {"row": 243, "column": 20}}, {"id": 955, "type": "||", "text": "||", "parent": 950, "children": [], "start_point": {"row": 243, "column": 21}, "end_point": {"row": 243, "column": 23}}, {"id": 956, "type": "binary_expression", "text": "sig_exit != 0", "parent": 950, "children": [957, 958, 959], "start_point": {"row": 243, "column": 24}, "end_point": {"row": 243, "column": 37}}, {"id": 957, "type": "identifier", "text": "sig_exit", "parent": 956, "children": [], "start_point": {"row": 243, "column": 24}, "end_point": {"row": 243, "column": 32}}, {"id": 958, "type": "!=", "text": "!=", "parent": 956, "children": [], "start_point": {"row": 243, "column": 33}, "end_point": {"row": 243, "column": 35}}, {"id": 959, "type": "number_literal", "text": "0", "parent": 956, "children": [], "start_point": {"row": 243, "column": 36}, "end_point": {"row": 243, "column": 37}}, {"id": 960, "type": "return_statement", "text": "return(0);", "parent": 948, "children": [961], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 12}}, {"id": 961, "type": "parenthesized_expression", "text": "(0)", "parent": 960, "children": [962], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 11}}, {"id": 962, "type": "number_literal", "text": "0", "parent": 961, "children": [], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 10}}, {"id": 963, "type": "return_statement", "text": "return(1);", "parent": 271, "children": [964], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 11}}, {"id": 964, "type": "parenthesized_expression", "text": "(1)", "parent": 963, "children": [965], "start_point": {"row": 246, "column": 7}, "end_point": {"row": 246, "column": 10}}, {"id": 965, "type": "number_literal", "text": "1", "parent": 964, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 9}}, {"id": 966, "type": "function_definition", "text": "void feh_clean_exit(void)\n{\n\tdelete_rm_files();\n\n\tfree(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf(\"inotify close failed\");\n#endif\n\n\tif(disp)\n\t\tXCloseDisplay(disp);\n\n\t/*\n\t * Only restore the old terminal settings if\n\t * - we changed them in the first place\n\t * - stdin still is a terminal (it might have been closed)\n\t * - stdin still belongs to us (we might have been detached from the\n\t * controlling terminal, in that case we probably shouldn't be messing\n\t * around with it) <https://github.com/derf/feh/issues/324>\n\t */\n\tif (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n\t\trestore_stdin();\n\n\tif (opt.filelistfile)\n\t\tfeh_write_filelist(filelist, opt.filelistfile);\n\n\treturn;\n}", "parent": null, "children": [967, 968], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 279, "column": 1}}, {"id": 967, "type": "primitive_type", "text": "void", "parent": 966, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 4}}, {"id": 968, "type": "function_declarator", "text": "feh_clean_exit(void)", "parent": 966, "children": [969, 970], "start_point": {"row": 249, "column": 5}, "end_point": {"row": 249, "column": 25}}, {"id": 969, "type": "identifier", "text": "feh_clean_exit", "parent": 968, "children": [], "start_point": {"row": 249, "column": 5}, "end_point": {"row": 249, "column": 19}}, {"id": 970, "type": "parameter_list", "text": "(void)", "parent": 968, "children": [971], "start_point": {"row": 249, "column": 19}, "end_point": {"row": 249, "column": 25}}, {"id": 971, "type": "parameter_declaration", "text": "void", "parent": 970, "children": [972], "start_point": {"row": 249, "column": 20}, "end_point": {"row": 249, "column": 24}}, {"id": 972, "type": "primitive_type", "text": "void", "parent": 971, "children": [], "start_point": {"row": 249, "column": 20}, "end_point": {"row": 249, "column": 24}}, {"id": 973, "type": "call_expression", "text": "delete_rm_files()", "parent": 966, "children": [974, 975], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 18}}, {"id": 974, "type": "identifier", "text": "delete_rm_files", "parent": 973, "children": [], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 16}}, {"id": 975, "type": "argument_list", "text": "()", "parent": 973, "children": [], "start_point": {"row": 251, "column": 16}, "end_point": {"row": 251, "column": 18}}, {"id": 976, "type": "call_expression", "text": "free(opt.menu_font)", "parent": 966, "children": [977, 978], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 20}}, {"id": 977, "type": "identifier", "text": "free", "parent": 976, "children": [], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 5}}, {"id": 978, "type": "argument_list", "text": "(opt.menu_font)", "parent": 976, "children": [979], "start_point": {"row": 253, "column": 5}, "end_point": {"row": 253, "column": 20}}, {"id": 979, "type": "field_expression", "text": "opt.menu_font", "parent": 978, "children": [980, 981], "start_point": {"row": 253, "column": 6}, "end_point": {"row": 253, "column": 19}}, {"id": 980, "type": "identifier", "text": "opt", "parent": 979, "children": [], "start_point": {"row": 253, "column": 6}, "end_point": {"row": 253, "column": 9}}, {"id": 981, "type": "field_identifier", "text": "menu_font", "parent": 979, "children": [], "start_point": {"row": 253, "column": 10}, "end_point": {"row": 253, "column": 19}}, {"id": 982, "type": "preproc_ifdef", "text": "#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf(\"inotify close failed\");\n#endif", "parent": 966, "children": [983, 984, 985, 1002], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 259, "column": 6}}, {"id": 983, "type": "#ifdef", "text": "#ifdef", "parent": 982, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 6}}, {"id": 984, "type": "identifier", "text": "HAVE_INOTIFY", "parent": 982, "children": [], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 19}}, {"id": 985, "type": "if_statement", "text": "if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf(\"inotify close failed\");", "parent": 982, "children": [986, 990], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 258, "column": 44}}, {"id": 986, "type": "parenthesized_expression", "text": "(opt.auto_reload)", "parent": 985, "children": [987], "start_point": {"row": 256, "column": 7}, "end_point": {"row": 256, "column": 24}}, {"id": 987, "type": "field_expression", "text": "opt.auto_reload", "parent": 986, "children": [988, 989], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 23}}, {"id": 988, "type": "identifier", "text": "opt", "parent": 987, "children": [], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 11}}, {"id": 989, "type": "field_identifier", "text": "auto_reload", "parent": 987, "children": [], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 23}}, {"id": 990, "type": "if_statement", "text": "if (close(opt.inotify_fd))\n eprintf(\"inotify close failed\");", "parent": 985, "children": [991], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 258, "column": 44}}, {"id": 991, "type": "parenthesized_expression", "text": "(close(opt.inotify_fd))", "parent": 990, "children": [992], "start_point": {"row": 257, "column": 11}, "end_point": {"row": 257, "column": 34}}, {"id": 992, "type": "call_expression", "text": "close(opt.inotify_fd)", "parent": 991, "children": [993, 994], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 33}}, {"id": 993, "type": "identifier", "text": "close", "parent": 992, "children": [], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 17}}, {"id": 994, "type": "argument_list", "text": "(opt.inotify_fd)", "parent": 992, "children": [995], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 33}}, {"id": 995, "type": "field_expression", "text": "opt.inotify_fd", "parent": 994, "children": [996, 997], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 32}}, {"id": 996, "type": "identifier", "text": "opt", "parent": 995, "children": [], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 21}}, {"id": 997, "type": "field_identifier", "text": "inotify_fd", "parent": 995, "children": [], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 32}}, {"id": 998, "type": "call_expression", "text": "eprintf(\"inotify close failed\")", "parent": 990, "children": [999, 1000], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 43}}, {"id": 999, "type": "identifier", "text": "eprintf", "parent": 998, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 19}}, {"id": 1000, "type": "argument_list", "text": "(\"inotify close failed\")", "parent": 998, "children": [1001], "start_point": {"row": 258, "column": 19}, "end_point": {"row": 258, "column": 43}}, {"id": 1001, "type": "string_literal", "text": "\"inotify close failed\"", "parent": 1000, "children": [], "start_point": {"row": 258, "column": 20}, "end_point": {"row": 258, "column": 42}}, {"id": 1002, "type": "#endif", "text": "#endif", "parent": 982, "children": [], "start_point": {"row": 259, "column": 0}, "end_point": {"row": 259, "column": 6}}, {"id": 1003, "type": "if_statement", "text": "if(disp)\n\t\tXCloseDisplay(disp);", "parent": 966, "children": [1004], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 262, "column": 22}}, {"id": 1004, "type": "parenthesized_expression", "text": "(disp)", "parent": 1003, "children": [1005], "start_point": {"row": 261, "column": 3}, "end_point": {"row": 261, "column": 9}}, {"id": 1005, "type": "identifier", "text": "disp", "parent": 1004, "children": [], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 8}}, {"id": 1006, "type": "call_expression", "text": "XCloseDisplay(disp)", "parent": 1003, "children": [1007, 1008], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 21}}, {"id": 1007, "type": "identifier", "text": "XCloseDisplay", "parent": 1006, "children": [], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 15}}, {"id": 1008, "type": "argument_list", "text": "(disp)", "parent": 1006, "children": [1009], "start_point": {"row": 262, "column": 15}, "end_point": {"row": 262, "column": 21}}, {"id": 1009, "type": "identifier", "text": "disp", "parent": 1008, "children": [], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 20}}, {"id": 1010, "type": "if_statement", "text": "if (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n\t\trestore_stdin();", "parent": 966, "children": [1011], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 273, "column": 18}}, {"id": 1011, "type": "parenthesized_expression", "text": "(control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))", "parent": 1010, "children": [1012], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 89}}, {"id": 1012, "type": "binary_expression", "text": "control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO))", "parent": 1011, "children": [1013, 1020, 1021], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 88}}, {"id": 1013, "type": "binary_expression", "text": "control_via_stdin && isatty(STDIN_FILENO)", "parent": 1012, "children": [1014, 1015, 1016], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 46}}, {"id": 1014, "type": "identifier", "text": "control_via_stdin", "parent": 1013, "children": [], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 22}}, {"id": 1015, "type": "&&", "text": "&&", "parent": 1013, "children": [], "start_point": {"row": 272, "column": 23}, "end_point": {"row": 272, "column": 25}}, {"id": 1016, "type": "call_expression", "text": "isatty(STDIN_FILENO)", "parent": 1013, "children": [1017, 1018], "start_point": {"row": 272, "column": 26}, "end_point": {"row": 272, "column": 46}}, {"id": 1017, "type": "identifier", "text": "isatty", "parent": 1016, "children": [], "start_point": {"row": 272, "column": 26}, "end_point": {"row": 272, "column": 32}}, {"id": 1018, "type": "argument_list", "text": "(STDIN_FILENO)", "parent": 1016, "children": [1019], "start_point": {"row": 272, "column": 32}, "end_point": {"row": 272, "column": 46}}, {"id": 1019, "type": "identifier", "text": "STDIN_FILENO", "parent": 1018, "children": [], "start_point": {"row": 272, "column": 33}, "end_point": {"row": 272, "column": 45}}, {"id": 1020, "type": "&&", "text": "&&", "parent": 1012, "children": [], "start_point": {"row": 272, "column": 47}, "end_point": {"row": 272, "column": 49}}, {"id": 1021, "type": "binary_expression", "text": "getpgrp() == (tcgetpgrp(STDIN_FILENO))", "parent": 1012, "children": [1022, 1025, 1026], "start_point": {"row": 272, "column": 50}, "end_point": {"row": 272, "column": 88}}, {"id": 1022, "type": "call_expression", "text": "getpgrp()", "parent": 1021, "children": [1023, 1024], "start_point": {"row": 272, "column": 50}, "end_point": {"row": 272, "column": 59}}, {"id": 1023, "type": "identifier", "text": "getpgrp", "parent": 1022, "children": [], "start_point": {"row": 272, "column": 50}, "end_point": {"row": 272, "column": 57}}, {"id": 1024, "type": "argument_list", "text": "()", "parent": 1022, "children": [], "start_point": {"row": 272, "column": 57}, "end_point": {"row": 272, "column": 59}}, {"id": 1025, "type": "==", "text": "==", "parent": 1021, "children": [], "start_point": {"row": 272, "column": 60}, "end_point": {"row": 272, "column": 62}}, {"id": 1026, "type": "parenthesized_expression", "text": "(tcgetpgrp(STDIN_FILENO))", "parent": 1021, "children": [1027], "start_point": {"row": 272, "column": 63}, "end_point": {"row": 272, "column": 88}}, {"id": 1027, "type": "call_expression", "text": "tcgetpgrp(STDIN_FILENO)", "parent": 1026, "children": [1028, 1029], "start_point": {"row": 272, "column": 64}, "end_point": {"row": 272, "column": 87}}, {"id": 1028, "type": "identifier", "text": "tcgetpgrp", "parent": 1027, "children": [], "start_point": {"row": 272, "column": 64}, "end_point": {"row": 272, "column": 73}}, {"id": 1029, "type": "argument_list", "text": "(STDIN_FILENO)", "parent": 1027, "children": [1030], "start_point": {"row": 272, "column": 73}, "end_point": {"row": 272, "column": 87}}, {"id": 1030, "type": "identifier", "text": "STDIN_FILENO", "parent": 1029, "children": [], "start_point": {"row": 272, "column": 74}, "end_point": {"row": 272, "column": 86}}, {"id": 1031, "type": "call_expression", "text": "restore_stdin()", "parent": 1010, "children": [1032, 1033], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 17}}, {"id": 1032, "type": "identifier", "text": "restore_stdin", "parent": 1031, "children": [], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 15}}, {"id": 1033, "type": "argument_list", "text": "()", "parent": 1031, "children": [], "start_point": {"row": 273, "column": 15}, "end_point": {"row": 273, "column": 17}}, {"id": 1034, "type": "if_statement", "text": "if (opt.filelistfile)\n\t\tfeh_write_filelist(filelist, opt.filelistfile);", "parent": 966, "children": [1035], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 276, "column": 49}}, {"id": 1035, "type": "parenthesized_expression", "text": "(opt.filelistfile)", "parent": 1034, "children": [1036], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 22}}, {"id": 1036, "type": "field_expression", "text": "opt.filelistfile", "parent": 1035, "children": [1037, 1038], "start_point": {"row": 275, "column": 5}, "end_point": {"row": 275, "column": 21}}, {"id": 1037, "type": "identifier", "text": "opt", "parent": 1036, "children": [], "start_point": {"row": 275, "column": 5}, "end_point": {"row": 275, "column": 8}}, {"id": 1038, "type": "field_identifier", "text": "filelistfile", "parent": 1036, "children": [], "start_point": {"row": 275, "column": 9}, "end_point": {"row": 275, "column": 21}}, {"id": 1039, "type": "call_expression", "text": "feh_write_filelist(filelist, opt.filelistfile)", "parent": 1034, "children": [1040, 1041], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 48}}, {"id": 1040, "type": "identifier", "text": "feh_write_filelist", "parent": 1039, "children": [], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 20}}, {"id": 1041, "type": "argument_list", "text": "(filelist, opt.filelistfile)", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 276, "column": 20}, "end_point": {"row": 276, "column": 48}}, {"id": 1042, "type": "identifier", "text": "filelist", "parent": 1041, "children": [], "start_point": {"row": 276, "column": 21}, "end_point": {"row": 276, "column": 29}}, {"id": 1043, "type": "field_expression", "text": "opt.filelistfile", "parent": 1041, "children": [1044, 1045], "start_point": {"row": 276, "column": 31}, "end_point": {"row": 276, "column": 47}}, {"id": 1044, "type": "identifier", "text": "opt", "parent": 1043, "children": [], "start_point": {"row": 276, "column": 31}, "end_point": {"row": 276, "column": 34}}, {"id": 1045, "type": "field_identifier", "text": "filelistfile", "parent": 1043, "children": [], "start_point": {"row": 276, "column": 35}, "end_point": {"row": 276, "column": 47}}, {"id": 1046, "type": "return_statement", "text": "return;", "parent": 966, "children": [], "start_point": {"row": 278, "column": 1}, "end_point": {"row": 278, "column": 8}}]}, "node_categories": {"declarations": {"functions": [60, 62, 271, 273, 809, 826, 927, 944, 966, 968], "variables": [34, 45, 51, 65, 68, 276, 279, 285, 291, 297, 303, 306, 311, 314, 320, 330, 817, 935, 971], "classes": [307, 308], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 30, 31], "modules": [], "enums": []}, "statements": {"expressions": [75, 79, 82, 83, 84, 88, 94, 95, 101, 104, 109, 113, 114, 117, 120, 123, 130, 131, 135, 139, 143, 144, 145, 151, 156, 160, 165, 169, 170, 173, 178, 179, 182, 187, 188, 189, 193, 196, 201, 202, 205, 210, 211, 214, 219, 220, 223, 228, 229, 232, 235, 238, 244, 245, 249, 254, 258, 263, 264, 269, 334, 335, 336, 341, 346, 349, 354, 361, 368, 376, 377, 378, 379, 384, 386, 390, 391, 395, 396, 400, 406, 412, 421, 422, 426, 430, 433, 434, 436, 439, 440, 441, 443, 444, 446, 450, 453, 454, 455, 460, 465, 467, 471, 474, 477, 479, 483, 486, 488, 492, 498, 499, 502, 505, 508, 511, 512, 513, 521, 522, 533, 534, 535, 538, 539, 540, 546, 548, 551, 554, 558, 559, 562, 565, 568, 571, 572, 575, 579, 587, 591, 594, 600, 601, 607, 608, 617, 622, 627, 630, 631, 636, 637, 638, 643, 644, 647, 649, 654, 658, 664, 668, 672, 673, 674, 675, 678, 679, 682, 688, 689, 690, 696, 702, 703, 704, 710, 719, 722, 728, 732, 738, 741, 742, 743, 744, 749, 750, 751, 752, 753, 758, 759, 764, 765, 769, 774, 775, 779, 784, 785, 786, 787, 788, 795, 796, 800, 802, 832, 833, 836, 838, 846, 849, 855, 859, 868, 869, 870, 871, 876, 877, 878, 879, 880, 885, 886, 891, 892, 896, 902, 903, 904, 905, 906, 913, 914, 918, 920, 949, 950, 951, 956, 961, 964, 973, 976, 979, 986, 987, 991, 992, 995, 998, 1004, 1006, 1011, 1012, 1013, 1016, 1021, 1022, 1026, 1027, 1031, 1035, 1036, 1039, 1043], "assignments": [134, 150, 248, 351, 358, 365, 371, 403, 409, 416, 518, 528, 578, 584, 597, 612, 616, 653, 663, 695, 709, 715, 725, 842, 852], "loops": [262, 420], "conditionals": [27, 28, 29, 33, 41, 48, 56, 63, 67, 74, 76, 78, 80, 85, 89, 97, 102, 105, 107, 108, 110, 112, 115, 116, 118, 121, 124, 126, 127, 128, 129, 132, 133, 136, 137, 140, 142, 146, 147, 152, 153, 157, 161, 164, 166, 168, 171, 172, 174, 177, 180, 181, 183, 186, 190, 191, 194, 195, 197, 200, 203, 204, 206, 209, 212, 213, 215, 218, 221, 222, 224, 227, 230, 231, 233, 236, 237, 239, 243, 246, 247, 250, 251, 255, 259, 265, 270, 274, 278, 282, 288, 294, 300, 304, 305, 309, 310, 312, 313, 317, 323, 327, 331, 332, 333, 337, 342, 348, 350, 352, 355, 357, 359, 362, 366, 369, 372, 375, 380, 382, 387, 388, 392, 397, 399, 401, 404, 407, 410, 413, 415, 417, 419, 423, 425, 427, 429, 431, 432, 435, 437, 438, 445, 447, 448, 451, 452, 456, 461, 468, 470, 472, 475, 478, 480, 482, 484, 485, 487, 489, 491, 493, 494, 495, 496, 497, 500, 501, 503, 506, 507, 509, 510, 514, 515, 517, 519, 523, 524, 527, 529, 531, 532, 536, 541, 542, 544, 549, 550, 552, 557, 560, 561, 563, 569, 576, 577, 580, 581, 585, 588, 589, 592, 598, 602, 603, 605, 606, 609, 613, 618, 619, 621, 623, 625, 626, 628, 634, 635, 639, 645, 650, 652, 655, 656, 660, 662, 665, 666, 670, 676, 683, 684, 687, 691, 692, 697, 698, 701, 705, 706, 711, 712, 716, 720, 726, 729, 731, 733, 739, 740, 745, 754, 756, 760, 762, 766, 768, 770, 773, 776, 780, 783, 789, 793, 797, 799, 801, 803, 805, 806, 807, 811, 818, 819, 821, 823, 824, 827, 829, 831, 834, 839, 841, 843, 847, 853, 856, 858, 860, 867, 872, 881, 883, 887, 889, 893, 895, 897, 901, 907, 911, 915, 917, 919, 921, 923, 924, 925, 929, 936, 937, 939, 941, 942, 945, 947, 948, 952, 957, 969, 974, 977, 980, 981, 982, 983, 984, 985, 988, 989, 990, 993, 996, 997, 999, 1002, 1003, 1005, 1007, 1009, 1010, 1014, 1017, 1019, 1023, 1028, 1030, 1032, 1034, 1037, 1038, 1040, 1042, 1044, 1045], "returns": [268, 345, 464, 960, 963, 1046], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 32, 50, 100, 149, 155, 159, 163, 241, 253, 261, 267, 284, 290, 296, 302, 319, 325, 329, 339, 344, 347, 364, 374, 458, 463, 466, 526, 555, 566, 573, 583, 595, 611, 615, 632, 641, 686, 694, 700, 708, 714, 718, 723, 747, 772, 778, 791, 814, 845, 850, 874, 899, 909, 932, 954, 959, 962, 965, 1001], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 60, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char **argv)\n{\n\tatexit(feh_clean_exit);\n\n\tsrandom(getpid() * time(NULL) % ((unsig"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}, {"node_id": 271, "universal_type": "function", "name": "feh_main_iteration", "text_snippet": "int feh_main_iteration(int block)\n{\n\tstatic int first = 1;\n\tstatic int xfd = 0;\n\tstatic int fdsize ="}, {"node_id": 273, "universal_type": "function", "name": "unknown", "text_snippet": "feh_main_iteration(int block)"}, {"node_id": 809, "universal_type": "function", "name": "unknown", "text_snippet": "if ((count > 0)"}, {"node_id": 826, "universal_type": "function", "name": "unknown", "text_snippet": "feh_event_handle_inotify()"}, {"node_id": 927, "universal_type": "function", "name": "unknown", "text_snippet": "if ((count > 0)"}, {"node_id": 944, "universal_type": "function", "name": "unknown", "text_snippet": "feh_event_handle_inotify()"}, {"node_id": 966, "universal_type": "function", "name": "feh_clean_exit", "text_snippet": "void feh_clean_exit(void)\n{\n\tdelete_rm_files();\n\n\tfree(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if ("}, {"node_id": 968, "universal_type": "function", "name": "unknown", "text_snippet": "feh_clean_exit(void)"}], "class_declarations": [{"node_id": 307, "universal_type": "class", "name": "timeval", "text_snippet": "struct timeval"}, {"node_id": 308, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"feh.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"filelist.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"winwidget.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"timers.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"options.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"events.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"signals.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"wallpaper.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <termios.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 30, "text": "#include <sys/inotify.h>\n"}, {"node_id": 31, "text": "#include"}]}, "original_source_code": "/* main.c\n\nCopyright (C) 1999-2003 <NAME>.\nCopyright (C) 2010-2020 <NAME>.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies of the Software and its documentation and acknowledgment shall be\ngiven in the documentation and software packages that this Software was\nused.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n\n#include \"feh.h\"\n#include \"filelist.h\"\n#include \"winwidget.h\"\n#include \"timers.h\"\n#include \"options.h\"\n#include \"events.h\"\n#include \"signals.h\"\n#include \"wallpaper.h\"\n#include <termios.h>\n\n#ifdef HAVE_INOTIFY\n#include <sys/inotify.h>\n#endif\n\nchar **cmdargv = NULL;\nint cmdargc = 0;\nchar *mode = NULL;\n\nint main(int argc, char **argv)\n{\n\tatexit(feh_clean_exit);\n\n\tsrandom(getpid() * time(NULL) % ((unsigned int) -1));\n\n\tsetup_signal_handlers();\n\tinit_parse_options(argc, argv);\n\n\tinit_imlib_fonts();\n\n\tif (opt.display) {\n\t\tinit_x_and_imlib();\n\t\tinit_keyevents();\n\t\tinit_buttonbindings();\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n opt.inotify_fd = inotify_init();\n if (opt.inotify_fd < 0) {\n opt.auto_reload = 0;\n weprintf(\"inotify_init failed:\");\n weprintf(\"Disabling inotify-based auto-reload\");\n }\n }\n#endif\n\t}\n\n\tfeh_event_init();\n\n\tif (opt.index)\n\t\tinit_index_mode();\n\telse if (opt.multiwindow)\n\t\tinit_multiwindow_mode();\n\telse if (opt.list || opt.customlist)\n\t\tinit_list_mode();\n\telse if (opt.loadables)\n\t\tinit_loadables_mode();\n\telse if (opt.unloadables)\n\t\tinit_unloadables_mode();\n\telse if (opt.thumbs)\n\t\tinit_thumbnail_mode();\n\telse if (opt.bgmode) {\n\t\tfeh_wm_set_bg_filelist(opt.bgmode);\n\t\texit(0);\n\t}\n\telse if (opt.display){\n\t\t/* Slideshow mode is the default. Because it's spiffy */\n\t\topt.slideshow = 1;\n\t\tinit_slideshow_mode();\n\t}\n\telse {\n\t\teprintf(\"Invalid option combination\");\n\t}\n\n\t/* main event loop */\n\twhile (feh_main_iteration(1));\n\n\treturn(sig_exit);\n}\n\n/* Return 0 to stop iterating, 1 if ok to continue. */\nint feh_main_iteration(int block)\n{\n\tstatic int first = 1;\n\tstatic int xfd = 0;\n\tstatic int fdsize = 0;\n\tstatic double pt = 0.0;\n\tXEvent ev;\n\tstruct timeval tval;\n\tfd_set fdset;\n\tint count = 0;\n\tdouble t1 = 0.0, t2 = 0.0;\n\tfehtimer ft;\n\n\tif (window_num == 0 || sig_exit != 0)\n\t\treturn(0);\n\n\tif (first) {\n\t\t/* Only need to set these up the first time */\n\t\txfd = ConnectionNumber(disp);\n\t\tfdsize = xfd + 1;\n\t\tpt = feh_get_time();\n\t\tfirst = 0;\n\t\t/*\n\t\t * Only accept commands from stdin if\n\t\t * - stdin is a terminal (otherwise it's probably used as an image / filelist)\n\t\t * - we aren't running in multiwindow mode (cause it's not clear which\n\t\t * window commands should be applied to in that case)\n\t\t * - we're in the same process group as stdin, AKA we're not running\n\t\t * in the background. Background processes are stopped with SIGTTOU\n\t\t * if they try to write to stdout or change terminal attributes. They\n\t\t * also don't get input from stdin anyway.\n\t\t */\n\t\tif (isatty(STDIN_FILENO) && !opt.multiwindow && getpgrp() == (tcgetpgrp(STDIN_FILENO))) {\n\t\t\tsetup_stdin();\n\t\t}\n\t}\n\n\t/* Timers */\n\tt1 = feh_get_time();\n\tt2 = t1 - pt;\n\tpt = t1;\n\twhile (XPending(disp)) {\n\t\tXNextEvent(disp, &ev);\n\t\tif (ev_handler[ev.type])\n\t\t\t(*(ev_handler[ev.type])) (&ev);\n\n\t\tif (window_num == 0 || sig_exit != 0)\n\t\t\treturn(0);\n\t}\n\tXFlush(disp);\n\n\tfeh_redraw_menus();\n\n\tFD_ZERO(&fdset);\n\tFD_SET(xfd, &fdset);\n\tif (control_via_stdin) {\n\t\tFD_SET(STDIN_FILENO, &fdset);\n\t}\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload) {\n FD_SET(opt.inotify_fd, &fdset);\n if (opt.inotify_fd >= fdsize)\n fdsize = opt.inotify_fd + 1;\n }\n#endif\n\n\t/* Timers */\n\tft = first_timer;\n\t/* Don't do timers if we're zooming/panning/etc or if we are paused */\n\tif (ft && (opt.mode == MODE_NORMAL) && !opt.paused) {\n\t\tD((\"There are timers in the queue\\n\"));\n\t\tif (ft->just_added) {\n\t\t\tD((\"The first timer has just been added\\n\"));\n\t\t\tD((\"ft->in = %f\\n\", ft->in));\n\t\t\tft->just_added = 0;\n\t\t\tt1 = ft->in;\n\t\t} else {\n\t\t\tD((\"The first timer was not just added\\n\"));\n\t\t\tt1 = ft->in - t2;\n\t\t\tif (t1 < 0.0)\n\t\t\t\tt1 = 0.0;\n\t\t\tft->in = t1;\n\t\t}\n\n\t\tXSync(disp, False);\n\t\tD((\"I next need to action a timer in %f seconds\\n\", t1));\n\t\t/* Only do a blocking select if there's a timer due, or no events\n\t\t waiting */\n\t\tif (t1 == 0.0 || (block && !XPending(disp))) {\n\t\t\ttval.tv_sec = (long) t1;\n\t\t\ttval.tv_usec = (long) ((t1 - ((double) tval.tv_sec)) * 1000000);\n\t\t\tif (tval.tv_sec < 0)\n\t\t\t\ttval.tv_sec = 0;\n\t\t\tif (tval.tv_usec <= 1000)\n\t\t\t\ttval.tv_usec = 1000;\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - waiting for timer or event\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, &tval);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\tif (count == 0) {\n\t\t\t\t/* This means the timer is due to be executed. If count was > 0,\n\t\t\t\t that would mean an X event had woken us, we're not interested\n\t\t\t\t in that */\n\t\t\t\tfeh_handle_timer();\n\t\t\t}\n\t\t\t/*\n\t\t\t * Beware: If stdin is not connected, we may end up with xfd == 0.\n\t\t\t * However, STDIN_FILENO == 0 holds as well in most cases. So we must\n\t\t\t * check control_via_stdin to avoid mistaking an X11 event for stdin.\n\t\t\t */\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t} else {\n\t\t/* Don't block if there are events in the queue. That's a bit rude ;-) */\n\t\tif (block && !XPending(disp)) {\n\t\t\terrno = 0;\n\t\t\tD((\"Performing blocking select - no timers, or zooming\\n\"));\n\t\t\tcount = select(fdsize, &fdset, NULL, NULL, NULL);\n\t\t\tif ((count < 0)\n\t\t\t\t\t&& ((errno == ENOMEM) || (errno == EINVAL)\n\t\t\t\t\t\t|| (errno == EBADF)))\n\t\t\t\teprintf(\"Connection to X display lost\");\n\t\t\telse if ((count > 0) && control_via_stdin && (FD_ISSET(STDIN_FILENO, &fdset)))\n\t\t\t\tfeh_event_handle_stdin();\n#ifdef HAVE_INOTIFY\n\t\t\telse if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))\n feh_event_handle_inotify();\n#endif\n\t\t}\n\t}\n\tif (window_num == 0 || sig_exit != 0)\n\t\treturn(0);\n\n\treturn(1);\n}\n\nvoid feh_clean_exit(void)\n{\n\tdelete_rm_files();\n\n\tfree(opt.menu_font);\n\n#ifdef HAVE_INOTIFY\n if (opt.auto_reload)\n if (close(opt.inotify_fd))\n eprintf(\"inotify close failed\");\n#endif\n\n\tif(disp)\n\t\tXCloseDisplay(disp);\n\n\t/*\n\t * Only restore the old terminal settings if\n\t * - we changed them in the first place\n\t * - stdin still is a terminal (it might have been closed)\n\t * - stdin still belongs to us (we might have been detached from the\n\t * controlling terminal, in that case we probably shouldn't be messing\n\t * around with it) <https://github.com/derf/feh/issues/324>\n\t */\n\tif (control_via_stdin && isatty(STDIN_FILENO) && getpgrp() == (tcgetpgrp(STDIN_FILENO)))\n\t\trestore_stdin();\n\n\tif (opt.filelistfile)\n\t\tfeh_write_filelist(filelist, opt.filelistfile);\n\n\treturn;\n}\n"}
81,025
c
#ifndef COIN_GAME_H #define COIN_GAME_H class Node; #include "..\Data\CoinGameResult.h" class CoinGame { public: CoinGame(int coins) : coins(coins), top(NULL) { } ~CoinGame() { delete top; } public: CoinGameResult calculateWinner(); private: int minimax(Node *, bool, int, int, int); private: size_t getCoinsToTake(size_t, size_t &) const; size_t getCoinIndex() const; private: int coins; Node* top; }; #endif // COIN_GAME_H
13.15
34
(translation_unit) "#ifndef COIN_GAME_H \n#define COIN_GAME_H \n \nclass Node; \n#include "..\Data\CoinGameResult.h" \n \nclass CoinGame \n{ \npublic: \n CoinGame(int coins) : coins(coins), top(NULL) \n { } \n \n ~CoinGame() \n { \n delete top; \n } \n \npublic: \n CoinGameResult calculateWinner(); \n \nprivate: \n int minimax(Node *, bool, int, int, int); \n \nprivate: \n size_t getCoinsToTake(size_t, size_t &) const; \n size_t getCoinIndex() const; \n \nprivate: \n int coins; \n Node* top; \n}; \n \n \n#endif // COIN_GAME_H \n" (preproc_ifdef) "#ifndef COIN_GAME_H \n#define COIN_GAME_H \n \nclass Node; \n#include "..\Data\CoinGameResult.h" \n \nclass CoinGame \n{ \npublic: \n CoinGame(int coins) : coins(coins), top(NULL) \n { } \n \n ~CoinGame() \n { \n delete top; \n } \n \npublic: \n CoinGameResult calculateWinner(); \n \nprivate: \n int minimax(Node *, bool, int, int, int); \n \nprivate: \n size_t getCoinsToTake(size_t, size_t &) const; \n size_t getCoinIndex() const; \n \nprivate: \n int coins; \n Node* top; \n}; \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "COIN_GAME_H" (preproc_def) "#define COIN_GAME_H \n" (#define) "#define" (identifier) "COIN_GAME_H" (declaration) "class Node;" (type_identifier) "class" (identifier) "Node" (;) ";" (preproc_include) "#include "..\Data\CoinGameResult.h" \n" (#include) "#include" (string_literal) ""..\Data\CoinGameResult.h"" (") """ (string_content) ".." (escape_sequence) "\D" (string_content) "ata" (escape_sequence) "\C" (string_content) "oinGameResult.h" (") """ (function_definition) "class CoinGame \n{ \npublic: \n CoinGame(int coins) : coins(coins), top(NULL) \n { } \n \n ~CoinGame() \n { \n delete top; \n } \n \npublic: \n CoinGameResult calculateWinner(); \n \nprivate: \n int minimax(Node *, bool, int, int, int); \n \nprivate: \n size_t getCoinsToTake(size_t, size_t &) const; \n size_t getCoinIndex() const; \n \nprivate: \n int coins; \n Node* top; \n}" (type_identifier) "class" (identifier) "CoinGame" (compound_statement) "{ \npublic: \n CoinGame(int coins) : coins(coins), top(NULL) \n { } \n \n ~CoinGame() \n { \n delete top; \n } \n \npublic: \n CoinGameResult calculateWinner(); \n \nprivate: \n int minimax(Node *, bool, int, int, int); \n \nprivate: \n size_t getCoinsToTake(size_t, size_t &) const; \n size_t getCoinIndex() const; \n \nprivate: \n int coins; \n Node* top; \n}" ({) "{" (labeled_statement) "public: \n CoinGame(int coins) : coins(coins), top(NULL) \n { }" (statement_identifier) "public" (:) ":" (ERROR) "CoinGame(int coins) : coins(coins), top(NULL)" (macro_type_specifier) "CoinGame(int coins)" (identifier) "CoinGame" (() "(" (ERROR) "int" (primitive_type) "int" (type_descriptor) "coins" (type_identifier) "coins" ()) ")" (ERROR) ":" (:) ":" (function_declarator) "coins(coins)" (identifier) "coins" (parameter_list) "(coins)" (() "(" (parameter_declaration) "coins" (type_identifier) "coins" ()) ")" (,) "," (function_declarator) "top(NULL)" (identifier) "top" (parameter_list) "(NULL)" (() "(" (parameter_declaration) "NULL" (type_identifier) "NULL" ()) ")" (compound_statement) "{ }" ({) "{" (}) "}" (expression_statement) "~CoinGame()" (unary_expression) "~CoinGame()" (~) "~" (call_expression) "CoinGame()" (identifier) "CoinGame" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ \n delete top; \n }" ({) "{" (declaration) "delete top;" (type_identifier) "delete" (identifier) "top" (;) ";" (}) "}" (labeled_statement) "public: \n CoinGameResult calculateWinner();" (statement_identifier) "public" (:) ":" (declaration) "CoinGameResult calculateWinner();" (type_identifier) "CoinGameResult" (function_declarator) "calculateWinner()" (identifier) "calculateWinner" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private: \n int minimax(Node *, bool, int, int, int);" (statement_identifier) "private" (:) ":" (declaration) "int minimax(Node *, bool, int, int, int);" (primitive_type) "int" (function_declarator) "minimax(Node *, bool, int, int, int)" (identifier) "minimax" (parameter_list) "(Node *, bool, int, int, int)" (() "(" (parameter_declaration) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "bool" (primitive_type) "bool" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (labeled_statement) "private: \n size_t getCoinsToTake(size_t, size_t &) const;" (statement_identifier) "private" (:) ":" (ERROR) "size_t getCoinsToTake(size_t, size_t &) const" (primitive_type) "size_t" (function_declarator) "getCoinsToTake(size_t, size_t &) const" (identifier) "getCoinsToTake" (parameter_list) "(size_t, size_t &)" (() "(" (parameter_declaration) "size_t" (primitive_type) "size_t" (,) "," (parameter_declaration) "size_t" (primitive_type) "size_t" (ERROR) "&" (&) "&" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "size_t getCoinIndex() const" (primitive_type) "size_t" (function_declarator) "getCoinIndex()" (identifier) "getCoinIndex" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (labeled_statement) "private: \n int coins;" (statement_identifier) "private" (:) ":" (declaration) "int coins;" (primitive_type) "int" (identifier) "coins" (;) ";" (declaration) "Node* top;" (type_identifier) "Node" (pointer_declarator) "* top" (*) "*" (identifier) "top" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// COIN_GAME_H "
161
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 13.15, "nodes": 89, "errors": 0, "source_hash": "a4e7bf201482f5b8321d5e486d4f252ecc9780a9be0d919994c69ec53ddae894", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COIN_GAME_H\r\n#define COIN_GAME_H\r\n\r\nclass Node;\r\n#include \"..\\Data\\CoinGameResult.h\"\r\n\r\nclass CoinGame\r\n{\r\npublic:\r\n\tCoinGame(int coins) : coins(coins), top(NULL)\r\n\t{ }\r\n\r\n\t~CoinGame()\r\n\t{\r\n\t\tdelete top;\r\n\t}\r\n\r\npublic:\r\n\tCoinGameResult calculateWinner();\r\n\r\nprivate:\r\n\tint minimax(Node *, bool, int, int, int);\r\n\r\nprivate:\r\n\tsize_t getCoinsToTake(size_t, size_t &) const;\r\n\tsize_t getCoinIndex() const;\r\n\r\nprivate:\r\n\tint coins;\r\n\tNode* top;\r\n};\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 8, 13, 88], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "COIN_GAME_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define COIN_GAME_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "COIN_GAME_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "declaration", "text": "class Node;", "parent": 0, "children": [7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 11}}, {"id": 7, "type": "identifier", "text": "Node", "parent": 6, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 10}}, {"id": 8, "type": "preproc_include", "text": "#include \"..\\Data\\CoinGameResult.h\"\r\n", "parent": 0, "children": [9, 10], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 9, "type": "#include", "text": "#include", "parent": 8, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 10, "type": "string_literal", "text": "\"..\\Data\\CoinGameResult.h\"", "parent": 8, "children": [11, 12], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 35}}, {"id": 11, "type": "escape_sequence", "text": "\\D", "parent": 10, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 14}}, {"id": 12, "type": "escape_sequence", "text": "\\C", "parent": 10, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 19}}, {"id": 13, "type": "function_definition", "text": "class CoinGame\r\n{\r\npublic:\r\n\tCoinGame(int coins) : coins(coins), top(NULL)\r\n\t{ }\r\n\r\n\t~CoinGame()\r\n\t{\r\n\t\tdelete top;\r\n\t}\r\n\r\npublic:\r\n\tCoinGameResult calculateWinner();\r\n\r\nprivate:\r\n\tint minimax(Node *, bool, int, int, int);\r\n\r\nprivate:\r\n\tsize_t getCoinsToTake(size_t, size_t &) const;\r\n\tsize_t getCoinIndex() const;\r\n\r\nprivate:\r\n\tint coins;\r\n\tNode* top;\r\n}", "parent": 0, "children": [14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 14, "type": "identifier", "text": "CoinGame", "parent": 13, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 14}}, {"id": 15, "type": "labeled_statement", "text": "public:\r\n\tCoinGame(int coins) : coins(coins), top(NULL)\r\n\t{ }", "parent": 13, "children": [16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 5}}, {"id": 16, "type": "ERROR", "text": "CoinGame(int coins) : coins(coins), top(NULL)", "parent": 15, "children": [17, 23, 28], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 46}}, {"id": 17, "type": "macro_type_specifier", "text": "CoinGame(int coins)", "parent": 16, "children": [18, 19, 21], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 20}}, {"id": 18, "type": "identifier", "text": "CoinGame", "parent": 17, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 9}}, {"id": 19, "type": "ERROR", "text": "int", "parent": 17, "children": [20], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 21, "type": "type_descriptor", "text": "coins", "parent": 17, "children": [22], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 19}}, {"id": 22, "type": "type_identifier", "text": "coins", "parent": 21, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 19}}, {"id": 23, "type": "function_declarator", "text": "coins(coins)", "parent": 16, "children": [24, 25], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 35}}, {"id": 24, "type": "identifier", "text": "coins", "parent": 23, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 28}}, {"id": 25, "type": "parameter_list", "text": "(coins)", "parent": 23, "children": [26], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 35}}, {"id": 26, "type": "parameter_declaration", "text": "coins", "parent": 25, "children": [27], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 34}}, {"id": 27, "type": "type_identifier", "text": "coins", "parent": 26, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 34}}, {"id": 28, "type": "function_declarator", "text": "top(NULL)", "parent": 16, "children": [29, 30], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 46}}, {"id": 29, "type": "identifier", "text": "top", "parent": 28, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 40}}, {"id": 30, "type": "parameter_list", "text": "(NULL)", "parent": 28, "children": [31], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 46}}, {"id": 31, "type": "parameter_declaration", "text": "NULL", "parent": 30, "children": [32], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 45}}, {"id": 32, "type": "type_identifier", "text": "NULL", "parent": 31, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 45}}, {"id": 33, "type": "unary_expression", "text": "~CoinGame()", "parent": 13, "children": [34, 35], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 12}}, {"id": 34, "type": "~", "text": "~", "parent": 33, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 2}}, {"id": 35, "type": "call_expression", "text": "CoinGame()", "parent": 33, "children": [36, 37], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 12}}, {"id": 36, "type": "identifier", "text": "CoinGame", "parent": 35, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 12}}, {"id": 38, "type": "declaration", "text": "delete top;", "parent": 13, "children": [39], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 13}}, {"id": 39, "type": "identifier", "text": "top", "parent": 38, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 40, "type": "labeled_statement", "text": "public:\r\n\tCoinGameResult calculateWinner();", "parent": 13, "children": [41], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 34}}, {"id": 41, "type": "declaration", "text": "CoinGameResult calculateWinner();", "parent": 40, "children": [42, 43], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 34}}, {"id": 42, "type": "type_identifier", "text": "CoinGameResult", "parent": 41, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 43, "type": "function_declarator", "text": "calculateWinner()", "parent": 41, "children": [44, 45], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 33}}, {"id": 44, "type": "identifier", "text": "calculateWinner", "parent": 43, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 31}}, {"id": 45, "type": "parameter_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 33}}, {"id": 46, "type": "labeled_statement", "text": "private:\r\n\tint minimax(Node *, bool, int, int, int);", "parent": 13, "children": [47], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 42}}, {"id": 47, "type": "declaration", "text": "int minimax(Node *, bool, int, int, int);", "parent": 46, "children": [48, 49], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 42}}, {"id": 48, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 49, "type": "function_declarator", "text": "minimax(Node *, bool, int, int, int)", "parent": 47, "children": [50, 51], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 41}}, {"id": 50, "type": "identifier", "text": "minimax", "parent": 49, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 12}}, {"id": 51, "type": "parameter_list", "text": "(Node *, bool, int, int, int)", "parent": 49, "children": [52, 56, 58, 60, 62], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 41}}, {"id": 52, "type": "parameter_declaration", "text": "Node *", "parent": 51, "children": [53, 54], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 19}}, {"id": 53, "type": "type_identifier", "text": "Node", "parent": 52, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 17}}, {"id": 54, "type": "abstract_pointer_declarator", "text": "*", "parent": 52, "children": [55], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 56, "type": "parameter_declaration", "text": "bool", "parent": 51, "children": [57], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 25}}, {"id": 57, "type": "primitive_type", "text": "bool", "parent": 56, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 25}}, {"id": 58, "type": "parameter_declaration", "text": "int", "parent": 51, "children": [59], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 30}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 30}}, {"id": 60, "type": "parameter_declaration", "text": "int", "parent": 51, "children": [61], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 35}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 35}}, {"id": 62, "type": "parameter_declaration", "text": "int", "parent": 51, "children": [63], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 40}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 40}}, {"id": 64, "type": "labeled_statement", "text": "private:\r\n\tsize_t getCoinsToTake(size_t, size_t &) const;", "parent": 13, "children": [65], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 47}}, {"id": 65, "type": "ERROR", "text": "size_t getCoinsToTake(size_t, size_t &) const", "parent": 64, "children": [66, 67], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 46}}, {"id": 66, "type": "primitive_type", "text": "size_t", "parent": 65, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 67, "type": "function_declarator", "text": "getCoinsToTake(size_t, size_t &) const", "parent": 65, "children": [68, 69], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 46}}, {"id": 68, "type": "identifier", "text": "getCoinsToTake", "parent": 67, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 22}}, {"id": 69, "type": "parameter_list", "text": "(size_t, size_t &)", "parent": 67, "children": [70, 72], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 40}}, {"id": 70, "type": "parameter_declaration", "text": "size_t", "parent": 69, "children": [71], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 29}}, {"id": 71, "type": "primitive_type", "text": "size_t", "parent": 70, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 29}}, {"id": 72, "type": "parameter_declaration", "text": "size_t", "parent": 69, "children": [73], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 37}}, {"id": 73, "type": "primitive_type", "text": "size_t", "parent": 72, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 37}}, {"id": 74, "type": "ERROR", "text": "size_t getCoinIndex() const", "parent": 13, "children": [75, 76], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 28}}, {"id": 75, "type": "primitive_type", "text": "size_t", "parent": 74, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 76, "type": "function_declarator", "text": "getCoinIndex()", "parent": 74, "children": [77, 78], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 22}}, {"id": 77, "type": "identifier", "text": "getCoinIndex", "parent": 76, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 20}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 22}}, {"id": 79, "type": "labeled_statement", "text": "private:\r\n\tint coins;", "parent": 13, "children": [80], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 11}}, {"id": 80, "type": "declaration", "text": "int coins;", "parent": 79, "children": [81, 82], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 11}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 80, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 4}}, {"id": 82, "type": "identifier", "text": "coins", "parent": 80, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 10}}, {"id": 83, "type": "declaration", "text": "Node* top;", "parent": 13, "children": [84, 85], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 11}}, {"id": 84, "type": "type_identifier", "text": "Node", "parent": 83, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 5}}, {"id": 85, "type": "pointer_declarator", "text": "* top", "parent": 83, "children": [86, 87], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 10}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 6}}, {"id": 87, "type": "identifier", "text": "top", "parent": 85, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 10}}, {"id": 88, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}]}, "node_categories": {"declarations": {"functions": [13, 23, 28, 43, 49, 67, 76], "variables": [6, 26, 31, 38, 41, 47, 52, 56, 58, 60, 62, 70, 72, 80, 83], "classes": [], "imports": [8, 9], "modules": [], "enums": []}, "statements": {"expressions": [33, 35], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 14, 17, 18, 22, 24, 27, 29, 32, 36, 39, 42, 44, 50, 53, 68, 77, 82, 84, 87, 88], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [10], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "CoinGame", "text_snippet": "class CoinGame\r\n{\r\npublic:\r\n\tCoinGame(int coins) : coins(coins), top(NULL)\r\n\t{ }\r\n\r\n\t~CoinGame()\r\n\t"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "coins(coins)"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "top(NULL)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "calculateWinner()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "minimax(Node *, bool, int, int, int)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "getCoinsToTake(size_t, size_t &) const"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "getCoinIndex()"}], "class_declarations": [], "import_statements": [{"node_id": 8, "text": "#include \"..\\Data\\CoinGameResult.h\"\r\n"}, {"node_id": 9, "text": "#include"}]}, "original_source_code": "#ifndef COIN_GAME_H\r\n#define COIN_GAME_H\r\n\r\nclass Node;\r\n#include \"..\\Data\\CoinGameResult.h\"\r\n\r\nclass CoinGame\r\n{\r\npublic:\r\n\tCoinGame(int coins) : coins(coins), top(NULL)\r\n\t{ }\r\n\r\n\t~CoinGame()\r\n\t{\r\n\t\tdelete top;\r\n\t}\r\n\r\npublic:\r\n\tCoinGameResult calculateWinner();\r\n\r\nprivate:\r\n\tint minimax(Node *, bool, int, int, int);\r\n\r\nprivate:\r\n\tsize_t getCoinsToTake(size_t, size_t &) const;\r\n\tsize_t getCoinIndex() const;\r\n\r\nprivate:\r\n\tint coins;\r\n\tNode* top;\r\n};\r\n\r\n\r\n#endif // COIN_GAME_H\r\n"}
81,026
c
#include "libmx.h" // static void mx_write(char **lineptr, char *buf) { // *lineptr = mx_realloc(*lineptr, // mx_s_strlen(*lineptr) + mx_s_strlen(buf)); // *lineptr = mx_strcat(*lineptr, buf); // } // static int mx_remembered_part(char **lineptr, char *readed, // r_line *l) { // char *buf = mx_strdup(readed); // int len = mx_strlen(buf); // int r; // int i = 0; // for (int j = 0; buf[j] != '\0' ; j++, i++) // if (buf[j] == l->delim) { // buf[j++] = '\0'; // mx_write(lineptr, buf); // for(r = 0; r < (len - i); readed[r++] = buf[j++]); // l->flag = 1; // mx_strdel(&buf); // l->sum += i; // return i; // } // mx_write(lineptr, buf); // mx_strdel(&buf); // mx_strdel(&readed); // l->sum += i; // return i; // } // static char *mx_read(char **lineptr, char *readed, // size_t buf_size, r_line *l) { // for ( ; (l->chars = read(l->fd, l->buf, buf_size)) > 0; ) { // l->buf[l->chars] = '\0'; // l->sum += l->chars; // readed = mx_strdup(l->buf); // for (size_t j = 0; // j < buf_size || l->buf[j] != '\0'; j++, l->index++) // if (l->buf[j] == l->delim) { // l->buf[j++] = '\0'; // for (l->k = 0; l->k < buf_size - l->index % buf_size; ) // readed[l->k++] = l->buf[j++]; // l->flag = 1; // break; // } // mx_write(lineptr, l->buf); // if (l->flag == 1) // break; // mx_strdel(&readed); // } // (int) l->chars == 0 && l->index == 0 ? l->index-- : l->index; // return readed; // } // static r_line *struct_creator(size_t buf_size, char delim, const int fd) { // r_line *l = (r_line *)malloc(sizeof(r_line)); // l->buf = mx_strnew(buf_size); // l->flag = 0; // l->index = 0; // l->chars = 0; // l->sum = 0; // l->fd = fd; // l->delim = delim; // return l; // } // int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) { // r_line *l = struct_creator(buf_size, delim, fd); // static char *readed; // int result; // if (readed != NULL && mx_s_strlen(readed) == 0) // mx_strdel(&readed); // l->fd < 0 ? (l->index = -2, l->flag = 1) : l->index; // if (readed != NULL && mx_strlen(readed) > 0) // l->index = mx_remembered_part(lineptr, readed, l); // if (l->flag == 0) // readed = mx_read(lineptr, NULL, buf_size, l); // result = l->index > l->sum ? l->sum : l->index; // if (result == -1) // mx_strdel(&readed); // free(l->buf); // free(l); // return result; // } // static void *mx_realloc2(void *ptr, size_t size) { // LEAKS // if (!ptr && size) // return malloc(size); // if (size == 0 && ptr) { // free(ptr); // return NULL; // } // void *res; // size_t len = mx_strlen(ptr); // res = malloc(len > size ? len : size); // if (!res) // return NULL; // return mx_memmove(res, ptr, size); // } /* * WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ static void *mx_realloc2(void *ptr, size_t size) { char *new = mx_strnew(size); char *p = (char *)ptr; if (new == NULL) return NULL; if (ptr == NULL) return new; for (unsigned int i = 0; i < size; i++) new[i] = p[i]; free(ptr); return new; } static void mx_free(char **lineptr, char *buf, int *count, int chars) { chars == 0 && (*count) == 0 ? (*count)-- : (*count); mx_strdel(&buf); if (*lineptr == NULL && (*count) < 1) { *lineptr = malloc(1); *lineptr[0] = '\0'; } } int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) { char *buf = mx_strnew(1); int count = 0; int chars; fd < 0 ? (count = -2) : count; for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) { if (*buf == delim) break; *lineptr = mx_realloc2(*lineptr, mx_s_strlen(*lineptr) + mx_s_strlen(buf)); *lineptr = mx_strcat(*lineptr, buf); count++; } mx_free(&(*lineptr), buf, &count, chars); return count; } // static void *mx_realloc2(void *ptr, size_t size) { // char *new = mx_strnew(size); // char *p = (char *)ptr; // if (new == NULL) // return NULL; // if (ptr == NULL) // return new; // for (unsigned int i = 0; i < size; i++) // new[i] = p[i]; // free(ptr); // return new; // } // static void mx_free(char **lineptr, char *buf, int *count, int chars) { // chars == 0 && (*count) == 0 ? (*count)-- : (*count); // mx_strdel(&buf); // if (*lineptr == NULL && (*count) < 1) { // *lineptr = malloc(1); // *lineptr[0] = '\0'; // } // } // int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) { // static char *mem = NULL; // char *buf = mx_strnew(1); // int count = 0; // int chars = 0; // int i; // fd < 0 ? (count = -2) : count; // // printf("mem1 = |%s|\n\n", mem); // if (mem != NULL) { // for (i = 0; i < mx_s_strlen(mem); i++) { // if (mem[i] == delim) // break; // buf[0] = mem[i]; // *lineptr = mx_realloc2(*lineptr, // mx_s_strlen(*lineptr) + mx_s_strlen(buf)); // *lineptr = mx_strcat(*lineptr, buf); // count++; // } // if (count < mx_s_strlen(mem)) { // for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) { // char *buf2 = strdup(mem + count); // mx_strdel(&mem); // mem = mx_realloc2(buf2, mx_s_strlen(buf2)); // mem = mx_strcat(mem, buf2); // } // } // else // mx_strdel(&mem); // } // // printf("mem2 = |%s|\t\t counter = %d\n\n", mem, count); // if (mem == NULL) { // for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) { // if (*buf == delim) // break; // *lineptr = mx_realloc2(*lineptr, // mx_s_strlen(*lineptr) + mx_s_strlen(buf)); // *lineptr = mx_strcat(*lineptr, buf); // count++; // } // } // if (chars != 0 && (count % buf_size + 1 != 0)) { // for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) { // read(fd, buf, (buf_size / buf_size)); // mem = mx_realloc2(mem, mx_s_strlen(mem) + mx_s_strlen(buf)); // mem = mx_strcat(mem, buf); // // printf("mem = %s\n\n", mem); // // sleep(1); // } // } // // printf("mem = %s\n\n", mem); // mx_free(&(*lineptr), buf, &count, chars); // return count; // } // // ter a fire lic
32.76
208
(translation_unit) "#include "libmx.h"\n\n// static void mx_write(char **lineptr, char *buf) {\n// *lineptr = mx_realloc(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// }\n\n// static int mx_remembered_part(char **lineptr, char *readed,\n// r_line *l) {\n// char *buf = mx_strdup(readed);\n// int len = mx_strlen(buf);\n// int r;\n// int i = 0;\n\n// for (int j = 0; buf[j] != '\0' ; j++, i++)\n// if (buf[j] == l->delim) {\n// buf[j++] = '\0';\n// mx_write(lineptr, buf);\n// for(r = 0; r < (len - i); readed[r++] = buf[j++]);\n// l->flag = 1;\n// mx_strdel(&buf);\n// l->sum += i;\n// return i;\n// }\n// mx_write(lineptr, buf);\n// mx_strdel(&buf);\n// mx_strdel(&readed);\n// l->sum += i;\n// return i;\n// }\n\n// static char *mx_read(char **lineptr, char *readed,\n// size_t buf_size, r_line *l) {\n// for ( ; (l->chars = read(l->fd, l->buf, buf_size)) > 0; ) {\n// l->buf[l->chars] = '\0';\n// l->sum += l->chars;\n// readed = mx_strdup(l->buf);\n// for (size_t j = 0;\n// j < buf_size || l->buf[j] != '\0'; j++, l->index++)\n// if (l->buf[j] == l->delim) {\n// l->buf[j++] = '\0';\n// for (l->k = 0; l->k < buf_size - l->index % buf_size; )\n// readed[l->k++] = l->buf[j++];\n// l->flag = 1;\n// break;\n// }\n// mx_write(lineptr, l->buf);\n// if (l->flag == 1)\n// break;\n// mx_strdel(&readed);\n// }\n// (int) l->chars == 0 && l->index == 0 ? l->index-- : l->index;\n// return readed;\n// }\n\n// static r_line *struct_creator(size_t buf_size, char delim, const int fd) {\n// r_line *l = (r_line *)malloc(sizeof(r_line));\n\n// l->buf = mx_strnew(buf_size);\n// l->flag = 0;\n// l->index = 0;\n// l->chars = 0;\n// l->sum = 0;\n// l->fd = fd;\n// l->delim = delim;\n// return l;\n// }\n\n// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n// r_line *l = struct_creator(buf_size, delim, fd);\n// static char *readed;\n// int result;\n\n// if (readed != NULL && mx_s_strlen(readed) == 0)\n// mx_strdel(&readed);\n// l->fd < 0 ? (l->index = -2, l->flag = 1) : l->index;\n// if (readed != NULL && mx_strlen(readed) > 0)\n// l->index = mx_remembered_part(lineptr, readed, l);\n// if (l->flag == 0)\n// readed = mx_read(lineptr, NULL, buf_size, l);\n// result = l->index > l->sum ? l->sum : l->index;\n// if (result == -1)\n// mx_strdel(&readed);\n// free(l->buf);\n// free(l);\n// return result;\n// }\n\n// static void *mx_realloc2(void *ptr, size_t size) { // LEAKS\n// if (!ptr && size)\n// return malloc(size);\n// if (size == 0 && ptr) {\n// free(ptr);\n// return NULL;\n// }\n// void *res;\n// size_t len = mx_strlen(ptr);\n\n// res = malloc(len > size ? len : size);\n// if (!res)\n// return NULL;\n// return mx_memmove(res, ptr, size);\n// }\n\n/*\n * WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\nstatic void *mx_realloc2(void *ptr, size_t size) {\n char *new = mx_strnew(size);\n char *p = (char *)ptr;\n\n if (new == NULL)\n return NULL;\n if (ptr == NULL)\n return new;\n for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];\n free(ptr);\n return new;\n}\n\nstatic void mx_free(char **lineptr, char *buf, int *count, int chars) {\n chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n mx_strdel(&buf);\n if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\0';\n }\n}\n\nint mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n char *buf = mx_strnew(1);\n int count = 0;\n int chars;\n\n fd < 0 ? (count = -2) : count;\n for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }\n mx_free(&(*lineptr), buf, &count, chars);\n return count;\n}\n\n// static void *mx_realloc2(void *ptr, size_t size) {\n// char *new = mx_strnew(size);\n// char *p = (char *)ptr;\n\n// if (new == NULL)\n// return NULL;\n// if (ptr == NULL)\n// return new;\n// for (unsigned int i = 0; i < size; i++)\n// new[i] = p[i];\n// free(ptr);\n// return new;\n// }\n\n// static void mx_free(char **lineptr, char *buf, int *count, int chars) {\n// chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n// mx_strdel(&buf);\n// if (*lineptr == NULL && (*count) < 1) {\n// *lineptr = malloc(1);\n// *lineptr[0] = '\0';\n// }\n// }\n\n// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n// static char *mem = NULL;\n// char *buf = mx_strnew(1);\n// int count = 0;\n// int chars = 0;\n// int i;\n\n// fd < 0 ? (count = -2) : count;\n// // printf("mem1 = |%s|\n\n", mem);\n\n// if (mem != NULL) {\n// for (i = 0; i < mx_s_strlen(mem); i++) {\n// if (mem[i] == delim)\n// break;\n// buf[0] = mem[i];\n// *lineptr = mx_realloc2(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// count++;\n// }\n// if (count < mx_s_strlen(mem)) {\n// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {\n// char *buf2 = strdup(mem + count);\n// mx_strdel(&mem);\n// mem = mx_realloc2(buf2, mx_s_strlen(buf2));\n// mem = mx_strcat(mem, buf2);\n// }\n// }\n// else\n// mx_strdel(&mem);\n// }\n// // printf("mem2 = |%s|\t\t counter = %d\n\n", mem, count);\n// if (mem == NULL) {\n// for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n// if (*buf == delim)\n// break;\n// *lineptr = mx_realloc2(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// count++;\n// }\n// }\n// if (chars != 0 && (count % buf_size + 1 != 0)) {\n// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {\n// read(fd, buf, (buf_size / buf_size));\n// mem = mx_realloc2(mem, mx_s_strlen(mem) + mx_s_strlen(buf));\n// mem = mx_strcat(mem, buf);\n// // printf("mem = %s\n\n", mem);\n// // sleep(1);\n// }\n// }\n// // printf("mem = %s\n\n", mem);\n// mx_free(&(*lineptr), buf, &count, chars);\n// return count;\n// }\n\n\n// // ter a fire lic\n\n\n\n" (preproc_include) "#include "libmx.h"\n" (#include) "#include" (string_literal) ""libmx.h"" (") """ (string_content) "libmx.h" (") """ (comment) "// static void mx_write(char **lineptr, char *buf) {" (comment) "// *lineptr = mx_realloc(*lineptr," (comment) "// mx_s_strlen(*lineptr) + mx_s_strlen(buf));" (comment) "// *lineptr = mx_strcat(*lineptr, buf);" (comment) "// }" (comment) "// static int mx_remembered_part(char **lineptr, char *readed," (comment) "// r_line *l) {" (comment) "// char *buf = mx_strdup(readed);" (comment) "// int len = mx_strlen(buf);" (comment) "// int r;" (comment) "// int i = 0;" (comment) "// for (int j = 0; buf[j] != '\0' ; j++, i++)" (comment) "// if (buf[j] == l->delim) {" (comment) "// buf[j++] = '\0';" (comment) "// mx_write(lineptr, buf);" (comment) "// for(r = 0; r < (len - i); readed[r++] = buf[j++]);" (comment) "// l->flag = 1;" (comment) "// mx_strdel(&buf);" (comment) "// l->sum += i;" (comment) "// return i;" (comment) "// }" (comment) "// mx_write(lineptr, buf);" (comment) "// mx_strdel(&buf);" (comment) "// mx_strdel(&readed);" (comment) "// l->sum += i;" (comment) "// return i;" (comment) "// }" (comment) "// static char *mx_read(char **lineptr, char *readed," (comment) "// size_t buf_size, r_line *l) {" (comment) "// for ( ; (l->chars = read(l->fd, l->buf, buf_size)) > 0; ) {" (comment) "// l->buf[l->chars] = '\0';" (comment) "// l->sum += l->chars;" (comment) "// readed = mx_strdup(l->buf);" (comment) "// for (size_t j = 0;" (comment) "// j < buf_size || l->buf[j] != '\0'; j++, l->index++)" (comment) "// if (l->buf[j] == l->delim) {" (comment) "// l->buf[j++] = '\0';" (comment) "// for (l->k = 0; l->k < buf_size - l->index % buf_size; )" (comment) "// readed[l->k++] = l->buf[j++];" (comment) "// l->flag = 1;" (comment) "// break;" (comment) "// }" (comment) "// mx_write(lineptr, l->buf);" (comment) "// if (l->flag == 1)" (comment) "// break;" (comment) "// mx_strdel(&readed);" (comment) "// }" (comment) "// (int) l->chars == 0 && l->index == 0 ? l->index-- : l->index;" (comment) "// return readed;" (comment) "// }" (comment) "// static r_line *struct_creator(size_t buf_size, char delim, const int fd) {" (comment) "// r_line *l = (r_line *)malloc(sizeof(r_line));" (comment) "// l->buf = mx_strnew(buf_size);" (comment) "// l->flag = 0;" (comment) "// l->index = 0;" (comment) "// l->chars = 0;" (comment) "// l->sum = 0;" (comment) "// l->fd = fd;" (comment) "// l->delim = delim;" (comment) "// return l;" (comment) "// }" (comment) "// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {" (comment) "// r_line *l = struct_creator(buf_size, delim, fd);" (comment) "// static char *readed;" (comment) "// int result;" (comment) "// if (readed != NULL && mx_s_strlen(readed) == 0)" (comment) "// mx_strdel(&readed);" (comment) "// l->fd < 0 ? (l->index = -2, l->flag = 1) : l->index;" (comment) "// if (readed != NULL && mx_strlen(readed) > 0)" (comment) "// l->index = mx_remembered_part(lineptr, readed, l);" (comment) "// if (l->flag == 0)" (comment) "// readed = mx_read(lineptr, NULL, buf_size, l);" (comment) "// result = l->index > l->sum ? l->sum : l->index;" (comment) "// if (result == -1)" (comment) "// mx_strdel(&readed);" (comment) "// free(l->buf);" (comment) "// free(l);" (comment) "// return result;" (comment) "// }" (comment) "// static void *mx_realloc2(void *ptr, size_t size) { // LEAKS" (comment) "// if (!ptr && size)" (comment) "// return malloc(size);" (comment) "// if (size == 0 && ptr) {" (comment) "// free(ptr);" (comment) "// return NULL;" (comment) "// }" (comment) "// void *res;" (comment) "// size_t len = mx_strlen(ptr);" (comment) "// res = malloc(len > size ? len : size);" (comment) "// if (!res)" (comment) "// return NULL;" (comment) "// return mx_memmove(res, ptr, size);" (comment) "// }" (comment) "/*\n * WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */" (function_definition) "static void *mx_realloc2(void *ptr, size_t size) {\n char *new = mx_strnew(size);\n char *p = (char *)ptr;\n\n if (new == NULL)\n return NULL;\n if (ptr == NULL)\n return new;\n for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];\n free(ptr);\n return new;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "*mx_realloc2(void *ptr, size_t size)" (*) "*" (function_declarator) "mx_realloc2(void *ptr, size_t size)" (identifier) "mx_realloc2" (parameter_list) "(void *ptr, size_t size)" (() "(" (parameter_declaration) "void *ptr" (primitive_type) "void" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n char *new = mx_strnew(size);\n char *p = (char *)ptr;\n\n if (new == NULL)\n return NULL;\n if (ptr == NULL)\n return new;\n for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];\n free(ptr);\n return new;\n}" ({) "{" (declaration) "char *new = mx_strnew(size);" (primitive_type) "char" (init_declarator) "*new = mx_strnew(size)" (pointer_declarator) "*new" (*) "*" (identifier) "new" (=) "=" (call_expression) "mx_strnew(size)" (identifier) "mx_strnew" (argument_list) "(size)" (() "(" (identifier) "size" ()) ")" (;) ";" (declaration) "char *p = (char *)ptr;" (primitive_type) "char" (init_declarator) "*p = (char *)ptr" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (cast_expression) "(char *)ptr" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "ptr" (;) ";" (if_statement) "if (new == NULL)\n return NULL;" (if) "if" (parenthesized_expression) "(new == NULL)" (() "(" (binary_expression) "new == NULL" (identifier) "new" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if (ptr == NULL)\n return new;" (if) "if" (parenthesized_expression) "(ptr == NULL)" (() "(" (binary_expression) "ptr == NULL" (identifier) "ptr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return new;" (return) "return" (identifier) "new" (;) ";" (for_statement) "for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];" (for) "for" (() "(" (declaration) "unsigned int i = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < size" (identifier) "i" (<) "<" (identifier) "size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "new[i] = p[i];" (assignment_expression) "new[i] = p[i]" (subscript_expression) "new[i]" (identifier) "new" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "free(ptr);" (call_expression) "free(ptr)" (identifier) "free" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (return_statement) "return new;" (return) "return" (identifier) "new" (;) ";" (}) "}" (function_definition) "static void mx_free(char **lineptr, char *buf, int *count, int chars) {\n chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n mx_strdel(&buf);\n if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\0';\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mx_free(char **lineptr, char *buf, int *count, int chars)" (identifier) "mx_free" (parameter_list) "(char **lineptr, char *buf, int *count, int chars)" (() "(" (parameter_declaration) "char **lineptr" (primitive_type) "char" (pointer_declarator) "**lineptr" (*) "*" (pointer_declarator) "*lineptr" (*) "*" (identifier) "lineptr" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "int *count" (primitive_type) "int" (pointer_declarator) "*count" (*) "*" (identifier) "count" (,) "," (parameter_declaration) "int chars" (primitive_type) "int" (identifier) "chars" ()) ")" (compound_statement) "{\n chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n mx_strdel(&buf);\n if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\0';\n }\n}" ({) "{" (expression_statement) "chars == 0 && (*count) == 0 ? (*count)-- : (*count);" (conditional_expression) "chars == 0 && (*count) == 0 ? (*count)-- : (*count)" (binary_expression) "chars == 0 && (*count) == 0" (binary_expression) "chars == 0" (identifier) "chars" (==) "==" (number_literal) "0" (&&) "&&" (binary_expression) "(*count) == 0" (parenthesized_expression) "(*count)" (() "(" (pointer_expression) "*count" (*) "*" (identifier) "count" ()) ")" (==) "==" (number_literal) "0" (?) "?" (update_expression) "(*count)--" (parenthesized_expression) "(*count)" (() "(" (pointer_expression) "*count" (*) "*" (identifier) "count" ()) ")" (--) "--" (:) ":" (parenthesized_expression) "(*count)" (() "(" (pointer_expression) "*count" (*) "*" (identifier) "count" ()) ")" (;) ";" (expression_statement) "mx_strdel(&buf);" (call_expression) "mx_strdel(&buf)" (identifier) "mx_strdel" (argument_list) "(&buf)" (() "(" (pointer_expression) "&buf" (&) "&" (identifier) "buf" ()) ")" (;) ";" (if_statement) "if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\0';\n }" (if) "if" (parenthesized_expression) "(*lineptr == NULL && (*count) < 1)" (() "(" (binary_expression) "*lineptr == NULL && (*count) < 1" (binary_expression) "*lineptr == NULL" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (==) "==" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "(*count) < 1" (parenthesized_expression) "(*count)" (() "(" (pointer_expression) "*count" (*) "*" (identifier) "count" ()) ")" (<) "<" (number_literal) "1" ()) ")" (compound_statement) "{\n *lineptr = malloc(1);\n *lineptr[0] = '\0';\n }" ({) "{" (expression_statement) "*lineptr = malloc(1);" (assignment_expression) "*lineptr = malloc(1)" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (=) "=" (call_expression) "malloc(1)" (identifier) "malloc" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "*lineptr[0] = '\0';" (assignment_expression) "*lineptr[0] = '\0'" (pointer_expression) "*lineptr[0]" (*) "*" (subscript_expression) "lineptr[0]" (identifier) "lineptr" ([) "[" (number_literal) "0" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (}) "}" (}) "}" (function_definition) "int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n char *buf = mx_strnew(1);\n int count = 0;\n int chars;\n\n fd < 0 ? (count = -2) : count;\n for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }\n mx_free(&(*lineptr), buf, &count, chars);\n return count;\n}" (primitive_type) "int" (function_declarator) "mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd)" (identifier) "mx_read_line" (parameter_list) "(char **lineptr, size_t buf_size, char delim, const int fd)" (() "(" (parameter_declaration) "char **lineptr" (primitive_type) "char" (pointer_declarator) "**lineptr" (*) "*" (pointer_declarator) "*lineptr" (*) "*" (identifier) "lineptr" (,) "," (parameter_declaration) "size_t buf_size" (primitive_type) "size_t" (identifier) "buf_size" (,) "," (parameter_declaration) "char delim" (primitive_type) "char" (identifier) "delim" (,) "," (parameter_declaration) "const int fd" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n char *buf = mx_strnew(1);\n int count = 0;\n int chars;\n\n fd < 0 ? (count = -2) : count;\n for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }\n mx_free(&(*lineptr), buf, &count, chars);\n return count;\n}" ({) "{" (declaration) "char *buf = mx_strnew(1);" (primitive_type) "char" (init_declarator) "*buf = mx_strnew(1)" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (=) "=" (call_expression) "mx_strnew(1)" (identifier) "mx_strnew" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (declaration) "int count = 0;" (primitive_type) "int" (init_declarator) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (declaration) "int chars;" (primitive_type) "int" (identifier) "chars" (;) ";" (expression_statement) "fd < 0 ? (count = -2) : count;" (conditional_expression) "fd < 0 ? (count = -2) : count" (binary_expression) "fd < 0" (identifier) "fd" (<) "<" (number_literal) "0" (?) "?" (parenthesized_expression) "(count = -2)" (() "(" (assignment_expression) "count = -2" (identifier) "count" (=) "=" (number_literal) "-2" ()) ")" (:) ":" (identifier) "count" (;) ";" (for_statement) "for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }" (for) "for" (() "(" (;) ";" (binary_expression) "(chars = read(fd, buf, (buf_size / buf_size))) > 0" (parenthesized_expression) "(chars = read(fd, buf, (buf_size / buf_size)))" (() "(" (assignment_expression) "chars = read(fd, buf, (buf_size / buf_size))" (identifier) "chars" (=) "=" (call_expression) "read(fd, buf, (buf_size / buf_size))" (identifier) "read" (argument_list) "(fd, buf, (buf_size / buf_size))" (() "(" (identifier) "fd" (,) "," (identifier) "buf" (,) "," (parenthesized_expression) "(buf_size / buf_size)" (() "(" (binary_expression) "buf_size / buf_size" (identifier) "buf_size" (/) "/" (identifier) "buf_size" ()) ")" ()) ")" ()) ")" (>) ">" (number_literal) "0" (;) ";" ()) ")" (compound_statement) "{\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }" ({) "{" (if_statement) "if (*buf == delim)\n break;" (if) "if" (parenthesized_expression) "(*buf == delim)" (() "(" (binary_expression) "*buf == delim" (pointer_expression) "*buf" (*) "*" (identifier) "buf" (==) "==" (identifier) "delim" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "*lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));" (assignment_expression) "*lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (=) "=" (call_expression) "mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))" (identifier) "mx_realloc2" (argument_list) "(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))" (() "(" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (,) "," (binary_expression) "mx_s_strlen(*lineptr) + mx_s_strlen(buf)" (call_expression) "mx_s_strlen(*lineptr)" (identifier) "mx_s_strlen" (argument_list) "(*lineptr)" (() "(" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" ()) ")" (+) "+" (call_expression) "mx_s_strlen(buf)" (identifier) "mx_s_strlen" (argument_list) "(buf)" (() "(" (identifier) "buf" ()) ")" ()) ")" (;) ";" (expression_statement) "*lineptr = mx_strcat(*lineptr, buf);" (assignment_expression) "*lineptr = mx_strcat(*lineptr, buf)" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (=) "=" (call_expression) "mx_strcat(*lineptr, buf)" (identifier) "mx_strcat" (argument_list) "(*lineptr, buf)" (() "(" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" (,) "," (identifier) "buf" ()) ")" (;) ";" (expression_statement) "count++;" (update_expression) "count++" (identifier) "count" (++) "++" (;) ";" (}) "}" (expression_statement) "mx_free(&(*lineptr), buf, &count, chars);" (call_expression) "mx_free(&(*lineptr), buf, &count, chars)" (identifier) "mx_free" (argument_list) "(&(*lineptr), buf, &count, chars)" (() "(" (pointer_expression) "&(*lineptr)" (&) "&" (parenthesized_expression) "(*lineptr)" (() "(" (pointer_expression) "*lineptr" (*) "*" (identifier) "lineptr" ()) ")" (,) "," (identifier) "buf" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" (,) "," (identifier) "chars" ()) ")" (;) ";" (return_statement) "return count;" (return) "return" (identifier) "count" (;) ";" (}) "}" (comment) "// static void *mx_realloc2(void *ptr, size_t size) {" (comment) "// char *new = mx_strnew(size);" (comment) "// char *p = (char *)ptr;" (comment) "// if (new == NULL)" (comment) "// return NULL;" (comment) "// if (ptr == NULL)" (comment) "// return new;" (comment) "// for (unsigned int i = 0; i < size; i++)" (comment) "// new[i] = p[i];" (comment) "// free(ptr);" (comment) "// return new;" (comment) "// }" (comment) "// static void mx_free(char **lineptr, char *buf, int *count, int chars) {" (comment) "// chars == 0 && (*count) == 0 ? (*count)-- : (*count);" (comment) "// mx_strdel(&buf);" (comment) "// if (*lineptr == NULL && (*count) < 1) {" (comment) "// *lineptr = malloc(1);" (comment) "// *lineptr[0] = '\0';" (comment) "// }" (comment) "// }" (comment) "// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {" (comment) "// static char *mem = NULL;" (comment) "// char *buf = mx_strnew(1);" (comment) "// int count = 0;" (comment) "// int chars = 0;" (comment) "// int i;" (comment) "// fd < 0 ? (count = -2) : count;" (comment) "// // printf("mem1 = |%s|\n\n", mem);" (comment) "// if (mem != NULL) {" (comment) "// for (i = 0; i < mx_s_strlen(mem); i++) {" (comment) "// if (mem[i] == delim)" (comment) "// break;" (comment) "// buf[0] = mem[i];" (comment) "// *lineptr = mx_realloc2(*lineptr," (comment) "// mx_s_strlen(*lineptr) + mx_s_strlen(buf));" (comment) "// *lineptr = mx_strcat(*lineptr, buf);" (comment) "// count++;" (comment) "// }" (comment) "// if (count < mx_s_strlen(mem)) {" (comment) "// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {" (comment) "// char *buf2 = strdup(mem + count);" (comment) "// mx_strdel(&mem);" (comment) "// mem = mx_realloc2(buf2, mx_s_strlen(buf2));" (comment) "// mem = mx_strcat(mem, buf2);" (comment) "// }" (comment) "// }" (comment) "// else" (comment) "// mx_strdel(&mem);" (comment) "// }" (comment) "// // printf("mem2 = |%s|\t\t counter = %d\n\n", mem, count);" (comment) "// if (mem == NULL) {" (comment) "// for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {" (comment) "// if (*buf == delim)" (comment) "// break;" (comment) "// *lineptr = mx_realloc2(*lineptr," (comment) "// mx_s_strlen(*lineptr) + mx_s_strlen(buf));" (comment) "// *lineptr = mx_strcat(*lineptr, buf);" (comment) "// count++;" (comment) "// }" (comment) "// }" (comment) "// if (chars != 0 && (count % buf_size + 1 != 0)) {" (comment) "// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {" (comment) "// read(fd, buf, (buf_size / buf_size));" (comment) "// mem = mx_realloc2(mem, mx_s_strlen(mem) + mx_s_strlen(buf));" (comment) "// mem = mx_strcat(mem, buf);" (comment) "// // printf("mem = %s\n\n", mem);" (comment) "// // sleep(1);" (comment) "// }" (comment) "// }" (comment) "// // printf("mem = %s\n\n", mem);" (comment) "// mx_free(&(*lineptr), buf, &count, chars);" (comment) "// return count;" (comment) "// }" (comment) "// // ter a fire lic"
639
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 32.76, "nodes": 312, "errors": 0, "source_hash": "75db3bfe5a91b48dd8bb94b20ed2861d921b2c1990003835c34cf3cc49ca9f2c", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"libmx.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"libmx.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "static void *mx_realloc2(void *ptr, size_t size) {\n char *new = mx_strnew(size);\n char *p = (char *)ptr;\n\n if (new == NULL)\n return NULL;\n if (ptr == NULL)\n return new;\n for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];\n free(ptr);\n return new;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 11}}, {"id": 5, "type": "pointer_declarator", "text": "*mx_realloc2(void *ptr, size_t size)", "parent": 3, "children": [6, 7], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 48}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 13}}, {"id": 7, "type": "function_declarator", "text": "mx_realloc2(void *ptr, size_t size)", "parent": 5, "children": [8, 9], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 48}}, {"id": 8, "type": "identifier", "text": "mx_realloc2", "parent": 7, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 24}}, {"id": 9, "type": "parameter_list", "text": "(void *ptr, size_t size)", "parent": 7, "children": [10, 15], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 48}}, {"id": 10, "type": "parameter_declaration", "text": "void *ptr", "parent": 9, "children": [11, 12], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 34}}, {"id": 11, "type": "primitive_type", "text": "void", "parent": 10, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 29}}, {"id": 12, "type": "pointer_declarator", "text": "*ptr", "parent": 10, "children": [13, 14], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 34}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 31}}, {"id": 14, "type": "identifier", "text": "ptr", "parent": 12, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 34}}, {"id": 15, "type": "parameter_declaration", "text": "size_t size", "parent": 9, "children": [16, 17], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 47}}, {"id": 16, "type": "primitive_type", "text": "size_t", "parent": 15, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 42}}, {"id": 17, "type": "identifier", "text": "size", "parent": 15, "children": [], "start_point": {"row": 108, "column": 43}, "end_point": {"row": 108, "column": 47}}, {"id": 18, "type": "declaration", "text": "char *new = mx_strnew(size);", "parent": 3, "children": [19, 20], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 32}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 8}}, {"id": 20, "type": "init_declarator", "text": "*new = mx_strnew(size)", "parent": 18, "children": [21, 23, 24], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 31}}, {"id": 21, "type": "pointer_declarator", "text": "*new", "parent": 20, "children": [22], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 13}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 10}}, {"id": 23, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 15}}, {"id": 24, "type": "call_expression", "text": "mx_strnew(size)", "parent": 20, "children": [25, 26], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 31}}, {"id": 25, "type": "identifier", "text": "mx_strnew", "parent": 24, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 25}}, {"id": 26, "type": "argument_list", "text": "(size)", "parent": 24, "children": [27], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 31}}, {"id": 27, "type": "identifier", "text": "size", "parent": 26, "children": [], "start_point": {"row": 109, "column": 26}, "end_point": {"row": 109, "column": 30}}, {"id": 28, "type": "declaration", "text": "char *p = (char *)ptr;", "parent": 3, "children": [29, 30], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 26}}, {"id": 29, "type": "primitive_type", "text": "char", "parent": 28, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 8}}, {"id": 30, "type": "init_declarator", "text": "*p = (char *)ptr", "parent": 28, "children": [31, 34, 35], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 25}}, {"id": 31, "type": "pointer_declarator", "text": "*p", "parent": 30, "children": [32, 33], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 11}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 10}}, {"id": 33, "type": "identifier", "text": "p", "parent": 31, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 11}}, {"id": 34, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 13}}, {"id": 35, "type": "cast_expression", "text": "(char *)ptr", "parent": 30, "children": [36, 40], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 25}}, {"id": 36, "type": "type_descriptor", "text": "char *", "parent": 35, "children": [37, 38], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 21}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 19}}, {"id": 38, "type": "abstract_pointer_declarator", "text": "*", "parent": 36, "children": [39], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 21}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 21}}, {"id": 40, "type": "identifier", "text": "ptr", "parent": 35, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 25}}, {"id": 41, "type": "if_statement", "text": "if (new == NULL)\n return NULL;", "parent": 3, "children": [42, 47], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 113, "column": 20}}, {"id": 42, "type": "parenthesized_expression", "text": "(new == NULL)", "parent": 41, "children": [43], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 20}}, {"id": 43, "type": "binary_expression", "text": "new == NULL", "parent": 42, "children": [44, 45], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 19}}, {"id": 44, "type": "==", "text": "==", "parent": 43, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 14}}, {"id": 45, "type": "null", "text": "NULL", "parent": 43, "children": [46], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 19}}, {"id": 46, "type": "NULL", "text": "NULL", "parent": 45, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 19}}, {"id": 47, "type": "return_statement", "text": "return NULL;", "parent": 41, "children": [48], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 20}}, {"id": 48, "type": "null", "text": "NULL", "parent": 47, "children": [49], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 19}}, {"id": 49, "type": "NULL", "text": "NULL", "parent": 48, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 19}}, {"id": 50, "type": "if_statement", "text": "if (ptr == NULL)\n return new;", "parent": 3, "children": [51, 57], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 115, "column": 19}}, {"id": 51, "type": "parenthesized_expression", "text": "(ptr == NULL)", "parent": 50, "children": [52], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 20}}, {"id": 52, "type": "binary_expression", "text": "ptr == NULL", "parent": 51, "children": [53, 54, 55], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 19}}, {"id": 53, "type": "identifier", "text": "ptr", "parent": 52, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 11}}, {"id": 54, "type": "==", "text": "==", "parent": 52, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 14}}, {"id": 55, "type": "null", "text": "NULL", "parent": 52, "children": [56], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 19}}, {"id": 56, "type": "NULL", "text": "NULL", "parent": 55, "children": [], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 19}}, {"id": 57, "type": "return_statement", "text": "return new;", "parent": 50, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 19}}, {"id": 58, "type": "for_statement", "text": "for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];", "parent": 3, "children": [59, 67, 71], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 117, "column": 22}}, {"id": 59, "type": "declaration", "text": "unsigned int i = 0;", "parent": 58, "children": [60, 63], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 28}}, {"id": 60, "type": "sized_type_specifier", "text": "unsigned int", "parent": 59, "children": [61, 62], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 21}}, {"id": 61, "type": "unsigned", "text": "unsigned", "parent": 60, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 17}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 21}}, {"id": 63, "type": "init_declarator", "text": "i = 0", "parent": 59, "children": [64, 65, 66], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 27}}, {"id": 64, "type": "identifier", "text": "i", "parent": 63, "children": [], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 23}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 27}}, {"id": 67, "type": "binary_expression", "text": "i < size", "parent": 58, "children": [68, 69, 70], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 37}}, {"id": 68, "type": "identifier", "text": "i", "parent": 67, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 30}}, {"id": 69, "type": "<", "text": "<", "parent": 67, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 32}}, {"id": 70, "type": "identifier", "text": "size", "parent": 67, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 37}}, {"id": 71, "type": "update_expression", "text": "i++", "parent": 58, "children": [72, 73], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 42}}, {"id": 72, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 40}}, {"id": 73, "type": "++", "text": "++", "parent": 71, "children": [], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 116, "column": 42}}, {"id": 74, "type": "assignment_expression", "text": "new[i] = p[i]", "parent": 58, "children": [75, 77, 78], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 21}}, {"id": 75, "type": "subscript_expression", "text": "new[i]", "parent": 74, "children": [76], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 14}}, {"id": 76, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 13}}, {"id": 77, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 78, "type": "subscript_expression", "text": "p[i]", "parent": 74, "children": [79, 80], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 79, "type": "identifier", "text": "p", "parent": 78, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 18}}, {"id": 80, "type": "identifier", "text": "i", "parent": 78, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 20}}, {"id": 81, "type": "call_expression", "text": "free(ptr)", "parent": 3, "children": [82, 83], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 13}}, {"id": 82, "type": "identifier", "text": "free", "parent": 81, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 8}}, {"id": 83, "type": "argument_list", "text": "(ptr)", "parent": 81, "children": [84], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 13}}, {"id": 84, "type": "identifier", "text": "ptr", "parent": 83, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 12}}, {"id": 85, "type": "return_statement", "text": "return new;", "parent": 3, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 15}}, {"id": 86, "type": "function_definition", "text": "static void mx_free(char **lineptr, char *buf, int *count, int chars) {\n chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n mx_strdel(&buf);\n if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\\0';\n }\n}", "parent": null, "children": [87, 88], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 87, "type": "primitive_type", "text": "void", "parent": 86, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 11}}, {"id": 88, "type": "function_declarator", "text": "mx_free(char **lineptr, char *buf, int *count, int chars)", "parent": 86, "children": [89, 90], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 69}}, {"id": 89, "type": "identifier", "text": "mx_free", "parent": 88, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 19}}, {"id": 90, "type": "parameter_list", "text": "(char **lineptr, char *buf, int *count, int chars)", "parent": 88, "children": [91, 98, 103, 108], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 69}}, {"id": 91, "type": "parameter_declaration", "text": "char **lineptr", "parent": 90, "children": [92, 93], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 34}}, {"id": 92, "type": "primitive_type", "text": "char", "parent": 91, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 24}}, {"id": 93, "type": "pointer_declarator", "text": "**lineptr", "parent": 91, "children": [94, 95], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 34}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 26}}, {"id": 95, "type": "pointer_declarator", "text": "*lineptr", "parent": 93, "children": [96, 97], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 34}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 27}}, {"id": 97, "type": "identifier", "text": "lineptr", "parent": 95, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 34}}, {"id": 98, "type": "parameter_declaration", "text": "char *buf", "parent": 90, "children": [99, 100], "start_point": {"row": 122, "column": 36}, "end_point": {"row": 122, "column": 45}}, {"id": 99, "type": "primitive_type", "text": "char", "parent": 98, "children": [], "start_point": {"row": 122, "column": 36}, "end_point": {"row": 122, "column": 40}}, {"id": 100, "type": "pointer_declarator", "text": "*buf", "parent": 98, "children": [101, 102], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 45}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 42}}, {"id": 102, "type": "identifier", "text": "buf", "parent": 100, "children": [], "start_point": {"row": 122, "column": 42}, "end_point": {"row": 122, "column": 45}}, {"id": 103, "type": "parameter_declaration", "text": "int *count", "parent": 90, "children": [104, 105], "start_point": {"row": 122, "column": 47}, "end_point": {"row": 122, "column": 57}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 122, "column": 47}, "end_point": {"row": 122, "column": 50}}, {"id": 105, "type": "pointer_declarator", "text": "*count", "parent": 103, "children": [106, 107], "start_point": {"row": 122, "column": 51}, "end_point": {"row": 122, "column": 57}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 122, "column": 51}, "end_point": {"row": 122, "column": 52}}, {"id": 107, "type": "identifier", "text": "count", "parent": 105, "children": [], "start_point": {"row": 122, "column": 52}, "end_point": {"row": 122, "column": 57}}, {"id": 108, "type": "parameter_declaration", "text": "int chars", "parent": 90, "children": [109, 110], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 68}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 62}}, {"id": 110, "type": "identifier", "text": "chars", "parent": 108, "children": [], "start_point": {"row": 122, "column": 63}, "end_point": {"row": 122, "column": 68}}, {"id": 111, "type": "conditional_expression", "text": "chars == 0 && (*count) == 0 ? (*count)-- : (*count)", "parent": 86, "children": [112, 125, 126, 132], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 55}}, {"id": 112, "type": "binary_expression", "text": "chars == 0 && (*count) == 0", "parent": 111, "children": [113, 117, 118], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 31}}, {"id": 113, "type": "binary_expression", "text": "chars == 0", "parent": 112, "children": [114, 115, 116], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 14}}, {"id": 114, "type": "identifier", "text": "chars", "parent": 113, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 9}}, {"id": 115, "type": "==", "text": "==", "parent": 113, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 12}}, {"id": 116, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 117, "type": "&&", "text": "&&", "parent": 112, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 17}}, {"id": 118, "type": "binary_expression", "text": "(*count) == 0", "parent": 112, "children": [119, 123, 124], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 31}}, {"id": 119, "type": "parenthesized_expression", "text": "(*count)", "parent": 118, "children": [120], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 26}}, {"id": 120, "type": "pointer_expression", "text": "*count", "parent": 119, "children": [121, 122], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 25}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 20}}, {"id": 122, "type": "identifier", "text": "count", "parent": 120, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 25}}, {"id": 123, "type": "==", "text": "==", "parent": 118, "children": [], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 29}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 31}}, {"id": 125, "type": "?", "text": "?", "parent": 111, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 33}}, {"id": 126, "type": "update_expression", "text": "(*count)--", "parent": 111, "children": [127, 131], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 44}}, {"id": 127, "type": "parenthesized_expression", "text": "(*count)", "parent": 126, "children": [128], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 42}}, {"id": 128, "type": "pointer_expression", "text": "*count", "parent": 127, "children": [129, 130], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 41}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 36}}, {"id": 130, "type": "identifier", "text": "count", "parent": 128, "children": [], "start_point": {"row": 123, "column": 36}, "end_point": {"row": 123, "column": 41}}, {"id": 131, "type": "--", "text": "--", "parent": 126, "children": [], "start_point": {"row": 123, "column": 42}, "end_point": {"row": 123, "column": 44}}, {"id": 132, "type": "parenthesized_expression", "text": "(*count)", "parent": 111, "children": [133], "start_point": {"row": 123, "column": 47}, "end_point": {"row": 123, "column": 55}}, {"id": 133, "type": "pointer_expression", "text": "*count", "parent": 132, "children": [134, 135], "start_point": {"row": 123, "column": 48}, "end_point": {"row": 123, "column": 54}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 123, "column": 48}, "end_point": {"row": 123, "column": 49}}, {"id": 135, "type": "identifier", "text": "count", "parent": 133, "children": [], "start_point": {"row": 123, "column": 49}, "end_point": {"row": 123, "column": 54}}, {"id": 136, "type": "call_expression", "text": "mx_strdel(&buf)", "parent": 86, "children": [137, 138], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 19}}, {"id": 137, "type": "identifier", "text": "mx_strdel", "parent": 136, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 13}}, {"id": 138, "type": "argument_list", "text": "(&buf)", "parent": 136, "children": [139], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 19}}, {"id": 139, "type": "pointer_expression", "text": "&buf", "parent": 138, "children": [140], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 18}}, {"id": 140, "type": "identifier", "text": "buf", "parent": 139, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 18}}, {"id": 141, "type": "if_statement", "text": "if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\\0';\n }", "parent": 86, "children": [142], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 142, "type": "parenthesized_expression", "text": "(*lineptr == NULL && (*count) < 1)", "parent": 141, "children": [143], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 41}}, {"id": 143, "type": "binary_expression", "text": "*lineptr == NULL && (*count) < 1", "parent": 142, "children": [144, 151, 152], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 40}}, {"id": 144, "type": "binary_expression", "text": "*lineptr == NULL", "parent": 143, "children": [145, 148, 149], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 24}}, {"id": 145, "type": "pointer_expression", "text": "*lineptr", "parent": 144, "children": [146, 147], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 16}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 9}}, {"id": 147, "type": "identifier", "text": "lineptr", "parent": 145, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 16}}, {"id": 148, "type": "==", "text": "==", "parent": 144, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 19}}, {"id": 149, "type": "null", "text": "NULL", "parent": 144, "children": [150], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 24}}, {"id": 150, "type": "NULL", "text": "NULL", "parent": 149, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 24}}, {"id": 151, "type": "&&", "text": "&&", "parent": 143, "children": [], "start_point": {"row": 125, "column": 25}, "end_point": {"row": 125, "column": 27}}, {"id": 152, "type": "binary_expression", "text": "(*count) < 1", "parent": 143, "children": [153, 157, 158], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 40}}, {"id": 153, "type": "parenthesized_expression", "text": "(*count)", "parent": 152, "children": [154], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 36}}, {"id": 154, "type": "pointer_expression", "text": "*count", "parent": 153, "children": [155, 156], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 35}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 30}}, {"id": 156, "type": "identifier", "text": "count", "parent": 154, "children": [], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 35}}, {"id": 157, "type": "<", "text": "<", "parent": 152, "children": [], "start_point": {"row": 125, "column": 37}, "end_point": {"row": 125, "column": 38}}, {"id": 158, "type": "number_literal", "text": "1", "parent": 152, "children": [], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 40}}, {"id": 159, "type": "assignment_expression", "text": "*lineptr = malloc(1)", "parent": 141, "children": [160, 163, 164], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 28}}, {"id": 160, "type": "pointer_expression", "text": "*lineptr", "parent": 159, "children": [161, 162], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 16}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 9}}, {"id": 162, "type": "identifier", "text": "lineptr", "parent": 160, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 16}}, {"id": 163, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 18}}, {"id": 164, "type": "call_expression", "text": "malloc(1)", "parent": 159, "children": [165, 166], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 28}}, {"id": 165, "type": "identifier", "text": "malloc", "parent": 164, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 25}}, {"id": 166, "type": "argument_list", "text": "(1)", "parent": 164, "children": [167], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 28}}, {"id": 167, "type": "number_literal", "text": "1", "parent": 166, "children": [], "start_point": {"row": 126, "column": 26}, "end_point": {"row": 126, "column": 27}}, {"id": 168, "type": "assignment_expression", "text": "*lineptr[0] = '\\0'", "parent": 141, "children": [169, 174, 175], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 26}}, {"id": 169, "type": "pointer_expression", "text": "*lineptr[0]", "parent": 168, "children": [170, 171], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 19}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 9}}, {"id": 171, "type": "subscript_expression", "text": "lineptr[0]", "parent": 169, "children": [172, 173], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 19}}, {"id": 172, "type": "identifier", "text": "lineptr", "parent": 171, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 16}}, {"id": 173, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 18}}, {"id": 174, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 175, "type": "char_literal", "text": "'\\0'", "parent": 168, "children": [176, 177, 178], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 26}}, {"id": 176, "type": "'", "text": "'", "parent": 175, "children": [], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 23}}, {"id": 177, "type": "escape_sequence", "text": "\\0", "parent": 175, "children": [], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 25}}, {"id": 178, "type": "'", "text": "'", "parent": 175, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 26}}, {"id": 179, "type": "function_definition", "text": "int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n char *buf = mx_strnew(1);\n int count = 0;\n int chars;\n\n fd < 0 ? (count = -2) : count;\n for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }\n mx_free(&(*lineptr), buf, &count, chars);\n return count;\n}", "parent": null, "children": [180, 181], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 147, "column": 1}}, {"id": 180, "type": "primitive_type", "text": "int", "parent": 179, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 3}}, {"id": 181, "type": "function_declarator", "text": "mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd)", "parent": 179, "children": [182, 183], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 75}}, {"id": 182, "type": "identifier", "text": "mx_read_line", "parent": 181, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 16}}, {"id": 183, "type": "parameter_list", "text": "(char **lineptr, size_t buf_size, char delim, const int fd)", "parent": 181, "children": [184, 191, 194, 197], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 75}}, {"id": 184, "type": "parameter_declaration", "text": "char **lineptr", "parent": 183, "children": [185, 186], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 31}}, {"id": 185, "type": "primitive_type", "text": "char", "parent": 184, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 21}}, {"id": 186, "type": "pointer_declarator", "text": "**lineptr", "parent": 184, "children": [187, 188], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 31}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 23}}, {"id": 188, "type": "pointer_declarator", "text": "*lineptr", "parent": 186, "children": [189, 190], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 31}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 24}}, {"id": 190, "type": "identifier", "text": "lineptr", "parent": 188, "children": [], "start_point": {"row": 131, "column": 24}, "end_point": {"row": 131, "column": 31}}, {"id": 191, "type": "parameter_declaration", "text": "size_t buf_size", "parent": 183, "children": [192, 193], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 48}}, {"id": 192, "type": "primitive_type", "text": "size_t", "parent": 191, "children": [], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 39}}, {"id": 193, "type": "identifier", "text": "buf_size", "parent": 191, "children": [], "start_point": {"row": 131, "column": 40}, "end_point": {"row": 131, "column": 48}}, {"id": 194, "type": "parameter_declaration", "text": "char delim", "parent": 183, "children": [195, 196], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 60}}, {"id": 195, "type": "primitive_type", "text": "char", "parent": 194, "children": [], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 54}}, {"id": 196, "type": "identifier", "text": "delim", "parent": 194, "children": [], "start_point": {"row": 131, "column": 55}, "end_point": {"row": 131, "column": 60}}, {"id": 197, "type": "parameter_declaration", "text": "const int fd", "parent": 183, "children": [198, 199], "start_point": {"row": 131, "column": 62}, "end_point": {"row": 131, "column": 74}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 131, "column": 68}, "end_point": {"row": 131, "column": 71}}, {"id": 199, "type": "identifier", "text": "fd", "parent": 197, "children": [], "start_point": {"row": 131, "column": 72}, "end_point": {"row": 131, "column": 74}}, {"id": 200, "type": "declaration", "text": "char *buf = mx_strnew(1);", "parent": 179, "children": [201, 202], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 29}}, {"id": 201, "type": "primitive_type", "text": "char", "parent": 200, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 202, "type": "init_declarator", "text": "*buf = mx_strnew(1)", "parent": 200, "children": [203, 206, 207], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 28}}, {"id": 203, "type": "pointer_declarator", "text": "*buf", "parent": 202, "children": [204, 205], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 13}}, {"id": 204, "type": "*", "text": "*", "parent": 203, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 10}}, {"id": 205, "type": "identifier", "text": "buf", "parent": 203, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 13}}, {"id": 206, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 15}}, {"id": 207, "type": "call_expression", "text": "mx_strnew(1)", "parent": 202, "children": [208, 209], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 28}}, {"id": 208, "type": "identifier", "text": "mx_strnew", "parent": 207, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 25}}, {"id": 209, "type": "argument_list", "text": "(1)", "parent": 207, "children": [210], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 28}}, {"id": 210, "type": "number_literal", "text": "1", "parent": 209, "children": [], "start_point": {"row": 132, "column": 26}, "end_point": {"row": 132, "column": 27}}, {"id": 211, "type": "declaration", "text": "int count = 0;", "parent": 179, "children": [212, 213], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 18}}, {"id": 212, "type": "primitive_type", "text": "int", "parent": 211, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 7}}, {"id": 213, "type": "init_declarator", "text": "count = 0", "parent": 211, "children": [214, 215, 216], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 17}}, {"id": 214, "type": "identifier", "text": "count", "parent": 213, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 13}}, {"id": 215, "type": "=", "text": "=", "parent": 213, "children": [], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 15}}, {"id": 216, "type": "number_literal", "text": "0", "parent": 213, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 217, "type": "declaration", "text": "int chars;", "parent": 179, "children": [218, 219], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 14}}, {"id": 218, "type": "primitive_type", "text": "int", "parent": 217, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 7}}, {"id": 219, "type": "identifier", "text": "chars", "parent": 217, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 13}}, {"id": 220, "type": "conditional_expression", "text": "fd < 0 ? (count = -2) : count", "parent": 179, "children": [221, 225, 226, 231], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 33}}, {"id": 221, "type": "binary_expression", "text": "fd < 0", "parent": 220, "children": [222, 223, 224], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 10}}, {"id": 222, "type": "identifier", "text": "fd", "parent": 221, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 6}}, {"id": 223, "type": "<", "text": "<", "parent": 221, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 8}}, {"id": 224, "type": "number_literal", "text": "0", "parent": 221, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 10}}, {"id": 225, "type": "?", "text": "?", "parent": 220, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 12}}, {"id": 226, "type": "parenthesized_expression", "text": "(count = -2)", "parent": 220, "children": [227], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 25}}, {"id": 227, "type": "assignment_expression", "text": "count = -2", "parent": 226, "children": [228, 229, 230], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 24}}, {"id": 228, "type": "identifier", "text": "count", "parent": 227, "children": [], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 19}}, {"id": 229, "type": "=", "text": "=", "parent": 227, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 230, "type": "number_literal", "text": "-2", "parent": 227, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 24}}, {"id": 231, "type": "identifier", "text": "count", "parent": 220, "children": [], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 33}}, {"id": 232, "type": "for_statement", "text": "for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }", "parent": 179, "children": [233], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 144, "column": 5}}, {"id": 233, "type": "binary_expression", "text": "(chars = read(fd, buf, (buf_size / buf_size))) > 0", "parent": 232, "children": [234, 248, 249], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 62}}, {"id": 234, "type": "parenthesized_expression", "text": "(chars = read(fd, buf, (buf_size / buf_size)))", "parent": 233, "children": [235], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 58}}, {"id": 235, "type": "assignment_expression", "text": "chars = read(fd, buf, (buf_size / buf_size))", "parent": 234, "children": [236, 237, 238], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 57}}, {"id": 236, "type": "identifier", "text": "chars", "parent": 235, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 18}}, {"id": 237, "type": "=", "text": "=", "parent": 235, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 20}}, {"id": 238, "type": "call_expression", "text": "read(fd, buf, (buf_size / buf_size))", "parent": 235, "children": [239, 240], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 57}}, {"id": 239, "type": "identifier", "text": "read", "parent": 238, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 25}}, {"id": 240, "type": "argument_list", "text": "(fd, buf, (buf_size / buf_size))", "parent": 238, "children": [241, 242, 243], "start_point": {"row": 137, "column": 25}, "end_point": {"row": 137, "column": 57}}, {"id": 241, "type": "identifier", "text": "fd", "parent": 240, "children": [], "start_point": {"row": 137, "column": 26}, "end_point": {"row": 137, "column": 28}}, {"id": 242, "type": "identifier", "text": "buf", "parent": 240, "children": [], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 33}}, {"id": 243, "type": "parenthesized_expression", "text": "(buf_size / buf_size)", "parent": 240, "children": [244], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 56}}, {"id": 244, "type": "binary_expression", "text": "buf_size / buf_size", "parent": 243, "children": [245, 246, 247], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 55}}, {"id": 245, "type": "identifier", "text": "buf_size", "parent": 244, "children": [], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 44}}, {"id": 246, "type": "/", "text": "/", "parent": 244, "children": [], "start_point": {"row": 137, "column": 45}, "end_point": {"row": 137, "column": 46}}, {"id": 247, "type": "identifier", "text": "buf_size", "parent": 244, "children": [], "start_point": {"row": 137, "column": 47}, "end_point": {"row": 137, "column": 55}}, {"id": 248, "type": ">", "text": ">", "parent": 233, "children": [], "start_point": {"row": 137, "column": 59}, "end_point": {"row": 137, "column": 60}}, {"id": 249, "type": "number_literal", "text": "0", "parent": 233, "children": [], "start_point": {"row": 137, "column": 61}, "end_point": {"row": 137, "column": 62}}, {"id": 250, "type": "if_statement", "text": "if (*buf == delim)\n break;", "parent": 232, "children": [251, 258], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 139, "column": 18}}, {"id": 251, "type": "parenthesized_expression", "text": "(*buf == delim)", "parent": 250, "children": [252], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 26}}, {"id": 252, "type": "binary_expression", "text": "*buf == delim", "parent": 251, "children": [253, 256, 257], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 25}}, {"id": 253, "type": "pointer_expression", "text": "*buf", "parent": 252, "children": [254, 255], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 16}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 13}}, {"id": 255, "type": "identifier", "text": "buf", "parent": 253, "children": [], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 16}}, {"id": 256, "type": "==", "text": "==", "parent": 252, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 19}}, {"id": 257, "type": "identifier", "text": "delim", "parent": 252, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 25}}, {"id": 258, "type": "break_statement", "text": "break;", "parent": 250, "children": [259], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 18}}, {"id": 259, "type": "break", "text": "break", "parent": 258, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 17}}, {"id": 260, "type": "assignment_expression", "text": "*lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))", "parent": 232, "children": [261, 264, 265], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 141, "column": 69}}, {"id": 261, "type": "pointer_expression", "text": "*lineptr", "parent": 260, "children": [262, 263], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 16}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 9}}, {"id": 263, "type": "identifier", "text": "lineptr", "parent": 261, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 16}}, {"id": 264, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 18}}, {"id": 265, "type": "call_expression", "text": "mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))", "parent": 260, "children": [266, 267], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 141, "column": 69}}, {"id": 266, "type": "identifier", "text": "mx_realloc2", "parent": 265, "children": [], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 30}}, {"id": 267, "type": "argument_list", "text": "(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf))", "parent": 265, "children": [268, 271], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 141, "column": 69}}, {"id": 268, "type": "pointer_expression", "text": "*lineptr", "parent": 267, "children": [269, 270], "start_point": {"row": 140, "column": 31}, "end_point": {"row": 140, "column": 39}}, {"id": 269, "type": "*", "text": "*", "parent": 268, "children": [], "start_point": {"row": 140, "column": 31}, "end_point": {"row": 140, "column": 32}}, {"id": 270, "type": "identifier", "text": "lineptr", "parent": 268, "children": [], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 39}}, {"id": 271, "type": "binary_expression", "text": "mx_s_strlen(*lineptr) + mx_s_strlen(buf)", "parent": 267, "children": [272, 278, 279], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 68}}, {"id": 272, "type": "call_expression", "text": "mx_s_strlen(*lineptr)", "parent": 271, "children": [273, 274], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 49}}, {"id": 273, "type": "identifier", "text": "mx_s_strlen", "parent": 272, "children": [], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 39}}, {"id": 274, "type": "argument_list", "text": "(*lineptr)", "parent": 272, "children": [275], "start_point": {"row": 141, "column": 39}, "end_point": {"row": 141, "column": 49}}, {"id": 275, "type": "pointer_expression", "text": "*lineptr", "parent": 274, "children": [276, 277], "start_point": {"row": 141, "column": 40}, "end_point": {"row": 141, "column": 48}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 141, "column": 40}, "end_point": {"row": 141, "column": 41}}, {"id": 277, "type": "identifier", "text": "lineptr", "parent": 275, "children": [], "start_point": {"row": 141, "column": 41}, "end_point": {"row": 141, "column": 48}}, {"id": 278, "type": "+", "text": "+", "parent": 271, "children": [], "start_point": {"row": 141, "column": 50}, "end_point": {"row": 141, "column": 51}}, {"id": 279, "type": "call_expression", "text": "mx_s_strlen(buf)", "parent": 271, "children": [280, 281], "start_point": {"row": 141, "column": 52}, "end_point": {"row": 141, "column": 68}}, {"id": 280, "type": "identifier", "text": "mx_s_strlen", "parent": 279, "children": [], "start_point": {"row": 141, "column": 52}, "end_point": {"row": 141, "column": 63}}, {"id": 281, "type": "argument_list", "text": "(buf)", "parent": 279, "children": [282], "start_point": {"row": 141, "column": 63}, "end_point": {"row": 141, "column": 68}}, {"id": 282, "type": "identifier", "text": "buf", "parent": 281, "children": [], "start_point": {"row": 141, "column": 64}, "end_point": {"row": 141, "column": 67}}, {"id": 283, "type": "assignment_expression", "text": "*lineptr = mx_strcat(*lineptr, buf)", "parent": 232, "children": [284, 287, 288], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 43}}, {"id": 284, "type": "pointer_expression", "text": "*lineptr", "parent": 283, "children": [285, 286], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 16}}, {"id": 285, "type": "*", "text": "*", "parent": 284, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 9}}, {"id": 286, "type": "identifier", "text": "lineptr", "parent": 284, "children": [], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 16}}, {"id": 287, "type": "=", "text": "=", "parent": 283, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 18}}, {"id": 288, "type": "call_expression", "text": "mx_strcat(*lineptr, buf)", "parent": 283, "children": [289, 290], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 43}}, {"id": 289, "type": "identifier", "text": "mx_strcat", "parent": 288, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 28}}, {"id": 290, "type": "argument_list", "text": "(*lineptr, buf)", "parent": 288, "children": [291, 294], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 43}}, {"id": 291, "type": "pointer_expression", "text": "*lineptr", "parent": 290, "children": [292, 293], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 37}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 30}}, {"id": 293, "type": "identifier", "text": "lineptr", "parent": 291, "children": [], "start_point": {"row": 142, "column": 30}, "end_point": {"row": 142, "column": 37}}, {"id": 294, "type": "identifier", "text": "buf", "parent": 290, "children": [], "start_point": {"row": 142, "column": 39}, "end_point": {"row": 142, "column": 42}}, {"id": 295, "type": "update_expression", "text": "count++", "parent": 232, "children": [296, 297], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 15}}, {"id": 296, "type": "identifier", "text": "count", "parent": 295, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 13}}, {"id": 297, "type": "++", "text": "++", "parent": 295, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 15}}, {"id": 298, "type": "call_expression", "text": "mx_free(&(*lineptr), buf, &count, chars)", "parent": 179, "children": [299, 300], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 44}}, {"id": 299, "type": "identifier", "text": "mx_free", "parent": 298, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 11}}, {"id": 300, "type": "argument_list", "text": "(&(*lineptr), buf, &count, chars)", "parent": 298, "children": [301, 306, 307, 309], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 44}}, {"id": 301, "type": "pointer_expression", "text": "&(*lineptr)", "parent": 300, "children": [302], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 23}}, {"id": 302, "type": "parenthesized_expression", "text": "(*lineptr)", "parent": 301, "children": [303], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 23}}, {"id": 303, "type": "pointer_expression", "text": "*lineptr", "parent": 302, "children": [304, 305], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 22}}, {"id": 304, "type": "*", "text": "*", "parent": 303, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 15}}, {"id": 305, "type": "identifier", "text": "lineptr", "parent": 303, "children": [], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 22}}, {"id": 306, "type": "identifier", "text": "buf", "parent": 300, "children": [], "start_point": {"row": 145, "column": 25}, "end_point": {"row": 145, "column": 28}}, {"id": 307, "type": "pointer_expression", "text": "&count", "parent": 300, "children": [308], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 145, "column": 36}}, {"id": 308, "type": "identifier", "text": "count", "parent": 307, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 36}}, {"id": 309, "type": "identifier", "text": "chars", "parent": 300, "children": [], "start_point": {"row": 145, "column": 38}, "end_point": {"row": 145, "column": 43}}, {"id": 310, "type": "return_statement", "text": "return count;", "parent": 179, "children": [311], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 17}}, {"id": 311, "type": "identifier", "text": "count", "parent": 310, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 16}}]}, "node_categories": {"declarations": {"functions": [3, 7, 86, 88, 179, 181], "variables": [10, 15, 18, 28, 59, 91, 98, 103, 108, 184, 191, 194, 197, 200, 211, 217], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [24, 35, 42, 43, 51, 52, 67, 71, 75, 78, 81, 112, 113, 118, 119, 120, 126, 127, 128, 132, 133, 136, 139, 142, 143, 144, 145, 152, 153, 154, 160, 164, 169, 171, 207, 221, 226, 233, 234, 238, 243, 244, 251, 252, 253, 261, 265, 268, 271, 272, 275, 279, 284, 288, 291, 295, 298, 301, 302, 303, 307], "assignments": [74, 159, 168, 227, 235, 260, 283], "loops": [58, 232], "conditionals": [8, 14, 17, 25, 27, 33, 40, 41, 50, 53, 60, 64, 68, 70, 72, 76, 79, 80, 82, 84, 89, 97, 102, 107, 110, 111, 114, 122, 130, 135, 137, 140, 141, 147, 156, 162, 165, 172, 182, 190, 193, 196, 199, 205, 208, 214, 219, 220, 222, 228, 231, 236, 239, 241, 242, 245, 247, 250, 255, 257, 263, 266, 270, 273, 277, 280, 282, 286, 289, 293, 294, 296, 299, 305, 306, 308, 309, 311], "returns": [47, 57, 85, 310], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 66, 116, 124, 158, 167, 173, 175, 210, 216, 224, 230, 249], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "*mx_realloc2", "text_snippet": "static void *mx_realloc2(void *ptr, size_t size) {\n char *new = mx_strnew(size);\n char *p = (c"}, {"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "mx_realloc2(void *ptr, size_t size)"}, {"node_id": 86, "universal_type": "function", "name": "mx_free", "text_snippet": "static void mx_free(char **lineptr, char *buf, int *count, int chars) {\n chars == 0 && (*count) ="}, {"node_id": 88, "universal_type": "function", "name": "*count,", "text_snippet": "mx_free(char **lineptr, char *buf, int *count, int chars)"}, {"node_id": 179, "universal_type": "function", "name": "mx_read_line", "text_snippet": "int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n char *buf = mx_str"}, {"node_id": 181, "universal_type": "function", "name": "fd)", "text_snippet": "mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"libmx.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"libmx.h\"\n\n// static void mx_write(char **lineptr, char *buf) {\n// *lineptr = mx_realloc(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// }\n\n// static int mx_remembered_part(char **lineptr, char *readed,\n// r_line *l) {\n// char *buf = mx_strdup(readed);\n// int len = mx_strlen(buf);\n// int r;\n// int i = 0;\n\n// for (int j = 0; buf[j] != '\\0' ; j++, i++)\n// if (buf[j] == l->delim) {\n// buf[j++] = '\\0';\n// mx_write(lineptr, buf);\n// for(r = 0; r < (len - i); readed[r++] = buf[j++]);\n// l->flag = 1;\n// mx_strdel(&buf);\n// l->sum += i;\n// return i;\n// }\n// mx_write(lineptr, buf);\n// mx_strdel(&buf);\n// mx_strdel(&readed);\n// l->sum += i;\n// return i;\n// }\n\n// static char *mx_read(char **lineptr, char *readed,\n// size_t buf_size, r_line *l) {\n// for ( ; (l->chars = read(l->fd, l->buf, buf_size)) > 0; ) {\n// l->buf[l->chars] = '\\0';\n// l->sum += l->chars;\n// readed = mx_strdup(l->buf);\n// for (size_t j = 0;\n// j < buf_size || l->buf[j] != '\\0'; j++, l->index++)\n// if (l->buf[j] == l->delim) {\n// l->buf[j++] = '\\0';\n// for (l->k = 0; l->k < buf_size - l->index % buf_size; )\n// readed[l->k++] = l->buf[j++];\n// l->flag = 1;\n// break;\n// }\n// mx_write(lineptr, l->buf);\n// if (l->flag == 1)\n// break;\n// mx_strdel(&readed);\n// }\n// (int) l->chars == 0 && l->index == 0 ? l->index-- : l->index;\n// return readed;\n// }\n\n// static r_line *struct_creator(size_t buf_size, char delim, const int fd) {\n// r_line *l = (r_line *)malloc(sizeof(r_line));\n\n// l->buf = mx_strnew(buf_size);\n// l->flag = 0;\n// l->index = 0;\n// l->chars = 0;\n// l->sum = 0;\n// l->fd = fd;\n// l->delim = delim;\n// return l;\n// }\n\n// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n// r_line *l = struct_creator(buf_size, delim, fd);\n// static char *readed;\n// int result;\n\n// if (readed != NULL && mx_s_strlen(readed) == 0)\n// mx_strdel(&readed);\n// l->fd < 0 ? (l->index = -2, l->flag = 1) : l->index;\n// if (readed != NULL && mx_strlen(readed) > 0)\n// l->index = mx_remembered_part(lineptr, readed, l);\n// if (l->flag == 0)\n// readed = mx_read(lineptr, NULL, buf_size, l);\n// result = l->index > l->sum ? l->sum : l->index;\n// if (result == -1)\n// mx_strdel(&readed);\n// free(l->buf);\n// free(l);\n// return result;\n// }\n\n// static void *mx_realloc2(void *ptr, size_t size) { // LEAKS\n// if (!ptr && size)\n// return malloc(size);\n// if (size == 0 && ptr) {\n// free(ptr);\n// return NULL;\n// }\n// void *res;\n// size_t len = mx_strlen(ptr);\n\n// res = malloc(len > size ? len : size);\n// if (!res)\n// return NULL;\n// return mx_memmove(res, ptr, size);\n// }\n\n/*\n * WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\nstatic void *mx_realloc2(void *ptr, size_t size) {\n char *new = mx_strnew(size);\n char *p = (char *)ptr;\n\n if (new == NULL)\n return NULL;\n if (ptr == NULL)\n return new;\n for (unsigned int i = 0; i < size; i++)\n new[i] = p[i];\n free(ptr);\n return new;\n}\n\nstatic void mx_free(char **lineptr, char *buf, int *count, int chars) {\n chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n mx_strdel(&buf);\n if (*lineptr == NULL && (*count) < 1) {\n *lineptr = malloc(1);\n *lineptr[0] = '\\0';\n }\n}\n\nint mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n char *buf = mx_strnew(1);\n int count = 0;\n int chars;\n\n fd < 0 ? (count = -2) : count;\n for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n if (*buf == delim)\n break;\n *lineptr = mx_realloc2(*lineptr,\n mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n *lineptr = mx_strcat(*lineptr, buf);\n count++;\n }\n mx_free(&(*lineptr), buf, &count, chars);\n return count;\n}\n\n// static void *mx_realloc2(void *ptr, size_t size) {\n// char *new = mx_strnew(size);\n// char *p = (char *)ptr;\n\n// if (new == NULL)\n// return NULL;\n// if (ptr == NULL)\n// return new;\n// for (unsigned int i = 0; i < size; i++)\n// new[i] = p[i];\n// free(ptr);\n// return new;\n// }\n\n// static void mx_free(char **lineptr, char *buf, int *count, int chars) {\n// chars == 0 && (*count) == 0 ? (*count)-- : (*count);\n// mx_strdel(&buf);\n// if (*lineptr == NULL && (*count) < 1) {\n// *lineptr = malloc(1);\n// *lineptr[0] = '\\0';\n// }\n// }\n\n// int mx_read_line(char **lineptr, size_t buf_size, char delim, const int fd) {\n// static char *mem = NULL;\n// char *buf = mx_strnew(1);\n// int count = 0;\n// int chars = 0;\n// int i;\n\n// fd < 0 ? (count = -2) : count;\n// // printf(\"mem1 = |%s|\\n\\n\", mem);\n\n// if (mem != NULL) {\n// for (i = 0; i < mx_s_strlen(mem); i++) {\n// if (mem[i] == delim)\n// break;\n// buf[0] = mem[i];\n// *lineptr = mx_realloc2(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// count++;\n// }\n// if (count < mx_s_strlen(mem)) {\n// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {\n// char *buf2 = strdup(mem + count);\n// mx_strdel(&mem);\n// mem = mx_realloc2(buf2, mx_s_strlen(buf2));\n// mem = mx_strcat(mem, buf2);\n// }\n// }\n// else\n// mx_strdel(&mem);\n// }\n// // printf(\"mem2 = |%s|\\t\\t counter = %d\\n\\n\", mem, count);\n// if (mem == NULL) {\n// for ( ; (chars = read(fd, buf, (buf_size / buf_size))) > 0; ) {\n// if (*buf == delim)\n// break;\n// *lineptr = mx_realloc2(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// count++;\n// }\n// }\n// if (chars != 0 && (count % buf_size + 1 != 0)) {\n// for (i = 0; (count + i) % buf_size + 1 != buf_size; i++) {\n// read(fd, buf, (buf_size / buf_size));\n// mem = mx_realloc2(mem, mx_s_strlen(mem) + mx_s_strlen(buf));\n// mem = mx_strcat(mem, buf);\n// // printf(\"mem = %s\\n\\n\", mem);\n// // sleep(1);\n// }\n// }\n// // printf(\"mem = %s\\n\\n\", mem);\n// mx_free(&(*lineptr), buf, &count, chars);\n// return count;\n// }\n\n\n// // ter a fire lic\n\n\n\n"}
81,027
c
/* * flash.h * * Created on: Oct 27, 2021 * Author: jiangyuanyuan */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __INIT_H__ #define __INIT_H__ /* Includes ------------------------------------------------------------------*/ #include "sys.h" /* USER CODE BEGIN Includes */ #include "led.h" #include "key.h" #include "delay.h" #include "tim.h" #include "adc.h" #include "flash.h" #include "oled.h" #include "i2c.h" #include "pwm.h" #include "motor.h" #include "freertos.h" #include "mytask.h" /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ #define APP_INT(name) name##_Init() #define APP_TEST(name) name##_Test() /* USER CODE END Private defines */ extern void MY_BSP_Init(void); extern void MY_APP_Test(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #endif /*__ INIT_H__ */ /************************ (C) COPYRIGHT winnermicro *****END OF FILE****/
26.06
35
(translation_unit) "/*\n * flash.h\n *\n * Created on: Oct 27, 2021\n * Author: jiangyuanyuan\n */\n\n/* Define to prevent recursive inclusion -------------------------------------*/\n#ifndef __INIT_H__\n#define __INIT_H__\n\n/* Includes ------------------------------------------------------------------*/\n#include "sys.h"\n\n/* USER CODE BEGIN Includes */\n#include "led.h"\n#include "key.h"\n#include "delay.h"\n#include "tim.h"\n#include "adc.h"\n#include "flash.h"\n#include "oled.h"\n#include "i2c.h"\n#include "pwm.h"\n#include "motor.h"\n#include "freertos.h"\n#include "mytask.h"\n/* USER CODE END Includes */\n\n/* USER CODE BEGIN Private defines */\n#define APP_INT(name) name##_Init()\n#define APP_TEST(name) name##_Test()\n/* USER CODE END Private defines */\n\nextern void MY_BSP_Init(void);\nextern void MY_APP_Test(void);\n/* USER CODE BEGIN Prototypes */\n\n/* USER CODE END Prototypes */\n#endif /*__ INIT_H__ */\n\n/************************ (C) COPYRIGHT winnermicro *****END OF FILE****/" (comment) "/*\n * flash.h\n *\n * Created on: Oct 27, 2021\n * Author: jiangyuanyuan\n */" (comment) "/* Define to prevent recursive inclusion -------------------------------------*/" (preproc_ifdef) "#ifndef __INIT_H__\n#define __INIT_H__\n\n/* Includes ------------------------------------------------------------------*/\n#include "sys.h"\n\n/* USER CODE BEGIN Includes */\n#include "led.h"\n#include "key.h"\n#include "delay.h"\n#include "tim.h"\n#include "adc.h"\n#include "flash.h"\n#include "oled.h"\n#include "i2c.h"\n#include "pwm.h"\n#include "motor.h"\n#include "freertos.h"\n#include "mytask.h"\n/* USER CODE END Includes */\n\n/* USER CODE BEGIN Private defines */\n#define APP_INT(name) name##_Init()\n#define APP_TEST(name) name##_Test()\n/* USER CODE END Private defines */\n\nextern void MY_BSP_Init(void);\nextern void MY_APP_Test(void);\n/* USER CODE BEGIN Prototypes */\n\n/* USER CODE END Prototypes */\n#endif" (#ifndef) "#ifndef" (identifier) "__INIT_H__" (preproc_def) "#define __INIT_H__\n" (#define) "#define" (identifier) "__INIT_H__" (comment) "/* Includes ------------------------------------------------------------------*/" (preproc_include) "#include "sys.h"\n" (#include) "#include" (string_literal) ""sys.h"" (") """ (string_content) "sys.h" (") """ (comment) "/* USER CODE BEGIN Includes */" (preproc_include) "#include "led.h"\n" (#include) "#include" (string_literal) ""led.h"" (") """ (string_content) "led.h" (") """ (preproc_include) "#include "key.h"\n" (#include) "#include" (string_literal) ""key.h"" (") """ (string_content) "key.h" (") """ (preproc_include) "#include "delay.h"\n" (#include) "#include" (string_literal) ""delay.h"" (") """ (string_content) "delay.h" (") """ (preproc_include) "#include "tim.h"\n" (#include) "#include" (string_literal) ""tim.h"" (") """ (string_content) "tim.h" (") """ (preproc_include) "#include "adc.h"\n" (#include) "#include" (string_literal) ""adc.h"" (") """ (string_content) "adc.h" (") """ (preproc_include) "#include "flash.h"\n" (#include) "#include" (string_literal) ""flash.h"" (") """ (string_content) "flash.h" (") """ (preproc_include) "#include "oled.h"\n" (#include) "#include" (string_literal) ""oled.h"" (") """ (string_content) "oled.h" (") """ (preproc_include) "#include "i2c.h"\n" (#include) "#include" (string_literal) ""i2c.h"" (") """ (string_content) "i2c.h" (") """ (preproc_include) "#include "pwm.h"\n" (#include) "#include" (string_literal) ""pwm.h"" (") """ (string_content) "pwm.h" (") """ (preproc_include) "#include "motor.h"\n" (#include) "#include" (string_literal) ""motor.h"" (") """ (string_content) "motor.h" (") """ (preproc_include) "#include "freertos.h"\n" (#include) "#include" (string_literal) ""freertos.h"" (") """ (string_content) "freertos.h" (") """ (preproc_include) "#include "mytask.h"\n" (#include) "#include" (string_literal) ""mytask.h"" (") """ (string_content) "mytask.h" (") """ (comment) "/* USER CODE END Includes */" (comment) "/* USER CODE BEGIN Private defines */" (preproc_function_def) "#define APP_INT(name) name##_Init()\n" (#define) "#define" (identifier) "APP_INT" (preproc_params) "(name)" (() "(" (identifier) "name" ()) ")" (preproc_arg) "name##_Init()" (preproc_function_def) "#define APP_TEST(name) name##_Test()\n" (#define) "#define" (identifier) "APP_TEST" (preproc_params) "(name)" (() "(" (identifier) "name" ()) ")" (preproc_arg) "name##_Test()" (comment) "/* USER CODE END Private defines */" (declaration) "extern void MY_BSP_Init(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "MY_BSP_Init(void)" (identifier) "MY_BSP_Init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern void MY_APP_Test(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "MY_APP_Test(void)" (identifier) "MY_APP_Test" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/* USER CODE BEGIN Prototypes */" (comment) "/* USER CODE END Prototypes */" (#endif) "#endif" (comment) "/*__ INIT_H__ */" (comment) "/************************ (C) COPYRIGHT winnermicro *****END OF FILE****/"
137
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.06, "nodes": 76, "errors": 0, "source_hash": "1888b97d90e9197b5083c9c9d9a34171c42a68c097eac1d323e0f491cc31523c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __INIT_H__\n#define __INIT_H__\n\n/* Includes ------------------------------------------------------------------*/\n#include \"sys.h\"\n\n/* USER CODE BEGIN Includes */\n#include \"led.h\"\n#include \"key.h\"\n#include \"delay.h\"\n#include \"tim.h\"\n#include \"adc.h\"\n#include \"flash.h\"\n#include \"oled.h\"\n#include \"i2c.h\"\n#include \"pwm.h\"\n#include \"motor.h\"\n#include \"freertos.h\"\n#include \"mytask.h\"\n/* USER CODE END Includes */\n\n/* USER CODE BEGIN Private defines */\n#define APP_INT(name)\tname##_Init()\n#define APP_TEST(name)\tname##_Test()\n/* USER CODE END Private defines */\n\nextern void MY_BSP_Init(void);\nextern void MY_APP_Test(void);\n/* USER CODE BEGIN Prototypes */\n\n/* USER CODE END Prototypes */\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 51, 57, 66, 75], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "identifier", "text": "__INIT_H__", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define __INIT_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "__INIT_H__", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"sys.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"sys.h\"", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"led.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"led.h\"", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 16}}, {"id": 12, "type": "preproc_include", "text": "#include \"key.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"key.h\"", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include \"delay.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"delay.h\"", "parent": 15, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 18}}, {"id": 18, "type": "preproc_include", "text": "#include \"tim.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"tim.h\"", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 16}}, {"id": 21, "type": "preproc_include", "text": "#include \"adc.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"adc.h\"", "parent": 21, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 16}}, {"id": 24, "type": "preproc_include", "text": "#include \"flash.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"flash.h\"", "parent": 24, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include \"oled.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"oled.h\"", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 30, "type": "preproc_include", "text": "#include \"i2c.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"i2c.h\"", "parent": 30, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 33, "type": "preproc_include", "text": "#include \"pwm.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"pwm.h\"", "parent": 33, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 16}}, {"id": 36, "type": "preproc_include", "text": "#include \"motor.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"motor.h\"", "parent": 36, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 39, "type": "preproc_include", "text": "#include \"freertos.h\"\n", "parent": 0, "children": [40, 41], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"freertos.h\"", "parent": 39, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 42, "type": "preproc_include", "text": "#include \"mytask.h\"\n", "parent": 0, "children": [43, 44], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"mytask.h\"", "parent": 42, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 19}}, {"id": 45, "type": "preproc_function_def", "text": "#define APP_INT(name)\tname##_Init()\n", "parent": 0, "children": [46, 47, 48, 50], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 47, "type": "identifier", "text": "APP_INT", "parent": 45, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 15}}, {"id": 48, "type": "preproc_params", "text": "(name)", "parent": 45, "children": [49], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 21}}, {"id": 49, "type": "identifier", "text": "name", "parent": 48, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 50, "type": "preproc_arg", "text": "name##_Init()", "parent": 45, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 35}}, {"id": 51, "type": "preproc_function_def", "text": "#define APP_TEST(name)\tname##_Test()\n", "parent": 0, "children": [52, 53, 54, 56], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 53, "type": "identifier", "text": "APP_TEST", "parent": 51, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 16}}, {"id": 54, "type": "preproc_params", "text": "(name)", "parent": 51, "children": [55], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 22}}, {"id": 55, "type": "identifier", "text": "name", "parent": 54, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 21}}, {"id": 56, "type": "preproc_arg", "text": "name##_Test()", "parent": 51, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 36}}, {"id": 57, "type": "declaration", "text": "extern void MY_BSP_Init(void);", "parent": 0, "children": [58, 60, 61], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 30}}, {"id": 58, "type": "storage_class_specifier", "text": "extern", "parent": 57, "children": [59], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 59, "type": "extern", "text": "extern", "parent": 58, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 11}}, {"id": 61, "type": "function_declarator", "text": "MY_BSP_Init(void)", "parent": 57, "children": [62, 63], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 29}}, {"id": 62, "type": "identifier", "text": "MY_BSP_Init", "parent": 61, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 23}}, {"id": 63, "type": "parameter_list", "text": "(void)", "parent": 61, "children": [64], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 29}}, {"id": 64, "type": "parameter_declaration", "text": "void", "parent": 63, "children": [65], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 28}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 28}}, {"id": 66, "type": "declaration", "text": "extern void MY_APP_Test(void);", "parent": 0, "children": [67, 69, 70], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 30}}, {"id": 67, "type": "storage_class_specifier", "text": "extern", "parent": 66, "children": [68], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 68, "type": "extern", "text": "extern", "parent": 67, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 70, "type": "function_declarator", "text": "MY_APP_Test(void)", "parent": 66, "children": [71, 72], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 29}}, {"id": 71, "type": "identifier", "text": "MY_APP_Test", "parent": 70, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 23}}, {"id": 72, "type": "parameter_list", "text": "(void)", "parent": 70, "children": [73], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 29}}, {"id": 73, "type": "parameter_declaration", "text": "void", "parent": 72, "children": [74], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 75, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}]}, "node_categories": {"declarations": {"functions": [45, 51, 61, 70], "variables": [57, 64, 66, 73], "classes": [58, 67], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40, 42, 43], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 47, 49, 53, 55, 62, 71, 75], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "#define APP_INT(name)\tname##_Init()\n"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "#define APP_TEST(name)\tname##_Test()\n"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "MY_BSP_Init(void)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "MY_APP_Test(void)"}], "class_declarations": [{"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 67, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"sys.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"led.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"key.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"delay.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"tim.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"adc.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"flash.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"oled.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"i2c.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"pwm.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"motor.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"freertos.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"mytask.h\"\n"}, {"node_id": 43, "text": "#include"}]}, "original_source_code": "/*\n * flash.h\n *\n * Created on: Oct 27, 2021\n * Author: jiangyuanyuan\n */\n\n/* Define to prevent recursive inclusion -------------------------------------*/\n#ifndef __INIT_H__\n#define __INIT_H__\n\n/* Includes ------------------------------------------------------------------*/\n#include \"sys.h\"\n\n/* USER CODE BEGIN Includes */\n#include \"led.h\"\n#include \"key.h\"\n#include \"delay.h\"\n#include \"tim.h\"\n#include \"adc.h\"\n#include \"flash.h\"\n#include \"oled.h\"\n#include \"i2c.h\"\n#include \"pwm.h\"\n#include \"motor.h\"\n#include \"freertos.h\"\n#include \"mytask.h\"\n/* USER CODE END Includes */\n\n/* USER CODE BEGIN Private defines */\n#define APP_INT(name)\tname##_Init()\n#define APP_TEST(name)\tname##_Test()\n/* USER CODE END Private defines */\n\nextern void MY_BSP_Init(void);\nextern void MY_APP_Test(void);\n/* USER CODE BEGIN Prototypes */\n\n/* USER CODE END Prototypes */\n#endif /*__ INIT_H__ */\n\n/************************ (C) COPYRIGHT winnermicro *****END OF FILE****/"}
81,028
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "QQModel.h" @interface ARFaceModelDownloadConfig : QQModel { _Bool _shouldDownload; int _version; int _netType; } - (id)description; @property(nonatomic) int netType; // @synthesize netType=_netType; @property(nonatomic) _Bool shouldDownload; // @synthesize shouldDownload=_shouldDownload; @property(nonatomic) int version; // @synthesize version=_version; @end
29.24
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "QQModel.h"\n\n@interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}\n\n- (id)description;\n@property(nonatomic) int netType; // @synthesize netType=_netType;\n@property(nonatomic) _Bool shouldDownload; // @synthesize shouldDownload=_shouldDownload;\n@property(nonatomic) int version; // @synthesize version=_version;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "QQModel.h"\n" (preproc_directive) "#import" (preproc_arg) ""QQModel.h"" (ERROR) "@" (ERROR) "@" (function_definition) "interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}" (type_identifier) "interface" (identifier) "ARFaceModelDownloadConfig" (ERROR) ": QQModel" (:) ":" (identifier) "QQModel" (compound_statement) "{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}" ({) "{" (declaration) "_Bool _shouldDownload;" (type_identifier) "_Bool" (identifier) "_shouldDownload" (;) ";" (declaration) "int _version;" (primitive_type) "int" (identifier) "_version" (;) ";" (declaration) "int _netType;" (primitive_type) "int" (identifier) "_netType" (;) ";" (}) "}" (expression_statement) "- (id)description;" (unary_expression) "- (id)description" (-) "-" (cast_expression) "(id)description" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "description" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) int netType;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "int" (identifier) "int" (identifier) "netType" (;) ";" (comment) "// @synthesize netType=_netType;" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) _Bool shouldDownload;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "_Bool" (identifier) "_Bool" (identifier) "shouldDownload" (;) ";" (comment) "// @synthesize shouldDownload=_shouldDownload;" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) int version;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "int" (identifier) "int" (identifier) "version" (;) ";" (comment) "// @synthesize version=_version;" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
89
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.24, "nodes": 57, "errors": 0, "source_hash": "5e363ec18fb67f9ec6bc7bde108061e3daa32ed9a7639f521aef90e66afdde8e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"QQModel.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"QQModel.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 19}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 13, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 10}}, {"id": 7, "type": "identifier", "text": "ARFaceModelDownloadConfig", "parent": 5, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 36}}, {"id": 8, "type": "ERROR", "text": ": QQModel", "parent": 5, "children": [9], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 46}}, {"id": 9, "type": "identifier", "text": "QQModel", "parent": 8, "children": [], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 46}}, {"id": 10, "type": "declaration", "text": "_Bool _shouldDownload;", "parent": 5, "children": [11, 12], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 26}}, {"id": 11, "type": "type_identifier", "text": "_Bool", "parent": 10, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 9}}, {"id": 12, "type": "identifier", "text": "_shouldDownload", "parent": 10, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 25}}, {"id": 13, "type": "declaration", "text": "int _version;", "parent": 5, "children": [14, 15], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 17}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 7}}, {"id": 15, "type": "identifier", "text": "_version", "parent": 13, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 16}}, {"id": 16, "type": "declaration", "text": "int _netType;", "parent": 5, "children": [17, 18], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 17}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 18, "type": "identifier", "text": "_netType", "parent": 16, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 16}}, {"id": 19, "type": "unary_expression", "text": "- (id)description", "parent": null, "children": [20, 21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 17}}, {"id": 20, "type": "-", "text": "-", "parent": 19, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 21, "type": "cast_expression", "text": "(id)description", "parent": 19, "children": [22, 24], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 17}}, {"id": 22, "type": "type_descriptor", "text": "id", "parent": 21, "children": [23], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 23, "type": "type_identifier", "text": "id", "parent": 22, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 24, "type": "identifier", "text": "description", "parent": 21, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 17}}, {"id": 25, "type": "ERROR", "text": "@", "parent": null, "children": [26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 26, "type": "ERROR", "text": "@", "parent": 25, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 27, "type": "declaration", "text": "property(nonatomic) int netType;", "parent": null, "children": [28, 32, 34], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 33}}, {"id": 28, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 27, "children": [29, 30], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 20}}, {"id": 29, "type": "identifier", "text": "property", "parent": 28, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 30, "type": "type_descriptor", "text": "nonatomic", "parent": 28, "children": [31], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 19}}, {"id": 31, "type": "type_identifier", "text": "nonatomic", "parent": 30, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 19}}, {"id": 32, "type": "ERROR", "text": "int", "parent": 27, "children": [33], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 24}}, {"id": 33, "type": "identifier", "text": "int", "parent": 32, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 24}}, {"id": 34, "type": "identifier", "text": "netType", "parent": 27, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 32}}, {"id": 35, "type": "ERROR", "text": "@", "parent": null, "children": [36], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 36, "type": "ERROR", "text": "@", "parent": 35, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 37, "type": "declaration", "text": "property(nonatomic) _Bool shouldDownload;", "parent": null, "children": [38, 42, 44], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 42}}, {"id": 38, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 37, "children": [39, 40], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 20}}, {"id": 39, "type": "identifier", "text": "property", "parent": 38, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 40, "type": "type_descriptor", "text": "nonatomic", "parent": 38, "children": [41], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 19}}, {"id": 41, "type": "type_identifier", "text": "nonatomic", "parent": 40, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 19}}, {"id": 42, "type": "ERROR", "text": "_Bool", "parent": 37, "children": [43], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 26}}, {"id": 43, "type": "identifier", "text": "_Bool", "parent": 42, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 26}}, {"id": 44, "type": "identifier", "text": "shouldDownload", "parent": 37, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 41}}, {"id": 45, "type": "ERROR", "text": "@", "parent": null, "children": [46], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 46, "type": "ERROR", "text": "@", "parent": 45, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 47, "type": "declaration", "text": "property(nonatomic) int version;", "parent": null, "children": [48, 52, 54], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 33}}, {"id": 48, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 47, "children": [49, 50], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 20}}, {"id": 49, "type": "identifier", "text": "property", "parent": 48, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 50, "type": "type_descriptor", "text": "nonatomic", "parent": 48, "children": [51], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 19}}, {"id": 51, "type": "type_identifier", "text": "nonatomic", "parent": 50, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 19}}, {"id": 52, "type": "ERROR", "text": "int", "parent": 47, "children": [53], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 24}}, {"id": 53, "type": "identifier", "text": "int", "parent": 52, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 24}}, {"id": 54, "type": "identifier", "text": "version", "parent": 47, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 32}}, {"id": 55, "type": "ERROR", "text": "@", "parent": null, "children": [56], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 56, "type": "ERROR", "text": "@", "parent": 55, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 13, 16, 27, 37, 47], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 21], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 11, 12, 15, 18, 23, 24, 28, 29, 31, 33, 34, 38, 39, 41, 43, 44, 48, 49, 51, 53, 54], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "ARFaceModelDownloadConfig", "text_snippet": "interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"QQModel.h\"\n\n@interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}\n\n- (id)description;\n@property(nonatomic) int netType; // @synthesize netType=_netType;\n@property(nonatomic) _Bool shouldDownload; // @synthesize shouldDownload=_shouldDownload;\n@property(nonatomic) int version; // @synthesize version=_version;\n\n@end\n\n"}
81,029
c
#version 330 core layout(location = 0) in vec3 vPos; layout(location = 1) in vec3 vColor; uniform float asp; uniform mat4 MVP; uniform float scale; uniform float direct; uniform vec3 loc; out vec3 col; void main() { vec3 adjPos; if(direct < 1.9) adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale; else adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale; adjPos = vec3( ((adjPos.x + loc.x) + 1.0) * 0.25 - asp, adjPos.y + loc.y, ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0 ); gl_Position = MVP * vec4(adjPos, 1.0); col = vColor; }
20.35
26
(translation_unit) "#version 330 core\n\n\nlayout(location = 0) in vec3 vPos;\nlayout(location = 1) in vec3 vColor;\nuniform float asp;\n\nuniform mat4 MVP;\nuniform float scale;\nuniform float direct;\nuniform vec3 loc;\nout vec3 col;\n\nvoid main()\n{\n vec3 adjPos;\n if(direct < 1.9)\n adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n else\n adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;\n \n adjPos = vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n );\n gl_Position = MVP * vec4(adjPos, 1.0);\n col = vColor;\n}\n" (preproc_call) "#version 330 core\n" (preproc_directive) "#version" (preproc_arg) "330 core" (ERROR) "layout(location = 0) in" (call_expression) "layout(location = 0)" (identifier) "layout" (argument_list) "(location = 0)" (() "(" (assignment_expression) "location = 0" (identifier) "location" (=) "=" (number_literal) "0" ()) ")" (identifier) "in" (declaration) "vec3 vPos;" (type_identifier) "vec3" (identifier) "vPos" (;) ";" (ERROR) "layout(location = 1) in" (call_expression) "layout(location = 1)" (identifier) "layout" (argument_list) "(location = 1)" (() "(" (assignment_expression) "location = 1" (identifier) "location" (=) "=" (number_literal) "1" ()) ")" (identifier) "in" (declaration) "vec3 vColor;" (type_identifier) "vec3" (identifier) "vColor" (;) ";" (declaration) "uniform float asp;" (type_identifier) "uniform" (identifier) "float" (ERROR) "asp" (identifier) "asp" (;) ";" (declaration) "uniform mat4 MVP;" (type_identifier) "uniform" (identifier) "mat4" (ERROR) "MVP" (identifier) "MVP" (;) ";" (declaration) "uniform float scale;" (type_identifier) "uniform" (ERROR) "float" (identifier) "float" (identifier) "scale" (;) ";" (declaration) "uniform float direct;" (type_identifier) "uniform" (ERROR) "float" (identifier) "float" (identifier) "direct" (;) ";" (declaration) "uniform vec3 loc;" (type_identifier) "uniform" (identifier) "vec3" (ERROR) "loc" (identifier) "loc" (;) ";" (declaration) "out vec3 col;" (type_identifier) "out" (identifier) "vec3" (ERROR) "col" (identifier) "col" (;) ";" (function_definition) "void main()\n{\n vec3 adjPos;\n if(direct < 1.9)\n adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n else\n adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;\n \n adjPos = vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n );\n gl_Position = MVP * vec4(adjPos, 1.0);\n col = vColor;\n}" (primitive_type) "void" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n vec3 adjPos;\n if(direct < 1.9)\n adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n else\n adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;\n \n adjPos = vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n );\n gl_Position = MVP * vec4(adjPos, 1.0);\n col = vColor;\n}" ({) "{" (declaration) "vec3 adjPos;" (type_identifier) "vec3" (identifier) "adjPos" (;) ";" (if_statement) "if(direct < 1.9)\n adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n else\n adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;" (if) "if" (parenthesized_expression) "(direct < 1.9)" (() "(" (binary_expression) "direct < 1.9" (identifier) "direct" (<) "<" (number_literal) "1.9" ()) ")" (expression_statement) "adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;" (assignment_expression) "adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale" (identifier) "adjPos" (=) "=" (binary_expression) "vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale" (call_expression) "vec3(vPos.x*direct, vPos.y*direct, vPos.z)" (identifier) "vec3" (argument_list) "(vPos.x*direct, vPos.y*direct, vPos.z)" (() "(" (binary_expression) "vPos.x*direct" (field_expression) "vPos.x" (identifier) "vPos" (.) "." (field_identifier) "x" (*) "*" (identifier) "direct" (,) "," (binary_expression) "vPos.y*direct" (field_expression) "vPos.y" (identifier) "vPos" (.) "." (field_identifier) "y" (*) "*" (identifier) "direct" (,) "," (field_expression) "vPos.z" (identifier) "vPos" (.) "." (field_identifier) "z" ()) ")" (*) "*" (identifier) "scale" (;) ";" (else_clause) "else\n adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;" (else) "else" (expression_statement) "adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;" (assignment_expression) "adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale" (identifier) "adjPos" (=) "=" (binary_expression) "vec3(vPos.x, -vPos.z, vPos.y) * scale" (call_expression) "vec3(vPos.x, -vPos.z, vPos.y)" (identifier) "vec3" (argument_list) "(vPos.x, -vPos.z, vPos.y)" (() "(" (field_expression) "vPos.x" (identifier) "vPos" (.) "." (field_identifier) "x" (,) "," (unary_expression) "-vPos.z" (-) "-" (field_expression) "vPos.z" (identifier) "vPos" (.) "." (field_identifier) "z" (,) "," (field_expression) "vPos.y" (identifier) "vPos" (.) "." (field_identifier) "y" ()) ")" (*) "*" (identifier) "scale" (;) ";" (expression_statement) "adjPos = vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n );" (assignment_expression) "adjPos = vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n )" (identifier) "adjPos" (=) "=" (call_expression) "vec3(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n )" (identifier) "vec3" (argument_list) "(\n ((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n adjPos.y + loc.y,\n ((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n )" (() "(" (binary_expression) "((adjPos.x + loc.x) + 1.0) * 0.25 - asp" (binary_expression) "((adjPos.x + loc.x) + 1.0) * 0.25" (parenthesized_expression) "((adjPos.x + loc.x) + 1.0)" (() "(" (binary_expression) "(adjPos.x + loc.x) + 1.0" (parenthesized_expression) "(adjPos.x + loc.x)" (() "(" (binary_expression) "adjPos.x + loc.x" (field_expression) "adjPos.x" (identifier) "adjPos" (.) "." (field_identifier) "x" (+) "+" (field_expression) "loc.x" (identifier) "loc" (.) "." (field_identifier) "x" ()) ")" (+) "+" (number_literal) "1.0" ()) ")" (*) "*" (number_literal) "0.25" (-) "-" (identifier) "asp" (,) "," (binary_expression) "adjPos.y + loc.y" (field_expression) "adjPos.y" (identifier) "adjPos" (.) "." (field_identifier) "y" (+) "+" (field_expression) "loc.y" (identifier) "loc" (.) "." (field_identifier) "y" (,) "," (binary_expression) "((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0" (binary_expression) "((adjPos.z + loc.z) + 1.0) * 0.25" (parenthesized_expression) "((adjPos.z + loc.z) + 1.0)" (() "(" (binary_expression) "(adjPos.z + loc.z) + 1.0" (parenthesized_expression) "(adjPos.z + loc.z)" (() "(" (binary_expression) "adjPos.z + loc.z" (field_expression) "adjPos.z" (identifier) "adjPos" (.) "." (field_identifier) "z" (+) "+" (field_expression) "loc.z" (identifier) "loc" (.) "." (field_identifier) "z" ()) ")" (+) "+" (number_literal) "1.0" ()) ")" (*) "*" (number_literal) "0.25" (-) "-" (number_literal) "1.0" ()) ")" (;) ";" (expression_statement) "gl_Position = MVP * vec4(adjPos, 1.0);" (assignment_expression) "gl_Position = MVP * vec4(adjPos, 1.0)" (identifier) "gl_Position" (=) "=" (binary_expression) "MVP * vec4(adjPos, 1.0)" (identifier) "MVP" (*) "*" (call_expression) "vec4(adjPos, 1.0)" (identifier) "vec4" (argument_list) "(adjPos, 1.0)" (() "(" (identifier) "adjPos" (,) "," (number_literal) "1.0" ()) ")" (;) ";" (expression_statement) "col = vColor;" (assignment_expression) "col = vColor" (identifier) "col" (=) "=" (identifier) "vColor" (;) ";" (}) "}"
251
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.35, "nodes": 183, "errors": 0, "source_hash": "633763a27eddacebcc94c7c8e37f08a00aac1af9f70c15c23865a176ba93d6ab", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#version 330 core\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#version", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "preproc_arg", "text": "330 core", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "ERROR", "text": "layout(location = 0) in", "parent": null, "children": [4, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 23}}, {"id": 4, "type": "call_expression", "text": "layout(location = 0)", "parent": 3, "children": [5, 6], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 20}}, {"id": 5, "type": "identifier", "text": "layout", "parent": 4, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 6, "type": "argument_list", "text": "(location = 0)", "parent": 4, "children": [7], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 20}}, {"id": 7, "type": "assignment_expression", "text": "location = 0", "parent": 6, "children": [8, 9, 10], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 19}}, {"id": 8, "type": "identifier", "text": "location", "parent": 7, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 15}}, {"id": 9, "type": "=", "text": "=", "parent": 7, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 17}}, {"id": 10, "type": "number_literal", "text": "0", "parent": 7, "children": [], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 19}}, {"id": 11, "type": "identifier", "text": "in", "parent": 3, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 23}}, {"id": 12, "type": "declaration", "text": "vec3 vPos;", "parent": null, "children": [13, 14], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 34}}, {"id": 13, "type": "type_identifier", "text": "vec3", "parent": 12, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 28}}, {"id": 14, "type": "identifier", "text": "vPos", "parent": 12, "children": [], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 33}}, {"id": 15, "type": "ERROR", "text": "layout(location = 1) in", "parent": null, "children": [16, 23], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 23}}, {"id": 16, "type": "call_expression", "text": "layout(location = 1)", "parent": 15, "children": [17, 18], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 20}}, {"id": 17, "type": "identifier", "text": "layout", "parent": 16, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 18, "type": "argument_list", "text": "(location = 1)", "parent": 16, "children": [19], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 20}}, {"id": 19, "type": "assignment_expression", "text": "location = 1", "parent": 18, "children": [20, 21, 22], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 19}}, {"id": 20, "type": "identifier", "text": "location", "parent": 19, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 15}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 17}}, {"id": 22, "type": "number_literal", "text": "1", "parent": 19, "children": [], "start_point": {"row": 4, "column": 18}, "end_point": {"row": 4, "column": 19}}, {"id": 23, "type": "identifier", "text": "in", "parent": 15, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 23}}, {"id": 24, "type": "declaration", "text": "vec3 vColor;", "parent": null, "children": [25, 26], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 36}}, {"id": 25, "type": "type_identifier", "text": "vec3", "parent": 24, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 28}}, {"id": 26, "type": "identifier", "text": "vColor", "parent": 24, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 35}}, {"id": 27, "type": "declaration", "text": "uniform float asp;", "parent": null, "children": [28, 29, 30], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 18}}, {"id": 28, "type": "type_identifier", "text": "uniform", "parent": 27, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 29, "type": "identifier", "text": "float", "parent": 27, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 13}}, {"id": 30, "type": "ERROR", "text": "asp", "parent": 27, "children": [31], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 17}}, {"id": 31, "type": "identifier", "text": "asp", "parent": 30, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 17}}, {"id": 32, "type": "declaration", "text": "uniform mat4 MVP;", "parent": null, "children": [33, 34, 35], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 17}}, {"id": 33, "type": "type_identifier", "text": "uniform", "parent": 32, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 34, "type": "identifier", "text": "mat4", "parent": 32, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 35, "type": "ERROR", "text": "MVP", "parent": 32, "children": [36], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 16}}, {"id": 36, "type": "identifier", "text": "MVP", "parent": 35, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 16}}, {"id": 37, "type": "declaration", "text": "uniform float scale;", "parent": null, "children": [38, 39, 41], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 20}}, {"id": 38, "type": "type_identifier", "text": "uniform", "parent": 37, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 39, "type": "ERROR", "text": "float", "parent": 37, "children": [40], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 40, "type": "identifier", "text": "float", "parent": 39, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 41, "type": "identifier", "text": "scale", "parent": 37, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 19}}, {"id": 42, "type": "declaration", "text": "uniform float direct;", "parent": null, "children": [43, 44, 46], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 21}}, {"id": 43, "type": "type_identifier", "text": "uniform", "parent": 42, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 44, "type": "ERROR", "text": "float", "parent": 42, "children": [45], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 45, "type": "identifier", "text": "float", "parent": 44, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 46, "type": "identifier", "text": "direct", "parent": 42, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 20}}, {"id": 47, "type": "declaration", "text": "uniform vec3 loc;", "parent": null, "children": [48, 49, 50], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 17}}, {"id": 48, "type": "type_identifier", "text": "uniform", "parent": 47, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 49, "type": "identifier", "text": "vec3", "parent": 47, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 12}}, {"id": 50, "type": "ERROR", "text": "loc", "parent": 47, "children": [51], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 16}}, {"id": 51, "type": "identifier", "text": "loc", "parent": 50, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 16}}, {"id": 52, "type": "declaration", "text": "out vec3 col;", "parent": null, "children": [53, 54, 55], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 13}}, {"id": 53, "type": "type_identifier", "text": "out", "parent": 52, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 3}}, {"id": 54, "type": "identifier", "text": "vec3", "parent": 52, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 55, "type": "ERROR", "text": "col", "parent": 52, "children": [56], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 12}}, {"id": 56, "type": "identifier", "text": "col", "parent": 55, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 12}}, {"id": 57, "type": "function_definition", "text": "void main()\n{\n\tvec3 adjPos;\n\tif(direct < 1.9)\n\t\tadjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n\telse\n\t\tadjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;\n\t\n\tadjPos = vec3(\n\t\t((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n\t\tadjPos.y + loc.y,\n\t\t((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n\t);\n gl_Position = MVP * vec4(adjPos, 1.0);\n\tcol = vColor;\n}", "parent": null, "children": [58, 59], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 59, "type": "function_declarator", "text": "main()", "parent": 57, "children": [60, 61], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 11}}, {"id": 60, "type": "identifier", "text": "main", "parent": 59, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 9}}, {"id": 61, "type": "parameter_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 11}}, {"id": 62, "type": "declaration", "text": "vec3 adjPos;", "parent": 57, "children": [63, 64], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 13}}, {"id": 63, "type": "type_identifier", "text": "vec3", "parent": 62, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 5}}, {"id": 64, "type": "identifier", "text": "adjPos", "parent": 62, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 12}}, {"id": 65, "type": "if_statement", "text": "if(direct < 1.9)\n\t\tadjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n\telse\n\t\tadjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;", "parent": 57, "children": [66, 95], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 19, "column": 49}}, {"id": 66, "type": "parenthesized_expression", "text": "(direct < 1.9)", "parent": 65, "children": [67], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 17}}, {"id": 67, "type": "binary_expression", "text": "direct < 1.9", "parent": 66, "children": [68, 69, 70], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 68, "type": "identifier", "text": "direct", "parent": 67, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 69, "type": "<", "text": "<", "parent": 67, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 70, "type": "number_literal", "text": "1.9", "parent": 67, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 16}}, {"id": 71, "type": "assignment_expression", "text": "adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale", "parent": 65, "children": [72, 73, 74], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 61}}, {"id": 72, "type": "identifier", "text": "adjPos", "parent": 71, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 8}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 74, "type": "binary_expression", "text": "vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale", "parent": 71, "children": [75, 93, 94], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 61}}, {"id": 75, "type": "call_expression", "text": "vec3(vPos.x*direct, vPos.y*direct, vPos.z)", "parent": 74, "children": [76, 77], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 53}}, {"id": 76, "type": "identifier", "text": "vec3", "parent": 75, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 77, "type": "argument_list", "text": "(vPos.x*direct, vPos.y*direct, vPos.z)", "parent": 75, "children": [78, 84, 90], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 53}}, {"id": 78, "type": "binary_expression", "text": "vPos.x*direct", "parent": 77, "children": [79, 82, 83], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 29}}, {"id": 79, "type": "field_expression", "text": "vPos.x", "parent": 78, "children": [80, 81], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 22}}, {"id": 80, "type": "identifier", "text": "vPos", "parent": 79, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 20}}, {"id": 81, "type": "field_identifier", "text": "x", "parent": 79, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 82, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 83, "type": "identifier", "text": "direct", "parent": 78, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 84, "type": "binary_expression", "text": "vPos.y*direct", "parent": 77, "children": [85, 88, 89], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 44}}, {"id": 85, "type": "field_expression", "text": "vPos.y", "parent": 84, "children": [86, 87], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 37}}, {"id": 86, "type": "identifier", "text": "vPos", "parent": 85, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 35}}, {"id": 87, "type": "field_identifier", "text": "y", "parent": 85, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 88, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 89, "type": "identifier", "text": "direct", "parent": 84, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 44}}, {"id": 90, "type": "field_expression", "text": "vPos.z", "parent": 77, "children": [91, 92], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 52}}, {"id": 91, "type": "identifier", "text": "vPos", "parent": 90, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 50}}, {"id": 92, "type": "field_identifier", "text": "z", "parent": 90, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 52}}, {"id": 93, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 94, "type": "identifier", "text": "scale", "parent": 74, "children": [], "start_point": {"row": 17, "column": 56}, "end_point": {"row": 17, "column": 61}}, {"id": 95, "type": "else_clause", "text": "else\n\t\tadjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;", "parent": 65, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 49}}, {"id": 96, "type": "assignment_expression", "text": "adjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale", "parent": 95, "children": [97, 98, 99], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 48}}, {"id": 97, "type": "identifier", "text": "adjPos", "parent": 96, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 8}}, {"id": 98, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 99, "type": "binary_expression", "text": "vec3(vPos.x, -vPos.z, vPos.y) * scale", "parent": 96, "children": [100, 114, 115], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 48}}, {"id": 100, "type": "call_expression", "text": "vec3(vPos.x, -vPos.z, vPos.y)", "parent": 99, "children": [101, 102], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 40}}, {"id": 101, "type": "identifier", "text": "vec3", "parent": 100, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 102, "type": "argument_list", "text": "(vPos.x, -vPos.z, vPos.y)", "parent": 100, "children": [103, 106, 111], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 40}}, {"id": 103, "type": "field_expression", "text": "vPos.x", "parent": 102, "children": [104, 105], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 104, "type": "identifier", "text": "vPos", "parent": 103, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 20}}, {"id": 105, "type": "field_identifier", "text": "x", "parent": 103, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 106, "type": "unary_expression", "text": "-vPos.z", "parent": 102, "children": [107, 108], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 31}}, {"id": 107, "type": "-", "text": "-", "parent": 106, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 108, "type": "field_expression", "text": "vPos.z", "parent": 106, "children": [109, 110], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 31}}, {"id": 109, "type": "identifier", "text": "vPos", "parent": 108, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 29}}, {"id": 110, "type": "field_identifier", "text": "z", "parent": 108, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 31}}, {"id": 111, "type": "field_expression", "text": "vPos.y", "parent": 102, "children": [112, 113], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 39}}, {"id": 112, "type": "identifier", "text": "vPos", "parent": 111, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 37}}, {"id": 113, "type": "field_identifier", "text": "y", "parent": 111, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 114, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 115, "type": "identifier", "text": "scale", "parent": 99, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 48}}, {"id": 116, "type": "assignment_expression", "text": "adjPos = vec3(\n\t\t((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n\t\tadjPos.y + loc.y,\n\t\t((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n\t)", "parent": 57, "children": [117, 118, 119], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 25, "column": 2}}, {"id": 117, "type": "identifier", "text": "adjPos", "parent": 116, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 7}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 119, "type": "call_expression", "text": "vec3(\n\t\t((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n\t\tadjPos.y + loc.y,\n\t\t((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n\t)", "parent": 116, "children": [120, 121], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 25, "column": 2}}, {"id": 120, "type": "identifier", "text": "vec3", "parent": 119, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 121, "type": "argument_list", "text": "(\n\t\t((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n\t\tadjPos.y + loc.y,\n\t\t((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n\t)", "parent": 119, "children": [122, 141, 149], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 25, "column": 2}}, {"id": 122, "type": "binary_expression", "text": "((adjPos.x + loc.x) + 1.0) * 0.25 - asp", "parent": 121, "children": [123, 139, 140], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 41}}, {"id": 123, "type": "binary_expression", "text": "((adjPos.x + loc.x) + 1.0) * 0.25", "parent": 122, "children": [124, 137, 138], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 35}}, {"id": 124, "type": "parenthesized_expression", "text": "((adjPos.x + loc.x) + 1.0)", "parent": 123, "children": [125], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 28}}, {"id": 125, "type": "binary_expression", "text": "(adjPos.x + loc.x) + 1.0", "parent": 124, "children": [126, 135, 136], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 27}}, {"id": 126, "type": "parenthesized_expression", "text": "(adjPos.x + loc.x)", "parent": 125, "children": [127], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 21}}, {"id": 127, "type": "binary_expression", "text": "adjPos.x + loc.x", "parent": 126, "children": [128, 131, 132], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 20}}, {"id": 128, "type": "field_expression", "text": "adjPos.x", "parent": 127, "children": [129, 130], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 129, "type": "identifier", "text": "adjPos", "parent": 128, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 130, "type": "field_identifier", "text": "x", "parent": 128, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 12}}, {"id": 131, "type": "+", "text": "+", "parent": 127, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 14}}, {"id": 132, "type": "field_expression", "text": "loc.x", "parent": 127, "children": [133, 134], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 20}}, {"id": 133, "type": "identifier", "text": "loc", "parent": 132, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 18}}, {"id": 134, "type": "field_identifier", "text": "x", "parent": 132, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 135, "type": "+", "text": "+", "parent": 125, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 136, "type": "number_literal", "text": "1.0", "parent": 125, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 27}}, {"id": 137, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 138, "type": "number_literal", "text": "0.25", "parent": 123, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 35}}, {"id": 139, "type": "-", "text": "-", "parent": 122, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 37}}, {"id": 140, "type": "identifier", "text": "asp", "parent": 122, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 41}}, {"id": 141, "type": "binary_expression", "text": "adjPos.y + loc.y", "parent": 121, "children": [142, 145, 146], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 18}}, {"id": 142, "type": "field_expression", "text": "adjPos.y", "parent": 141, "children": [143, 144], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 143, "type": "identifier", "text": "adjPos", "parent": 142, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 144, "type": "field_identifier", "text": "y", "parent": 142, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 145, "type": "+", "text": "+", "parent": 141, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 146, "type": "field_expression", "text": "loc.y", "parent": 141, "children": [147, 148], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 18}}, {"id": 147, "type": "identifier", "text": "loc", "parent": 146, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 16}}, {"id": 148, "type": "field_identifier", "text": "y", "parent": 146, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 149, "type": "binary_expression", "text": "((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0", "parent": 121, "children": [150, 166, 167], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 41}}, {"id": 150, "type": "binary_expression", "text": "((adjPos.z + loc.z) + 1.0) * 0.25", "parent": 149, "children": [151, 164, 165], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 35}}, {"id": 151, "type": "parenthesized_expression", "text": "((adjPos.z + loc.z) + 1.0)", "parent": 150, "children": [152], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 28}}, {"id": 152, "type": "binary_expression", "text": "(adjPos.z + loc.z) + 1.0", "parent": 151, "children": [153, 162, 163], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 27}}, {"id": 153, "type": "parenthesized_expression", "text": "(adjPos.z + loc.z)", "parent": 152, "children": [154], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 21}}, {"id": 154, "type": "binary_expression", "text": "adjPos.z + loc.z", "parent": 153, "children": [155, 158, 159], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 20}}, {"id": 155, "type": "field_expression", "text": "adjPos.z", "parent": 154, "children": [156, 157], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 156, "type": "identifier", "text": "adjPos", "parent": 155, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 157, "type": "field_identifier", "text": "z", "parent": 155, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 158, "type": "+", "text": "+", "parent": 154, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 159, "type": "field_expression", "text": "loc.z", "parent": 154, "children": [160, 161], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 20}}, {"id": 160, "type": "identifier", "text": "loc", "parent": 159, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 18}}, {"id": 161, "type": "field_identifier", "text": "z", "parent": 159, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 162, "type": "+", "text": "+", "parent": 152, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 163, "type": "number_literal", "text": "1.0", "parent": 152, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 27}}, {"id": 164, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 30}}, {"id": 165, "type": "number_literal", "text": "0.25", "parent": 150, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 35}}, {"id": 166, "type": "-", "text": "-", "parent": 149, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 37}}, {"id": 167, "type": "number_literal", "text": "1.0", "parent": 149, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 41}}, {"id": 168, "type": "assignment_expression", "text": "gl_Position = MVP * vec4(adjPos, 1.0)", "parent": 57, "children": [169, 170, 171], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 41}}, {"id": 169, "type": "identifier", "text": "gl_Position", "parent": 168, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 170, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 171, "type": "binary_expression", "text": "MVP * vec4(adjPos, 1.0)", "parent": 168, "children": [172, 173, 174], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 41}}, {"id": 172, "type": "identifier", "text": "MVP", "parent": 171, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 21}}, {"id": 173, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 174, "type": "call_expression", "text": "vec4(adjPos, 1.0)", "parent": 171, "children": [175, 176], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 41}}, {"id": 175, "type": "identifier", "text": "vec4", "parent": 174, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 28}}, {"id": 176, "type": "argument_list", "text": "(adjPos, 1.0)", "parent": 174, "children": [177, 178], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 41}}, {"id": 177, "type": "identifier", "text": "adjPos", "parent": 176, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 35}}, {"id": 178, "type": "number_literal", "text": "1.0", "parent": 176, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 40}}, {"id": 179, "type": "assignment_expression", "text": "col = vColor", "parent": 57, "children": [180, 181, 182], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 13}}, {"id": 180, "type": "identifier", "text": "col", "parent": 179, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 4}}, {"id": 181, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 6}}, {"id": 182, "type": "identifier", "text": "vColor", "parent": 179, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 13}}]}, "node_categories": {"declarations": {"functions": [57, 59], "variables": [12, 24, 27, 32, 37, 42, 47, 52, 62], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [4, 16, 66, 67, 74, 75, 78, 79, 84, 85, 90, 99, 100, 103, 106, 108, 111, 119, 122, 123, 124, 125, 126, 127, 128, 132, 141, 142, 146, 149, 150, 151, 152, 153, 154, 155, 159, 171, 174], "assignments": [7, 19, 71, 96, 116, 168, 179], "loops": [], "conditionals": [5, 8, 11, 13, 14, 17, 20, 23, 25, 26, 28, 29, 31, 33, 34, 36, 38, 40, 41, 43, 45, 46, 48, 49, 51, 53, 54, 56, 60, 63, 64, 65, 68, 72, 76, 80, 81, 83, 86, 87, 89, 91, 92, 94, 97, 101, 104, 105, 109, 110, 112, 113, 115, 117, 120, 129, 130, 133, 134, 140, 143, 144, 147, 148, 156, 157, 160, 161, 169, 172, 175, 177, 180, 182], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [10, 22, 70, 136, 138, 163, 165, 167, 178], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 57, "universal_type": "function", "name": "main", "text_snippet": "void main()\n{\n\tvec3 adjPos;\n\tif(direct < 1.9)\n\t\tadjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) "}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#version 330 core\n\n\nlayout(location = 0) in vec3 vPos;\nlayout(location = 1) in vec3 vColor;\nuniform float asp;\n\nuniform mat4 MVP;\nuniform float scale;\nuniform float direct;\nuniform vec3 loc;\nout vec3 col;\n\nvoid main()\n{\n\tvec3 adjPos;\n\tif(direct < 1.9)\n\t\tadjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale;\n\telse\n\t\tadjPos = vec3(vPos.x, -vPos.z, vPos.y) * scale;\n\t\n\tadjPos = vec3(\n\t\t((adjPos.x + loc.x) + 1.0) * 0.25 - asp,\n\t\tadjPos.y + loc.y,\n\t\t((adjPos.z + loc.z) + 1.0) * 0.25 - 1.0\n\t);\n gl_Position = MVP * vec4(adjPos, 1.0);\n\tcol = vColor;\n}\n"}
81,030
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> int main() { time_t t; srand((unsigned) time(&t)); int number; for(int i = 0; i < (rand() % 100); i++) { number = (rand() % 1000) + 1; } printf("Guess the number 1 - 1000\n\n"); while(true) { int guess, nitems; fflush(stdin); printf("Guess a number: "); nitems = scanf("%d", &guess); if (nitems == EOF || nitems == 0) { printf("Input error\n"); } else { if(guess > number) { printf("Its smaller.\n"); } else if(guess < number) { printf("Its larger.\n"); } else if(guess == number) { printf("You win. the number was %i.\n", number); break; } } } getchar(); return 0; }
24.71
34
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <time.h>\n\nint main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf("Guess the number 1 - 1000\n\n");\n while(true) {\n int guess, nitems;\n fflush(stdin);\n printf("Guess a number: ");\n nitems = scanf("%d", &guess);\n if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }\n }\n getchar();\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (function_definition) "int main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf("Guess the number 1 - 1000\n\n");\n while(true) {\n int guess, nitems;\n fflush(stdin);\n printf("Guess a number: ");\n nitems = scanf("%d", &guess);\n if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }\n }\n getchar();\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf("Guess the number 1 - 1000\n\n");\n while(true) {\n int guess, nitems;\n fflush(stdin);\n printf("Guess a number: ");\n nitems = scanf("%d", &guess);\n if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }\n }\n getchar();\n return 0;\n}" ({) "{" (declaration) "time_t t;" (type_identifier) "time_t" (identifier) "t" (;) ";" (expression_statement) "srand((unsigned) time(&t));" (call_expression) "srand((unsigned) time(&t))" (identifier) "srand" (argument_list) "((unsigned) time(&t))" (() "(" (cast_expression) "(unsigned) time(&t)" (() "(" (type_descriptor) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" ()) ")" (call_expression) "time(&t)" (identifier) "time" (argument_list) "(&t)" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" ()) ")" ()) ")" (;) ";" (declaration) "int number;" (primitive_type) "int" (identifier) "number" (;) ";" (for_statement) "for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < (rand() % 100)" (identifier) "i" (<) "<" (parenthesized_expression) "(rand() % 100)" (() "(" (binary_expression) "rand() % 100" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (number_literal) "100" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n number = (rand() % 1000) + 1;\n }" ({) "{" (expression_statement) "number = (rand() % 1000) + 1;" (assignment_expression) "number = (rand() % 1000) + 1" (identifier) "number" (=) "=" (binary_expression) "(rand() % 1000) + 1" (parenthesized_expression) "(rand() % 1000)" (() "(" (binary_expression) "rand() % 1000" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (number_literal) "1000" ()) ")" (+) "+" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "printf("Guess the number 1 - 1000\n\n");" (call_expression) "printf("Guess the number 1 - 1000\n\n")" (identifier) "printf" (argument_list) "("Guess the number 1 - 1000\n\n")" (() "(" (string_literal) ""Guess the number 1 - 1000\n\n"" (") """ (string_content) "Guess the number 1 - 1000" (escape_sequence) "\n" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while(true) {\n int guess, nitems;\n fflush(stdin);\n printf("Guess a number: ");\n nitems = scanf("%d", &guess);\n if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }\n }" (while) "while" (parenthesized_expression) "(true)" (() "(" (true) "true" ()) ")" (compound_statement) "{\n int guess, nitems;\n fflush(stdin);\n printf("Guess a number: ");\n nitems = scanf("%d", &guess);\n if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }\n }" ({) "{" (declaration) "int guess, nitems;" (primitive_type) "int" (identifier) "guess" (,) "," (identifier) "nitems" (;) ";" (expression_statement) "fflush(stdin);" (call_expression) "fflush(stdin)" (identifier) "fflush" (argument_list) "(stdin)" (() "(" (identifier) "stdin" ()) ")" (;) ";" (expression_statement) "printf("Guess a number: ");" (call_expression) "printf("Guess a number: ")" (identifier) "printf" (argument_list) "("Guess a number: ")" (() "(" (string_literal) ""Guess a number: "" (") """ (string_content) "Guess a number: " (") """ ()) ")" (;) ";" (expression_statement) "nitems = scanf("%d", &guess);" (assignment_expression) "nitems = scanf("%d", &guess)" (identifier) "nitems" (=) "=" (call_expression) "scanf("%d", &guess)" (identifier) "scanf" (argument_list) "("%d", &guess)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&guess" (&) "&" (identifier) "guess" ()) ")" (;) ";" (if_statement) "if (nitems == EOF || nitems == 0) {\n printf("Input error\n");\n } else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }" (if) "if" (parenthesized_expression) "(nitems == EOF || nitems == 0)" (() "(" (binary_expression) "nitems == EOF || nitems == 0" (binary_expression) "nitems == EOF" (identifier) "nitems" (==) "==" (identifier) "EOF" (||) "||" (binary_expression) "nitems == 0" (identifier) "nitems" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Input error\n");\n }" ({) "{" (expression_statement) "printf("Input error\n");" (call_expression) "printf("Input error\n")" (identifier) "printf" (argument_list) "("Input error\n")" (() "(" (string_literal) ""Input error\n"" (") """ (string_content) "Input error" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else {\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }" (else) "else" (compound_statement) "{\n if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }\n }" ({) "{" (if_statement) "if(guess > number) {\n printf("Its smaller.\n");\n } else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }" (if) "if" (parenthesized_expression) "(guess > number)" (() "(" (binary_expression) "guess > number" (identifier) "guess" (>) ">" (identifier) "number" ()) ")" (compound_statement) "{\n printf("Its smaller.\n");\n }" ({) "{" (expression_statement) "printf("Its smaller.\n");" (call_expression) "printf("Its smaller.\n")" (identifier) "printf" (argument_list) "("Its smaller.\n")" (() "(" (string_literal) ""Its smaller.\n"" (") """ (string_content) "Its smaller." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }" (else) "else" (if_statement) "if(guess < number) {\n printf("Its larger.\n");\n } else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }" (if) "if" (parenthesized_expression) "(guess < number)" (() "(" (binary_expression) "guess < number" (identifier) "guess" (<) "<" (identifier) "number" ()) ")" (compound_statement) "{\n printf("Its larger.\n");\n }" ({) "{" (expression_statement) "printf("Its larger.\n");" (call_expression) "printf("Its larger.\n")" (identifier) "printf" (argument_list) "("Its larger.\n")" (() "(" (string_literal) ""Its larger.\n"" (") """ (string_content) "Its larger." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }" (else) "else" (if_statement) "if(guess == number) {\n printf("You win. the number was %i.\n", number);\n break;\n }" (if) "if" (parenthesized_expression) "(guess == number)" (() "(" (binary_expression) "guess == number" (identifier) "guess" (==) "==" (identifier) "number" ()) ")" (compound_statement) "{\n printf("You win. the number was %i.\n", number);\n break;\n }" ({) "{" (expression_statement) "printf("You win. the number was %i.\n", number);" (call_expression) "printf("You win. the number was %i.\n", number)" (identifier) "printf" (argument_list) "("You win. the number was %i.\n", number)" (() "(" (string_literal) ""You win. the number was %i.\n"" (") """ (string_content) "You win. the number was %i." (escape_sequence) "\n" (") """ (,) "," (identifier) "number" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "getchar();" (call_expression) "getchar()" (identifier) "getchar" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
295
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.71, "nodes": 159, "errors": 0, "source_hash": "1a9e1a4b59849e0531d9e45c8d7da3cbdf465a284b38286c33e26b22542c6e22", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <time.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<time.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "function_definition", "text": "int main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf(\"Guess the number 1 - 1000\\n\\n\");\n while(true) {\n int guess, nitems;\n fflush(stdin);\n printf(\"Guess a number: \");\n nitems = scanf(\"%d\", &guess);\n if (nitems == EOF || nitems == 0) {\n printf(\"Input error\\n\");\n } else {\n if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }\n }\n }\n getchar();\n return 0;\n}", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 14, "type": "function_declarator", "text": "main()", "parent": 12, "children": [15, 16], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 15, "type": "identifier", "text": "main", "parent": 14, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 16, "type": "parameter_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 10}}, {"id": 17, "type": "declaration", "text": "time_t t;", "parent": 12, "children": [18, 19], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 13}}, {"id": 18, "type": "type_identifier", "text": "time_t", "parent": 17, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 19, "type": "identifier", "text": "t", "parent": 17, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 20, "type": "call_expression", "text": "srand((unsigned) time(&t))", "parent": 12, "children": [21, 22], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 30}}, {"id": 21, "type": "identifier", "text": "srand", "parent": 20, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 9}}, {"id": 22, "type": "argument_list", "text": "((unsigned) time(&t))", "parent": 20, "children": [23], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 30}}, {"id": 23, "type": "cast_expression", "text": "(unsigned) time(&t)", "parent": 22, "children": [24, 27], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 29}}, {"id": 24, "type": "type_descriptor", "text": "unsigned", "parent": 23, "children": [25], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 19}}, {"id": 25, "type": "sized_type_specifier", "text": "unsigned", "parent": 24, "children": [26], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 19}}, {"id": 26, "type": "unsigned", "text": "unsigned", "parent": 25, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 19}}, {"id": 27, "type": "call_expression", "text": "time(&t)", "parent": 23, "children": [28, 29], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 29}}, {"id": 28, "type": "identifier", "text": "time", "parent": 27, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 25}}, {"id": 29, "type": "argument_list", "text": "(&t)", "parent": 27, "children": [30], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 29}}, {"id": 30, "type": "pointer_expression", "text": "&t", "parent": 29, "children": [31], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 28}}, {"id": 31, "type": "identifier", "text": "t", "parent": 30, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 28}}, {"id": 32, "type": "declaration", "text": "int number;", "parent": 12, "children": [33, 34], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 15}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 7}}, {"id": 34, "type": "identifier", "text": "number", "parent": 32, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 35, "type": "for_statement", "text": "for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }", "parent": 12, "children": [36, 42, 52], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 12, "column": 5}}, {"id": 36, "type": "declaration", "text": "int i = 0;", "parent": 35, "children": [37, 38], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 38, "type": "init_declarator", "text": "i = 0", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 17}}, {"id": 39, "type": "identifier", "text": "i", "parent": 38, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 41, "type": "number_literal", "text": "0", "parent": 38, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 42, "type": "binary_expression", "text": "i < (rand() % 100)", "parent": 35, "children": [43, 44, 45], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 37}}, {"id": 43, "type": "identifier", "text": "i", "parent": 42, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 44, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 22}}, {"id": 45, "type": "parenthesized_expression", "text": "(rand() % 100)", "parent": 42, "children": [46], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 37}}, {"id": 46, "type": "binary_expression", "text": "rand() % 100", "parent": 45, "children": [47, 50, 51], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 36}}, {"id": 47, "type": "call_expression", "text": "rand()", "parent": 46, "children": [48, 49], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 30}}, {"id": 48, "type": "identifier", "text": "rand", "parent": 47, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 28}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 30}}, {"id": 50, "type": "%", "text": "%", "parent": 46, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 32}}, {"id": 51, "type": "number_literal", "text": "100", "parent": 46, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 36}}, {"id": 52, "type": "update_expression", "text": "i++", "parent": 35, "children": [53, 54], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 42}}, {"id": 53, "type": "identifier", "text": "i", "parent": 52, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 40}}, {"id": 54, "type": "++", "text": "++", "parent": 52, "children": [], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 42}}, {"id": 55, "type": "assignment_expression", "text": "number = (rand() % 1000) + 1", "parent": 35, "children": [56, 57, 58], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 36}}, {"id": 56, "type": "identifier", "text": "number", "parent": 55, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 58, "type": "binary_expression", "text": "(rand() % 1000) + 1", "parent": 55, "children": [59, 66, 67], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 36}}, {"id": 59, "type": "parenthesized_expression", "text": "(rand() % 1000)", "parent": 58, "children": [60], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 32}}, {"id": 60, "type": "binary_expression", "text": "rand() % 1000", "parent": 59, "children": [61, 64, 65], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 31}}, {"id": 61, "type": "call_expression", "text": "rand()", "parent": 60, "children": [62, 63], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 62, "type": "identifier", "text": "rand", "parent": 61, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 22}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 24}}, {"id": 64, "type": "%", "text": "%", "parent": 60, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 26}}, {"id": 65, "type": "number_literal", "text": "1000", "parent": 60, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 31}}, {"id": 66, "type": "+", "text": "+", "parent": 58, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 34}}, {"id": 67, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 11, "column": 35}, "end_point": {"row": 11, "column": 36}}, {"id": 68, "type": "call_expression", "text": "printf(\"Guess the number 1 - 1000\\n\\n\")", "parent": 12, "children": [69, 70], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 43}}, {"id": 69, "type": "identifier", "text": "printf", "parent": 68, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 70, "type": "argument_list", "text": "(\"Guess the number 1 - 1000\\n\\n\")", "parent": 68, "children": [71], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 43}}, {"id": 71, "type": "string_literal", "text": "\"Guess the number 1 - 1000\\n\\n\"", "parent": 70, "children": [72, 73], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 42}}, {"id": 72, "type": "escape_sequence", "text": "\\n", "parent": 71, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 39}}, {"id": 73, "type": "escape_sequence", "text": "\\n", "parent": 71, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 41}}, {"id": 74, "type": "while_statement", "text": "while(true) {\n int guess, nitems;\n fflush(stdin);\n printf(\"Guess a number: \");\n nitems = scanf(\"%d\", &guess);\n if (nitems == EOF || nitems == 0) {\n printf(\"Input error\\n\");\n } else {\n if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }\n }\n }", "parent": 12, "children": [75], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 75, "type": "parenthesized_expression", "text": "(true)", "parent": 74, "children": [76], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 15}}, {"id": 76, "type": "true", "text": "true", "parent": 75, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 77, "type": "declaration", "text": "int guess, nitems;", "parent": 74, "children": [78, 79, 80], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 26}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 11}}, {"id": 79, "type": "identifier", "text": "guess", "parent": 77, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 17}}, {"id": 80, "type": "identifier", "text": "nitems", "parent": 77, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 25}}, {"id": 81, "type": "call_expression", "text": "fflush(stdin)", "parent": 74, "children": [82, 83], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 21}}, {"id": 82, "type": "identifier", "text": "fflush", "parent": 81, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 14}}, {"id": 83, "type": "argument_list", "text": "(stdin)", "parent": 81, "children": [84], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 21}}, {"id": 84, "type": "identifier", "text": "stdin", "parent": 83, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 20}}, {"id": 85, "type": "call_expression", "text": "printf(\"Guess a number: \")", "parent": 74, "children": [86, 87], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 34}}, {"id": 86, "type": "identifier", "text": "printf", "parent": 85, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 87, "type": "argument_list", "text": "(\"Guess a number: \")", "parent": 85, "children": [88], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 34}}, {"id": 88, "type": "string_literal", "text": "\"Guess a number: \"", "parent": 87, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 33}}, {"id": 89, "type": "assignment_expression", "text": "nitems = scanf(\"%d\", &guess)", "parent": 74, "children": [90, 91, 92], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 36}}, {"id": 90, "type": "identifier", "text": "nitems", "parent": 89, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 92, "type": "call_expression", "text": "scanf(\"%d\", &guess)", "parent": 89, "children": [93, 94], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 36}}, {"id": 93, "type": "identifier", "text": "scanf", "parent": 92, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 22}}, {"id": 94, "type": "argument_list", "text": "(\"%d\", &guess)", "parent": 92, "children": [95, 96], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 36}}, {"id": 95, "type": "string_literal", "text": "\"%d\"", "parent": 94, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 27}}, {"id": 96, "type": "pointer_expression", "text": "&guess", "parent": 94, "children": [97], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 35}}, {"id": 97, "type": "identifier", "text": "guess", "parent": 96, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 35}}, {"id": 98, "type": "if_statement", "text": "if (nitems == EOF || nitems == 0) {\n printf(\"Input error\\n\");\n } else {\n if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }\n }", "parent": 74, "children": [99, 115], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 99, "type": "parenthesized_expression", "text": "(nitems == EOF || nitems == 0)", "parent": 98, "children": [100], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 41}}, {"id": 100, "type": "binary_expression", "text": "nitems == EOF || nitems == 0", "parent": 99, "children": [101, 105, 106], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 40}}, {"id": 101, "type": "binary_expression", "text": "nitems == EOF", "parent": 100, "children": [102, 103, 104], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 25}}, {"id": 102, "type": "identifier", "text": "nitems", "parent": 101, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 103, "type": "==", "text": "==", "parent": 101, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 21}}, {"id": 104, "type": "identifier", "text": "EOF", "parent": 101, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 25}}, {"id": 105, "type": "||", "text": "||", "parent": 100, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 28}}, {"id": 106, "type": "binary_expression", "text": "nitems == 0", "parent": 100, "children": [107, 108, 109], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 40}}, {"id": 107, "type": "identifier", "text": "nitems", "parent": 106, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 35}}, {"id": 108, "type": "==", "text": "==", "parent": 106, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 38}}, {"id": 109, "type": "number_literal", "text": "0", "parent": 106, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 40}}, {"id": 110, "type": "call_expression", "text": "printf(\"Input error\\n\")", "parent": 98, "children": [111, 112], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 35}}, {"id": 111, "type": "identifier", "text": "printf", "parent": 110, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 18}}, {"id": 112, "type": "argument_list", "text": "(\"Input error\\n\")", "parent": 110, "children": [113], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 35}}, {"id": 113, "type": "string_literal", "text": "\"Input error\\n\"", "parent": 112, "children": [114], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 34}}, {"id": 114, "type": "escape_sequence", "text": "\\n", "parent": 113, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 33}}, {"id": 115, "type": "else_clause", "text": "else {\n if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }\n }", "parent": 98, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 30, "column": 9}}, {"id": 116, "type": "if_statement", "text": "if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }", "parent": 115, "children": [117, 127], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 117, "type": "parenthesized_expression", "text": "(guess > number)", "parent": 116, "children": [118], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 30}}, {"id": 118, "type": "binary_expression", "text": "guess > number", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 29}}, {"id": 119, "type": "identifier", "text": "guess", "parent": 118, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 20}}, {"id": 120, "type": ">", "text": ">", "parent": 118, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 121, "type": "identifier", "text": "number", "parent": 118, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 29}}, {"id": 122, "type": "call_expression", "text": "printf(\"Its smaller.\\n\")", "parent": 116, "children": [123, 124], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 40}}, {"id": 123, "type": "identifier", "text": "printf", "parent": 122, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 22}}, {"id": 124, "type": "argument_list", "text": "(\"Its smaller.\\n\")", "parent": 122, "children": [125], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 40}}, {"id": 125, "type": "string_literal", "text": "\"Its smaller.\\n\"", "parent": 124, "children": [126], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 39}}, {"id": 126, "type": "escape_sequence", "text": "\\n", "parent": 125, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 38}}, {"id": 127, "type": "else_clause", "text": "else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }", "parent": 116, "children": [128], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 29, "column": 13}}, {"id": 128, "type": "if_statement", "text": "if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }", "parent": 127, "children": [129, 139], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 29, "column": 13}}, {"id": 129, "type": "parenthesized_expression", "text": "(guess < number)", "parent": 128, "children": [130], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 37}}, {"id": 130, "type": "binary_expression", "text": "guess < number", "parent": 129, "children": [131, 132, 133], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 36}}, {"id": 131, "type": "identifier", "text": "guess", "parent": 130, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 27}}, {"id": 132, "type": "<", "text": "<", "parent": 130, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 29}}, {"id": 133, "type": "identifier", "text": "number", "parent": 130, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 36}}, {"id": 134, "type": "call_expression", "text": "printf(\"Its larger.\\n\")", "parent": 128, "children": [135, 136], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 39}}, {"id": 135, "type": "identifier", "text": "printf", "parent": 134, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 22}}, {"id": 136, "type": "argument_list", "text": "(\"Its larger.\\n\")", "parent": 134, "children": [137], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 39}}, {"id": 137, "type": "string_literal", "text": "\"Its larger.\\n\"", "parent": 136, "children": [138], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 38}}, {"id": 138, "type": "escape_sequence", "text": "\\n", "parent": 137, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 37}}, {"id": 139, "type": "else_clause", "text": "else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }", "parent": 128, "children": [140], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 29, "column": 13}}, {"id": 140, "type": "if_statement", "text": "if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }", "parent": 139, "children": [141], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 29, "column": 13}}, {"id": 141, "type": "parenthesized_expression", "text": "(guess == number)", "parent": 140, "children": [142], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 38}}, {"id": 142, "type": "binary_expression", "text": "guess == number", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 37}}, {"id": 143, "type": "identifier", "text": "guess", "parent": 142, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 27}}, {"id": 144, "type": "==", "text": "==", "parent": 142, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 30}}, {"id": 145, "type": "identifier", "text": "number", "parent": 142, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 37}}, {"id": 146, "type": "call_expression", "text": "printf(\"You win. the number was %i.\\n\", number)", "parent": 140, "children": [147, 148], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 63}}, {"id": 147, "type": "identifier", "text": "printf", "parent": 146, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 22}}, {"id": 148, "type": "argument_list", "text": "(\"You win. the number was %i.\\n\", number)", "parent": 146, "children": [149, 151], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 63}}, {"id": 149, "type": "string_literal", "text": "\"You win. the number was %i.\\n\"", "parent": 148, "children": [150], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 54}}, {"id": 150, "type": "escape_sequence", "text": "\\n", "parent": 149, "children": [], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 53}}, {"id": 151, "type": "identifier", "text": "number", "parent": 148, "children": [], "start_point": {"row": 27, "column": 56}, "end_point": {"row": 27, "column": 62}}, {"id": 152, "type": "break_statement", "text": "break;", "parent": 140, "children": [153], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 22}}, {"id": 153, "type": "break", "text": "break", "parent": 152, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 21}}, {"id": 154, "type": "call_expression", "text": "getchar()", "parent": 12, "children": [155, 156], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 13}}, {"id": 155, "type": "identifier", "text": "getchar", "parent": 154, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 156, "type": "argument_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 13}}, {"id": 157, "type": "return_statement", "text": "return 0;", "parent": 12, "children": [158], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 157, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}]}, "node_categories": {"declarations": {"functions": [12, 14], "variables": [17, 32, 36, 77], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [20, 23, 27, 30, 42, 45, 46, 47, 52, 58, 59, 60, 61, 68, 75, 81, 85, 92, 96, 99, 100, 101, 106, 110, 117, 118, 122, 129, 130, 134, 141, 142, 146, 154], "assignments": [55, 89], "loops": [35, 74], "conditionals": [15, 18, 19, 21, 25, 28, 31, 34, 39, 43, 48, 53, 56, 62, 69, 79, 80, 82, 84, 86, 90, 93, 97, 98, 102, 104, 107, 111, 116, 119, 121, 123, 128, 131, 133, 135, 140, 143, 145, 147, 151, 155], "returns": [157], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 41, 51, 65, 67, 71, 88, 95, 109, 113, 125, 137, 149, 158], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (r"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdbool.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <time.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <time.h>\n\nint main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf(\"Guess the number 1 - 1000\\n\\n\");\n while(true) {\n int guess, nitems;\n fflush(stdin);\n printf(\"Guess a number: \");\n nitems = scanf(\"%d\", &guess);\n if (nitems == EOF || nitems == 0) {\n printf(\"Input error\\n\");\n } else {\n if(guess > number) {\n printf(\"Its smaller.\\n\");\n } else if(guess < number) {\n printf(\"Its larger.\\n\");\n } else if(guess == number) {\n printf(\"You win. the number was %i.\\n\", number);\n break;\n }\n }\n }\n getchar();\n return 0;\n}\n"}
81,031
c
// // NVGridSemanticItemView.h // Navi // // Created by QIANSC on 2020/11/6. // Copyright © 2020 Qian,Sicheng. All rights reserved. // #import <Cocoa/Cocoa.h> #import "NVToggleBox.h" #import "NVGridSource.h" NS_ASSUME_NONNULL_BEGIN @interface NVGridSemanticItemView : NVToggleBox @property (nonatomic) NVGridSpec spec; @end NS_ASSUME_NONNULL_END
22.33
15
(translation_unit) "//\n// NVGridSemanticItemView.h\n// Navi\n//\n// Created by QIANSC on 2020/11/6.\n// Copyright © 2020 Qian,Sicheng. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "NVToggleBox.h"\n#import "NVGridSource.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NVGridSemanticItemView : NVToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// NVGridSemanticItemView.h" (comment) "// Navi" (comment) "//" (comment) "// Created by QIANSC on 2020/11/6." (comment) "// Copyright © 2020 Qian,Sicheng. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Cocoa/Cocoa.h>\n#" (preproc_directive) "import " (preproc_arg) "Cocoa/Cocoa.h>\n" (preproc_call) "import "NVToggleBox.h"\n#" (preproc_directive) "import " (preproc_arg) "NVToggleBox.h"\n" (preproc_call) "import "NVGridSource.h"\n\n" (preproc_directive) "import " (preproc_arg) "NVGridSource.h"\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "VGridSemanticItemView : NVToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (statement_identifier) "VGridSemanticItemView " (:) " " (declaration) "VToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "VToggleBox\n" (ERROR) "property (nonatomic) NVGridSpec spec;\n\n@end\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) NVGridSpec spec;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "VGridSpec " (identifier) "pec;" (;) "\n" (ERROR) "e" (identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
44
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.33, "nodes": 27, "errors": 0, "source_hash": "4931e0f7109b38b931c4d8dc2c2815835218494f0423c644e6106c4369075b7e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Cocoa/Cocoa.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "Cocoa/Cocoa.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "preproc_call", "text": "import \"NVToggleBox.h\"\n#", "parent": null, "children": [3], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "NVToggleBox.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 4, "type": "preproc_call", "text": "import \"NVGridSource.h\"\n\n", "parent": null, "children": [5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 5, "type": "preproc_arg", "text": "NVGridSource.h\"\n", "parent": 4, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 24}}, {"id": 6, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [7, 8, 10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 10}}, {"id": 7, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 23}}, {"id": 8, "type": "ERROR", "text": "i", "parent": 6, "children": [9], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 9, "type": "ERROR", "text": "i", "parent": 8, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "identifier", "text": "nterface ", "parent": 6, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 11, "type": "labeled_statement", "text": "VGridSemanticItemView : NVToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 20, "column": 21}}, {"id": 12, "type": "statement_identifier", "text": "VGridSemanticItemView ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 33}}, {"id": 13, "type": "declaration", "text": "VToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": 11, "children": [14, 15, 26], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 20, "column": 21}}, {"id": 14, "type": "type_identifier", "text": "VToggleBox\n", "parent": 13, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 47}}, {"id": 15, "type": "ERROR", "text": "property (nonatomic) NVGridSpec spec;\n\n@end\n", "parent": 13, "children": [16, 17, 24, 25], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 16, "type": "ERROR", "text": "p", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 17, "type": "function_declarator", "text": "roperty (nonatomic) NVGridSpec spec;", "parent": 15, "children": [18, 19, 22, 23], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 37}}, {"id": 18, "type": "identifier", "text": "roperty ", "parent": 17, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 19, "type": "parameter_list", "text": "nonatomic) ", "parent": 17, "children": [20], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 21}}, {"id": 20, "type": "parameter_declaration", "text": "onatomic)", "parent": 19, "children": [21], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 21, "type": "type_identifier", "text": "onatomic)", "parent": 20, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 22, "type": "identifier", "text": "VGridSpec ", "parent": 17, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 32}}, {"id": 23, "type": "identifier", "text": "pec;", "parent": 17, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 37}}, {"id": 24, "type": "ERROR", "text": "e", "parent": 15, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 25, "type": "identifier", "text": "nd\n", "parent": 15, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}, {"id": 26, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 13, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 21}}]}, "node_categories": {"declarations": {"functions": [17], "variables": [6, 13, 20], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [7, 10, 12, 14, 18, 21, 22, 23, 25, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2, 4], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic) NVGridSpec spec;"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// NVGridSemanticItemView.h\n// Navi\n//\n// Created by QIANSC on 2020/11/6.\n// Copyright \u00a9 2020 Qian,Sicheng. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import \"NVToggleBox.h\"\n#import \"NVGridSource.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NVGridSemanticItemView : NVToggleBox\n\n@property (nonatomic) NVGridSpec spec;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
81,032
c
// // Toast-Swift-Framework.h // Toast-Swift-Framework // // Created by <NAME> on 14/04/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Toast-Swift-Framework. FOUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber; //! Project version string for Toast-Swift-Framework. FOUNDATION_EXPORT const unsigned char Toast_Swift_FrameworkVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <Toast_Swift_Framework/PublicHeader.h>
42.38
13
(translation_unit) "//\n// Toast-Swift-Framework.h\n// Toast-Swift-Framework\n//\n// Created by <NAME> on 14/04/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for Toast-Swift-Framework.\nFOUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber;\n\n//! Project version string for Toast-Swift-Framework.\nFOUNDATION_EXPORT const unsigned char Toast_Swift_FrameworkVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <Toast_Swift_Framework/PublicHeader.h>\n\n\n" (comment) "//" (comment) "// Toast-Swift-Framework.h" (comment) "// Toast-Swift-Framework" (comment) "//" (comment) "// Created by <NAME> on 14/04/16." (comment) "// Copyright © 2016 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (comment) "/! Project version number for Toast-Swift-Framework.\n" (declaration) "OUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber;\n" (type_identifier) "OUNDATION_EXPORT " (ERROR) "ouble " (identifier) "ouble " (identifier) "oast_Swift_FrameworkVersionNumber;" (;) "\n" (comment) "/! Project version string for Toast-Swift-Framework.\n" (declaration) "OUNDATION_EXPORT const unsigned " (type_identifier) "OUNDATION_EXPORT " (type_qualifier) "onst " (const) "onst " (identifier) "nsigned " (;) "" (declaration) "har Toast_Swift_FrameworkVersionString[];\n" (primitive_type) "har " (array_declarator) "oast_Swift_FrameworkVersionString[];" (identifier) "oast_Swift_FrameworkVersionString[" ([) "]" (]) ";" (;) "\n" (comment) "/ In this header, you should import all the public headers of your framework using statements like #import <Toast_Swift_Framework/PublicHeader.h>\n"
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 42.38, "nodes": 15, "errors": 0, "source_hash": "b2d2938fb4ddbd7544c90ca5cca2f549c7a81685975356d6792014154d2185ee", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "declaration", "text": "OUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 60}}, {"id": 3, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 2, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 4, "type": "ERROR", "text": "ouble ", "parent": 2, "children": [5], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 5, "type": "identifier", "text": "ouble ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "oast_Swift_FrameworkVersionNumber;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 59}}, {"id": 7, "type": "declaration", "text": "OUNDATION_EXPORT const unsigned ", "parent": null, "children": [8, 9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 8, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "type_qualifier", "text": "onst ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 10, "type": "identifier", "text": "nsigned ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "har Toast_Swift_FrameworkVersionString[];\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 75}}, {"id": 12, "type": "primitive_type", "text": "har ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "oast_Swift_FrameworkVersionString[];", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 74}}, {"id": 14, "type": "identifier", "text": "oast_Swift_FrameworkVersionString[", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 72}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 7, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Toast-Swift-Framework.h\n// Toast-Swift-Framework\n//\n// Created by <NAME> on 14/04/16.\n// Copyright \u00a9 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for Toast-Swift-Framework.\nFOUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber;\n\n//! Project version string for Toast-Swift-Framework.\nFOUNDATION_EXPORT const unsigned char Toast_Swift_FrameworkVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <Toast_Swift_Framework/PublicHeader.h>\n\n\n"}
81,033
c
#pragma once #include "Application/Config/Config.h" #include "Utility/ResourceManager/ResourceManager.h" class RealtimeEditingWindow { private: //Variables ImVec2 pos; ImVec2 size; Config* config = nullptr; Utility::ResourceManager* resourceManager = nullptr; DWORD ets2ProcessID = 0; uintptr_t ets2ModuleBaseAddress = 0; HANDLE ets2Process = 0; ImU64 playerMoney = 0; uintptr_t playerMoneyAdress = 0; std::string supportedETSVersion = "1.37.x"; //Functions void Init(); void InitValues(); public: //Constructors/Destructors RealtimeEditingWindow(); virtual ~RealtimeEditingWindow(); //Functions void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size); };
25.7
27
(translation_unit) "#pragma once\n\n#include "Application/Config/Config.h"\n#include "Utility/ResourceManager/ResourceManager.h"\n\nclass RealtimeEditingWindow\n{\nprivate:\n //Variables\n ImVec2 pos;\n ImVec2 size;\n\n Config* config = nullptr;\n Utility::ResourceManager* resourceManager = nullptr;\n\n DWORD ets2ProcessID = 0;\n uintptr_t ets2ModuleBaseAddress = 0;\n HANDLE ets2Process = 0;\n\n ImU64 playerMoney = 0;\n uintptr_t playerMoneyAdress = 0;\n\n std::string supportedETSVersion = "1.37.x";\n\n //Functions\n void Init();\n void InitValues();\n\npublic:\n //Constructors/Destructors\n RealtimeEditingWindow();\n virtual ~RealtimeEditingWindow();\n\n //Functions\n void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Application/Config/Config.h"\n" (#include) "#include" (string_literal) ""Application/Config/Config.h"" (") """ (string_content) "Application/Config/Config.h" (") """ (preproc_include) "#include "Utility/ResourceManager/ResourceManager.h"\n" (#include) "#include" (string_literal) ""Utility/ResourceManager/ResourceManager.h"" (") """ (string_content) "Utility/ResourceManager/ResourceManager.h" (") """ (function_definition) "class RealtimeEditingWindow\n{\nprivate:\n //Variables\n ImVec2 pos;\n ImVec2 size;\n\n Config* config = nullptr;\n Utility::ResourceManager* resourceManager = nullptr;\n\n DWORD ets2ProcessID = 0;\n uintptr_t ets2ModuleBaseAddress = 0;\n HANDLE ets2Process = 0;\n\n ImU64 playerMoney = 0;\n uintptr_t playerMoneyAdress = 0;\n\n std::string supportedETSVersion = "1.37.x";\n\n //Functions\n void Init();\n void InitValues();\n\npublic:\n //Constructors/Destructors\n RealtimeEditingWindow();\n virtual ~RealtimeEditingWindow();\n\n //Functions\n void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);\n}" (type_identifier) "class" (identifier) "RealtimeEditingWindow" (compound_statement) "{\nprivate:\n //Variables\n ImVec2 pos;\n ImVec2 size;\n\n Config* config = nullptr;\n Utility::ResourceManager* resourceManager = nullptr;\n\n DWORD ets2ProcessID = 0;\n uintptr_t ets2ModuleBaseAddress = 0;\n HANDLE ets2Process = 0;\n\n ImU64 playerMoney = 0;\n uintptr_t playerMoneyAdress = 0;\n\n std::string supportedETSVersion = "1.37.x";\n\n //Functions\n void Init();\n void InitValues();\n\npublic:\n //Constructors/Destructors\n RealtimeEditingWindow();\n virtual ~RealtimeEditingWindow();\n\n //Functions\n void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);\n}" ({) "{" (labeled_statement) "private:\n //Variables\n ImVec2 pos;" (statement_identifier) "private" (:) ":" (comment) "//Variables" (declaration) "ImVec2 pos;" (type_identifier) "ImVec2" (identifier) "pos" (;) ";" (declaration) "ImVec2 size;" (type_identifier) "ImVec2" (identifier) "size" (;) ";" (declaration) "Config* config = nullptr;" (type_identifier) "Config" (init_declarator) "* config = nullptr" (pointer_declarator) "* config" (*) "*" (identifier) "config" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (labeled_statement) "Utility::ResourceManager* resourceManager = nullptr;" (statement_identifier) "Utility" (:) ":" (ERROR) ":" (:) ":" (declaration) "ResourceManager* resourceManager = nullptr;" (type_identifier) "ResourceManager" (init_declarator) "* resourceManager = nullptr" (pointer_declarator) "* resourceManager" (*) "*" (identifier) "resourceManager" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "DWORD ets2ProcessID = 0;" (type_identifier) "DWORD" (init_declarator) "ets2ProcessID = 0" (identifier) "ets2ProcessID" (=) "=" (number_literal) "0" (;) ";" (declaration) "uintptr_t ets2ModuleBaseAddress = 0;" (primitive_type) "uintptr_t" (init_declarator) "ets2ModuleBaseAddress = 0" (identifier) "ets2ModuleBaseAddress" (=) "=" (number_literal) "0" (;) ";" (declaration) "HANDLE ets2Process = 0;" (type_identifier) "HANDLE" (init_declarator) "ets2Process = 0" (identifier) "ets2Process" (=) "=" (number_literal) "0" (;) ";" (declaration) "ImU64 playerMoney = 0;" (type_identifier) "ImU64" (init_declarator) "playerMoney = 0" (identifier) "playerMoney" (=) "=" (number_literal) "0" (;) ";" (declaration) "uintptr_t playerMoneyAdress = 0;" (primitive_type) "uintptr_t" (init_declarator) "playerMoneyAdress = 0" (identifier) "playerMoneyAdress" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "std::string supportedETSVersion = "1.37.x";" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string supportedETSVersion = "1.37.x";" (type_identifier) "string" (init_declarator) "supportedETSVersion = "1.37.x"" (identifier) "supportedETSVersion" (=) "=" (string_literal) ""1.37.x"" (") """ (string_content) "1.37.x" (") """ (;) ";" (comment) "//Functions" (declaration) "void Init();" (primitive_type) "void" (function_declarator) "Init()" (identifier) "Init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void InitValues();" (primitive_type) "void" (function_declarator) "InitValues()" (identifier) "InitValues" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n //Constructors/Destructors\n RealtimeEditingWindow();" (statement_identifier) "public" (:) ":" (comment) "//Constructors/Destructors" (expression_statement) "RealtimeEditingWindow();" (call_expression) "RealtimeEditingWindow()" (identifier) "RealtimeEditingWindow" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~RealtimeEditingWindow();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "RealtimeEditingWindow()" (identifier) "RealtimeEditingWindow" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "//Functions" (declaration) "void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);" (primitive_type) "void" (function_declarator) "Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size)" (identifier) "Update" (parameter_list) "(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size)" (() "(" (parameter_declaration) "Config* config" (type_identifier) "Config" (pointer_declarator) "* config" (*) "*" (identifier) "config" (,) "," (parameter_declaration) "Utility::ResourceManager* resourceManager" (type_identifier) "Utility" (ERROR) "::ResourceManager" (:) ":" (:) ":" (identifier) "ResourceManager" (pointer_declarator) "* resourceManager" (*) "*" (identifier) "resourceManager" (,) "," (parameter_declaration) "ImVec2 pos" (type_identifier) "ImVec2" (identifier) "pos" (,) "," (parameter_declaration) "ImVec2 size" (type_identifier) "ImVec2" (identifier) "size" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
181
4
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.7, "nodes": 120, "errors": 0, "source_hash": "8435cc8a941958b2bd343802f06a51a9a40383cf6ce1122eaa72f702f9dbdb3b", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"Application/Config/Config.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"Application/Config/Config.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 38}}, {"id": 6, "type": "preproc_include", "text": "#include \"Utility/ResourceManager/ResourceManager.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Utility/ResourceManager/ResourceManager.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 52}}, {"id": 9, "type": "function_definition", "text": "class RealtimeEditingWindow\n{\nprivate:\n\t//Variables\n\tImVec2 pos;\n\tImVec2 size;\n\n\tConfig* config = nullptr;\n\tUtility::ResourceManager* resourceManager = nullptr;\n\n\tDWORD\t ets2ProcessID = 0;\n\tuintptr_t ets2ModuleBaseAddress = 0;\n\tHANDLE\t ets2Process = 0;\n\n\tImU64\t playerMoney = 0;\n\tuintptr_t playerMoneyAdress = 0;\n\n\tstd::string supportedETSVersion = \"1.37.x\";\n\n\t//Functions\n\tvoid Init();\n\tvoid InitValues();\n\npublic:\n\t//Constructors/Destructors\n\tRealtimeEditingWindow();\n\tvirtual ~RealtimeEditingWindow();\n\n\t//Functions\n\tvoid Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);\n}", "parent": null, "children": [10], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 10, "type": "identifier", "text": "RealtimeEditingWindow", "parent": 9, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 27}}, {"id": 11, "type": "labeled_statement", "text": "private:\n\t//Variables\n\tImVec2 pos;", "parent": 9, "children": [12], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 12}}, {"id": 12, "type": "declaration", "text": "ImVec2 pos;", "parent": 11, "children": [13, 14], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 12}}, {"id": 13, "type": "type_identifier", "text": "ImVec2", "parent": 12, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 7}}, {"id": 14, "type": "identifier", "text": "pos", "parent": 12, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 11}}, {"id": 15, "type": "declaration", "text": "ImVec2 size;", "parent": 9, "children": [16, 17], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 13}}, {"id": 16, "type": "type_identifier", "text": "ImVec2", "parent": 15, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 7}}, {"id": 17, "type": "identifier", "text": "size", "parent": 15, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 12}}, {"id": 18, "type": "declaration", "text": "Config* config = nullptr;", "parent": 9, "children": [19, 20], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 26}}, {"id": 19, "type": "type_identifier", "text": "Config", "parent": 18, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 7}}, {"id": 20, "type": "init_declarator", "text": "* config = nullptr", "parent": 18, "children": [21, 24, 25], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 25}}, {"id": 21, "type": "pointer_declarator", "text": "* config", "parent": 20, "children": [22, 23], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 15}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 23, "type": "identifier", "text": "config", "parent": 21, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 15}}, {"id": 24, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 25, "type": "null", "text": "nullptr", "parent": 20, "children": [26], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 25}}, {"id": 26, "type": "nullptr", "text": "nullptr", "parent": 25, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 25}}, {"id": 27, "type": "labeled_statement", "text": "Utility::ResourceManager* resourceManager = nullptr;", "parent": 9, "children": [28, 29], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 53}}, {"id": 28, "type": "statement_identifier", "text": "Utility", "parent": 27, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 8}}, {"id": 29, "type": "declaration", "text": "ResourceManager* resourceManager = nullptr;", "parent": 27, "children": [30, 31], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 53}}, {"id": 30, "type": "type_identifier", "text": "ResourceManager", "parent": 29, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 25}}, {"id": 31, "type": "init_declarator", "text": "* resourceManager = nullptr", "parent": 29, "children": [32, 35, 36], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 52}}, {"id": 32, "type": "pointer_declarator", "text": "* resourceManager", "parent": 31, "children": [33, 34], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 42}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 26}}, {"id": 34, "type": "identifier", "text": "resourceManager", "parent": 32, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 42}}, {"id": 35, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 44}}, {"id": 36, "type": "null", "text": "nullptr", "parent": 31, "children": [37], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 52}}, {"id": 37, "type": "nullptr", "text": "nullptr", "parent": 36, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 52}}, {"id": 38, "type": "declaration", "text": "DWORD\t ets2ProcessID = 0;", "parent": 9, "children": [39, 40], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 39, "type": "type_identifier", "text": "DWORD", "parent": 38, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 6}}, {"id": 40, "type": "init_declarator", "text": "ets2ProcessID = 0", "parent": 38, "children": [41, 42, 43], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 26}}, {"id": 41, "type": "identifier", "text": "ets2ProcessID", "parent": 40, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 22}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 40, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 44, "type": "declaration", "text": "uintptr_t ets2ModuleBaseAddress = 0;", "parent": 9, "children": [45, 46], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 37}}, {"id": 45, "type": "primitive_type", "text": "uintptr_t", "parent": 44, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 46, "type": "init_declarator", "text": "ets2ModuleBaseAddress = 0", "parent": 44, "children": [47, 48, 49], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 36}}, {"id": 47, "type": "identifier", "text": "ets2ModuleBaseAddress", "parent": 46, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 32}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 34}}, {"id": 49, "type": "number_literal", "text": "0", "parent": 46, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 36}}, {"id": 50, "type": "declaration", "text": "HANDLE\t ets2Process = 0;", "parent": 9, "children": [51, 52], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 26}}, {"id": 51, "type": "type_identifier", "text": "HANDLE", "parent": 50, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 7}}, {"id": 52, "type": "init_declarator", "text": "ets2Process = 0", "parent": 50, "children": [53, 54, 55], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 25}}, {"id": 53, "type": "identifier", "text": "ets2Process", "parent": 52, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 21}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 55, "type": "number_literal", "text": "0", "parent": 52, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 56, "type": "declaration", "text": "ImU64\t playerMoney = 0;", "parent": 9, "children": [57, 58], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 25}}, {"id": 57, "type": "type_identifier", "text": "ImU64", "parent": 56, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 58, "type": "init_declarator", "text": "playerMoney = 0", "parent": 56, "children": [59, 60, 61], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 24}}, {"id": 59, "type": "identifier", "text": "playerMoney", "parent": 58, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 20}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 58, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 62, "type": "declaration", "text": "uintptr_t playerMoneyAdress = 0;", "parent": 9, "children": [63, 64], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 33}}, {"id": 63, "type": "primitive_type", "text": "uintptr_t", "parent": 62, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 64, "type": "init_declarator", "text": "playerMoneyAdress = 0", "parent": 62, "children": [65, 66, 67], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 32}}, {"id": 65, "type": "identifier", "text": "playerMoneyAdress", "parent": 64, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 28}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 30}}, {"id": 67, "type": "number_literal", "text": "0", "parent": 64, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 32}}, {"id": 68, "type": "labeled_statement", "text": "std::string supportedETSVersion = \"1.37.x\";", "parent": 9, "children": [69, 70], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 44}}, {"id": 69, "type": "statement_identifier", "text": "std", "parent": 68, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 4}}, {"id": 70, "type": "declaration", "text": "string supportedETSVersion = \"1.37.x\";", "parent": 68, "children": [71, 72], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 44}}, {"id": 71, "type": "type_identifier", "text": "string", "parent": 70, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 12}}, {"id": 72, "type": "init_declarator", "text": "supportedETSVersion = \"1.37.x\"", "parent": 70, "children": [73, 74, 75], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 43}}, {"id": 73, "type": "identifier", "text": "supportedETSVersion", "parent": 72, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 32}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 34}}, {"id": 75, "type": "string_literal", "text": "\"1.37.x\"", "parent": 72, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 43}}, {"id": 76, "type": "declaration", "text": "void Init();", "parent": 9, "children": [77, 78], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 13}}, {"id": 77, "type": "primitive_type", "text": "void", "parent": 76, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 78, "type": "function_declarator", "text": "Init()", "parent": 76, "children": [79, 80], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 79, "type": "identifier", "text": "Init", "parent": 78, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 80, "type": "parameter_list", "text": "()", "parent": 78, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 12}}, {"id": 81, "type": "declaration", "text": "void InitValues();", "parent": 9, "children": [82, 83], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 19}}, {"id": 82, "type": "primitive_type", "text": "void", "parent": 81, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 5}}, {"id": 83, "type": "function_declarator", "text": "InitValues()", "parent": 81, "children": [84, 85], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 18}}, {"id": 84, "type": "identifier", "text": "InitValues", "parent": 83, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 16}}, {"id": 85, "type": "parameter_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 18}}, {"id": 86, "type": "labeled_statement", "text": "public:\n\t//Constructors/Destructors\n\tRealtimeEditingWindow();", "parent": 9, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 25}}, {"id": 87, "type": "call_expression", "text": "RealtimeEditingWindow()", "parent": 86, "children": [88, 89], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 24}}, {"id": 88, "type": "identifier", "text": "RealtimeEditingWindow", "parent": 87, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 22}}, {"id": 89, "type": "argument_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 24}}, {"id": 90, "type": "declaration", "text": "virtual ~RealtimeEditingWindow();", "parent": 9, "children": [91, 92, 94], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 34}}, {"id": 91, "type": "type_identifier", "text": "virtual", "parent": 90, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 8}}, {"id": 92, "type": "ERROR", "text": "~", "parent": 90, "children": [93], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 93, "type": "~", "text": "~", "parent": 92, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 94, "type": "function_declarator", "text": "RealtimeEditingWindow()", "parent": 90, "children": [95, 96], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 33}}, {"id": 95, "type": "identifier", "text": "RealtimeEditingWindow", "parent": 94, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 31}}, {"id": 96, "type": "parameter_list", "text": "()", "parent": 94, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 33}}, {"id": 97, "type": "declaration", "text": "void Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);", "parent": 9, "children": [98, 99], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 97}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 99, "type": "function_declarator", "text": "Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size)", "parent": 97, "children": [100, 101], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 96}}, {"id": 100, "type": "identifier", "text": "Update", "parent": 99, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 12}}, {"id": 101, "type": "parameter_list", "text": "(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size)", "parent": 99, "children": [102, 107, 114, 117], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 96}}, {"id": 102, "type": "parameter_declaration", "text": "Config* config", "parent": 101, "children": [103, 104], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 27}}, {"id": 103, "type": "type_identifier", "text": "Config", "parent": 102, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 19}}, {"id": 104, "type": "pointer_declarator", "text": "* config", "parent": 102, "children": [105, 106], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 27}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 106, "type": "identifier", "text": "config", "parent": 104, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 27}}, {"id": 107, "type": "parameter_declaration", "text": "Utility::ResourceManager* resourceManager", "parent": 101, "children": [108, 109, 111], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 70}}, {"id": 108, "type": "type_identifier", "text": "Utility", "parent": 107, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 36}}, {"id": 109, "type": "ERROR", "text": "::ResourceManager", "parent": 107, "children": [110], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 53}}, {"id": 110, "type": "identifier", "text": "ResourceManager", "parent": 109, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 53}}, {"id": 111, "type": "pointer_declarator", "text": "* resourceManager", "parent": 107, "children": [112, 113], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 70}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 54}}, {"id": 113, "type": "identifier", "text": "resourceManager", "parent": 111, "children": [], "start_point": {"row": 34, "column": 55}, "end_point": {"row": 34, "column": 70}}, {"id": 114, "type": "parameter_declaration", "text": "ImVec2 pos", "parent": 101, "children": [115, 116], "start_point": {"row": 34, "column": 72}, "end_point": {"row": 34, "column": 82}}, {"id": 115, "type": "type_identifier", "text": "ImVec2", "parent": 114, "children": [], "start_point": {"row": 34, "column": 72}, "end_point": {"row": 34, "column": 78}}, {"id": 116, "type": "identifier", "text": "pos", "parent": 114, "children": [], "start_point": {"row": 34, "column": 79}, "end_point": {"row": 34, "column": 82}}, {"id": 117, "type": "parameter_declaration", "text": "ImVec2 size", "parent": 101, "children": [118, 119], "start_point": {"row": 34, "column": 84}, "end_point": {"row": 34, "column": 95}}, {"id": 118, "type": "type_identifier", "text": "ImVec2", "parent": 117, "children": [], "start_point": {"row": 34, "column": 84}, "end_point": {"row": 34, "column": 90}}, {"id": 119, "type": "identifier", "text": "size", "parent": 117, "children": [], "start_point": {"row": 34, "column": 91}, "end_point": {"row": 34, "column": 95}}]}, "node_categories": {"declarations": {"functions": [9, 78, 83, 94, 99], "variables": [12, 15, 18, 29, 38, 44, 50, 56, 62, 70, 76, 81, 90, 97, 102, 107, 114, 117], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [87], "assignments": [], "loops": [], "conditionals": [10, 13, 14, 16, 17, 19, 23, 28, 30, 34, 39, 41, 47, 51, 53, 57, 59, 65, 69, 71, 73, 79, 84, 88, 91, 95, 100, 103, 106, 108, 110, 113, 115, 116, 118, 119], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 43, 49, 55, 61, 67, 75], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "RealtimeEditingWindow", "text_snippet": "class RealtimeEditingWindow\n{\nprivate:\n\t//Variables\n\tImVec2 pos;\n\tImVec2 size;\n\n\tConfig* config = nu"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "Init()"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "InitValues()"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "RealtimeEditingWindow()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"Application/Config/Config.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Utility/ResourceManager/ResourceManager.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"Application/Config/Config.h\"\n#include \"Utility/ResourceManager/ResourceManager.h\"\n\nclass RealtimeEditingWindow\n{\nprivate:\n\t//Variables\n\tImVec2 pos;\n\tImVec2 size;\n\n\tConfig* config = nullptr;\n\tUtility::ResourceManager* resourceManager = nullptr;\n\n\tDWORD\t ets2ProcessID = 0;\n\tuintptr_t ets2ModuleBaseAddress = 0;\n\tHANDLE\t ets2Process = 0;\n\n\tImU64\t playerMoney = 0;\n\tuintptr_t playerMoneyAdress = 0;\n\n\tstd::string supportedETSVersion = \"1.37.x\";\n\n\t//Functions\n\tvoid Init();\n\tvoid InitValues();\n\npublic:\n\t//Constructors/Destructors\n\tRealtimeEditingWindow();\n\tvirtual ~RealtimeEditingWindow();\n\n\t//Functions\n\tvoid Update(Config* config, Utility::ResourceManager* resourceManager, ImVec2 pos, ImVec2 size);\n};"}
81,034
c
#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 // create a linked list struct node { int data; struct node *next; }; typedef struct node node; node *top; // initialize stack void initialize() { top = NULL; } // Push onto the stack void push(int value) { node *tmp; tmp = malloc(sizeof(node)); tmp -> data = value; tmp -> next = top; top = tmp; } // Delete the topmost node int pop() { node *tmp; int n; tmp = top; n = tmp->data; top = top->next; free(tmp); return n; } // return data at the top of the stack int Top() { return top->data; } // Check if the stack is empty int isempty() { return top==NULL; } void display(node *head) { if(head == NULL) { printf("NULL\n"); } else { printf("%d\n", head -> data); display(head->next); } } // Test int main() { initialize(); push(10); push(20); push(30); printf("The top is %d\n",Top()); pop(); printf("The top after pop is %d\n",Top()); display(top); return 0; }
14.06
72
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#define TRUE 1\n#define FALSE 0\n\n// create a linked list\nstruct node\n{\n int data;\n struct node *next;\n};\ntypedef struct node node;\n\nnode *top;\n\n// initialize stack\nvoid initialize()\n{\n top = NULL;\n}\n\n// Push onto the stack\nvoid push(int value)\n{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n tmp -> next = top;\n top = tmp;\n}\n\n// Delete the topmost node\nint pop()\n{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n free(tmp);\n return n;\n}\n\n// return data at the top of the stack\nint Top()\n{\n return top->data;\n}\n\n// Check if the stack is empty\nint isempty()\n{\n return top==NULL;\n}\n\nvoid display(node *head)\n{\n if(head == NULL)\n {\n printf("NULL\n");\n }\n else\n {\n printf("%d\n", head -> data);\n display(head->next);\n }\n}\n\n// Test\nint main()\n{\n initialize();\n push(10);\n push(20);\n push(30);\n printf("The top is %d\n",Top());\n pop();\n printf("The top after pop is %d\n",Top());\n display(top);\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_def) "#define TRUE 1\n" (#define) "#define" (identifier) "TRUE" (preproc_arg) "1" (preproc_def) "#define FALSE 0\n" (#define) "#define" (identifier) "FALSE" (preproc_arg) "0" (comment) "// create a linked list" (struct_specifier) "struct node\n{\n int data;\n struct node *next;\n}" (struct) "struct" (type_identifier) "node" (field_declaration_list) "{\n int data;\n struct node *next;\n}" ({) "{" (field_declaration) "int data;" (primitive_type) "int" (field_identifier) "data" (;) ";" (field_declaration) "struct node *next;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (type_definition) "typedef struct node node;" (typedef) "typedef" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (type_identifier) "node" (;) ";" (declaration) "node *top;" (type_identifier) "node" (pointer_declarator) "*top" (*) "*" (identifier) "top" (;) ";" (comment) "// initialize stack" (function_definition) "void initialize()\n{\n top = NULL;\n}" (primitive_type) "void" (function_declarator) "initialize()" (identifier) "initialize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n top = NULL;\n}" ({) "{" (expression_statement) "top = NULL;" (assignment_expression) "top = NULL" (identifier) "top" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (comment) "// Push onto the stack" (function_definition) "void push(int value)\n{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n tmp -> next = top;\n top = tmp;\n}" (primitive_type) "void" (function_declarator) "push(int value)" (identifier) "push" (parameter_list) "(int value)" (() "(" (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" ()) ")" (compound_statement) "{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n tmp -> next = top;\n top = tmp;\n}" ({) "{" (declaration) "node *tmp;" (type_identifier) "node" (pointer_declarator) "*tmp" (*) "*" (identifier) "tmp" (;) ";" (expression_statement) "tmp = malloc(sizeof(node));" (assignment_expression) "tmp = malloc(sizeof(node))" (identifier) "tmp" (=) "=" (call_expression) "malloc(sizeof(node))" (identifier) "malloc" (argument_list) "(sizeof(node))" (() "(" (sizeof_expression) "sizeof(node)" (sizeof) "sizeof" (parenthesized_expression) "(node)" (() "(" (identifier) "node" ()) ")" ()) ")" (;) ";" (expression_statement) "tmp -> data = value;" (assignment_expression) "tmp -> data = value" (field_expression) "tmp -> data" (identifier) "tmp" (->) "->" (field_identifier) "data" (=) "=" (identifier) "value" (;) ";" (expression_statement) "tmp -> next = top;" (assignment_expression) "tmp -> next = top" (field_expression) "tmp -> next" (identifier) "tmp" (->) "->" (field_identifier) "next" (=) "=" (identifier) "top" (;) ";" (expression_statement) "top = tmp;" (assignment_expression) "top = tmp" (identifier) "top" (=) "=" (identifier) "tmp" (;) ";" (}) "}" (comment) "// Delete the topmost node" (function_definition) "int pop()\n{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n free(tmp);\n return n;\n}" (primitive_type) "int" (function_declarator) "pop()" (identifier) "pop" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n free(tmp);\n return n;\n}" ({) "{" (declaration) "node *tmp;" (type_identifier) "node" (pointer_declarator) "*tmp" (*) "*" (identifier) "tmp" (;) ";" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (expression_statement) "tmp = top;" (assignment_expression) "tmp = top" (identifier) "tmp" (=) "=" (identifier) "top" (;) ";" (expression_statement) "n = tmp->data;" (assignment_expression) "n = tmp->data" (identifier) "n" (=) "=" (field_expression) "tmp->data" (identifier) "tmp" (->) "->" (field_identifier) "data" (;) ";" (expression_statement) "top = top->next;" (assignment_expression) "top = top->next" (identifier) "top" (=) "=" (field_expression) "top->next" (identifier) "top" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "free(tmp);" (call_expression) "free(tmp)" (identifier) "free" (argument_list) "(tmp)" (() "(" (identifier) "tmp" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (comment) "// return data at the top of the stack" (function_definition) "int Top()\n{\n return top->data;\n}" (primitive_type) "int" (function_declarator) "Top()" (identifier) "Top" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return top->data;\n}" ({) "{" (return_statement) "return top->data;" (return) "return" (field_expression) "top->data" (identifier) "top" (->) "->" (field_identifier) "data" (;) ";" (}) "}" (comment) "// Check if the stack is empty" (function_definition) "int isempty()\n{\n return top==NULL;\n}" (primitive_type) "int" (function_declarator) "isempty()" (identifier) "isempty" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return top==NULL;\n}" ({) "{" (return_statement) "return top==NULL;" (return) "return" (binary_expression) "top==NULL" (identifier) "top" (==) "==" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "void display(node *head)\n{\n if(head == NULL)\n {\n printf("NULL\n");\n }\n else\n {\n printf("%d\n", head -> data);\n display(head->next);\n }\n}" (primitive_type) "void" (function_declarator) "display(node *head)" (identifier) "display" (parameter_list) "(node *head)" (() "(" (parameter_declaration) "node *head" (type_identifier) "node" (pointer_declarator) "*head" (*) "*" (identifier) "head" ()) ")" (compound_statement) "{\n if(head == NULL)\n {\n printf("NULL\n");\n }\n else\n {\n printf("%d\n", head -> data);\n display(head->next);\n }\n}" ({) "{" (if_statement) "if(head == NULL)\n {\n printf("NULL\n");\n }\n else\n {\n printf("%d\n", head -> data);\n display(head->next);\n }" (if) "if" (parenthesized_expression) "(head == NULL)" (() "(" (binary_expression) "head == NULL" (identifier) "head" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("NULL\n");\n }" ({) "{" (expression_statement) "printf("NULL\n");" (call_expression) "printf("NULL\n")" (identifier) "printf" (argument_list) "("NULL\n")" (() "(" (string_literal) ""NULL\n"" (") """ (string_content) "NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n printf("%d\n", head -> data);\n display(head->next);\n }" (else) "else" (compound_statement) "{\n printf("%d\n", head -> data);\n display(head->next);\n }" ({) "{" (expression_statement) "printf("%d\n", head -> data);" (call_expression) "printf("%d\n", head -> data)" (identifier) "printf" (argument_list) "("%d\n", head -> data)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "head -> data" (identifier) "head" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (expression_statement) "display(head->next);" (call_expression) "display(head->next)" (identifier) "display" (argument_list) "(head->next)" (() "(" (field_expression) "head->next" (identifier) "head" (->) "->" (field_identifier) "next" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// Test" (function_definition) "int main()\n{\n initialize();\n push(10);\n push(20);\n push(30);\n printf("The top is %d\n",Top());\n pop();\n printf("The top after pop is %d\n",Top());\n display(top);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n initialize();\n push(10);\n push(20);\n push(30);\n printf("The top is %d\n",Top());\n pop();\n printf("The top after pop is %d\n",Top());\n display(top);\n return 0;\n}" ({) "{" (expression_statement) "initialize();" (call_expression) "initialize()" (identifier) "initialize" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "push(10);" (call_expression) "push(10)" (identifier) "push" (argument_list) "(10)" (() "(" (number_literal) "10" ()) ")" (;) ";" (expression_statement) "push(20);" (call_expression) "push(20)" (identifier) "push" (argument_list) "(20)" (() "(" (number_literal) "20" ()) ")" (;) ";" (expression_statement) "push(30);" (call_expression) "push(30)" (identifier) "push" (argument_list) "(30)" (() "(" (number_literal) "30" ()) ")" (;) ";" (expression_statement) "printf("The top is %d\n",Top());" (call_expression) "printf("The top is %d\n",Top())" (identifier) "printf" (argument_list) "("The top is %d\n",Top())" (() "(" (string_literal) ""The top is %d\n"" (") """ (string_content) "The top is %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "Top()" (identifier) "Top" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "pop();" (call_expression) "pop()" (identifier) "pop" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("The top after pop is %d\n",Top());" (call_expression) "printf("The top after pop is %d\n",Top())" (identifier) "printf" (argument_list) "("The top after pop is %d\n",Top())" (() "(" (string_literal) ""The top after pop is %d\n"" (") """ (string_content) "The top after pop is %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "Top()" (identifier) "Top" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "display(top);" (call_expression) "display(top)" (identifier) "display" (argument_list) "(top)" (() "(" (identifier) "top" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
390
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 14.06, "nodes": 223, "errors": 0, "source_hash": "9b9c965bd8514791acbd2d492003fe301cc711d310888517253559946872882f", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_def", "text": "#define TRUE 1\n", "parent": null, "children": [7, 8, 9], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 8, "type": "identifier", "text": "TRUE", "parent": 6, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 9, "type": "preproc_arg", "text": "1", "parent": 6, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 14}}, {"id": 10, "type": "preproc_def", "text": "#define FALSE 0\n", "parent": null, "children": [11, 12, 13], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 12, "type": "identifier", "text": "FALSE", "parent": 10, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 13}}, {"id": 13, "type": "preproc_arg", "text": "0", "parent": 10, "children": [], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 15}}, {"id": 14, "type": "struct_specifier", "text": "struct node\n{\n int data;\n struct node *next;\n}", "parent": null, "children": [15, 16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 16, "type": "type_identifier", "text": "node", "parent": 14, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 17, "type": "field_declaration", "text": "int data;", "parent": 14, "children": [18, 19], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 13}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 19, "type": "field_identifier", "text": "data", "parent": 17, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 20, "type": "field_declaration", "text": "struct node *next;", "parent": 14, "children": [21, 24], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 22}}, {"id": 21, "type": "struct_specifier", "text": "struct node", "parent": 20, "children": [22, 23], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 15}}, {"id": 22, "type": "struct", "text": "struct", "parent": 21, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 10}}, {"id": 23, "type": "type_identifier", "text": "node", "parent": 21, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 15}}, {"id": 24, "type": "pointer_declarator", "text": "*next", "parent": 20, "children": [25, 26], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 21}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 26, "type": "field_identifier", "text": "next", "parent": 24, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 27, "type": "type_definition", "text": "typedef struct node node;", "parent": null, "children": [28, 29, 32], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 25}}, {"id": 28, "type": "typedef", "text": "typedef", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 29, "type": "struct_specifier", "text": "struct node", "parent": 27, "children": [30, 31], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 19}}, {"id": 30, "type": "struct", "text": "struct", "parent": 29, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 31, "type": "type_identifier", "text": "node", "parent": 29, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 19}}, {"id": 32, "type": "type_identifier", "text": "node", "parent": 27, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 33, "type": "declaration", "text": "node *top;", "parent": null, "children": [34, 35], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 10}}, {"id": 34, "type": "type_identifier", "text": "node", "parent": 33, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 35, "type": "pointer_declarator", "text": "*top", "parent": 33, "children": [36, 37], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 9}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 6}}, {"id": 37, "type": "identifier", "text": "top", "parent": 35, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 9}}, {"id": 38, "type": "function_definition", "text": "void initialize()\n{\n top = NULL;\n}", "parent": null, "children": [39, 40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 40, "type": "function_declarator", "text": "initialize()", "parent": 38, "children": [41, 42], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 17}}, {"id": 41, "type": "identifier", "text": "initialize", "parent": 40, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 15}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 17}}, {"id": 43, "type": "assignment_expression", "text": "top = NULL", "parent": 38, "children": [44, 45, 46], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 14}}, {"id": 44, "type": "identifier", "text": "top", "parent": 43, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 46, "type": "null", "text": "NULL", "parent": 43, "children": [47], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 47, "type": "NULL", "text": "NULL", "parent": 46, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 48, "type": "function_definition", "text": "void push(int value)\n{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n tmp -> next = top;\n top = tmp;\n}", "parent": null, "children": [49, 50], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 50, "type": "function_declarator", "text": "push(int value)", "parent": 48, "children": [51, 52], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 20}}, {"id": 51, "type": "identifier", "text": "push", "parent": 50, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 9}}, {"id": 52, "type": "parameter_list", "text": "(int value)", "parent": 50, "children": [53], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 20}}, {"id": 53, "type": "parameter_declaration", "text": "int value", "parent": 52, "children": [54, 55], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 19}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 13}}, {"id": 55, "type": "identifier", "text": "value", "parent": 53, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 19}}, {"id": 56, "type": "declaration", "text": "node *tmp;", "parent": 48, "children": [57, 58], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 14}}, {"id": 57, "type": "type_identifier", "text": "node", "parent": 56, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 58, "type": "pointer_declarator", "text": "*tmp", "parent": 56, "children": [59, 60], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 13}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 60, "type": "identifier", "text": "tmp", "parent": 58, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 61, "type": "assignment_expression", "text": "tmp = malloc(sizeof(node))", "parent": 48, "children": [62, 63, 64], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 30}}, {"id": 62, "type": "identifier", "text": "tmp", "parent": 61, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 9}}, {"id": 64, "type": "call_expression", "text": "malloc(sizeof(node))", "parent": 61, "children": [65, 66], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 30}}, {"id": 65, "type": "identifier", "text": "malloc", "parent": 64, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 16}}, {"id": 66, "type": "argument_list", "text": "(sizeof(node))", "parent": 64, "children": [67], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 30}}, {"id": 67, "type": "sizeof_expression", "text": "sizeof(node)", "parent": 66, "children": [68], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 29}}, {"id": 68, "type": "parenthesized_expression", "text": "(node)", "parent": 67, "children": [69], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 29}}, {"id": 69, "type": "identifier", "text": "node", "parent": 68, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 28}}, {"id": 70, "type": "assignment_expression", "text": "tmp -> data = value", "parent": 48, "children": [71, 74, 75], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 23}}, {"id": 71, "type": "field_expression", "text": "tmp -> data", "parent": 70, "children": [72, 73], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 72, "type": "identifier", "text": "tmp", "parent": 71, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 73, "type": "field_identifier", "text": "data", "parent": 71, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 74, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 75, "type": "identifier", "text": "value", "parent": 70, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 23}}, {"id": 76, "type": "assignment_expression", "text": "tmp -> next = top", "parent": 48, "children": [77, 80, 81], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 21}}, {"id": 77, "type": "field_expression", "text": "tmp -> next", "parent": 76, "children": [78, 79], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 15}}, {"id": 78, "type": "identifier", "text": "tmp", "parent": 77, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 79, "type": "field_identifier", "text": "next", "parent": 77, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 15}}, {"id": 80, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 17}}, {"id": 81, "type": "identifier", "text": "top", "parent": 76, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 21}}, {"id": 82, "type": "assignment_expression", "text": "top = tmp", "parent": 48, "children": [83, 84, 85], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 13}}, {"id": 83, "type": "identifier", "text": "top", "parent": 82, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 85, "type": "identifier", "text": "tmp", "parent": 82, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 13}}, {"id": 86, "type": "function_definition", "text": "int pop()\n{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n free(tmp);\n return n;\n}", "parent": null, "children": [87, 88], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 3}}, {"id": 88, "type": "function_declarator", "text": "pop()", "parent": 86, "children": [89, 90], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 9}}, {"id": 89, "type": "identifier", "text": "pop", "parent": 88, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 7}}, {"id": 90, "type": "parameter_list", "text": "()", "parent": 88, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 9}}, {"id": 91, "type": "declaration", "text": "node *tmp;", "parent": 86, "children": [92, 93], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 14}}, {"id": 92, "type": "type_identifier", "text": "node", "parent": 91, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 93, "type": "pointer_declarator", "text": "*tmp", "parent": 91, "children": [94, 95], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 95, "type": "identifier", "text": "tmp", "parent": 93, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 13}}, {"id": 96, "type": "declaration", "text": "int n;", "parent": 86, "children": [97, 98], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 97, "type": "primitive_type", "text": "int", "parent": 96, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 98, "type": "identifier", "text": "n", "parent": 96, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 99, "type": "assignment_expression", "text": "tmp = top", "parent": 86, "children": [100, 101, 102], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 100, "type": "identifier", "text": "tmp", "parent": 99, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 102, "type": "identifier", "text": "top", "parent": 99, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 13}}, {"id": 103, "type": "assignment_expression", "text": "n = tmp->data", "parent": 86, "children": [104, 105, 106], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 17}}, {"id": 104, "type": "identifier", "text": "n", "parent": 103, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 105, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 7}}, {"id": 106, "type": "field_expression", "text": "tmp->data", "parent": 103, "children": [107, 108], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 17}}, {"id": 107, "type": "identifier", "text": "tmp", "parent": 106, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 11}}, {"id": 108, "type": "field_identifier", "text": "data", "parent": 106, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 17}}, {"id": 109, "type": "assignment_expression", "text": "top = top->next", "parent": 86, "children": [110, 111, 112], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 19}}, {"id": 110, "type": "identifier", "text": "top", "parent": 109, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 112, "type": "field_expression", "text": "top->next", "parent": 109, "children": [113, 114], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 19}}, {"id": 113, "type": "identifier", "text": "top", "parent": 112, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 13}}, {"id": 114, "type": "field_identifier", "text": "next", "parent": 112, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 19}}, {"id": 115, "type": "call_expression", "text": "free(tmp)", "parent": 86, "children": [116, 117], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 13}}, {"id": 116, "type": "identifier", "text": "free", "parent": 115, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 117, "type": "argument_list", "text": "(tmp)", "parent": 115, "children": [118], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 13}}, {"id": 118, "type": "identifier", "text": "tmp", "parent": 117, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 12}}, {"id": 119, "type": "return_statement", "text": "return n;", "parent": 86, "children": [120], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 13}}, {"id": 120, "type": "identifier", "text": "n", "parent": 119, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 12}}, {"id": 121, "type": "function_definition", "text": "int Top()\n{\n return top->data;\n}", "parent": null, "children": [122, 123], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 3}}, {"id": 123, "type": "function_declarator", "text": "Top()", "parent": 121, "children": [124, 125], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 9}}, {"id": 124, "type": "identifier", "text": "Top", "parent": 123, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 7}}, {"id": 125, "type": "parameter_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 9}}, {"id": 126, "type": "return_statement", "text": "return top->data;", "parent": 121, "children": [127], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 21}}, {"id": 127, "type": "field_expression", "text": "top->data", "parent": 126, "children": [128, 129], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 20}}, {"id": 128, "type": "identifier", "text": "top", "parent": 127, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 14}}, {"id": 129, "type": "field_identifier", "text": "data", "parent": 127, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 20}}, {"id": 130, "type": "function_definition", "text": "int isempty()\n{\n return top==NULL;\n}", "parent": null, "children": [131, 132], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 3}}, {"id": 132, "type": "function_declarator", "text": "isempty()", "parent": 130, "children": [133, 134], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 13}}, {"id": 133, "type": "identifier", "text": "isempty", "parent": 132, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 11}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 13}}, {"id": 135, "type": "return_statement", "text": "return top==NULL;", "parent": 130, "children": [136], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 21}}, {"id": 136, "type": "binary_expression", "text": "top==NULL", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 20}}, {"id": 137, "type": "identifier", "text": "top", "parent": 136, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 14}}, {"id": 138, "type": "==", "text": "==", "parent": 136, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 16}}, {"id": 139, "type": "null", "text": "NULL", "parent": 136, "children": [140], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 20}}, {"id": 140, "type": "NULL", "text": "NULL", "parent": 139, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 20}}, {"id": 141, "type": "function_definition", "text": "void display(node *head)\n{\n if(head == NULL)\n {\n printf(\"NULL\\n\");\n }\n else\n {\n printf(\"%d\\n\", head -> data);\n display(head->next);\n }\n}", "parent": null, "children": [142, 143], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 142, "type": "primitive_type", "text": "void", "parent": 141, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 143, "type": "function_declarator", "text": "display(node *head)", "parent": 141, "children": [144, 145], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 24}}, {"id": 144, "type": "identifier", "text": "display", "parent": 143, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 12}}, {"id": 145, "type": "parameter_list", "text": "(node *head)", "parent": 143, "children": [146], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 24}}, {"id": 146, "type": "parameter_declaration", "text": "node *head", "parent": 145, "children": [147, 148], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 23}}, {"id": 147, "type": "type_identifier", "text": "node", "parent": 146, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 148, "type": "pointer_declarator", "text": "*head", "parent": 146, "children": [149, 150], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 23}}, {"id": 149, "type": "*", "text": "*", "parent": 148, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 19}}, {"id": 150, "type": "identifier", "text": "head", "parent": 148, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 23}}, {"id": 151, "type": "if_statement", "text": "if(head == NULL)\n {\n printf(\"NULL\\n\");\n }\n else\n {\n printf(\"%d\\n\", head -> data);\n display(head->next);\n }", "parent": 141, "children": [152, 163], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 152, "type": "parenthesized_expression", "text": "(head == NULL)", "parent": 151, "children": [153], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 20}}, {"id": 153, "type": "binary_expression", "text": "head == NULL", "parent": 152, "children": [154, 155, 156], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 19}}, {"id": 154, "type": "identifier", "text": "head", "parent": 153, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 11}}, {"id": 155, "type": "==", "text": "==", "parent": 153, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 14}}, {"id": 156, "type": "null", "text": "NULL", "parent": 153, "children": [157], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 19}}, {"id": 157, "type": "NULL", "text": "NULL", "parent": 156, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 19}}, {"id": 158, "type": "call_expression", "text": "printf(\"NULL\\n\")", "parent": 151, "children": [159, 160], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 24}}, {"id": 159, "type": "identifier", "text": "printf", "parent": 158, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 160, "type": "argument_list", "text": "(\"NULL\\n\")", "parent": 158, "children": [161], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 24}}, {"id": 161, "type": "string_literal", "text": "\"NULL\\n\"", "parent": 160, "children": [162], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 23}}, {"id": 162, "type": "escape_sequence", "text": "\\n", "parent": 161, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 22}}, {"id": 163, "type": "else_clause", "text": "else\n {\n printf(\"%d\\n\", head -> data);\n display(head->next);\n }", "parent": 151, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 164, "type": "call_expression", "text": "printf(\"%d\\n\", head -> data)", "parent": 163, "children": [165, 166], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 36}}, {"id": 165, "type": "identifier", "text": "printf", "parent": 164, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 166, "type": "argument_list", "text": "(\"%d\\n\", head -> data)", "parent": 164, "children": [167, 169], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 36}}, {"id": 167, "type": "string_literal", "text": "\"%d\\n\"", "parent": 166, "children": [168], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 21}}, {"id": 168, "type": "escape_sequence", "text": "\\n", "parent": 167, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 20}}, {"id": 169, "type": "field_expression", "text": "head -> data", "parent": 166, "children": [170, 171], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 35}}, {"id": 170, "type": "identifier", "text": "head", "parent": 169, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 27}}, {"id": 171, "type": "field_identifier", "text": "data", "parent": 169, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 35}}, {"id": 172, "type": "call_expression", "text": "display(head->next)", "parent": 163, "children": [173, 174], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 27}}, {"id": 173, "type": "identifier", "text": "display", "parent": 172, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 174, "type": "argument_list", "text": "(head->next)", "parent": 172, "children": [175], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 27}}, {"id": 175, "type": "field_expression", "text": "head->next", "parent": 174, "children": [176, 177], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 26}}, {"id": 176, "type": "identifier", "text": "head", "parent": 175, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 20}}, {"id": 177, "type": "field_identifier", "text": "next", "parent": 175, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 26}}, {"id": 178, "type": "function_definition", "text": "int main()\n{\n initialize();\n push(10);\n push(20);\n push(30);\n printf(\"The top is %d\\n\",Top());\n pop();\n printf(\"The top after pop is %d\\n\",Top());\n display(top);\n return 0;\n}", "parent": null, "children": [179, 180], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 80, "column": 1}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 178, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 3}}, {"id": 180, "type": "function_declarator", "text": "main()", "parent": 178, "children": [181, 182], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 10}}, {"id": 181, "type": "identifier", "text": "main", "parent": 180, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 182, "type": "parameter_list", "text": "()", "parent": 180, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 10}}, {"id": 183, "type": "call_expression", "text": "initialize()", "parent": 178, "children": [184, 185], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 16}}, {"id": 184, "type": "identifier", "text": "initialize", "parent": 183, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 14}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 16}}, {"id": 186, "type": "call_expression", "text": "push(10)", "parent": 178, "children": [187, 188], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 12}}, {"id": 187, "type": "identifier", "text": "push", "parent": 186, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 188, "type": "argument_list", "text": "(10)", "parent": 186, "children": [189], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 12}}, {"id": 189, "type": "number_literal", "text": "10", "parent": 188, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 11}}, {"id": 190, "type": "call_expression", "text": "push(20)", "parent": 178, "children": [191, 192], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 12}}, {"id": 191, "type": "identifier", "text": "push", "parent": 190, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 8}}, {"id": 192, "type": "argument_list", "text": "(20)", "parent": 190, "children": [193], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 12}}, {"id": 193, "type": "number_literal", "text": "20", "parent": 192, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 11}}, {"id": 194, "type": "call_expression", "text": "push(30)", "parent": 178, "children": [195, 196], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 12}}, {"id": 195, "type": "identifier", "text": "push", "parent": 194, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 196, "type": "argument_list", "text": "(30)", "parent": 194, "children": [197], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 12}}, {"id": 197, "type": "number_literal", "text": "30", "parent": 196, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 11}}, {"id": 198, "type": "call_expression", "text": "printf(\"The top is %d\\n\",Top())", "parent": 178, "children": [199, 200], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 35}}, {"id": 199, "type": "identifier", "text": "printf", "parent": 198, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 10}}, {"id": 200, "type": "argument_list", "text": "(\"The top is %d\\n\",Top())", "parent": 198, "children": [201, 203], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 35}}, {"id": 201, "type": "string_literal", "text": "\"The top is %d\\n\"", "parent": 200, "children": [202], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 28}}, {"id": 202, "type": "escape_sequence", "text": "\\n", "parent": 201, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 27}}, {"id": 203, "type": "call_expression", "text": "Top()", "parent": 200, "children": [204, 205], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 34}}, {"id": 204, "type": "identifier", "text": "Top", "parent": 203, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 32}}, {"id": 205, "type": "argument_list", "text": "()", "parent": 203, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 34}}, {"id": 206, "type": "call_expression", "text": "pop()", "parent": 178, "children": [207, 208], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 9}}, {"id": 207, "type": "identifier", "text": "pop", "parent": 206, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 7}}, {"id": 208, "type": "argument_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 9}}, {"id": 209, "type": "call_expression", "text": "printf(\"The top after pop is %d\\n\",Top())", "parent": 178, "children": [210, 211], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 45}}, {"id": 210, "type": "identifier", "text": "printf", "parent": 209, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 10}}, {"id": 211, "type": "argument_list", "text": "(\"The top after pop is %d\\n\",Top())", "parent": 209, "children": [212, 214], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 45}}, {"id": 212, "type": "string_literal", "text": "\"The top after pop is %d\\n\"", "parent": 211, "children": [213], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 38}}, {"id": 213, "type": "escape_sequence", "text": "\\n", "parent": 212, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 37}}, {"id": 214, "type": "call_expression", "text": "Top()", "parent": 211, "children": [215, 216], "start_point": {"row": 77, "column": 39}, "end_point": {"row": 77, "column": 44}}, {"id": 215, "type": "identifier", "text": "Top", "parent": 214, "children": [], "start_point": {"row": 77, "column": 39}, "end_point": {"row": 77, "column": 42}}, {"id": 216, "type": "argument_list", "text": "()", "parent": 214, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 44}}, {"id": 217, "type": "call_expression", "text": "display(top)", "parent": 178, "children": [218, 219], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 16}}, {"id": 218, "type": "identifier", "text": "display", "parent": 217, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 11}}, {"id": 219, "type": "argument_list", "text": "(top)", "parent": 217, "children": [220], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 16}}, {"id": 220, "type": "identifier", "text": "top", "parent": 219, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 15}}, {"id": 221, "type": "return_statement", "text": "return 0;", "parent": 178, "children": [222], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 13}}, {"id": 222, "type": "number_literal", "text": "0", "parent": 221, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 12}}]}, "node_categories": {"declarations": {"functions": [38, 40, 48, 50, 86, 88, 121, 123, 130, 132, 141, 143, 178, 180], "variables": [17, 20, 27, 33, 53, 56, 91, 96, 146], "classes": [14, 15, 21, 22, 29, 30], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [64, 67, 68, 71, 77, 106, 112, 115, 127, 136, 152, 153, 158, 164, 169, 172, 175, 183, 186, 190, 194, 198, 203, 206, 209, 214, 217], "assignments": [43, 61, 70, 76, 82, 99, 103, 109], "loops": [], "conditionals": [8, 12, 16, 19, 23, 26, 31, 32, 34, 37, 41, 44, 51, 55, 57, 60, 62, 65, 69, 72, 73, 75, 78, 79, 81, 83, 85, 89, 92, 95, 98, 100, 102, 104, 107, 108, 110, 113, 114, 116, 118, 120, 124, 128, 129, 133, 137, 144, 147, 150, 151, 154, 159, 165, 170, 171, 173, 176, 177, 181, 184, 187, 191, 195, 199, 204, 207, 210, 215, 218, 220], "returns": [119, 126, 135, 221], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 161, 167, 189, 193, 197, 201, 212, 222], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 38, "universal_type": "function", "name": "initialize", "text_snippet": "void initialize()\n{\n top = NULL;\n}"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "initialize()"}, {"node_id": 48, "universal_type": "function", "name": "push", "text_snippet": "void push(int value)\n{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n t"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "push(int value)"}, {"node_id": 86, "universal_type": "function", "name": "pop", "text_snippet": "int pop()\n{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n fre"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "pop()"}, {"node_id": 121, "universal_type": "function", "name": "Top", "text_snippet": "int Top()\n{\n return top->data;\n}"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "Top()"}, {"node_id": 130, "universal_type": "function", "name": "isempty", "text_snippet": "int isempty()\n{\n return top==NULL;\n}"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "isempty()"}, {"node_id": 141, "universal_type": "function", "name": "display", "text_snippet": "void display(node *head)\n{\n if(head == NULL)\n {\n printf(\"NULL\\n\");\n }\n else\n {"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "display(node *head)"}, {"node_id": 178, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n initialize();\n push(10);\n push(20);\n push(30);\n printf(\"The top is %d\\n"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 14, "universal_type": "class", "name": "node", "text_snippet": "struct node\n{\n int data;\n struct node *next;\n}"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 21, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 29, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#define TRUE 1\n#define FALSE 0\n\n// create a linked list\nstruct node\n{\n int data;\n struct node *next;\n};\ntypedef struct node node;\n\nnode *top;\n\n// initialize stack\nvoid initialize()\n{\n top = NULL;\n}\n\n// Push onto the stack\nvoid push(int value)\n{\n node *tmp;\n tmp = malloc(sizeof(node));\n tmp -> data = value;\n tmp -> next = top;\n top = tmp;\n}\n\n// Delete the topmost node\nint pop()\n{\n node *tmp;\n int n;\n tmp = top;\n n = tmp->data;\n top = top->next;\n free(tmp);\n return n;\n}\n\n// return data at the top of the stack\nint Top()\n{\n return top->data;\n}\n\n// Check if the stack is empty\nint isempty()\n{\n return top==NULL;\n}\n\nvoid display(node *head)\n{\n if(head == NULL)\n {\n printf(\"NULL\\n\");\n }\n else\n {\n printf(\"%d\\n\", head -> data);\n display(head->next);\n }\n}\n\n// Test\nint main()\n{\n initialize();\n push(10);\n push(20);\n push(30);\n printf(\"The top is %d\\n\",Top());\n pop();\n printf(\"The top after pop is %d\\n\",Top());\n display(top);\n return 0;\n}"}
81,035
c
// // LoginViewModel.h // Hey // // Created by Ascen on 2017/4/22. // Copyright © 2017年 Ascen. All rights reserved. // #import <Foundation/Foundation.h> @class RACCommand; @interface LoginViewModel : NSObject @property (nonatomic, copy, readonly) NSString *userId; @property (nonatomic, copy, readonly) NSString *password; @property (nonatomic, strong) RACCommand *loginCommand; @end
26.71
14
(translation_unit) "//\n// LoginViewModel.h\n// Hey\n//\n// Created by Ascen on 2017/4/22.\n// Copyright © 2017年 Ascen. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class RACCommand;\n\n@interface LoginViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NSString *userId;\n@property (nonatomic, copy, readonly) NSString *password;\n\n@property (nonatomic, strong) RACCommand *loginCommand;\n\n@end\n" (comment) "//" (comment) "// LoginViewModel.h" (comment) "// Hey" (comment) "//" (comment) "// Created by Ascen on 2017/4/22." (comment) "// Copyright © 2017年 Ascen. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <Foundation/Foundation.h>\n\n@c" (preproc_directive) "port <F" (preproc_arg) "undation/Foundation.h>\n\n@" (ERROR) "a" (ERROR) "a" (declaration) "ss RACCommand;\n\n@" (type_identifier) "ss RA" (identifier) "Command;\n\n" (;) "@" (ERROR) "terface LoginViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NSString *userId;\n@property (nonatomic, copy, readonly) NSString *password;\n\n@property (nonatomic, strong) RACCommand *loginCommand;\n\n@end\n" (ERROR) "t" (type_identifier) "erface Lo" (function_declarator) "inViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NS" (identifier) "inViewModel : " (ERROR) "SObject\n\n@property (n" (:) "S" (identifier) "bject\n\n@" (ERROR) "o" (identifier) "perty (n" (parameter_list) "natomic, copy, readonly) NS" (() "n" (identifier) "atomic, c" (,) "o" (identifier) "y, r" (,) "e" (identifier) "donly) N" ()) "S" (declaration) "tring *userId;\n@p" (type_identifier) "tring *u" (pointer_declarator) "erId;\n@" (*) "e" (identifier) "rId;\n@" (;) "p" (ERROR) "o" (ERROR) "o" (declaration) "perty (nonatomic, copy, readonly) NSString *password;\n\n@" (macro_type_specifier) "perty (nonatomic, copy, readonly) NS" (identifier) "perty (n" (() "n" (type_descriptor) "atomic, c" (type_identifier) "atomic, c" (ERROR) "opy, readonly) N" (,) "o" (identifier) "y, r" (,) "e" (identifier) "donly) N" ()) "S" (ERROR) "tring *p" (identifier) "tring *p" (pointer_declarator) "ssword;\n\n" (*) "s" (identifier) "sword;\n\n" (;) "@" (ERROR) "o" (ERROR) "o" (declaration) "perty (nonatomic, strong) RACCommand *loginCommand;\n\n@" (macro_type_specifier) "perty (nonatomic, strong) RA" (identifier) "perty (n" (() "n" (type_descriptor) "atomic, s" (type_identifier) "atomic, s" (ERROR) "trong) R" (,) "t" (identifier) "ong) R" ()) "A" (ERROR) "Command *l" (identifier) "Command *l" (pointer_declarator) "ginCommand;\n\n" (*) "g" (identifier) "inCommand;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (identifier) "\n"
82
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.71, "nodes": 58, "errors": 0, "source_hash": "6f6761bd9540be414a0bc559d214e3c594954d26f7a006a2a3e2164744deb8fe", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foundation/Foundation.h>\n\n@c", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <F", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "undation/Foundation.h>\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "a", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "a", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "ss RACCommand;\n\n@", "parent": null, "children": [6, 7], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 18}}, {"id": 6, "type": "type_identifier", "text": "ss RA", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 6}}, {"id": 7, "type": "identifier", "text": "Command;\n\n", "parent": 5, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 17}}, {"id": 8, "type": "ERROR", "text": "terface LoginViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NSString *userId;\n@property (nonatomic, copy, readonly) NSString *password;\n\n@property (nonatomic, strong) RACCommand *loginCommand;\n\n@end\n", "parent": null, "children": [9, 10, 11, 21, 26, 28, 41, 43, 55, 57], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 9, "type": "ERROR", "text": "t", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "erface Lo", "parent": 8, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 11, "type": "function_declarator", "text": "inViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NS", "parent": 8, "children": [12, 13, 17], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 14, "column": 37}}, {"id": 12, "type": "identifier", "text": "inViewModel : ", "parent": 11, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 25}}, {"id": 13, "type": "ERROR", "text": "SObject\n\n@property (n", "parent": 11, "children": [14, 15, 16], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 14, "column": 9}}, {"id": 14, "type": "identifier", "text": "bject\n\n@", "parent": 13, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 36}}, {"id": 15, "type": "ERROR", "text": "o", "parent": 13, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "identifier", "text": "perty (n", "parent": 13, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 17, "type": "parameter_list", "text": "natomic, copy, readonly) NS", "parent": 11, "children": [18, 19, 20], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 37}}, {"id": 18, "type": "identifier", "text": "atomic, c", "parent": 17, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 19, "type": "identifier", "text": "y, r", "parent": 17, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 26}}, {"id": 20, "type": "identifier", "text": "donly) N", "parent": 17, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 36}}, {"id": 21, "type": "declaration", "text": "tring *userId;\n@p", "parent": 8, "children": [22, 23], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 55}}, {"id": 22, "type": "type_identifier", "text": "tring *u", "parent": 21, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 46}}, {"id": 23, "type": "pointer_declarator", "text": "erId;\n@", "parent": 21, "children": [24, 25], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 54}}, {"id": 24, "type": "*", "text": "e", "parent": 23, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 48}}, {"id": 25, "type": "identifier", "text": "rId;\n@", "parent": 23, "children": [], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 54}}, {"id": 26, "type": "ERROR", "text": "o", "parent": 8, "children": [27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 27, "type": "ERROR", "text": "o", "parent": 26, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 28, "type": "declaration", "text": "perty (nonatomic, copy, readonly) NSString *password;\n\n@", "parent": 8, "children": [29, 36, 38], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 57}}, {"id": 29, "type": "macro_type_specifier", "text": "perty (nonatomic, copy, readonly) NS", "parent": 28, "children": [30, 31, 33], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 37}}, {"id": 30, "type": "identifier", "text": "perty (n", "parent": 29, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 31, "type": "type_descriptor", "text": "atomic, c", "parent": 29, "children": [32], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 32, "type": "type_identifier", "text": "atomic, c", "parent": 31, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 33, "type": "ERROR", "text": "opy, readonly) N", "parent": 29, "children": [34, 35], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 36}}, {"id": 34, "type": "identifier", "text": "y, r", "parent": 33, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 26}}, {"id": 35, "type": "identifier", "text": "donly) N", "parent": 33, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 36}}, {"id": 36, "type": "ERROR", "text": "tring *p", "parent": 28, "children": [37], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 46}}, {"id": 37, "type": "identifier", "text": "tring *p", "parent": 36, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 46}}, {"id": 38, "type": "pointer_declarator", "text": "ssword;\n\n", "parent": 28, "children": [39, 40], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 56}}, {"id": 39, "type": "*", "text": "s", "parent": 38, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 48}}, {"id": 40, "type": "identifier", "text": "sword;\n\n", "parent": 38, "children": [], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 56}}, {"id": 41, "type": "ERROR", "text": "o", "parent": 8, "children": [42], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 42, "type": "ERROR", "text": "o", "parent": 41, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 43, "type": "declaration", "text": "perty (nonatomic, strong) RACCommand *loginCommand;\n\n@", "parent": 8, "children": [44, 50, 52], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 55}}, {"id": 44, "type": "macro_type_specifier", "text": "perty (nonatomic, strong) RA", "parent": 43, "children": [45, 46, 48], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 29}}, {"id": 45, "type": "identifier", "text": "perty (n", "parent": 44, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 46, "type": "type_descriptor", "text": "atomic, s", "parent": 44, "children": [47], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 47, "type": "type_identifier", "text": "atomic, s", "parent": 46, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 48, "type": "ERROR", "text": "trong) R", "parent": 44, "children": [49], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 28}}, {"id": 49, "type": "identifier", "text": "ong) R", "parent": 48, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 50, "type": "ERROR", "text": "Command *l", "parent": 43, "children": [51], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 40}}, {"id": 51, "type": "identifier", "text": "Command *l", "parent": 50, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 40}}, {"id": 52, "type": "pointer_declarator", "text": "ginCommand;\n\n", "parent": 43, "children": [53, 54], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 54}}, {"id": 53, "type": "*", "text": "g", "parent": 52, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 42}}, {"id": 54, "type": "identifier", "text": "inCommand;\n\n", "parent": 52, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 54}}, {"id": 55, "type": "ERROR", "text": "d", "parent": 8, "children": [56], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 56, "type": "ERROR", "text": "d", "parent": 55, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 57, "type": "identifier", "text": "\n", "parent": 8, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 4}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [5, 21, 28, 43], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 7, 10, 12, 14, 16, 18, 19, 20, 22, 25, 29, 30, 32, 34, 35, 37, 40, 44, 45, 47, 49, 51, 54, 57], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "inViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NS"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// LoginViewModel.h\n// Hey\n//\n// Created by Ascen on 2017/4/22.\n// Copyright \u00a9 2017\u5e74 Ascen. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class RACCommand;\n\n@interface LoginViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NSString *userId;\n@property (nonatomic, copy, readonly) NSString *password;\n\n@property (nonatomic, strong) RACCommand *loginCommand;\n\n@end\n"}
81,036
c
#ifndef POSTSTEPACTIONSTAGE_H #define POSTSTEPACTIONSTAGE_H // from geantV #include "Geant/SimulationStage.h" // from geantV namespace geant { inline namespace GEANT_IMPL_NAMESPACE { class Propagator; class Track; class TaskData; class Handler; } // namespace GEANT_IMPL_NAMESPACE } // namespace geant namespace geantphysics { /** * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked. * @class PostStepActionStage * @author <NAME> * @date May 2017 */ class PostStepActionStage : public geant::SimulationStage { public: /** @brief ctr */ PostStepActionStage() {} /** @brief ctr */ PostStepActionStage(geant::Propagator *prop); /** @brief dtr */ ~PostStepActionStage(); VECCORE_ATT_HOST_DEVICE PostStepActionStage(const PostStepActionStage &); VECCORE_ATT_HOST_DEVICE PostStepActionStage &operator=(const PostStepActionStage &); /** @brief Clone the stage and copy the existing handlers **/ VECCORE_ATT_HOST_DEVICE virtual geant::SimulationStage *Clone() const; /** @brief Get simulation stage name */ virtual const char *GetName() const { return "PostStepAction"; } /** @brief Interface to create all handlers for the simulation stage * @return Number of handlers created */ virtual int CreateHandlers(); /** @brief Interface to select the handler matching a track */ virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td); }; } // namespace geantphysics #endif // POSTSTEPACTIONSTAGE_H
32.69
45
(translation_unit) "#ifndef POSTSTEPACTIONSTAGE_H\n#define POSTSTEPACTIONSTAGE_H\n\n// from geantV\n#include "Geant/SimulationStage.h"\n// from geantV\nnamespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n} // namespace geant\n\nnamespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n} // namespace geantphysics\n\n#endif // POSTSTEPACTIONSTAGE_H\n" (preproc_ifdef) "#ifndef POSTSTEPACTIONSTAGE_H\n#define POSTSTEPACTIONSTAGE_H\n\n// from geantV\n#include "Geant/SimulationStage.h"\n// from geantV\nnamespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n} // namespace geant\n\nnamespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n} // namespace geantphysics\n\n#endif" (#ifndef) "#ifndef" (identifier) "POSTSTEPACTIONSTAGE_H" (preproc_def) "#define POSTSTEPACTIONSTAGE_H\n" (#define) "#define" (identifier) "POSTSTEPACTIONSTAGE_H" (comment) "// from geantV" (preproc_include) "#include "Geant/SimulationStage.h"\n" (#include) "#include" (string_literal) ""Geant/SimulationStage.h"" (") """ (string_content) "Geant/SimulationStage.h" (") """ (comment) "// from geantV" (function_definition) "namespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n}" (type_identifier) "namespace" (identifier) "geant" (compound_statement) "{\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n}" ({) "{" (function_definition) "inline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n}" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "namespace" (identifier) "GEANT_IMPL_NAMESPACE" (compound_statement) "{\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n}" ({) "{" (declaration) "class Propagator;" (type_identifier) "class" (identifier) "Propagator" (;) ";" (declaration) "class Track;" (type_identifier) "class" (identifier) "Track" (;) ";" (declaration) "class TaskData;" (type_identifier) "class" (identifier) "TaskData" (;) ";" (declaration) "class Handler;" (type_identifier) "class" (identifier) "Handler" (;) ";" (}) "}" (comment) "// namespace GEANT_IMPL_NAMESPACE" (}) "}" (comment) "// namespace geant" (function_definition) "namespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n}" (type_identifier) "namespace" (identifier) "geantphysics" (compound_statement) "{\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n}" ({) "{" (comment) "/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */" (function_definition) "class PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n}" (type_identifier) "class" (identifier) "PostStepActionStage" (ERROR) ": public geant::SimulationStage" (:) ":" (identifier) "public" (identifier) "geant" (:) ":" (:) ":" (identifier) "SimulationStage" (compound_statement) "{\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return "PostStepAction"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n}" ({) "{" (labeled_statement) "public:\n /** @brief ctr */\n PostStepActionStage()" (statement_identifier) "public" (:) ":" (comment) "/** @brief ctr */" (expression_statement) "PostStepActionStage()" (call_expression) "PostStepActionStage()" (identifier) "PostStepActionStage" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (comment) "/** @brief ctr */" (labeled_statement) "PostStepActionStage(geant::Propagator *prop);" (statement_identifier) "PostStepActionStage" (ERROR) "(geant:" (() "(" (type_descriptor) "geant" (type_identifier) "geant" (:) ":" (:) ":" (declaration) "Propagator *prop);" (type_identifier) "Propagator" (pointer_declarator) "*prop" (*) "*" (identifier) "prop" (ERROR) ")" ()) ")" (;) ";" (comment) "/** @brief dtr */" (expression_statement) "~PostStepActionStage();" (unary_expression) "~PostStepActionStage()" (~) "~" (call_expression) "PostStepActionStage()" (identifier) "PostStepActionStage" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);" (type_identifier) "VECCORE_ATT_HOST_DEVICE" (function_declarator) "PostStepActionStage(const PostStepActionStage &)" (identifier) "PostStepActionStage" (parameter_list) "(const PostStepActionStage &)" (() "(" (parameter_declaration) "const PostStepActionStage" (type_qualifier) "const" (const) "const" (type_identifier) "PostStepActionStage" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "VECCORE_ATT_HOST_DEVICE\n PostStepActionStage" (type_identifier) "VECCORE_ATT_HOST_DEVICE" (identifier) "PostStepActionStage" (;) "" (expression_statement) "&operator=(const PostStepActionStage &);" (assignment_expression) "&operator=(const PostStepActionStage &)" (pointer_expression) "&operator" (&) "&" (identifier) "operator" (=) "=" (cast_expression) "(const PostStepActionStage &)" (() "(" (type_descriptor) "const PostStepActionStage" (type_qualifier) "const" (const) "const" (type_identifier) "PostStepActionStage" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (comment) "/** @brief Clone the stage and copy the existing handlers **/" (declaration) "VECCORE_ATT_HOST_DEVICE\n virtual" (type_identifier) "VECCORE_ATT_HOST_DEVICE" (identifier) "virtual" (;) "" (labeled_statement) "geant::SimulationStage *Clone() const;" (statement_identifier) "geant" (:) ":" (ERROR) ":" (:) ":" (declaration) "SimulationStage *Clone() const;" (type_identifier) "SimulationStage" (pointer_declarator) "*Clone() const" (*) "*" (function_declarator) "Clone() const" (identifier) "Clone" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/** @brief Get simulation stage name */" (function_definition) "virtual const char *GetName() const { return "PostStepAction"; }" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (pointer_declarator) "*GetName() const" (*) "*" (function_declarator) "GetName() const" (identifier) "GetName" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return "PostStepAction"; }" ({) "{" (return_statement) "return "PostStepAction";" (return) "return" (string_literal) ""PostStepAction"" (") """ (string_content) "PostStepAction" (") """ (;) ";" (}) "}" (comment) "/** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */" (declaration) "virtual int CreateHandlers();" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "CreateHandlers()" (identifier) "CreateHandlers" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/** @brief Interface to select the handler matching a track */" (declaration) "virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);" (type_identifier) "virtual" (ERROR) "geant::Handler" (identifier) "geant" (:) ":" (:) ":" (identifier) "Handler" (pointer_declarator) "*Select(geant::Track *track, geant::TaskData *td)" (*) "*" (function_declarator) "Select(geant::Track *track, geant::TaskData *td)" (identifier) "Select" (parameter_list) "(geant::Track *track, geant::TaskData *td)" (() "(" (parameter_declaration) "geant::Track *track" (type_identifier) "geant" (ERROR) "::Track" (:) ":" (:) ":" (identifier) "Track" (pointer_declarator) "*track" (*) "*" (identifier) "track" (,) "," (parameter_declaration) "geant::TaskData *td" (type_identifier) "geant" (ERROR) "::TaskData" (:) ":" (:) ":" (identifier) "TaskData" (pointer_declarator) "*td" (*) "*" (identifier) "td" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace geantphysics" (#endif) "#endif" (comment) "// POSTSTEPACTIONSTAGE_H"
240
11
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.69, "nodes": 125, "errors": 0, "source_hash": "ea906a5e793defdfa645594b6bcc04e124b0fe503955db3b86df879ed612fc69", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef POSTSTEPACTIONSTAGE_H\n#define POSTSTEPACTIONSTAGE_H\n\n// from geantV\n#include \"Geant/SimulationStage.h\"\n// from geantV\nnamespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n} // namespace geant\n\nnamespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return \"PostStepAction\"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n} // namespace geantphysics\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 25, 124], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "identifier", "text": "POSTSTEPACTIONSTAGE_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define POSTSTEPACTIONSTAGE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "POSTSTEPACTIONSTAGE_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include \"Geant/SimulationStage.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Geant/SimulationStage.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 34}}, {"id": 9, "type": "function_definition", "text": "namespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 11, "type": "identifier", "text": "geant", "parent": 9, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 15}}, {"id": 12, "type": "function_definition", "text": "inline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n}", "parent": 9, "children": [13, 15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 13, "type": "storage_class_specifier", "text": "inline", "parent": 12, "children": [14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 14, "type": "inline", "text": "inline", "parent": 13, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 16}}, {"id": 16, "type": "identifier", "text": "GEANT_IMPL_NAMESPACE", "parent": 12, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 37}}, {"id": 17, "type": "declaration", "text": "class Propagator;", "parent": 12, "children": [18], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 17}}, {"id": 18, "type": "identifier", "text": "Propagator", "parent": 17, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 16}}, {"id": 19, "type": "declaration", "text": "class Track;", "parent": 12, "children": [20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 12}}, {"id": 20, "type": "identifier", "text": "Track", "parent": 19, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 21, "type": "declaration", "text": "class TaskData;", "parent": 12, "children": [22], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 15}}, {"id": 22, "type": "identifier", "text": "TaskData", "parent": 21, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 14}}, {"id": 23, "type": "declaration", "text": "class Handler;", "parent": 12, "children": [24], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 14}}, {"id": 24, "type": "identifier", "text": "Handler", "parent": 23, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 13}}, {"id": 25, "type": "function_definition", "text": "namespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return \"PostStepAction\"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n}", "parent": 0, "children": [26, 27], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "namespace", "parent": 25, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 27, "type": "identifier", "text": "geantphysics", "parent": 25, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 22}}, {"id": 28, "type": "function_definition", "text": "class PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return \"PostStepAction\"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n}", "parent": 25, "children": [29, 30], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 29, "type": "identifier", "text": "PostStepActionStage", "parent": 28, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 25}}, {"id": 30, "type": "ERROR", "text": ": public geant::SimulationStage", "parent": 28, "children": [31, 32], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 57}}, {"id": 31, "type": "identifier", "text": "geant", "parent": 30, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 40}}, {"id": 32, "type": "identifier", "text": "SimulationStage", "parent": 30, "children": [], "start_point": {"row": 25, "column": 42}, "end_point": {"row": 25, "column": 57}}, {"id": 33, "type": "labeled_statement", "text": "public:\n /** @brief ctr */\n PostStepActionStage()", "parent": 28, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 28, "column": 23}}, {"id": 34, "type": "call_expression", "text": "PostStepActionStage()", "parent": 33, "children": [35, 36], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 23}}, {"id": 35, "type": "identifier", "text": "PostStepActionStage", "parent": 34, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 21}}, {"id": 36, "type": "argument_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 23}}, {"id": 37, "type": "labeled_statement", "text": "PostStepActionStage(geant::Propagator *prop);", "parent": 28, "children": [38, 39, 42], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 47}}, {"id": 38, "type": "statement_identifier", "text": "PostStepActionStage", "parent": 37, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 21}}, {"id": 39, "type": "ERROR", "text": "(geant:", "parent": 37, "children": [40], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 28}}, {"id": 40, "type": "type_descriptor", "text": "geant", "parent": 39, "children": [41], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 27}}, {"id": 41, "type": "type_identifier", "text": "geant", "parent": 40, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 27}}, {"id": 42, "type": "declaration", "text": "Propagator *prop);", "parent": 37, "children": [43, 44], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 47}}, {"id": 43, "type": "type_identifier", "text": "Propagator", "parent": 42, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 39}}, {"id": 44, "type": "pointer_declarator", "text": "*prop", "parent": 42, "children": [45, 46], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 45}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 41}}, {"id": 46, "type": "identifier", "text": "prop", "parent": 44, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 45}}, {"id": 47, "type": "unary_expression", "text": "~PostStepActionStage()", "parent": 28, "children": [48, 49], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 24}}, {"id": 48, "type": "~", "text": "~", "parent": 47, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 3}}, {"id": 49, "type": "call_expression", "text": "PostStepActionStage()", "parent": 47, "children": [50, 51], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 24}}, {"id": 50, "type": "identifier", "text": "PostStepActionStage", "parent": 49, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 22}}, {"id": 51, "type": "argument_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 52, "type": "declaration", "text": "VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);", "parent": 28, "children": [53, 54], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 51}}, {"id": 53, "type": "type_identifier", "text": "VECCORE_ATT_HOST_DEVICE", "parent": 52, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 25}}, {"id": 54, "type": "function_declarator", "text": "PostStepActionStage(const PostStepActionStage &)", "parent": 52, "children": [55, 56], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 50}}, {"id": 55, "type": "identifier", "text": "PostStepActionStage", "parent": 54, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 21}}, {"id": 56, "type": "parameter_list", "text": "(const PostStepActionStage &)", "parent": 54, "children": [57], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 50}}, {"id": 57, "type": "parameter_declaration", "text": "const PostStepActionStage", "parent": 56, "children": [58], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 47}}, {"id": 58, "type": "type_identifier", "text": "PostStepActionStage", "parent": 57, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 47}}, {"id": 59, "type": "declaration", "text": "VECCORE_ATT_HOST_DEVICE\n PostStepActionStage", "parent": 28, "children": [60, 61], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 40, "column": 21}}, {"id": 60, "type": "type_identifier", "text": "VECCORE_ATT_HOST_DEVICE", "parent": 59, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 25}}, {"id": 61, "type": "identifier", "text": "PostStepActionStage", "parent": 59, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 21}}, {"id": 62, "type": "assignment_expression", "text": "&operator=(const PostStepActionStage &)", "parent": 28, "children": [63, 65, 66], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 61}}, {"id": 63, "type": "pointer_expression", "text": "&operator", "parent": 62, "children": [64], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 31}}, {"id": 64, "type": "identifier", "text": "operator", "parent": 63, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 31}}, {"id": 65, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 66, "type": "cast_expression", "text": "(const PostStepActionStage &)", "parent": 62, "children": [67, 69], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 61}}, {"id": 67, "type": "type_descriptor", "text": "const PostStepActionStage", "parent": 66, "children": [68], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 58}}, {"id": 68, "type": "type_identifier", "text": "PostStepActionStage", "parent": 67, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 58}}, {"id": 69, "type": "identifier", "text": "", "parent": 66, "children": [], "start_point": {"row": 40, "column": 61}, "end_point": {"row": 40, "column": 61}}, {"id": 70, "type": "declaration", "text": "VECCORE_ATT_HOST_DEVICE\n virtual", "parent": 28, "children": [71, 72], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 71, "type": "type_identifier", "text": "VECCORE_ATT_HOST_DEVICE", "parent": 70, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 25}}, {"id": 72, "type": "identifier", "text": "virtual", "parent": 70, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 73, "type": "labeled_statement", "text": "geant::SimulationStage *Clone() const;", "parent": 28, "children": [74, 75], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 48}}, {"id": 74, "type": "statement_identifier", "text": "geant", "parent": 73, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 15}}, {"id": 75, "type": "declaration", "text": "SimulationStage *Clone() const;", "parent": 73, "children": [76, 77], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 48}}, {"id": 76, "type": "type_identifier", "text": "SimulationStage", "parent": 75, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 32}}, {"id": 77, "type": "pointer_declarator", "text": "*Clone() const", "parent": 75, "children": [78, 79], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 47}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 34}}, {"id": 79, "type": "function_declarator", "text": "Clone() const", "parent": 77, "children": [80, 81], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 47}}, {"id": 80, "type": "identifier", "text": "Clone", "parent": 79, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 39}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 41}}, {"id": 82, "type": "function_definition", "text": "virtual const char *GetName() const { return \"PostStepAction\"; }", "parent": 28, "children": [83, 84, 86], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 66}}, {"id": 83, "type": "type_identifier", "text": "virtual", "parent": 82, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 84, "type": "ERROR", "text": "char", "parent": 82, "children": [85], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 85, "type": "identifier", "text": "char", "parent": 84, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 86, "type": "pointer_declarator", "text": "*GetName() const", "parent": 82, "children": [87, 88], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 37}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 88, "type": "function_declarator", "text": "GetName() const", "parent": 86, "children": [89, 90], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 37}}, {"id": 89, "type": "identifier", "text": "GetName", "parent": 88, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 29}}, {"id": 90, "type": "parameter_list", "text": "()", "parent": 88, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 31}}, {"id": 91, "type": "return_statement", "text": "return \"PostStepAction\";", "parent": 82, "children": [92], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 64}}, {"id": 92, "type": "string_literal", "text": "\"PostStepAction\"", "parent": 91, "children": [], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 47, "column": 63}}, {"id": 93, "type": "declaration", "text": "virtual int CreateHandlers();", "parent": 28, "children": [94, 95, 97], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 31}}, {"id": 94, "type": "type_identifier", "text": "virtual", "parent": 93, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 9}}, {"id": 95, "type": "ERROR", "text": "int", "parent": 93, "children": [96], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 96, "type": "identifier", "text": "int", "parent": 95, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 97, "type": "function_declarator", "text": "CreateHandlers()", "parent": 93, "children": [98, 99], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 30}}, {"id": 98, "type": "identifier", "text": "CreateHandlers", "parent": 97, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 28}}, {"id": 99, "type": "parameter_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 30}}, {"id": 100, "type": "declaration", "text": "virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);", "parent": 28, "children": [101, 102, 105], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 75}}, {"id": 101, "type": "type_identifier", "text": "virtual", "parent": 100, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 9}}, {"id": 102, "type": "ERROR", "text": "geant::Handler", "parent": 100, "children": [103, 104], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 24}}, {"id": 103, "type": "identifier", "text": "geant", "parent": 102, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 15}}, {"id": 104, "type": "identifier", "text": "Handler", "parent": 102, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 24}}, {"id": 105, "type": "pointer_declarator", "text": "*Select(geant::Track *track, geant::TaskData *td)", "parent": 100, "children": [106, 107], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 74}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 26}}, {"id": 107, "type": "function_declarator", "text": "Select(geant::Track *track, geant::TaskData *td)", "parent": 105, "children": [108, 109], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 74}}, {"id": 108, "type": "identifier", "text": "Select", "parent": 107, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 32}}, {"id": 109, "type": "parameter_list", "text": "(geant::Track *track, geant::TaskData *td)", "parent": 107, "children": [110, 117], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 74}}, {"id": 110, "type": "parameter_declaration", "text": "geant::Track *track", "parent": 109, "children": [111, 112, 114], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 52}}, {"id": 111, "type": "type_identifier", "text": "geant", "parent": 110, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 38}}, {"id": 112, "type": "ERROR", "text": "::Track", "parent": 110, "children": [113], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 45}}, {"id": 113, "type": "identifier", "text": "Track", "parent": 112, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 45}}, {"id": 114, "type": "pointer_declarator", "text": "*track", "parent": 110, "children": [115, 116], "start_point": {"row": 54, "column": 46}, "end_point": {"row": 54, "column": 52}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 54, "column": 46}, "end_point": {"row": 54, "column": 47}}, {"id": 116, "type": "identifier", "text": "track", "parent": 114, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 52}}, {"id": 117, "type": "parameter_declaration", "text": "geant::TaskData *td", "parent": 109, "children": [118, 119, 121], "start_point": {"row": 54, "column": 54}, "end_point": {"row": 54, "column": 73}}, {"id": 118, "type": "type_identifier", "text": "geant", "parent": 117, "children": [], "start_point": {"row": 54, "column": 54}, "end_point": {"row": 54, "column": 59}}, {"id": 119, "type": "ERROR", "text": "::TaskData", "parent": 117, "children": [120], "start_point": {"row": 54, "column": 59}, "end_point": {"row": 54, "column": 69}}, {"id": 120, "type": "identifier", "text": "TaskData", "parent": 119, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 69}}, {"id": 121, "type": "pointer_declarator", "text": "*td", "parent": 117, "children": [122, 123], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 73}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 123, "type": "identifier", "text": "td", "parent": 121, "children": [], "start_point": {"row": 54, "column": 71}, "end_point": {"row": 54, "column": 73}}, {"id": 124, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12, 25, 28, 54, 79, 82, 88, 97, 107], "variables": [17, 19, 21, 23, 42, 52, 57, 59, 70, 75, 93, 100, 110, 117], "classes": [13], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [34, 47, 49, 63, 66], "assignments": [62], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 15, 16, 18, 20, 22, 24, 26, 27, 29, 31, 32, 35, 38, 41, 43, 46, 50, 53, 55, 58, 60, 61, 64, 68, 69, 71, 72, 74, 76, 80, 83, 85, 89, 94, 96, 98, 101, 103, 104, 108, 111, 113, 116, 118, 120, 123, 124], "returns": [91], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 92], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Propagator;", "text_snippet": "namespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskD"}, {"node_id": 12, "universal_type": "function", "name": "Propagator;", "text_snippet": "inline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler"}, {"node_id": 25, "universal_type": "function", "name": "PostStepActionStage", "text_snippet": "namespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action"}, {"node_id": 28, "universal_type": "function", "name": "PostStepActionStage", "text_snippet": "class PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepAc"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "PostStepActionStage(const PostStepActionStage &)"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "Clone() const"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "virtual const char *GetName() const { return \"PostStepAction\"; }"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "GetName() const"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "CreateHandlers()"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "Select(geant::Track *track, geant::TaskData *td)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"Geant/SimulationStage.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "\n#ifndef POSTSTEPACTIONSTAGE_H\n#define POSTSTEPACTIONSTAGE_H\n\n// from geantV\n#include \"Geant/SimulationStage.h\"\n// from geantV\nnamespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n} // namespace geant\n\nnamespace geantphysics {\n\n/**\n * @brief Simulation stage to select particles that post-step action (discrete interaction) need to be invoked.\n * @class PostStepActionStage\n * @author <NAME>\n * @date May 2017\n */\n\nclass PostStepActionStage : public geant::SimulationStage {\npublic:\n /** @brief ctr */\n PostStepActionStage() {}\n\n /** @brief ctr */\n PostStepActionStage(geant::Propagator *prop);\n\n /** @brief dtr */\n ~PostStepActionStage();\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage(const PostStepActionStage &);\n\n VECCORE_ATT_HOST_DEVICE\n PostStepActionStage &operator=(const PostStepActionStage &);\n\n /** @brief Clone the stage and copy the existing handlers **/\n VECCORE_ATT_HOST_DEVICE\n virtual geant::SimulationStage *Clone() const;\n\n /** @brief Get simulation stage name */\n virtual const char *GetName() const { return \"PostStepAction\"; }\n\n /** @brief Interface to create all handlers for the simulation stage\n * @return Number of handlers created */\n virtual int CreateHandlers();\n\n /** @brief Interface to select the handler matching a track */\n virtual geant::Handler *Select(geant::Track *track, geant::TaskData *td);\n};\n\n} // namespace geantphysics\n\n#endif // POSTSTEPACTIONSTAGE_H\n"}
81,037
c
// Copyright (C) 2014, <NAME>. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #ifndef ANKI_MATH_VEC2_H #define ANKI_MATH_VEC2_H #include "anki/math/CommonIncludes.h" #include "anki/math/Vec.h" namespace anki { /// @addtogroup math /// @{ /// 2D vector template<typename T> class TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>> { /// @name Friends /// @{ template<typename Y> friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b); template<typename Y> friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b); template<typename Y> friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b); template<typename Y> friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b); ///@} public: using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>; /// @name Constructors /// @{ explicit TVec2() : Base() {} TVec2(const TVec2& b) : Base(b) {} explicit TVec2(const T x_, const T y_) : Base(x_, y_) {} explicit TVec2(const T f) : Base(f) {} explicit TVec2(const T arr[]) : Base(arr) {} /// @} }; /// @memberof TVec2 template<typename T> TVec2<T> operator+(const T f, const TVec2<T>& b) { return b + f; } /// @memberof TVec2 template<typename T> TVec2<T> operator-(const T f, const TVec2<T>& b) { return TVec2<T>(f - b.x(), f - b.y()); } /// @memberof TVec2 template<typename T> TVec2<T> operator*(const T f, const TVec2<T>& b) { return b * f; } /// @memberof TVec2 template<typename T> TVec2<T> operator/(const T f, const TVec2<T>& b) { return TVec2<T>(f / b.x(), f / b.y()); } /// F32 2D vector typedef TVec2<F32> Vec2; static_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size"); /// Half float 2D vector typedef TVec2<F16> HVec2; /// 32bit signed integer 2D vector typedef TVec2<I32> IVec2; /// 32bit unsigned integer 2D vector typedef TVec2<U32> UVec2; /// @} } // end namespace anki #endif
21.51
83
(translation_unit) "// Copyright (C) 2014, <NAME>.\n// All rights reserved.\n// Code licensed under the BSD License.\n// http://www.anki3d.org/LICENSE\n\n#ifndef ANKI_MATH_VEC2_H\n#define ANKI_MATH_VEC2_H\n\n#include "anki/math/CommonIncludes.h"\n#include "anki/math/Vec.h"\n\nnamespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n ///@}\n\npublic:\n using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n /// @name Constructors\n /// @{\n explicit TVec2()\n : Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n return b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n} // end namespace anki\n\n#endif\n" (comment) "// Copyright (C) 2014, <NAME>." (comment) "// All rights reserved." (comment) "// Code licensed under the BSD License." (comment) "// http://www.anki3d.org/LICENSE" (preproc_ifdef) "#ifndef ANKI_MATH_VEC2_H\n#define ANKI_MATH_VEC2_H\n\n#include "anki/math/CommonIncludes.h"\n#include "anki/math/Vec.h"\n\nnamespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n ///@}\n\npublic:\n using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n /// @name Constructors\n /// @{\n explicit TVec2()\n : Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n return b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n} // end namespace anki\n\n#endif" (#ifndef) "#ifndef" (identifier) "ANKI_MATH_VEC2_H" (preproc_def) "#define ANKI_MATH_VEC2_H\n" (#define) "#define" (identifier) "ANKI_MATH_VEC2_H" (preproc_include) "#include "anki/math/CommonIncludes.h"\n" (#include) "#include" (string_literal) ""anki/math/CommonIncludes.h"" (") """ (string_content) "anki/math/CommonIncludes.h" (") """ (preproc_include) "#include "anki/math/Vec.h"\n" (#include) "#include" (string_literal) ""anki/math/Vec.h"" (") """ (string_content) "anki/math/Vec.h" (") """ (function_definition) "namespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n ///@}\n\npublic:\n using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n /// @name Constructors\n /// @{\n explicit TVec2()\n : Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n return b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n}" (type_identifier) "namespace" (identifier) "anki" (compound_statement) "{\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n ///@}\n\npublic:\n using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n /// @name Constructors\n /// @{\n explicit TVec2()\n : Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n return b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n}" ({) "{" (comment) "/// @addtogroup math" (comment) "/// @{" (comment) "/// 2D vector" (expression_statement) "template<typename T>\nclass" (binary_expression) "template<typename T>\nclass" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (;) "" (expression_statement) "TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);" (comma_expression) "TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)" (binary_expression) "TVec2: public TVec<T" (identifier) "TVec2" (ERROR) ": public TVec" (:) ":" (type_identifier) "public" (identifier) "TVec" (<) "<" (identifier) "T" (,) "," (comma_expression) "2, Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)" (number_literal) "2" (,) "," (comma_expression) "Array<T, 2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)" (binary_expression) "Array<T" (identifier) "Array" (<) "<" (identifier) "T" (,) "," (binary_expression) "2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)" (binary_expression) "2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend TVec2<Y" (binary_expression) "2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename Y>\n friend" (binary_expression) "2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template<typename" (binary_expression) "2>, TVec2<T>>\n{\n /// @name Friends\n /// @{\n template" (binary_expression) "2>, TVec2" (number_literal) "2" (>) ">" (ERROR) "," (,) "," (identifier) "TVec2" (<) "<" (binary_expression) "T>>\n{\n /// @name Friends\n /// @{\n template" (identifier) "T" (>>) ">>" (ERROR) "{" ({) "{" (comment) "/// @name Friends" (comment) "/// @{" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Y" (identifier) "Y" (>) ">" (identifier) "friend" (ERROR) "TVec2" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (binary_expression) "operator+(const Y f, const TVec2<Y>& b)" (identifier) "operator" (+) "+" (parenthesized_expression) "(const Y f, const TVec2<Y>& b)" (() "(" (ERROR) "const Y f, const" (type_descriptor) "const Y f, const" (type_qualifier) "const" (const) "const" (type_identifier) "Y" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<Y>& b" (binary_expression) "TVec2<Y" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) ";" (expression_statement) "template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);" (binary_expression) "template<typename Y>\n friend TVec2<Y> operator-(const Y f, const TVec2<Y>& b)" (binary_expression) "template<typename Y>\n friend TVec2<Y" (binary_expression) "template<typename Y>\n friend" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Y" (identifier) "Y" (>) ">" (identifier) "friend" (ERROR) "TVec2" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (binary_expression) "operator-(const Y f, const TVec2<Y>& b)" (identifier) "operator" (-) "-" (parenthesized_expression) "(const Y f, const TVec2<Y>& b)" (() "(" (ERROR) "const Y f, const" (type_descriptor) "const Y f, const" (type_qualifier) "const" (const) "const" (type_identifier) "Y" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<Y>& b" (binary_expression) "TVec2<Y" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) ";" (expression_statement) "template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);" (binary_expression) "template<typename Y>\n friend TVec2<Y> operator*(const Y f, const TVec2<Y>& b)" (binary_expression) "template<typename Y>\n friend TVec2<Y" (binary_expression) "template<typename Y>\n friend" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Y" (identifier) "Y" (>) ">" (identifier) "friend" (ERROR) "TVec2" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (binary_expression) "operator*(const Y f, const TVec2<Y>& b)" (identifier) "operator" (*) "*" (parenthesized_expression) "(const Y f, const TVec2<Y>& b)" (() "(" (ERROR) "const Y f, const" (type_descriptor) "const Y f, const" (type_qualifier) "const" (const) "const" (type_identifier) "Y" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<Y>& b" (binary_expression) "TVec2<Y" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) ";" (expression_statement) "template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);" (binary_expression) "template<typename Y>\n friend TVec2<Y> operator/(const Y f, const TVec2<Y>& b)" (binary_expression) "template<typename Y>\n friend TVec2<Y" (binary_expression) "template<typename Y>\n friend" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Y" (identifier) "Y" (>) ">" (identifier) "friend" (ERROR) "TVec2" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (binary_expression) "operator/(const Y f, const TVec2<Y>& b)" (identifier) "operator" (/) "/" (parenthesized_expression) "(const Y f, const TVec2<Y>& b)" (() "(" (ERROR) "const Y f, const" (type_descriptor) "const Y f, const" (type_qualifier) "const" (const) "const" (type_identifier) "Y" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<Y>& b" (binary_expression) "TVec2<Y" (identifier) "TVec2" (<) "<" (identifier) "Y" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) ";" (comment) "///@}" (labeled_statement) "public:\n using Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;" (statement_identifier) "public" (:) ":" (ERROR) "using Base = TVec<T," (type_identifier) "using" (init_declarator) "Base = TVec<T" (identifier) "Base" (=) "=" (binary_expression) "TVec<T" (identifier) "TVec" (<) "<" (identifier) "T" (,) "," (expression_statement) "2, Array<T, 2>, TVec2<T>>;" (comma_expression) "2, Array<T, 2>, TVec2<T" (number_literal) "2" (,) "," (comma_expression) "Array<T, 2>, TVec2<T" (binary_expression) "Array<T" (identifier) "Array" (<) "<" (identifier) "T" (,) "," (binary_expression) "2>, TVec2<T" (binary_expression) "2>, TVec2" (number_literal) "2" (>) ">" (ERROR) "," (,) "," (identifier) "TVec2" (<) "<" (identifier) "T" (ERROR) ">>" (>>) ">>" (;) ";" (comment) "/// @name Constructors" (comment) "/// @{" (function_definition) "explicit TVec2()\n : Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n return TVec2<T>(f - b.x(), f - b.y());\n}" (type_identifier) "explicit" (function_declarator) "TVec2()" (identifier) "TVec2" (parameter_list) "()" (() "(" ()) ")" (ERROR) ":" (:) ":" (declaration) "Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n return b + f;" (macro_type_specifier) "Base()\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)" (identifier) "Base" (() "(" (ERROR) ")\n {}\n\n TVec2(const TVec2& b)\n : Base(b)\n {}\n\n explicit TVec2(const T x_, const T y_)\n : Base(x_, y_)\n {}\n\n explicit TVec2(const T f)\n : Base(f)\n {}\n\n explicit TVec2(const T arr[])\n : Base(arr)\n {}\n /// @}\n};" ()) ")" ({) "{" (}) "}" (type_descriptor) "TVec2(const TVec2& b)" (type_identifier) "TVec2" (abstract_function_declarator) "(const TVec2& b)" (parameter_list) "(const TVec2& b)" (() "(" (parameter_declaration) "const TVec2& b" (type_qualifier) "const" (const) "const" (type_identifier) "TVec2" (ERROR) "&" (&) "&" (identifier) "b" ()) ")" (:) ":" (macro_type_specifier) "Base(b)" (identifier) "Base" (() "(" (type_descriptor) "b" (type_identifier) "b" ()) ")" ({) "{" (}) "}" (type_identifier) "explicit" (type_descriptor) "TVec2(const T x_, const T y_)" (type_identifier) "TVec2" (abstract_function_declarator) "(const T x_, const T y_)" (parameter_list) "(const T x_, const T y_)" (() "(" (parameter_declaration) "const T x_" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "x_" (,) "," (parameter_declaration) "const T y_" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "y_" ()) ")" (:) ":" (type_descriptor) "Base(x_, y_)" (type_identifier) "Base" (abstract_function_declarator) "(x_, y_)" (parameter_list) "(x_, y_)" (() "(" (parameter_declaration) "x_" (type_identifier) "x_" (,) "," (parameter_declaration) "y_" (type_identifier) "y_" ()) ")" ({) "{" (}) "}" (type_identifier) "explicit" (type_descriptor) "TVec2(const T f)" (type_identifier) "TVec2" (abstract_function_declarator) "(const T f)" (parameter_list) "(const T f)" (() "(" (parameter_declaration) "const T f" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "f" ()) ")" (:) ":" (macro_type_specifier) "Base(f)" (identifier) "Base" (() "(" (type_descriptor) "f" (type_identifier) "f" ()) ")" ({) "{" (}) "}" (type_identifier) "explicit" (type_descriptor) "TVec2(const T arr[])" (type_identifier) "TVec2" (abstract_function_declarator) "(const T arr[])" (parameter_list) "(const T arr[])" (() "(" (parameter_declaration) "const T arr[]" (type_qualifier) "const" (const) "const" (type_identifier) "T" (array_declarator) "arr[]" (identifier) "arr" ([) "[" (]) "]" ()) ")" (:) ":" (macro_type_specifier) "Base(arr)" (identifier) "Base" (() "(" (type_descriptor) "arr" (type_identifier) "arr" ()) ")" ({) "{" (}) "}" (comment) "/// @}" (}) "}" (;) ";" (comment) "/// @memberof TVec2" (type_descriptor) "template<typename T>\nTVec2<T> operator+(const T f, const" (type_identifier) "template" (ERROR) "<typename T>\nTVec2<T> operator+(" (<) "<" (identifier) "typename" (identifier) "T" (>) ">" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (identifier) "operator" (+) "+" (() "(" (type_qualifier) "const" (const) "const" (ERROR) "T f," (identifier) "T" (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (ERROR) "TVec2<T>& b" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (&) "&" (identifier) "b" ()) ")" (ERROR) "{\n return b +" ({) "{" (return) "return" (identifier) "b" (+) "+" (identifier) "f" (;) ";" (ERROR) "}" (}) "}" (comment) "/// @memberof TVec2" (ERROR) "template<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)" (type_identifier) "template" (ERROR) "<typename T>\nTVec2<T> operator-(const T" (<) "<" (identifier) "typename" (identifier) "T" (>) ">" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (identifier) "operator" (-) "-" (() "(" (const) "const" (identifier) "T" (identifier) "f" (,) "," (identifier) "const" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (&) "&" (identifier) "b" ()) ")" (compound_statement) "{\n return TVec2<T>(f - b.x(), f - b.y());\n}" ({) "{" (return_statement) "return TVec2<T>(f - b.x(), f - b.y());" (return) "return" (binary_expression) "TVec2<T>(f - b.x(), f - b.y())" (binary_expression) "TVec2<T" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(f - b.x(), f - b.y())" (() "(" (comma_expression) "f - b.x(), f - b.y()" (binary_expression) "f - b.x()" (identifier) "f" (-) "-" (call_expression) "b.x()" (field_expression) "b.x" (identifier) "b" (.) "." (field_identifier) "x" (argument_list) "()" (() "(" ()) ")" (,) "," (binary_expression) "f - b.y()" (identifier) "f" (-) "-" (call_expression) "b.y()" (field_expression) "b.y" (identifier) "b" (.) "." (field_identifier) "y" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "/// @memberof TVec2" (expression_statement) "template<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)" (binary_expression) "template<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)" (binary_expression) "template<typename T>\nTVec2<T" (binary_expression) "template<typename T>\nTVec2" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (binary_expression) "operator*(const T f, const TVec2<T>& b)" (identifier) "operator" (*) "*" (parenthesized_expression) "(const T f, const TVec2<T>& b)" (() "(" (ERROR) "const T f, const" (type_descriptor) "const T f, const" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<T>& b" (binary_expression) "TVec2<T" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) "" (compound_statement) "{\n return b * f;\n}" ({) "{" (return_statement) "return b * f;" (return) "return" (binary_expression) "b * f" (identifier) "b" (*) "*" (identifier) "f" (;) ";" (}) "}" (comment) "/// @memberof TVec2" (expression_statement) "template<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)" (binary_expression) "template<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)" (binary_expression) "template<typename T>\nTVec2<T" (binary_expression) "template<typename T>\nTVec2" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (binary_expression) "operator/(const T f, const TVec2<T>& b)" (identifier) "operator" (/) "/" (parenthesized_expression) "(const T f, const TVec2<T>& b)" (() "(" (ERROR) "const T f, const" (type_descriptor) "const T f, const" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "f," (identifier) "f" (,) "," (type_qualifier) "const" (const) "const" (binary_expression) "TVec2<T>& b" (binary_expression) "TVec2<T" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& b" (&) "&" (identifier) "b" ()) ")" (;) "" (compound_statement) "{\n return TVec2<T>(f / b.x(), f / b.y());\n}" ({) "{" (return_statement) "return TVec2<T>(f / b.x(), f / b.y());" (return) "return" (binary_expression) "TVec2<T>(f / b.x(), f / b.y())" (binary_expression) "TVec2<T" (identifier) "TVec2" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(f / b.x(), f / b.y())" (() "(" (comma_expression) "f / b.x(), f / b.y()" (binary_expression) "f / b.x()" (identifier) "f" (/) "/" (call_expression) "b.x()" (field_expression) "b.x" (identifier) "b" (.) "." (field_identifier) "x" (argument_list) "()" (() "(" ()) ")" (,) "," (binary_expression) "f / b.y()" (identifier) "f" (/) "/" (call_expression) "b.y()" (field_expression) "b.y" (identifier) "b" (.) "." (field_identifier) "y" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "/// F32 2D vector" (type_definition) "typedef TVec2<F32> Vec2;" (typedef) "typedef" (type_identifier) "TVec2" (ERROR) "<F32>" (<) "<" (type_identifier) "F32" (>) ">" (type_identifier) "Vec2" (;) ";" (expression_statement) "static_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size");" (call_expression) "static_assert(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size")" (identifier) "static_assert" (argument_list) "(sizeof(Vec2) == sizeof(F32) * 2, "Incorrect size")" (() "(" (binary_expression) "sizeof(Vec2) == sizeof(F32) * 2" (sizeof_expression) "sizeof(Vec2)" (sizeof) "sizeof" (parenthesized_expression) "(Vec2)" (() "(" (identifier) "Vec2" ()) ")" (==) "==" (binary_expression) "sizeof(F32) * 2" (sizeof_expression) "sizeof(F32)" (sizeof) "sizeof" (parenthesized_expression) "(F32)" (() "(" (identifier) "F32" ()) ")" (*) "*" (number_literal) "2" (,) "," (string_literal) ""Incorrect size"" (") """ (string_content) "Incorrect size" (") """ ()) ")" (;) ";" (comment) "/// Half float 2D vector" (type_definition) "typedef TVec2<F16> HVec2;" (typedef) "typedef" (type_identifier) "TVec2" (ERROR) "<F16>" (<) "<" (type_identifier) "F16" (>) ">" (type_identifier) "HVec2" (;) ";" (comment) "/// 32bit signed integer 2D vector " (type_definition) "typedef TVec2<I32> IVec2;" (typedef) "typedef" (type_identifier) "TVec2" (ERROR) "<I32>" (<) "<" (type_identifier) "I32" (>) ">" (type_identifier) "IVec2" (;) ";" (comment) "/// 32bit unsigned integer 2D vector " (type_definition) "typedef TVec2<U32> UVec2;" (typedef) "typedef" (type_identifier) "TVec2" (ERROR) "<U32>" (<) "<" (type_identifier) "U32" (>) ">" (type_identifier) "UVec2" (;) ";" (comment) "/// @}" (}) "}" (comment) "// end namespace anki" (#endif) "#endif"
717
43
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 21.51, "nodes": 479, "errors": 0, "source_hash": "ff29e29e06c20d00188c84363182c500f08aceb88265e72099e62553064083c7", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ANKI_MATH_VEC2_H\n#define ANKI_MATH_VEC2_H\n\n#include \"anki/math/CommonIncludes.h\"\n#include \"anki/math/Vec.h\"\n\nnamespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n\t///@}\n\npublic:\n\tusing Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n\t/// @name Constructors\n\t/// @{\n\texplicit TVec2()\n\t\t: Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n\treturn b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n\treturn b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, \"Incorrect size\");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n} // end namespace anki\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 478], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "ANKI_MATH_VEC2_H", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define ANKI_MATH_VEC2_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "ANKI_MATH_VEC2_H", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"anki/math/CommonIncludes.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"anki/math/CommonIncludes.h\"", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 37}}, {"id": 9, "type": "preproc_include", "text": "#include \"anki/math/Vec.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"anki/math/Vec.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 26}}, {"id": 12, "type": "function_definition", "text": "namespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n\t///@}\n\npublic:\n\tusing Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n\t/// @name Constructors\n\t/// @{\n\texplicit TVec2()\n\t\t: Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n\treturn b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n\treturn b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, \"Incorrect size\");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 14, "type": "identifier", "text": "anki", "parent": 12, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 15, "type": "binary_expression", "text": "template<typename T>\nclass", "parent": 12, "children": [16, 20, 22], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 5}}, {"id": 16, "type": "binary_expression", "text": "template<typename", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 17}}, {"id": 17, "type": "identifier", "text": "template", "parent": 16, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 18, "type": "<", "text": "<", "parent": 16, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 19, "type": "identifier", "text": "typename", "parent": 16, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 17}}, {"id": 20, "type": "ERROR", "text": "T", "parent": 15, "children": [21], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 21, "type": "identifier", "text": "T", "parent": 20, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 22, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 20}}, {"id": 23, "type": "comma_expression", "text": "TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)", "parent": 12, "children": [24, 30], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 23, "column": 56}}, {"id": 24, "type": "binary_expression", "text": "TVec2: public TVec<T", "parent": 23, "children": [25, 26, 28, 29], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 26}}, {"id": 25, "type": "identifier", "text": "TVec2", "parent": 24, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 11}}, {"id": 26, "type": "ERROR", "text": ": public TVec", "parent": 24, "children": [27], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 24}}, {"id": 27, "type": "identifier", "text": "TVec", "parent": 26, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 24}}, {"id": 28, "type": "<", "text": "<", "parent": 24, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 25}}, {"id": 29, "type": "identifier", "text": "T", "parent": 24, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 26}}, {"id": 30, "type": "comma_expression", "text": "2, Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)", "parent": 23, "children": [31, 32], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 23, "column": 56}}, {"id": 31, "type": "number_literal", "text": "2", "parent": 30, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 32, "type": "comma_expression", "text": "Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)", "parent": 30, "children": [33, 37], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 23, "column": 56}}, {"id": 33, "type": "binary_expression", "text": "Array<T", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 38}}, {"id": 34, "type": "identifier", "text": "Array", "parent": 33, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 36}}, {"id": 35, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 37}}, {"id": 36, "type": "identifier", "text": "T", "parent": 33, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 38}}, {"id": 37, "type": "binary_expression", "text": "2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b)", "parent": 32, "children": [38, 61, 62], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 23, "column": 56}}, {"id": 38, "type": "binary_expression", "text": "2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y", "parent": 37, "children": [39, 57, 59, 60], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 23, "column": 15}}, {"id": 39, "type": "binary_expression", "text": "2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend", "parent": 38, "children": [40, 53, 55, 56], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 23, "column": 7}}, {"id": 40, "type": "binary_expression", "text": "2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename", "parent": 39, "children": [41, 51, 52], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 22, "column": 18}}, {"id": 41, "type": "binary_expression", "text": "2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate", "parent": 40, "children": [42, 46, 47], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 22, "column": 9}}, {"id": 42, "type": "binary_expression", "text": "2>, TVec2", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 49}}, {"id": 43, "type": "number_literal", "text": "2", "parent": 42, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 41}}, {"id": 44, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 42}}, {"id": 45, "type": "identifier", "text": "TVec2", "parent": 42, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 49}}, {"id": 46, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 50}}, {"id": 47, "type": "binary_expression", "text": "T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate", "parent": 41, "children": [48, 49, 50], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 22, "column": 9}}, {"id": 48, "type": "identifier", "text": "T", "parent": 47, "children": [], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 51}}, {"id": 49, "type": ">>", "text": ">>", "parent": 47, "children": [], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 53}}, {"id": 50, "type": "identifier", "text": "template", "parent": 47, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 51, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 52, "type": "identifier", "text": "typename", "parent": 40, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 18}}, {"id": 53, "type": "ERROR", "text": "Y", "parent": 39, "children": [54], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 54, "type": "identifier", "text": "Y", "parent": 53, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 55, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 56, "type": "identifier", "text": "friend", "parent": 39, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 57, "type": "ERROR", "text": "TVec2", "parent": 38, "children": [58], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 13}}, {"id": 58, "type": "identifier", "text": "TVec2", "parent": 57, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 13}}, {"id": 59, "type": "<", "text": "<", "parent": 38, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 60, "type": "identifier", "text": "Y", "parent": 38, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 61, "type": ">", "text": ">", "parent": 37, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 62, "type": "binary_expression", "text": "operator+(const Y f, const TVec2<Y>& b)", "parent": 37, "children": [63, 64, 65], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 56}}, {"id": 63, "type": "identifier", "text": "operator", "parent": 62, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 25}}, {"id": 64, "type": "+", "text": "+", "parent": 62, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 65, "type": "parenthesized_expression", "text": "(const Y f, const TVec2<Y>& b)", "parent": 62, "children": [66, 71], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 56}}, {"id": 66, "type": "ERROR", "text": "const Y f, const", "parent": 65, "children": [67], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 43}}, {"id": 67, "type": "type_descriptor", "text": "const Y f, const", "parent": 66, "children": [68, 69], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 43}}, {"id": 68, "type": "type_identifier", "text": "Y", "parent": 67, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 69, "type": "ERROR", "text": "f,", "parent": 67, "children": [70], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 37}}, {"id": 70, "type": "identifier", "text": "f", "parent": 69, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 36}}, {"id": 71, "type": "binary_expression", "text": "TVec2<Y>& b", "parent": 65, "children": [72, 76, 77], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 55}}, {"id": 72, "type": "binary_expression", "text": "TVec2<Y", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 51}}, {"id": 73, "type": "identifier", "text": "TVec2", "parent": 72, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 49}}, {"id": 74, "type": "<", "text": "<", "parent": 72, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 50}}, {"id": 75, "type": "identifier", "text": "Y", "parent": 72, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 51}}, {"id": 76, "type": ">", "text": ">", "parent": 71, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 52}}, {"id": 77, "type": "pointer_expression", "text": "& b", "parent": 71, "children": [78], "start_point": {"row": 23, "column": 52}, "end_point": {"row": 23, "column": 55}}, {"id": 78, "type": "identifier", "text": "b", "parent": 77, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 55}}, {"id": 79, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y> operator-(const Y f, const TVec2<Y>& b)", "parent": 12, "children": [80, 94, 95], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 25, "column": 56}}, {"id": 80, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y", "parent": 79, "children": [81, 90, 92, 93], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 25, "column": 15}}, {"id": 81, "type": "binary_expression", "text": "template<typename Y>\n\tfriend", "parent": 80, "children": [82, 86, 88, 89], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 82, "type": "binary_expression", "text": "template<typename", "parent": 81, "children": [83, 84, 85], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 18}}, {"id": 83, "type": "identifier", "text": "template", "parent": 82, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 84, "type": "<", "text": "<", "parent": 82, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 85, "type": "identifier", "text": "typename", "parent": 82, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 18}}, {"id": 86, "type": "ERROR", "text": "Y", "parent": 81, "children": [87], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 87, "type": "identifier", "text": "Y", "parent": 86, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 88, "type": ">", "text": ">", "parent": 81, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 89, "type": "identifier", "text": "friend", "parent": 81, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 90, "type": "ERROR", "text": "TVec2", "parent": 80, "children": [91], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 91, "type": "identifier", "text": "TVec2", "parent": 90, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 92, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 93, "type": "identifier", "text": "Y", "parent": 80, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 94, "type": ">", "text": ">", "parent": 79, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 16}}, {"id": 95, "type": "binary_expression", "text": "operator-(const Y f, const TVec2<Y>& b)", "parent": 79, "children": [96, 97, 98], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 56}}, {"id": 96, "type": "identifier", "text": "operator", "parent": 95, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 25}}, {"id": 97, "type": "-", "text": "-", "parent": 95, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 98, "type": "parenthesized_expression", "text": "(const Y f, const TVec2<Y>& b)", "parent": 95, "children": [99, 104], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 56}}, {"id": 99, "type": "ERROR", "text": "const Y f, const", "parent": 98, "children": [100], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 43}}, {"id": 100, "type": "type_descriptor", "text": "const Y f, const", "parent": 99, "children": [101, 102], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 43}}, {"id": 101, "type": "type_identifier", "text": "Y", "parent": 100, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 34}}, {"id": 102, "type": "ERROR", "text": "f,", "parent": 100, "children": [103], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 37}}, {"id": 103, "type": "identifier", "text": "f", "parent": 102, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 36}}, {"id": 104, "type": "binary_expression", "text": "TVec2<Y>& b", "parent": 98, "children": [105, 109, 110], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 55}}, {"id": 105, "type": "binary_expression", "text": "TVec2<Y", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 51}}, {"id": 106, "type": "identifier", "text": "TVec2", "parent": 105, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 49}}, {"id": 107, "type": "<", "text": "<", "parent": 105, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 50}}, {"id": 108, "type": "identifier", "text": "Y", "parent": 105, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 51}}, {"id": 109, "type": ">", "text": ">", "parent": 104, "children": [], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 52}}, {"id": 110, "type": "pointer_expression", "text": "& b", "parent": 104, "children": [111], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 55}}, {"id": 111, "type": "identifier", "text": "b", "parent": 110, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 55}}, {"id": 112, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y> operator*(const Y f, const TVec2<Y>& b)", "parent": 12, "children": [113, 127, 128], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 27, "column": 56}}, {"id": 113, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y", "parent": 112, "children": [114, 123, 125, 126], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 27, "column": 15}}, {"id": 114, "type": "binary_expression", "text": "template<typename Y>\n\tfriend", "parent": 113, "children": [115, 119, 121, 122], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 27, "column": 7}}, {"id": 115, "type": "binary_expression", "text": "template<typename", "parent": 114, "children": [116, 117, 118], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 18}}, {"id": 116, "type": "identifier", "text": "template", "parent": 115, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 9}}, {"id": 117, "type": "<", "text": "<", "parent": 115, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 118, "type": "identifier", "text": "typename", "parent": 115, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 18}}, {"id": 119, "type": "ERROR", "text": "Y", "parent": 114, "children": [120], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 20}}, {"id": 120, "type": "identifier", "text": "Y", "parent": 119, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 20}}, {"id": 121, "type": ">", "text": ">", "parent": 114, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 122, "type": "identifier", "text": "friend", "parent": 114, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 7}}, {"id": 123, "type": "ERROR", "text": "TVec2", "parent": 113, "children": [124], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 13}}, {"id": 124, "type": "identifier", "text": "TVec2", "parent": 123, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 13}}, {"id": 125, "type": "<", "text": "<", "parent": 113, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 126, "type": "identifier", "text": "Y", "parent": 113, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 127, "type": ">", "text": ">", "parent": 112, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 16}}, {"id": 128, "type": "binary_expression", "text": "operator*(const Y f, const TVec2<Y>& b)", "parent": 112, "children": [129, 130, 131], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 56}}, {"id": 129, "type": "identifier", "text": "operator", "parent": 128, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 25}}, {"id": 130, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 26}}, {"id": 131, "type": "parenthesized_expression", "text": "(const Y f, const TVec2<Y>& b)", "parent": 128, "children": [132, 137], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 56}}, {"id": 132, "type": "ERROR", "text": "const Y f, const", "parent": 131, "children": [133], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 43}}, {"id": 133, "type": "type_descriptor", "text": "const Y f, const", "parent": 132, "children": [134, 135], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 43}}, {"id": 134, "type": "type_identifier", "text": "Y", "parent": 133, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 34}}, {"id": 135, "type": "ERROR", "text": "f,", "parent": 133, "children": [136], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 37}}, {"id": 136, "type": "identifier", "text": "f", "parent": 135, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 36}}, {"id": 137, "type": "binary_expression", "text": "TVec2<Y>& b", "parent": 131, "children": [138, 142, 143], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 55}}, {"id": 138, "type": "binary_expression", "text": "TVec2<Y", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 51}}, {"id": 139, "type": "identifier", "text": "TVec2", "parent": 138, "children": [], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 49}}, {"id": 140, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 27, "column": 49}, "end_point": {"row": 27, "column": 50}}, {"id": 141, "type": "identifier", "text": "Y", "parent": 138, "children": [], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 51}}, {"id": 142, "type": ">", "text": ">", "parent": 137, "children": [], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 52}}, {"id": 143, "type": "pointer_expression", "text": "& b", "parent": 137, "children": [144], "start_point": {"row": 27, "column": 52}, "end_point": {"row": 27, "column": 55}}, {"id": 144, "type": "identifier", "text": "b", "parent": 143, "children": [], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 55}}, {"id": 145, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y> operator/(const Y f, const TVec2<Y>& b)", "parent": 12, "children": [146, 160, 161], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 56}}, {"id": 146, "type": "binary_expression", "text": "template<typename Y>\n\tfriend TVec2<Y", "parent": 145, "children": [147, 156, 158, 159], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 15}}, {"id": 147, "type": "binary_expression", "text": "template<typename Y>\n\tfriend", "parent": 146, "children": [148, 152, 154, 155], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 148, "type": "binary_expression", "text": "template<typename", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 18}}, {"id": 149, "type": "identifier", "text": "template", "parent": 148, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 150, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 151, "type": "identifier", "text": "typename", "parent": 148, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 18}}, {"id": 152, "type": "ERROR", "text": "Y", "parent": 147, "children": [153], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 153, "type": "identifier", "text": "Y", "parent": 152, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 154, "type": ">", "text": ">", "parent": 147, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 155, "type": "identifier", "text": "friend", "parent": 147, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 156, "type": "ERROR", "text": "TVec2", "parent": 146, "children": [157], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 13}}, {"id": 157, "type": "identifier", "text": "TVec2", "parent": 156, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 13}}, {"id": 158, "type": "<", "text": "<", "parent": 146, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 159, "type": "identifier", "text": "Y", "parent": 146, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 160, "type": ">", "text": ">", "parent": 145, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 161, "type": "binary_expression", "text": "operator/(const Y f, const TVec2<Y>& b)", "parent": 145, "children": [162, 163, 164], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 56}}, {"id": 162, "type": "identifier", "text": "operator", "parent": 161, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 25}}, {"id": 163, "type": "/", "text": "/", "parent": 161, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 164, "type": "parenthesized_expression", "text": "(const Y f, const TVec2<Y>& b)", "parent": 161, "children": [165, 170], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 56}}, {"id": 165, "type": "ERROR", "text": "const Y f, const", "parent": 164, "children": [166], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 43}}, {"id": 166, "type": "type_descriptor", "text": "const Y f, const", "parent": 165, "children": [167, 168], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 43}}, {"id": 167, "type": "type_identifier", "text": "Y", "parent": 166, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 168, "type": "ERROR", "text": "f,", "parent": 166, "children": [169], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 37}}, {"id": 169, "type": "identifier", "text": "f", "parent": 168, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 36}}, {"id": 170, "type": "binary_expression", "text": "TVec2<Y>& b", "parent": 164, "children": [171, 175, 176], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 55}}, {"id": 171, "type": "binary_expression", "text": "TVec2<Y", "parent": 170, "children": [172, 173, 174], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 51}}, {"id": 172, "type": "identifier", "text": "TVec2", "parent": 171, "children": [], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 49}}, {"id": 173, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 29, "column": 49}, "end_point": {"row": 29, "column": 50}}, {"id": 174, "type": "identifier", "text": "Y", "parent": 171, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 51}}, {"id": 175, "type": ">", "text": ">", "parent": 170, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 52}}, {"id": 176, "type": "pointer_expression", "text": "& b", "parent": 170, "children": [177], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 55}}, {"id": 177, "type": "identifier", "text": "b", "parent": 176, "children": [], "start_point": {"row": 29, "column": 54}, "end_point": {"row": 29, "column": 55}}, {"id": 178, "type": "labeled_statement", "text": "public:\n\tusing Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;", "parent": 12, "children": [179], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 48}}, {"id": 179, "type": "ERROR", "text": "using Base = TVec<T,", "parent": 178, "children": [180, 181], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 21}}, {"id": 180, "type": "type_identifier", "text": "using", "parent": 179, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 181, "type": "init_declarator", "text": "Base = TVec<T", "parent": 179, "children": [182, 183, 184], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 20}}, {"id": 182, "type": "identifier", "text": "Base", "parent": 181, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 183, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 184, "type": "binary_expression", "text": "TVec<T", "parent": 181, "children": [185, 186, 187], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 20}}, {"id": 185, "type": "identifier", "text": "TVec", "parent": 184, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 18}}, {"id": 186, "type": "<", "text": "<", "parent": 184, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 19}}, {"id": 187, "type": "identifier", "text": "T", "parent": 184, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 188, "type": "comma_expression", "text": "2, Array<T, 2>, TVec2<T", "parent": 178, "children": [189, 190], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 45}}, {"id": 189, "type": "number_literal", "text": "2", "parent": 188, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 23}}, {"id": 190, "type": "comma_expression", "text": "Array<T, 2>, TVec2<T", "parent": 188, "children": [191, 195], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 45}}, {"id": 191, "type": "binary_expression", "text": "Array<T", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 32}}, {"id": 192, "type": "identifier", "text": "Array", "parent": 191, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 30}}, {"id": 193, "type": "<", "text": "<", "parent": 191, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 31}}, {"id": 194, "type": "identifier", "text": "T", "parent": 191, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 195, "type": "binary_expression", "text": "2>, TVec2<T", "parent": 190, "children": [196, 200, 201], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 45}}, {"id": 196, "type": "binary_expression", "text": "2>, TVec2", "parent": 195, "children": [197, 198, 199], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 43}}, {"id": 197, "type": "number_literal", "text": "2", "parent": 196, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 35}}, {"id": 198, "type": ">", "text": ">", "parent": 196, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 36}}, {"id": 199, "type": "identifier", "text": "TVec2", "parent": 196, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 43}}, {"id": 200, "type": "<", "text": "<", "parent": 195, "children": [], "start_point": {"row": 33, "column": 43}, "end_point": {"row": 33, "column": 44}}, {"id": 201, "type": "identifier", "text": "T", "parent": 195, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 45}}, {"id": 202, "type": "ERROR", "text": ">>", "parent": 178, "children": [203], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 47}}, {"id": 203, "type": ">>", "text": ">>", "parent": 202, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 47}}, {"id": 204, "type": "function_definition", "text": "explicit TVec2()\n\t\t: Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n\treturn b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f - b.x(), f - b.y());\n}", "parent": 12, "children": [205, 206, 209, 294], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 71, "column": 1}}, {"id": 205, "type": "type_identifier", "text": "explicit", "parent": 204, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 206, "type": "function_declarator", "text": "TVec2()", "parent": 204, "children": [207, 208], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 17}}, {"id": 207, "type": "identifier", "text": "TVec2", "parent": 206, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 15}}, {"id": 208, "type": "parameter_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 17}}, {"id": 209, "type": "declaration", "text": "Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n\treturn b + f;", "parent": 204, "children": [210, 290, 293], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 63, "column": 14}}, {"id": 210, "type": "macro_type_specifier", "text": "Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)", "parent": 209, "children": [211, 212, 268, 284], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 61, "column": 48}}, {"id": 211, "type": "identifier", "text": "Base", "parent": 210, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 212, "type": "ERROR", "text": ")\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};", "parent": 210, "children": [213, 220, 224, 225, 235, 243, 244, 251, 255, 256, 264], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 57, "column": 2}}, {"id": 213, "type": "type_descriptor", "text": "TVec2(const TVec2& b)", "parent": 212, "children": [214, 215], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 22}}, {"id": 214, "type": "type_identifier", "text": "TVec2", "parent": 213, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 6}}, {"id": 215, "type": "abstract_function_declarator", "text": "(const TVec2& b)", "parent": 213, "children": [216], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 22}}, {"id": 216, "type": "parameter_list", "text": "(const TVec2& b)", "parent": 215, "children": [217], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 22}}, {"id": 217, "type": "parameter_declaration", "text": "const TVec2& b", "parent": 216, "children": [218, 219], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 21}}, {"id": 218, "type": "type_identifier", "text": "TVec2", "parent": 217, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 18}}, {"id": 219, "type": "identifier", "text": "b", "parent": 217, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 220, "type": "macro_type_specifier", "text": "Base(b)", "parent": 212, "children": [221, 222], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 221, "type": "identifier", "text": "Base", "parent": 220, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 222, "type": "type_descriptor", "text": "b", "parent": 220, "children": [223], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 223, "type": "type_identifier", "text": "b", "parent": 222, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 224, "type": "type_identifier", "text": "explicit", "parent": 212, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 225, "type": "type_descriptor", "text": "TVec2(const T x_, const T y_)", "parent": 212, "children": [226, 227], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 39}}, {"id": 226, "type": "type_identifier", "text": "TVec2", "parent": 225, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 15}}, {"id": 227, "type": "abstract_function_declarator", "text": "(const T x_, const T y_)", "parent": 225, "children": [228], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 39}}, {"id": 228, "type": "parameter_list", "text": "(const T x_, const T y_)", "parent": 227, "children": [229, 232], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 39}}, {"id": 229, "type": "parameter_declaration", "text": "const T x_", "parent": 228, "children": [230, 231], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 26}}, {"id": 230, "type": "type_identifier", "text": "T", "parent": 229, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 231, "type": "identifier", "text": "x_", "parent": 229, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 26}}, {"id": 232, "type": "parameter_declaration", "text": "const T y_", "parent": 228, "children": [233, 234], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 38}}, {"id": 233, "type": "type_identifier", "text": "T", "parent": 232, "children": [], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 35}}, {"id": 234, "type": "identifier", "text": "y_", "parent": 232, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 38}}, {"id": 235, "type": "type_descriptor", "text": "Base(x_, y_)", "parent": 212, "children": [236, 237], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 16}}, {"id": 236, "type": "type_identifier", "text": "Base", "parent": 235, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 237, "type": "abstract_function_declarator", "text": "(x_, y_)", "parent": 235, "children": [238], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 238, "type": "parameter_list", "text": "(x_, y_)", "parent": 237, "children": [239, 241], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 239, "type": "parameter_declaration", "text": "x_", "parent": 238, "children": [240], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 11}}, {"id": 240, "type": "type_identifier", "text": "x_", "parent": 239, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 11}}, {"id": 241, "type": "parameter_declaration", "text": "y_", "parent": 238, "children": [242], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 15}}, {"id": 242, "type": "type_identifier", "text": "y_", "parent": 241, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 15}}, {"id": 243, "type": "type_identifier", "text": "explicit", "parent": 212, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 9}}, {"id": 244, "type": "type_descriptor", "text": "TVec2(const T f)", "parent": 212, "children": [245, 246], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 26}}, {"id": 245, "type": "type_identifier", "text": "TVec2", "parent": 244, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 15}}, {"id": 246, "type": "abstract_function_declarator", "text": "(const T f)", "parent": 244, "children": [247], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 26}}, {"id": 247, "type": "parameter_list", "text": "(const T f)", "parent": 246, "children": [248], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 26}}, {"id": 248, "type": "parameter_declaration", "text": "const T f", "parent": 247, "children": [249, 250], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 25}}, {"id": 249, "type": "type_identifier", "text": "T", "parent": 248, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 250, "type": "identifier", "text": "f", "parent": 248, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 251, "type": "macro_type_specifier", "text": "Base(f)", "parent": 212, "children": [252, 253], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 11}}, {"id": 252, "type": "identifier", "text": "Base", "parent": 251, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 253, "type": "type_descriptor", "text": "f", "parent": 251, "children": [254], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 254, "type": "type_identifier", "text": "f", "parent": 253, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 255, "type": "type_identifier", "text": "explicit", "parent": 212, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 256, "type": "type_descriptor", "text": "TVec2(const T arr[])", "parent": 212, "children": [257, 258], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 30}}, {"id": 257, "type": "type_identifier", "text": "TVec2", "parent": 256, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 15}}, {"id": 258, "type": "abstract_function_declarator", "text": "(const T arr[])", "parent": 256, "children": [259], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 30}}, {"id": 259, "type": "parameter_list", "text": "(const T arr[])", "parent": 258, "children": [260], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 30}}, {"id": 260, "type": "parameter_declaration", "text": "const T arr[]", "parent": 259, "children": [261, 262], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 29}}, {"id": 261, "type": "type_identifier", "text": "T", "parent": 260, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 23}}, {"id": 262, "type": "array_declarator", "text": "arr[]", "parent": 260, "children": [263], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 29}}, {"id": 263, "type": "identifier", "text": "arr", "parent": 262, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 27}}, {"id": 264, "type": "macro_type_specifier", "text": "Base(arr)", "parent": 212, "children": [265, 266], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 13}}, {"id": 265, "type": "identifier", "text": "Base", "parent": 264, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 266, "type": "type_descriptor", "text": "arr", "parent": 264, "children": [267], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 12}}, {"id": 267, "type": "type_identifier", "text": "arr", "parent": 266, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 12}}, {"id": 268, "type": "type_descriptor", "text": "template<typename T>\nTVec2<T> operator+(const T f, const", "parent": 210, "children": [269, 270, 281], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 35}}, {"id": 269, "type": "type_identifier", "text": "template", "parent": 268, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 270, "type": "ERROR", "text": "<typename T>\nTVec2<T> operator+(", "parent": 268, "children": [271, 272, 273, 274, 275, 276, 277, 278, 279, 280], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 61, "column": 19}}, {"id": 271, "type": "<", "text": "<", "parent": 270, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 272, "type": "identifier", "text": "typename", "parent": 270, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 17}}, {"id": 273, "type": "identifier", "text": "T", "parent": 270, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 274, "type": ">", "text": ">", "parent": 270, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 275, "type": "identifier", "text": "TVec2", "parent": 270, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 5}}, {"id": 276, "type": "<", "text": "<", "parent": 270, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 6}}, {"id": 277, "type": "identifier", "text": "T", "parent": 270, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 7}}, {"id": 278, "type": ">", "text": ">", "parent": 270, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 279, "type": "identifier", "text": "operator", "parent": 270, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 17}}, {"id": 280, "type": "+", "text": "+", "parent": 270, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 18}}, {"id": 281, "type": "ERROR", "text": "T f,", "parent": 268, "children": [282, 283], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 29}}, {"id": 282, "type": "identifier", "text": "T", "parent": 281, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 26}}, {"id": 283, "type": "identifier", "text": "f", "parent": 281, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 28}}, {"id": 284, "type": "ERROR", "text": "TVec2<T>& b", "parent": 210, "children": [285, 286, 287, 288, 289], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 47}}, {"id": 285, "type": "identifier", "text": "TVec2", "parent": 284, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 41}}, {"id": 286, "type": "<", "text": "<", "parent": 284, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 42}}, {"id": 287, "type": "identifier", "text": "T", "parent": 284, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 43}}, {"id": 288, "type": ">", "text": ">", "parent": 284, "children": [], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 44}}, {"id": 289, "type": "identifier", "text": "b", "parent": 284, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 47}}, {"id": 290, "type": "ERROR", "text": "{\n\treturn b +", "parent": 209, "children": [291, 292], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 11}}, {"id": 291, "type": "identifier", "text": "b", "parent": 290, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 292, "type": "+", "text": "+", "parent": 290, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 11}}, {"id": 293, "type": "identifier", "text": "f", "parent": 209, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 13}}, {"id": 294, "type": "ERROR", "text": "template<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)", "parent": 204, "children": [295, 296, 308, 309, 310, 311, 312, 313], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 48}}, {"id": 295, "type": "type_identifier", "text": "template", "parent": 294, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 296, "type": "ERROR", "text": "<typename T>\nTVec2<T> operator-(const T", "parent": 294, "children": [297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 68, "column": 26}}, {"id": 297, "type": "<", "text": "<", "parent": 296, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 298, "type": "identifier", "text": "typename", "parent": 296, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 17}}, {"id": 299, "type": "identifier", "text": "T", "parent": 296, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 19}}, {"id": 300, "type": ">", "text": ">", "parent": 296, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 20}}, {"id": 301, "type": "identifier", "text": "TVec2", "parent": 296, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 5}}, {"id": 302, "type": "<", "text": "<", "parent": 296, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 6}}, {"id": 303, "type": "identifier", "text": "T", "parent": 296, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 304, "type": ">", "text": ">", "parent": 296, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 8}}, {"id": 305, "type": "identifier", "text": "operator", "parent": 296, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 17}}, {"id": 306, "type": "-", "text": "-", "parent": 296, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 307, "type": "identifier", "text": "T", "parent": 296, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 26}}, {"id": 308, "type": "identifier", "text": "f", "parent": 294, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 28}}, {"id": 309, "type": "identifier", "text": "TVec2", "parent": 294, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 41}}, {"id": 310, "type": "<", "text": "<", "parent": 294, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 42}}, {"id": 311, "type": "identifier", "text": "T", "parent": 294, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 43}}, {"id": 312, "type": ">", "text": ">", "parent": 294, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 44}}, {"id": 313, "type": "identifier", "text": "b", "parent": 294, "children": [], "start_point": {"row": 68, "column": 46}, "end_point": {"row": 68, "column": 47}}, {"id": 314, "type": "return_statement", "text": "return TVec2<T>(f - b.x(), f - b.y());", "parent": 204, "children": [315], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 39}}, {"id": 315, "type": "binary_expression", "text": "TVec2<T>(f - b.x(), f - b.y())", "parent": 314, "children": [316, 320, 321], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 38}}, {"id": 316, "type": "binary_expression", "text": "TVec2<T", "parent": 315, "children": [317, 318, 319], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 15}}, {"id": 317, "type": "identifier", "text": "TVec2", "parent": 316, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 13}}, {"id": 318, "type": "<", "text": "<", "parent": 316, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 14}}, {"id": 319, "type": "identifier", "text": "T", "parent": 316, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 15}}, {"id": 320, "type": ">", "text": ">", "parent": 315, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 321, "type": "parenthesized_expression", "text": "(f - b.x(), f - b.y())", "parent": 315, "children": [322], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 38}}, {"id": 322, "type": "comma_expression", "text": "f - b.x(), f - b.y()", "parent": 321, "children": [323, 331], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 37}}, {"id": 323, "type": "binary_expression", "text": "f - b.x()", "parent": 322, "children": [324, 325, 326], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 26}}, {"id": 324, "type": "identifier", "text": "f", "parent": 323, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 18}}, {"id": 325, "type": "-", "text": "-", "parent": 323, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 20}}, {"id": 326, "type": "call_expression", "text": "b.x()", "parent": 323, "children": [327, 330], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 26}}, {"id": 327, "type": "field_expression", "text": "b.x", "parent": 326, "children": [328, 329], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 24}}, {"id": 328, "type": "identifier", "text": "b", "parent": 327, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 329, "type": "field_identifier", "text": "x", "parent": 327, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 330, "type": "argument_list", "text": "()", "parent": 326, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 26}}, {"id": 331, "type": "binary_expression", "text": "f - b.y()", "parent": 322, "children": [332, 333, 334], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 37}}, {"id": 332, "type": "identifier", "text": "f", "parent": 331, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 29}}, {"id": 333, "type": "-", "text": "-", "parent": 331, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 31}}, {"id": 334, "type": "call_expression", "text": "b.y()", "parent": 331, "children": [335, 338], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 37}}, {"id": 335, "type": "field_expression", "text": "b.y", "parent": 334, "children": [336, 337], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 35}}, {"id": 336, "type": "identifier", "text": "b", "parent": 335, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 33}}, {"id": 337, "type": "field_identifier", "text": "y", "parent": 335, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 338, "type": "argument_list", "text": "()", "parent": 334, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 37}}, {"id": 339, "type": "binary_expression", "text": "template<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)", "parent": 12, "children": [340, 352, 353], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 48}}, {"id": 340, "type": "binary_expression", "text": "template<typename T>\nTVec2<T", "parent": 339, "children": [341, 350, 351], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 7}}, {"id": 341, "type": "binary_expression", "text": "template<typename T>\nTVec2", "parent": 340, "children": [342, 346, 348, 349], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 5}}, {"id": 342, "type": "binary_expression", "text": "template<typename", "parent": 341, "children": [343, 344, 345], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 17}}, {"id": 343, "type": "identifier", "text": "template", "parent": 342, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 8}}, {"id": 344, "type": "<", "text": "<", "parent": 342, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 9}}, {"id": 345, "type": "identifier", "text": "typename", "parent": 342, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 17}}, {"id": 346, "type": "ERROR", "text": "T", "parent": 341, "children": [347], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 347, "type": "identifier", "text": "T", "parent": 346, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 348, "type": ">", "text": ">", "parent": 341, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 349, "type": "identifier", "text": "TVec2", "parent": 341, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 5}}, {"id": 350, "type": "<", "text": "<", "parent": 340, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 6}}, {"id": 351, "type": "identifier", "text": "T", "parent": 340, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 7}}, {"id": 352, "type": ">", "text": ">", "parent": 339, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 8}}, {"id": 353, "type": "binary_expression", "text": "operator*(const T f, const TVec2<T>& b)", "parent": 339, "children": [354, 355, 356], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 48}}, {"id": 354, "type": "identifier", "text": "operator", "parent": 353, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 17}}, {"id": 355, "type": "*", "text": "*", "parent": 353, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 356, "type": "parenthesized_expression", "text": "(const T f, const TVec2<T>& b)", "parent": 353, "children": [357, 362], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 48}}, {"id": 357, "type": "ERROR", "text": "const T f, const", "parent": 356, "children": [358], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 35}}, {"id": 358, "type": "type_descriptor", "text": "const T f, const", "parent": 357, "children": [359, 360], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 35}}, {"id": 359, "type": "type_identifier", "text": "T", "parent": 358, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 26}}, {"id": 360, "type": "ERROR", "text": "f,", "parent": 358, "children": [361], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 29}}, {"id": 361, "type": "identifier", "text": "f", "parent": 360, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 28}}, {"id": 362, "type": "binary_expression", "text": "TVec2<T>& b", "parent": 356, "children": [363, 367, 368], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 47}}, {"id": 363, "type": "binary_expression", "text": "TVec2<T", "parent": 362, "children": [364, 365, 366], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 43}}, {"id": 364, "type": "identifier", "text": "TVec2", "parent": 363, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 41}}, {"id": 365, "type": "<", "text": "<", "parent": 363, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 42}}, {"id": 366, "type": "identifier", "text": "T", "parent": 363, "children": [], "start_point": {"row": 75, "column": 42}, "end_point": {"row": 75, "column": 43}}, {"id": 367, "type": ">", "text": ">", "parent": 362, "children": [], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 44}}, {"id": 368, "type": "pointer_expression", "text": "& b", "parent": 362, "children": [369], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 47}}, {"id": 369, "type": "identifier", "text": "b", "parent": 368, "children": [], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 47}}, {"id": 370, "type": "return_statement", "text": "return b * f;", "parent": 12, "children": [371], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 14}}, {"id": 371, "type": "binary_expression", "text": "b * f", "parent": 370, "children": [372, 373, 374], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 13}}, {"id": 372, "type": "identifier", "text": "b", "parent": 371, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}, {"id": 373, "type": "*", "text": "*", "parent": 371, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 374, "type": "identifier", "text": "f", "parent": 371, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 375, "type": "binary_expression", "text": "template<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)", "parent": 12, "children": [376, 388, 389], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 48}}, {"id": 376, "type": "binary_expression", "text": "template<typename T>\nTVec2<T", "parent": 375, "children": [377, 386, 387], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 7}}, {"id": 377, "type": "binary_expression", "text": "template<typename T>\nTVec2", "parent": 376, "children": [378, 382, 384, 385], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 5}}, {"id": 378, "type": "binary_expression", "text": "template<typename", "parent": 377, "children": [379, 380, 381], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 17}}, {"id": 379, "type": "identifier", "text": "template", "parent": 378, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 8}}, {"id": 380, "type": "<", "text": "<", "parent": 378, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 381, "type": "identifier", "text": "typename", "parent": 378, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 17}}, {"id": 382, "type": "ERROR", "text": "T", "parent": 377, "children": [383], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 383, "type": "identifier", "text": "T", "parent": 382, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 384, "type": ">", "text": ">", "parent": 377, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 385, "type": "identifier", "text": "TVec2", "parent": 377, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 5}}, {"id": 386, "type": "<", "text": "<", "parent": 376, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 6}}, {"id": 387, "type": "identifier", "text": "T", "parent": 376, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 388, "type": ">", "text": ">", "parent": 375, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 8}}, {"id": 389, "type": "binary_expression", "text": "operator/(const T f, const TVec2<T>& b)", "parent": 375, "children": [390, 391, 392], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 48}}, {"id": 390, "type": "identifier", "text": "operator", "parent": 389, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 17}}, {"id": 391, "type": "/", "text": "/", "parent": 389, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 392, "type": "parenthesized_expression", "text": "(const T f, const TVec2<T>& b)", "parent": 389, "children": [393, 398], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 48}}, {"id": 393, "type": "ERROR", "text": "const T f, const", "parent": 392, "children": [394], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 35}}, {"id": 394, "type": "type_descriptor", "text": "const T f, const", "parent": 393, "children": [395, 396], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 35}}, {"id": 395, "type": "type_identifier", "text": "T", "parent": 394, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 396, "type": "ERROR", "text": "f,", "parent": 394, "children": [397], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 29}}, {"id": 397, "type": "identifier", "text": "f", "parent": 396, "children": [], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 28}}, {"id": 398, "type": "binary_expression", "text": "TVec2<T>& b", "parent": 392, "children": [399, 403, 404], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 47}}, {"id": 399, "type": "binary_expression", "text": "TVec2<T", "parent": 398, "children": [400, 401, 402], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 43}}, {"id": 400, "type": "identifier", "text": "TVec2", "parent": 399, "children": [], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 41}}, {"id": 401, "type": "<", "text": "<", "parent": 399, "children": [], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 42}}, {"id": 402, "type": "identifier", "text": "T", "parent": 399, "children": [], "start_point": {"row": 82, "column": 42}, "end_point": {"row": 82, "column": 43}}, {"id": 403, "type": ">", "text": ">", "parent": 398, "children": [], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 44}}, {"id": 404, "type": "pointer_expression", "text": "& b", "parent": 398, "children": [405], "start_point": {"row": 82, "column": 44}, "end_point": {"row": 82, "column": 47}}, {"id": 405, "type": "identifier", "text": "b", "parent": 404, "children": [], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 47}}, {"id": 406, "type": "return_statement", "text": "return TVec2<T>(f / b.x(), f / b.y());", "parent": 12, "children": [407], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 39}}, {"id": 407, "type": "binary_expression", "text": "TVec2<T>(f / b.x(), f / b.y())", "parent": 406, "children": [408, 412, 413], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 38}}, {"id": 408, "type": "binary_expression", "text": "TVec2<T", "parent": 407, "children": [409, 410, 411], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 15}}, {"id": 409, "type": "identifier", "text": "TVec2", "parent": 408, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 13}}, {"id": 410, "type": "<", "text": "<", "parent": 408, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 14}}, {"id": 411, "type": "identifier", "text": "T", "parent": 408, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 15}}, {"id": 412, "type": ">", "text": ">", "parent": 407, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 413, "type": "parenthesized_expression", "text": "(f / b.x(), f / b.y())", "parent": 407, "children": [414], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 38}}, {"id": 414, "type": "comma_expression", "text": "f / b.x(), f / b.y()", "parent": 413, "children": [415, 423], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 37}}, {"id": 415, "type": "binary_expression", "text": "f / b.x()", "parent": 414, "children": [416, 417, 418], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 26}}, {"id": 416, "type": "identifier", "text": "f", "parent": 415, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 18}}, {"id": 417, "type": "/", "text": "/", "parent": 415, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 20}}, {"id": 418, "type": "call_expression", "text": "b.x()", "parent": 415, "children": [419, 422], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 26}}, {"id": 419, "type": "field_expression", "text": "b.x", "parent": 418, "children": [420, 421], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 24}}, {"id": 420, "type": "identifier", "text": "b", "parent": 419, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 22}}, {"id": 421, "type": "field_identifier", "text": "x", "parent": 419, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 24}}, {"id": 422, "type": "argument_list", "text": "()", "parent": 418, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 26}}, {"id": 423, "type": "binary_expression", "text": "f / b.y()", "parent": 414, "children": [424, 425, 426], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 37}}, {"id": 424, "type": "identifier", "text": "f", "parent": 423, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 425, "type": "/", "text": "/", "parent": 423, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 31}}, {"id": 426, "type": "call_expression", "text": "b.y()", "parent": 423, "children": [427, 430], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 37}}, {"id": 427, "type": "field_expression", "text": "b.y", "parent": 426, "children": [428, 429], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 35}}, {"id": 428, "type": "identifier", "text": "b", "parent": 427, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 33}}, {"id": 429, "type": "field_identifier", "text": "y", "parent": 427, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 35}}, {"id": 430, "type": "argument_list", "text": "()", "parent": 426, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 37}}, {"id": 431, "type": "type_definition", "text": "typedef TVec2<F32> Vec2;", "parent": 12, "children": [432, 433, 434, 438], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 24}}, {"id": 432, "type": "typedef", "text": "typedef", "parent": 431, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 433, "type": "type_identifier", "text": "TVec2", "parent": 431, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 13}}, {"id": 434, "type": "ERROR", "text": "<F32>", "parent": 431, "children": [435, 436, 437], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 18}}, {"id": 435, "type": "<", "text": "<", "parent": 434, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 14}}, {"id": 436, "type": "type_identifier", "text": "F32", "parent": 434, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 17}}, {"id": 437, "type": ">", "text": ">", "parent": 434, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 18}}, {"id": 438, "type": "type_identifier", "text": "Vec2", "parent": 431, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 23}}, {"id": 439, "type": "call_expression", "text": "static_assert(sizeof(Vec2) == sizeof(F32) * 2, \"Incorrect size\")", "parent": 12, "children": [440, 441], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 64}}, {"id": 440, "type": "identifier", "text": "static_assert", "parent": 439, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 13}}, {"id": 441, "type": "argument_list", "text": "(sizeof(Vec2) == sizeof(F32) * 2, \"Incorrect size\")", "parent": 439, "children": [442, 453], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 64}}, {"id": 442, "type": "binary_expression", "text": "sizeof(Vec2) == sizeof(F32) * 2", "parent": 441, "children": [443, 446, 447], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 45}}, {"id": 443, "type": "sizeof_expression", "text": "sizeof(Vec2)", "parent": 442, "children": [444], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 26}}, {"id": 444, "type": "parenthesized_expression", "text": "(Vec2)", "parent": 443, "children": [445], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 26}}, {"id": 445, "type": "identifier", "text": "Vec2", "parent": 444, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 25}}, {"id": 446, "type": "==", "text": "==", "parent": 442, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 29}}, {"id": 447, "type": "binary_expression", "text": "sizeof(F32) * 2", "parent": 442, "children": [448, 451, 452], "start_point": {"row": 89, "column": 30}, "end_point": {"row": 89, "column": 45}}, {"id": 448, "type": "sizeof_expression", "text": "sizeof(F32)", "parent": 447, "children": [449], "start_point": {"row": 89, "column": 30}, "end_point": {"row": 89, "column": 41}}, {"id": 449, "type": "parenthesized_expression", "text": "(F32)", "parent": 448, "children": [450], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 41}}, {"id": 450, "type": "identifier", "text": "F32", "parent": 449, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 40}}, {"id": 451, "type": "*", "text": "*", "parent": 447, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 43}}, {"id": 452, "type": "number_literal", "text": "2", "parent": 447, "children": [], "start_point": {"row": 89, "column": 44}, "end_point": {"row": 89, "column": 45}}, {"id": 453, "type": "string_literal", "text": "\"Incorrect size\"", "parent": 441, "children": [], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 63}}, {"id": 454, "type": "type_definition", "text": "typedef TVec2<F16> HVec2;", "parent": 12, "children": [455, 456, 457, 461], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 25}}, {"id": 455, "type": "typedef", "text": "typedef", "parent": 454, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 456, "type": "type_identifier", "text": "TVec2", "parent": 454, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 13}}, {"id": 457, "type": "ERROR", "text": "<F16>", "parent": 454, "children": [458, 459, 460], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 18}}, {"id": 458, "type": "<", "text": "<", "parent": 457, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 14}}, {"id": 459, "type": "type_identifier", "text": "F16", "parent": 457, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 17}}, {"id": 460, "type": ">", "text": ">", "parent": 457, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 18}}, {"id": 461, "type": "type_identifier", "text": "HVec2", "parent": 454, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 24}}, {"id": 462, "type": "type_definition", "text": "typedef TVec2<I32> IVec2;", "parent": 12, "children": [463, 464, 465, 469], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 25}}, {"id": 463, "type": "typedef", "text": "typedef", "parent": 462, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 464, "type": "type_identifier", "text": "TVec2", "parent": 462, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 13}}, {"id": 465, "type": "ERROR", "text": "<I32>", "parent": 462, "children": [466, 467, 468], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 18}}, {"id": 466, "type": "<", "text": "<", "parent": 465, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 14}}, {"id": 467, "type": "type_identifier", "text": "I32", "parent": 465, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 17}}, {"id": 468, "type": ">", "text": ">", "parent": 465, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 18}}, {"id": 469, "type": "type_identifier", "text": "IVec2", "parent": 462, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 24}}, {"id": 470, "type": "type_definition", "text": "typedef TVec2<U32> UVec2;", "parent": 12, "children": [471, 472, 473, 477], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 25}}, {"id": 471, "type": "typedef", "text": "typedef", "parent": 470, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 472, "type": "type_identifier", "text": "TVec2", "parent": 470, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 13}}, {"id": 473, "type": "ERROR", "text": "<U32>", "parent": 470, "children": [474, 475, 476], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 18}}, {"id": 474, "type": "<", "text": "<", "parent": 473, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 14}}, {"id": 475, "type": "type_identifier", "text": "U32", "parent": 473, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 17}}, {"id": 476, "type": ">", "text": ">", "parent": 473, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 18}}, {"id": 477, "type": "type_identifier", "text": "UVec2", "parent": 470, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 24}}, {"id": 478, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 204, 206, 215, 227, 237, 246, 258], "variables": [209, 217, 229, 232, 239, 241, 248, 260, 431, 454, 462, 470], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [15, 16, 23, 24, 30, 32, 33, 37, 38, 39, 40, 41, 42, 47, 62, 65, 71, 72, 77, 79, 80, 81, 82, 95, 98, 104, 105, 110, 112, 113, 114, 115, 128, 131, 137, 138, 143, 145, 146, 147, 148, 161, 164, 170, 171, 176, 184, 188, 190, 191, 195, 196, 315, 316, 321, 322, 323, 326, 327, 331, 334, 335, 339, 340, 341, 342, 353, 356, 362, 363, 368, 371, 375, 376, 377, 378, 389, 392, 398, 399, 404, 407, 408, 413, 414, 415, 418, 419, 423, 426, 427, 439, 442, 443, 444, 447, 448, 449], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 17, 19, 21, 25, 27, 29, 34, 36, 45, 48, 50, 52, 54, 56, 58, 60, 63, 68, 70, 73, 75, 78, 83, 85, 87, 89, 91, 93, 96, 101, 103, 106, 108, 111, 116, 118, 120, 122, 124, 126, 129, 134, 136, 139, 141, 144, 149, 151, 153, 155, 157, 159, 162, 167, 169, 172, 174, 177, 180, 182, 185, 187, 192, 194, 199, 201, 205, 207, 210, 211, 214, 218, 219, 220, 221, 223, 224, 226, 230, 231, 233, 234, 236, 240, 242, 243, 245, 249, 250, 251, 252, 254, 255, 257, 261, 263, 264, 265, 267, 269, 272, 273, 275, 277, 279, 282, 283, 285, 287, 289, 291, 293, 295, 298, 299, 301, 303, 305, 307, 308, 309, 311, 313, 317, 319, 324, 328, 329, 332, 336, 337, 343, 345, 347, 349, 351, 354, 359, 361, 364, 366, 369, 372, 374, 379, 381, 383, 385, 387, 390, 395, 397, 400, 402, 405, 409, 411, 416, 420, 421, 424, 428, 429, 433, 436, 438, 440, 445, 450, 456, 459, 461, 464, 467, 469, 472, 475, 477, 478], "returns": [314, 370, 406], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 31, 43, 189, 197, 452, 453], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "TVec2:", "text_snippet": "namespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: publi"}, {"node_id": 204, "universal_type": "function", "name": "unknown", "text_snippet": "explicit TVec2()\n\t\t: Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_,"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "TVec2()"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "(const TVec2& b)"}, {"node_id": 227, "universal_type": "function", "name": "unknown", "text_snippet": "(const T x_, const T y_)"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "(x_, y_)"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "(const T f)"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "(const T arr[])"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"anki/math/CommonIncludes.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"anki/math/Vec.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Copyright (C) 2014, <NAME>.\n// All rights reserved.\n// Code licensed under the BSD License.\n// http://www.anki3d.org/LICENSE\n\n#ifndef ANKI_MATH_VEC2_H\n#define ANKI_MATH_VEC2_H\n\n#include \"anki/math/CommonIncludes.h\"\n#include \"anki/math/Vec.h\"\n\nnamespace anki {\n\n/// @addtogroup math\n/// @{\n\n/// 2D vector\ntemplate<typename T>\nclass TVec2: public TVec<T, 2, Array<T, 2>, TVec2<T>>\n{\n\t/// @name Friends\n\t/// @{\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator+(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator-(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator*(const Y f, const TVec2<Y>& b);\n\ttemplate<typename Y>\n\tfriend TVec2<Y> operator/(const Y f, const TVec2<Y>& b);\n\t///@}\n\npublic:\n\tusing Base = TVec<T, 2, Array<T, 2>, TVec2<T>>;\n\n\t/// @name Constructors\n\t/// @{\n\texplicit TVec2()\n\t\t: Base()\n\t{}\n\n\tTVec2(const TVec2& b)\n\t\t: Base(b)\n\t{}\n\n\texplicit TVec2(const T x_, const T y_)\n\t\t: Base(x_, y_)\n\t{}\n\n\texplicit TVec2(const T f)\n\t\t: Base(f)\n\t{}\n\n\texplicit TVec2(const T arr[])\n\t\t: Base(arr)\n\t{}\n\t/// @}\n};\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator+(const T f, const TVec2<T>& b)\n{\n\treturn b + f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator-(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f - b.x(), f - b.y());\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator*(const T f, const TVec2<T>& b)\n{\n\treturn b * f;\n}\n\n/// @memberof TVec2\ntemplate<typename T>\nTVec2<T> operator/(const T f, const TVec2<T>& b)\n{\n\treturn TVec2<T>(f / b.x(), f / b.y());\n}\n\n/// F32 2D vector\ntypedef TVec2<F32> Vec2;\nstatic_assert(sizeof(Vec2) == sizeof(F32) * 2, \"Incorrect size\");\n\n/// Half float 2D vector\ntypedef TVec2<F16> HVec2;\n\n/// 32bit signed integer 2D vector \ntypedef TVec2<I32> IVec2;\n\n/// 32bit unsigned integer 2D vector \ntypedef TVec2<U32> UVec2;\n\n/// @}\n\n} // end namespace anki\n\n#endif\n"}
81,038
c
// // STKUtility.h // StickerFactory // // Created by <NAME> on 26.06.15. // Copyright (c) 2015 908 Inc. All rights reserved. // @import UIKit; @interface STKUtility : NSObject + (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message; + (NSString*)stickerIdWithMessage: (NSString*)message; + (NSString*)scaleString; + (NSString*)maxDensity; //Colors + (UIColor*)defaultOrangeColor; + (UIColor*)defaultGreyColor; + (UIColor*)defaultPlaceholderGrayColor; + (UIColor*)defaultBlueColor; + (NSBundle*)getResourceBundle; void STKLog(NSString* format, ...); @end @interface NSString(MD5String) - (NSString *)MD5Digest; @end //--------Custom Bundle---------- @interface NSBundle (CustomBundle) + (NSBundle*)stkBundle; + (NSArray*)loadNibNamed: (NSString*)name owner: (id)owner options: (NSDictionary*)options; @end @interface UIViewController (CustomBundle) + (instancetype)viewControllerFromNib: (NSString*)nibNameOrNil; @end
25.91
35
(translation_unit) "//\n// STKUtility.h\n// StickerFactory\n//\n// Created by <NAME> on 26.06.15.\n// Copyright (c) 2015 908 Inc. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STKUtility : NSObject\n\n+ (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message;\n+ (NSString*)stickerIdWithMessage: (NSString*)message;\n\n+ (NSString*)scaleString;\n+ (NSString*)maxDensity;\n\n//Colors\n+ (UIColor*)defaultOrangeColor;\n+ (UIColor*)defaultGreyColor;\n+ (UIColor*)defaultPlaceholderGrayColor;\n+ (UIColor*)defaultBlueColor;\n\n+ (NSBundle*)getResourceBundle;\nvoid STKLog(NSString* format, ...);\n\n\n@end\n\n\n@interface NSString(MD5String)\n- (NSString *)MD5Digest;\n@end\n\n\n//--------Custom Bundle----------\n\n@interface NSBundle (CustomBundle)\n+ (NSBundle*)stkBundle;\n\n+ (NSArray*)loadNibNamed: (NSString*)name owner: (id)owner options: (NSDictionary*)options;\n@end\n\n@interface UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib: (NSString*)nibNameOrNil;\n@end\n" (comment) "//" (comment) "// STKUtility.h" (comment) "// StickerFactory" (comment) "//" (comment) "// Created by <NAME> on 26.06.15." (comment) "// Copyright (c) 2015 908 Inc. All rights reserved." (comment) "//" (ERROR) "@" (ERROR) "@" (declaration) "import UIKit;" (type_identifier) "import" (identifier) "UIKit" (;) ";" (ERROR) "@interface STKUtility : NSObject\n\n+ (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message;\n+ (NSString*)stickerIdWithMessage: (NSString*)message" (ERROR) "@" (type_identifier) "interface" (identifier) "STKUtility" (:) ":" (identifier) "NSObject" (unary_expression) "+ (NSArray*)trimmedPackNameAndStickerNameWithMessage" (+) "+" (cast_expression) "(NSArray*)trimmedPackNameAndStickerNameWithMessage" (() "(" (type_descriptor) "NSArray*" (type_identifier) "NSArray" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "trimmedPackNameAndStickerNameWithMessage" (ERROR) ":" (:) ":" (() "(" (binary_expression) "NSString*)message;\n+ (NSString*)stickerIdWithMessage" (binary_expression) "NSString*)message" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "message" (ERROR) ";" (;) ";" (+) "+" (cast_expression) "(NSString*)stickerIdWithMessage" (() "(" (type_descriptor) "NSString*" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "stickerIdWithMessage" (ERROR) ":" (:) ":" (() "(" (binary_expression) "NSString*)message" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "message" (expression_statement) ";" (;) ";" (expression_statement) "+ (NSString*)scaleString;" (unary_expression) "+ (NSString*)scaleString" (+) "+" (cast_expression) "(NSString*)scaleString" (() "(" (type_descriptor) "NSString*" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "scaleString" (;) ";" (expression_statement) "+ (NSString*)maxDensity;" (unary_expression) "+ (NSString*)maxDensity" (+) "+" (cast_expression) "(NSString*)maxDensity" (() "(" (type_descriptor) "NSString*" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "maxDensity" (;) ";" (comment) "//Colors" (expression_statement) "+ (UIColor*)defaultOrangeColor;" (unary_expression) "+ (UIColor*)defaultOrangeColor" (+) "+" (cast_expression) "(UIColor*)defaultOrangeColor" (() "(" (type_descriptor) "UIColor*" (type_identifier) "UIColor" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "defaultOrangeColor" (;) ";" (expression_statement) "+ (UIColor*)defaultGreyColor;" (unary_expression) "+ (UIColor*)defaultGreyColor" (+) "+" (cast_expression) "(UIColor*)defaultGreyColor" (() "(" (type_descriptor) "UIColor*" (type_identifier) "UIColor" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "defaultGreyColor" (;) ";" (expression_statement) "+ (UIColor*)defaultPlaceholderGrayColor;" (unary_expression) "+ (UIColor*)defaultPlaceholderGrayColor" (+) "+" (cast_expression) "(UIColor*)defaultPlaceholderGrayColor" (() "(" (type_descriptor) "UIColor*" (type_identifier) "UIColor" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "defaultPlaceholderGrayColor" (;) ";" (expression_statement) "+ (UIColor*)defaultBlueColor;" (unary_expression) "+ (UIColor*)defaultBlueColor" (+) "+" (cast_expression) "(UIColor*)defaultBlueColor" (() "(" (type_descriptor) "UIColor*" (type_identifier) "UIColor" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "defaultBlueColor" (;) ";" (expression_statement) "+ (NSBundle*)getResourceBundle;" (unary_expression) "+ (NSBundle*)getResourceBundle" (+) "+" (cast_expression) "(NSBundle*)getResourceBundle" (() "(" (type_descriptor) "NSBundle*" (type_identifier) "NSBundle" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "getResourceBundle" (;) ";" (declaration) "void STKLog(NSString* format, ...);" (primitive_type) "void" (function_declarator) "STKLog(NSString* format, ...)" (identifier) "STKLog" (parameter_list) "(NSString* format, ...)" (() "(" (parameter_declaration) "NSString* format" (type_identifier) "NSString" (pointer_declarator) "* format" (*) "*" (identifier) "format" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (ERROR) "@end\n\n\n@interface NSString(MD5String)" (ERROR) "@" (type_identifier) "end" (ERROR) "@interface" (ERROR) "@" (identifier) "interface" (function_declarator) "NSString(MD5String)" (identifier) "NSString" (parameter_list) "(MD5String)" (() "(" (identifier) "MD5String" ()) ")" (expression_statement) "- (NSString *)MD5Digest;" (unary_expression) "- (NSString *)MD5Digest" (-) "-" (cast_expression) "(NSString *)MD5Digest" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "MD5Digest" (;) ";" (ERROR) "@end\n\n\n//--------Custom Bundle----------\n\n@interface NSBundle (CustomBundle)" (ERROR) "@" (type_identifier) "end" (comment) "//--------Custom Bundle----------" (ERROR) "@interface" (ERROR) "@" (identifier) "interface" (function_declarator) "NSBundle (CustomBundle)" (identifier) "NSBundle" (parameter_list) "(CustomBundle)" (() "(" (identifier) "CustomBundle" ()) ")" (expression_statement) "+ (NSBundle*)stkBundle;" (unary_expression) "+ (NSBundle*)stkBundle" (+) "+" (cast_expression) "(NSBundle*)stkBundle" (() "(" (type_descriptor) "NSBundle*" (type_identifier) "NSBundle" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "stkBundle" (;) ";" (ERROR) "+ (NSArray*)loadNibNamed: (NSString*)name owner: (id)owner options: (NSDictionary*)options;\n@end\n\n@interface UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib: (NSString*)nibNameOrNil;\n@end" (unary_expression) "+ (NSArray*)loadNibNamed" (+) "+" (cast_expression) "(NSArray*)loadNibNamed" (() "(" (type_descriptor) "NSArray*" (type_identifier) "NSArray" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "loadNibNamed" (ERROR) ":" (:) ":" (() "(" (call_expression) "NSString*)name owner: (id)" (binary_expression) "NSString*)name owner" (identifier) "NSString" (*) "*" (ERROR) ")name" ()) ")" (identifier) "name" (identifier) "owner" (ERROR) ":" (:) ":" (argument_list) "(id)" (() "(" (identifier) "id" ()) ")" (ERROR) "owner options:" (identifier) "owner" (identifier) "options" (:) ":" (() "(" (ERROR) "NSDictionary*)options;\n@end\n\n@interface" (binary_expression) "NSDictionary*)options" (identifier) "NSDictionary" (*) "*" (ERROR) ")" ()) ")" (identifier) "options" (;) ";" (ERROR) "@" (identifier) "end" (ERROR) "@" (identifier) "interface" (binary_expression) "UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib" (call_expression) "UIViewController (CustomBundle)" (identifier) "UIViewController" (argument_list) "(CustomBundle)" (() "(" (identifier) "CustomBundle" ()) ")" (+) "+" (cast_expression) "(instancetype)viewControllerFromNib" (() "(" (type_descriptor) "instancetype" (type_identifier) "instancetype" ()) ")" (identifier) "viewControllerFromNib" (ERROR) ":" (:) ":" (() "(" (binary_expression) "NSString*)nibNameOrNil" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "nibNameOrNil" (;) ";" (ERROR) "@" (identifier) "end"
283
29
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.91, "nodes": 177, "errors": 0, "source_hash": "2697a838e2eb2b3939426d26a1f60dd2c346ec3356aebfed60eb9ebd0b58b488", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 2, "type": "declaration", "text": "import UIKit;", "parent": null, "children": [3], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 14}}, {"id": 3, "type": "identifier", "text": "UIKit", "parent": 2, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 4, "type": "ERROR", "text": "@interface STKUtility : NSObject\n\n+ (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message;\n+ (NSString*)stickerIdWithMessage: (NSString*)message", "parent": null, "children": [5, 6, 7, 8, 9, 17, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 53}}, {"id": 5, "type": "ERROR", "text": "@", "parent": 4, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 4, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "identifier", "text": "STKUtility", "parent": 4, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 21}}, {"id": 8, "type": "identifier", "text": "NSObject", "parent": 4, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 32}}, {"id": 9, "type": "unary_expression", "text": "+ (NSArray*)trimmedPackNameAndStickerNameWithMessage", "parent": 4, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 52}}, {"id": 10, "type": "+", "text": "+", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "cast_expression", "text": "(NSArray*)trimmedPackNameAndStickerNameWithMessage", "parent": 9, "children": [12, 16], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 52}}, {"id": 12, "type": "type_descriptor", "text": "NSArray*", "parent": 11, "children": [13, 14], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 11}}, {"id": 13, "type": "type_identifier", "text": "NSArray", "parent": 12, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 10}}, {"id": 14, "type": "abstract_pointer_declarator", "text": "*", "parent": 12, "children": [15], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 16, "type": "identifier", "text": "trimmedPackNameAndStickerNameWithMessage", "parent": 11, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 52}}, {"id": 17, "type": "binary_expression", "text": "NSString*)message;\n+ (NSString*)stickerIdWithMessage", "parent": 4, "children": [18, 22, 23], "start_point": {"row": 12, "column": 55}, "end_point": {"row": 13, "column": 33}}, {"id": 18, "type": "binary_expression", "text": "NSString*)message", "parent": 17, "children": [19, 20, 21], "start_point": {"row": 12, "column": 55}, "end_point": {"row": 12, "column": 72}}, {"id": 19, "type": "identifier", "text": "NSString", "parent": 18, "children": [], "start_point": {"row": 12, "column": 55}, "end_point": {"row": 12, "column": 63}}, {"id": 20, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 12, "column": 63}, "end_point": {"row": 12, "column": 64}}, {"id": 21, "type": "identifier", "text": "message", "parent": 18, "children": [], "start_point": {"row": 12, "column": 65}, "end_point": {"row": 12, "column": 72}}, {"id": 22, "type": "+", "text": "+", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 23, "type": "cast_expression", "text": "(NSString*)stickerIdWithMessage", "parent": 17, "children": [24, 28], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 33}}, {"id": 24, "type": "type_descriptor", "text": "NSString*", "parent": 23, "children": [25, 26], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 12}}, {"id": 25, "type": "type_identifier", "text": "NSString", "parent": 24, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 11}}, {"id": 26, "type": "abstract_pointer_declarator", "text": "*", "parent": 24, "children": [27], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 28, "type": "identifier", "text": "stickerIdWithMessage", "parent": 23, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 33}}, {"id": 29, "type": "binary_expression", "text": "NSString*)message", "parent": 4, "children": [30, 31, 32], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 53}}, {"id": 30, "type": "identifier", "text": "NSString", "parent": 29, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 44}}, {"id": 31, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 45}}, {"id": 32, "type": "identifier", "text": "message", "parent": 29, "children": [], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 53}}, {"id": 33, "type": "unary_expression", "text": "+ (NSString*)scaleString", "parent": null, "children": [34, 35], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 24}}, {"id": 34, "type": "+", "text": "+", "parent": 33, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "(NSString*)scaleString", "parent": 33, "children": [36, 40], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 24}}, {"id": 36, "type": "type_descriptor", "text": "NSString*", "parent": 35, "children": [37, 38], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 12}}, {"id": 37, "type": "type_identifier", "text": "NSString", "parent": 36, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 38, "type": "abstract_pointer_declarator", "text": "*", "parent": 36, "children": [39], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 40, "type": "identifier", "text": "scaleString", "parent": 35, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 24}}, {"id": 41, "type": "unary_expression", "text": "+ (NSString*)maxDensity", "parent": null, "children": [42, 43], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 23}}, {"id": 42, "type": "+", "text": "+", "parent": 41, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 43, "type": "cast_expression", "text": "(NSString*)maxDensity", "parent": 41, "children": [44, 48], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 23}}, {"id": 44, "type": "type_descriptor", "text": "NSString*", "parent": 43, "children": [45, 46], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 12}}, {"id": 45, "type": "type_identifier", "text": "NSString", "parent": 44, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 11}}, {"id": 46, "type": "abstract_pointer_declarator", "text": "*", "parent": 44, "children": [47], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 48, "type": "identifier", "text": "maxDensity", "parent": 43, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 23}}, {"id": 49, "type": "unary_expression", "text": "+ (UIColor*)defaultOrangeColor", "parent": null, "children": [50, 51], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 30}}, {"id": 50, "type": "+", "text": "+", "parent": 49, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 51, "type": "cast_expression", "text": "(UIColor*)defaultOrangeColor", "parent": 49, "children": [52, 56], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 30}}, {"id": 52, "type": "type_descriptor", "text": "UIColor*", "parent": 51, "children": [53, 54], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 11}}, {"id": 53, "type": "type_identifier", "text": "UIColor", "parent": 52, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 10}}, {"id": 54, "type": "abstract_pointer_declarator", "text": "*", "parent": 52, "children": [55], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 11}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 11}}, {"id": 56, "type": "identifier", "text": "defaultOrangeColor", "parent": 51, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 30}}, {"id": 57, "type": "unary_expression", "text": "+ (UIColor*)defaultGreyColor", "parent": null, "children": [58, 59], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 28}}, {"id": 58, "type": "+", "text": "+", "parent": 57, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 59, "type": "cast_expression", "text": "(UIColor*)defaultGreyColor", "parent": 57, "children": [60, 64], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 28}}, {"id": 60, "type": "type_descriptor", "text": "UIColor*", "parent": 59, "children": [61, 62], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 11}}, {"id": 61, "type": "type_identifier", "text": "UIColor", "parent": 60, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 10}}, {"id": 62, "type": "abstract_pointer_declarator", "text": "*", "parent": 60, "children": [63], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 64, "type": "identifier", "text": "defaultGreyColor", "parent": 59, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 28}}, {"id": 65, "type": "unary_expression", "text": "+ (UIColor*)defaultPlaceholderGrayColor", "parent": null, "children": [66, 67], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 39}}, {"id": 66, "type": "+", "text": "+", "parent": 65, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 67, "type": "cast_expression", "text": "(UIColor*)defaultPlaceholderGrayColor", "parent": 65, "children": [68, 72], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 39}}, {"id": 68, "type": "type_descriptor", "text": "UIColor*", "parent": 67, "children": [69, 70], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 11}}, {"id": 69, "type": "type_identifier", "text": "UIColor", "parent": 68, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 10}}, {"id": 70, "type": "abstract_pointer_declarator", "text": "*", "parent": 68, "children": [71], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 72, "type": "identifier", "text": "defaultPlaceholderGrayColor", "parent": 67, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 39}}, {"id": 73, "type": "unary_expression", "text": "+ (UIColor*)defaultBlueColor", "parent": null, "children": [74, 75], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 28}}, {"id": 74, "type": "+", "text": "+", "parent": 73, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 75, "type": "cast_expression", "text": "(UIColor*)defaultBlueColor", "parent": 73, "children": [76, 80], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 28}}, {"id": 76, "type": "type_descriptor", "text": "UIColor*", "parent": 75, "children": [77, 78], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 11}}, {"id": 77, "type": "type_identifier", "text": "UIColor", "parent": 76, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 10}}, {"id": 78, "type": "abstract_pointer_declarator", "text": "*", "parent": 76, "children": [79], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 80, "type": "identifier", "text": "defaultBlueColor", "parent": 75, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 28}}, {"id": 81, "type": "unary_expression", "text": "+ (NSBundle*)getResourceBundle", "parent": null, "children": [82, 83], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 30}}, {"id": 82, "type": "+", "text": "+", "parent": 81, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 83, "type": "cast_expression", "text": "(NSBundle*)getResourceBundle", "parent": 81, "children": [84, 88], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 30}}, {"id": 84, "type": "type_descriptor", "text": "NSBundle*", "parent": 83, "children": [85, 86], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 12}}, {"id": 85, "type": "type_identifier", "text": "NSBundle", "parent": 84, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 11}}, {"id": 86, "type": "abstract_pointer_declarator", "text": "*", "parent": 84, "children": [87], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 88, "type": "identifier", "text": "getResourceBundle", "parent": 83, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 30}}, {"id": 89, "type": "declaration", "text": "void STKLog(NSString* format, ...);", "parent": null, "children": [90, 91], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 35}}, {"id": 90, "type": "primitive_type", "text": "void", "parent": 89, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 91, "type": "function_declarator", "text": "STKLog(NSString* format, ...)", "parent": 89, "children": [92, 93], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 34}}, {"id": 92, "type": "identifier", "text": "STKLog", "parent": 91, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 11}}, {"id": 93, "type": "parameter_list", "text": "(NSString* format, ...)", "parent": 91, "children": [94], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 34}}, {"id": 94, "type": "parameter_declaration", "text": "NSString* format", "parent": 93, "children": [95, 96], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 28}}, {"id": 95, "type": "type_identifier", "text": "NSString", "parent": 94, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 20}}, {"id": 96, "type": "pointer_declarator", "text": "* format", "parent": 94, "children": [97, 98], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 28}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 21}}, {"id": 98, "type": "identifier", "text": "format", "parent": 96, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 28}}, {"id": 99, "type": "ERROR", "text": "@end\n\n\n@interface NSString(MD5String)", "parent": null, "children": [100, 101, 104], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 30}}, {"id": 100, "type": "ERROR", "text": "@", "parent": 99, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 101, "type": "ERROR", "text": "@interface", "parent": 99, "children": [102, 103], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 10}}, {"id": 102, "type": "ERROR", "text": "@", "parent": 101, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 103, "type": "identifier", "text": "interface", "parent": 101, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 10}}, {"id": 104, "type": "function_declarator", "text": "NSString(MD5String)", "parent": 99, "children": [105, 106], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 30}}, {"id": 105, "type": "identifier", "text": "NSString", "parent": 104, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 19}}, {"id": 106, "type": "parameter_list", "text": "(MD5String)", "parent": 104, "children": [107], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 30}}, {"id": 107, "type": "identifier", "text": "MD5String", "parent": 106, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 29}}, {"id": 108, "type": "unary_expression", "text": "- (NSString *)MD5Digest", "parent": null, "children": [109, 110], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 23}}, {"id": 109, "type": "-", "text": "-", "parent": 108, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 110, "type": "cast_expression", "text": "(NSString *)MD5Digest", "parent": 108, "children": [111, 115], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 23}}, {"id": 111, "type": "type_descriptor", "text": "NSString *", "parent": 110, "children": [112, 113], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 13}}, {"id": 112, "type": "type_identifier", "text": "NSString", "parent": 111, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 11}}, {"id": 113, "type": "abstract_pointer_declarator", "text": "*", "parent": 111, "children": [114], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 115, "type": "identifier", "text": "MD5Digest", "parent": 110, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 23}}, {"id": 116, "type": "ERROR", "text": "@end\n\n\n//--------Custom Bundle----------\n\n@interface NSBundle (CustomBundle)", "parent": null, "children": [117, 118, 121], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 38, "column": 34}}, {"id": 117, "type": "ERROR", "text": "@", "parent": 116, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 118, "type": "ERROR", "text": "@interface", "parent": 116, "children": [119, 120], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 10}}, {"id": 119, "type": "ERROR", "text": "@", "parent": 118, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 120, "type": "identifier", "text": "interface", "parent": 118, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 10}}, {"id": 121, "type": "function_declarator", "text": "NSBundle (CustomBundle)", "parent": 116, "children": [122, 123], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 34}}, {"id": 122, "type": "identifier", "text": "NSBundle", "parent": 121, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 19}}, {"id": 123, "type": "parameter_list", "text": "(CustomBundle)", "parent": 121, "children": [124], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 34}}, {"id": 124, "type": "identifier", "text": "CustomBundle", "parent": 123, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 33}}, {"id": 125, "type": "unary_expression", "text": "+ (NSBundle*)stkBundle", "parent": null, "children": [126, 127], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 22}}, {"id": 126, "type": "+", "text": "+", "parent": 125, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 127, "type": "cast_expression", "text": "(NSBundle*)stkBundle", "parent": 125, "children": [128, 132], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 22}}, {"id": 128, "type": "type_descriptor", "text": "NSBundle*", "parent": 127, "children": [129, 130], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 12}}, {"id": 129, "type": "type_identifier", "text": "NSBundle", "parent": 128, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 11}}, {"id": 130, "type": "abstract_pointer_declarator", "text": "*", "parent": 128, "children": [131], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 132, "type": "identifier", "text": "stkBundle", "parent": 127, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 22}}, {"id": 133, "type": "ERROR", "text": "+ (NSArray*)loadNibNamed: (NSString*)name owner: (id)owner options: (NSDictionary*)options;\n@end\n\n@interface UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib: (NSString*)nibNameOrNil;\n@end", "parent": null, "children": [134, 142, 151, 154, 162, 172, 176], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 134, "type": "unary_expression", "text": "+ (NSArray*)loadNibNamed", "parent": 133, "children": [135, 136], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 24}}, {"id": 135, "type": "+", "text": "+", "parent": 134, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 136, "type": "cast_expression", "text": "(NSArray*)loadNibNamed", "parent": 134, "children": [137, 141], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 24}}, {"id": 137, "type": "type_descriptor", "text": "NSArray*", "parent": 136, "children": [138, 139], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 11}}, {"id": 138, "type": "type_identifier", "text": "NSArray", "parent": 137, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 10}}, {"id": 139, "type": "abstract_pointer_declarator", "text": "*", "parent": 137, "children": [140], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 11}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 11}}, {"id": 141, "type": "identifier", "text": "loadNibNamed", "parent": 136, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 24}}, {"id": 142, "type": "call_expression", "text": "NSString*)name owner: (id)", "parent": 133, "children": [143, 149], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 53}}, {"id": 143, "type": "binary_expression", "text": "NSString*)name owner", "parent": 142, "children": [144, 145, 146, 148], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 47}}, {"id": 144, "type": "identifier", "text": "NSString", "parent": 143, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 35}}, {"id": 145, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 36}}, {"id": 146, "type": "ERROR", "text": ")name", "parent": 143, "children": [147], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 41}}, {"id": 147, "type": "identifier", "text": "name", "parent": 146, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 41}}, {"id": 148, "type": "identifier", "text": "owner", "parent": 143, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 47}}, {"id": 149, "type": "argument_list", "text": "(id)", "parent": 142, "children": [150], "start_point": {"row": 41, "column": 49}, "end_point": {"row": 41, "column": 53}}, {"id": 150, "type": "identifier", "text": "id", "parent": 149, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 52}}, {"id": 151, "type": "ERROR", "text": "owner options:", "parent": 133, "children": [152, 153], "start_point": {"row": 41, "column": 53}, "end_point": {"row": 41, "column": 67}}, {"id": 152, "type": "identifier", "text": "owner", "parent": 151, "children": [], "start_point": {"row": 41, "column": 53}, "end_point": {"row": 41, "column": 58}}, {"id": 153, "type": "identifier", "text": "options", "parent": 151, "children": [], "start_point": {"row": 41, "column": 59}, "end_point": {"row": 41, "column": 66}}, {"id": 154, "type": "ERROR", "text": "NSDictionary*)options;\n@end\n\n@interface", "parent": 133, "children": [155, 159, 160, 161], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 44, "column": 10}}, {"id": 155, "type": "binary_expression", "text": "NSDictionary*)options", "parent": 154, "children": [156, 157, 158], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 90}}, {"id": 156, "type": "identifier", "text": "NSDictionary", "parent": 155, "children": [], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 81}}, {"id": 157, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 41, "column": 81}, "end_point": {"row": 41, "column": 82}}, {"id": 158, "type": "identifier", "text": "options", "parent": 155, "children": [], "start_point": {"row": 41, "column": 83}, "end_point": {"row": 41, "column": 90}}, {"id": 159, "type": "ERROR", "text": "@", "parent": 154, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 160, "type": "ERROR", "text": "@", "parent": 154, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 161, "type": "identifier", "text": "interface", "parent": 154, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 10}}, {"id": 162, "type": "binary_expression", "text": "UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib", "parent": 133, "children": [163, 167, 168], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 45, "column": 37}}, {"id": 163, "type": "call_expression", "text": "UIViewController (CustomBundle)", "parent": 162, "children": [164, 165], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 42}}, {"id": 164, "type": "identifier", "text": "UIViewController", "parent": 163, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 27}}, {"id": 165, "type": "argument_list", "text": "(CustomBundle)", "parent": 163, "children": [166], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 42}}, {"id": 166, "type": "identifier", "text": "CustomBundle", "parent": 165, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 41}}, {"id": 167, "type": "+", "text": "+", "parent": 162, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 168, "type": "cast_expression", "text": "(instancetype)viewControllerFromNib", "parent": 162, "children": [169, 171], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 37}}, {"id": 169, "type": "type_descriptor", "text": "instancetype", "parent": 168, "children": [170], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 15}}, {"id": 170, "type": "type_identifier", "text": "instancetype", "parent": 169, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 15}}, {"id": 171, "type": "identifier", "text": "viewControllerFromNib", "parent": 168, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 37}}, {"id": 172, "type": "binary_expression", "text": "NSString*)nibNameOrNil", "parent": 133, "children": [173, 174, 175], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 62}}, {"id": 173, "type": "identifier", "text": "NSString", "parent": 172, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 48}}, {"id": 174, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 49}}, {"id": 175, "type": "identifier", "text": "nibNameOrNil", "parent": 172, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 62}}, {"id": 176, "type": "ERROR", "text": "@", "parent": 133, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}]}, "node_categories": {"declarations": {"functions": [91, 104, 121], "variables": [2, 89, 94], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [9, 11, 17, 18, 23, 29, 33, 35, 41, 43, 49, 51, 57, 59, 65, 67, 73, 75, 81, 83, 108, 110, 125, 127, 134, 136, 142, 143, 155, 162, 163, 168, 172], "assignments": [], "loops": [], "conditionals": [3, 6, 7, 8, 13, 16, 19, 21, 25, 28, 30, 32, 37, 40, 45, 48, 53, 56, 61, 64, 69, 72, 77, 80, 85, 88, 92, 95, 98, 103, 105, 107, 112, 115, 120, 122, 124, 129, 132, 138, 141, 144, 147, 148, 150, 152, 153, 156, 158, 161, 164, 166, 170, 171, 173, 175], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "STKLog(NSString* format, ...)"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "NSString(MD5String)"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "NSBundle (CustomBundle)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// STKUtility.h\n// StickerFactory\n//\n// Created by <NAME> on 26.06.15.\n// Copyright (c) 2015 908 Inc. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STKUtility : NSObject\n\n+ (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message;\n+ (NSString*)stickerIdWithMessage: (NSString*)message;\n\n+ (NSString*)scaleString;\n+ (NSString*)maxDensity;\n\n//Colors\n+ (UIColor*)defaultOrangeColor;\n+ (UIColor*)defaultGreyColor;\n+ (UIColor*)defaultPlaceholderGrayColor;\n+ (UIColor*)defaultBlueColor;\n\n+ (NSBundle*)getResourceBundle;\nvoid STKLog(NSString* format, ...);\n\n\n@end\n\n\n@interface NSString(MD5String)\n- (NSString *)MD5Digest;\n@end\n\n\n//--------Custom Bundle----------\n\n@interface NSBundle (CustomBundle)\n+ (NSBundle*)stkBundle;\n\n+ (NSArray*)loadNibNamed: (NSString*)name owner: (id)owner options: (NSDictionary*)options;\n@end\n\n@interface UIViewController (CustomBundle)\n+ (instancetype)viewControllerFromNib: (NSString*)nibNameOrNil;\n@end\n"}
81,039
c
#include <stdio.h> #include <ev.h> #include "evn.h" // // Event Callbacks // static void on_drain(EV_P, struct evn_stream* stream) { puts("[Server] On (Stream) Drain"); evn_stream_end(EV_A, stream); } // Data static void on_data(EV_P_ struct evn_stream* stream, void* data, int size) { bool all_sent; FILE* file; file = fopen("./echo-server-receive.dat", "wb"); if (NULL == file) { perror("failed to open file to write received data"); } else { fwrite(data, size, 1, file); fclose(file); } puts("[Server] On (Stream) Data"); printf("\t received %d bytes, now resending to the client\n", size); all_sent = evn_stream_write(EV_A_ stream, data, size); if (false == all_sent) { puts("\t all or part of the data was queued in user memory"); puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket"); stream->on_drain = on_drain; } else { puts("\t wrote all data in one shot."); evn_stream_end(EV_A_ stream); } } // End static void on_stream_end(EV_P_ struct evn_stream* stream) { puts("[Server] On (Stream) End"); } // Close static void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error) { //struct evn_server* server = stream->server; puts("[Server] On (Stream) Close"); if (true == had_error) { fprintf(stderr, "\t[Server] Stream Close had an error\n"); } //evn_server_close(EV_A_ server); } static void on_stream_timeout(EV_P, struct evn_stream* stream) { puts("connection timed out, destroying stream"); evn_stream_destroy(EV_A, stream); } // Connection static void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream) { puts("[Server] On Connection"); stream->on_data = on_data; stream->on_end = on_stream_end; stream->on_close = on_stream_close; stream->on_timeout = on_stream_timeout; stream->oneshot = true; evn_stream_set_timeout(EV_A, stream, 4000); } //// Listen //static void on_listen(EV_P_ struct evn_server* server) //{ //puts("[Server] On Listen"); //} // Close static void on_server_close(EV_P, struct evn_server* server) { puts("[Server] on server close"); } // // Run Application // int main (int argc, char* argv[]) { EV_P = ev_default_loop(0); struct evn_server* server; // Create unix socket in non-blocking fashion char socket_address[256] = {}; snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock"); printf("socket_address: %s\n", socket_address); unlink(socket_address); server = evn_server_create(EV_A_ on_connection); //server->on_listen = on_listen; server->on_close = on_server_close; evn_server_listen(server, 0, socket_address); ev_loop(EV_A_ 0); puts("[Server] No events left"); return 0; }
26.13
102
(translation_unit) "#include <stdio.h>\n#include <ev.h>\n\n#include "evn.h"\n\n//\n// Event Callbacks\n//\n\nstatic void on_drain(EV_P, struct evn_stream* stream) {\n puts("[Server] On (Stream) Drain");\n evn_stream_end(EV_A, stream);\n}\n\n// Data\nstatic void on_data(EV_P_ struct evn_stream* stream, void* data, int size)\n{\n bool all_sent;\n FILE* file;\n\n file = fopen("./echo-server-receive.dat", "wb");\n if (NULL == file)\n {\n perror("failed to open file to write received data");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }\n\n puts("[Server] On (Stream) Data");\n printf("\t received %d bytes, now resending to the client\n", size);\n all_sent = evn_stream_write(EV_A_ stream, data, size);\n\n if (false == all_sent)\n {\n puts("\t all or part of the data was queued in user memory");\n puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");\n stream->on_drain = on_drain;\n }\n else\n {\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }\n}\n\n// End\nstatic void on_stream_end(EV_P_ struct evn_stream* stream)\n{\n puts("[Server] On (Stream) End");\n}\n\n// Close\nstatic void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)\n{\n //struct evn_server* server = stream->server;\n puts("[Server] On (Stream) Close");\n if (true == had_error)\n {\n fprintf(stderr, "\t[Server] Stream Close had an error\n");\n }\n\n //evn_server_close(EV_A_ server);\n}\n\nstatic void on_stream_timeout(EV_P, struct evn_stream* stream)\n{\n puts("connection timed out, destroying stream");\n evn_stream_destroy(EV_A, stream);\n}\n\n// Connection\nstatic void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)\n{\n puts("[Server] On Connection");\n stream->on_data = on_data;\n stream->on_end = on_stream_end;\n stream->on_close = on_stream_close;\n stream->on_timeout = on_stream_timeout;\n stream->oneshot = true;\n\n evn_stream_set_timeout(EV_A, stream, 4000);\n}\n\n//// Listen\n//static void on_listen(EV_P_ struct evn_server* server)\n//{\n //puts("[Server] On Listen");\n//}\n\n// Close\nstatic void on_server_close(EV_P, struct evn_server* server)\n{\n puts("[Server] on server close");\n}\n\n//\n// Run Application\n//\nint main (int argc, char* argv[])\n{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // Create unix socket in non-blocking fashion\n char socket_address[256] = {};\n snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock");\n printf("socket_address: %s\n", socket_address);\n unlink(socket_address);\n\n server = evn_server_create(EV_A_ on_connection);\n //server->on_listen = on_listen;\n server->on_close = on_server_close;\n evn_server_listen(server, 0, socket_address);\n\n ev_loop(EV_A_ 0);\n puts("[Server] No events left");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <ev.h>\n" (#include) "#include" (system_lib_string) "<ev.h>" (preproc_include) "#include "evn.h"\n" (#include) "#include" (string_literal) ""evn.h"" (") """ (string_content) "evn.h" (") """ (comment) "//" (comment) "// Event Callbacks" (comment) "//" (function_definition) "static void on_drain(EV_P, struct evn_stream* stream) {\n puts("[Server] On (Stream) Drain");\n evn_stream_end(EV_A, stream);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_drain(EV_P, struct evn_stream* stream)" (identifier) "on_drain" (parameter_list) "(EV_P, struct evn_stream* stream)" (() "(" (parameter_declaration) "EV_P" (type_identifier) "EV_P" (,) "," (parameter_declaration) "struct evn_stream* stream" (struct_specifier) "struct evn_stream" (struct) "struct" (type_identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" ()) ")" (compound_statement) "{\n puts("[Server] On (Stream) Drain");\n evn_stream_end(EV_A, stream);\n}" ({) "{" (expression_statement) "puts("[Server] On (Stream) Drain");" (call_expression) "puts("[Server] On (Stream) Drain")" (identifier) "puts" (argument_list) "("[Server] On (Stream) Drain")" (() "(" (string_literal) ""[Server] On (Stream) Drain"" (") """ (string_content) "[Server] On (Stream) Drain" (") """ ()) ")" (;) ";" (expression_statement) "evn_stream_end(EV_A, stream);" (call_expression) "evn_stream_end(EV_A, stream)" (identifier) "evn_stream_end" (argument_list) "(EV_A, stream)" (() "(" (identifier) "EV_A" (,) "," (identifier) "stream" ()) ")" (;) ";" (}) "}" (comment) "// Data" (function_definition) "static void on_data(EV_P_ struct evn_stream* stream, void* data, int size)\n{\n bool all_sent;\n FILE* file;\n\n file = fopen("./echo-server-receive.dat", "wb");\n if (NULL == file)\n {\n perror("failed to open file to write received data");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }\n\n puts("[Server] On (Stream) Data");\n printf("\t received %d bytes, now resending to the client\n", size);\n all_sent = evn_stream_write(EV_A_ stream, data, size);\n\n if (false == all_sent)\n {\n puts("\t all or part of the data was queued in user memory");\n puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");\n stream->on_drain = on_drain;\n }\n else\n {\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_data(EV_P_ struct evn_stream* stream, void* data, int size)" (identifier) "on_data" (parameter_list) "(EV_P_ struct evn_stream* stream, void* data, int size)" (() "(" (parameter_declaration) "EV_P_ struct evn_stream* stream" (type_identifier) "EV_P_" (ERROR) "struct evn_stream" (identifier) "struct" (identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" (,) "," (parameter_declaration) "void* data" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n bool all_sent;\n FILE* file;\n\n file = fopen("./echo-server-receive.dat", "wb");\n if (NULL == file)\n {\n perror("failed to open file to write received data");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }\n\n puts("[Server] On (Stream) Data");\n printf("\t received %d bytes, now resending to the client\n", size);\n all_sent = evn_stream_write(EV_A_ stream, data, size);\n\n if (false == all_sent)\n {\n puts("\t all or part of the data was queued in user memory");\n puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");\n stream->on_drain = on_drain;\n }\n else\n {\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }\n}" ({) "{" (declaration) "bool all_sent;" (primitive_type) "bool" (identifier) "all_sent" (;) ";" (declaration) "FILE* file;" (type_identifier) "FILE" (pointer_declarator) "* file" (*) "*" (identifier) "file" (;) ";" (expression_statement) "file = fopen("./echo-server-receive.dat", "wb");" (assignment_expression) "file = fopen("./echo-server-receive.dat", "wb")" (identifier) "file" (=) "=" (call_expression) "fopen("./echo-server-receive.dat", "wb")" (identifier) "fopen" (argument_list) "("./echo-server-receive.dat", "wb")" (() "(" (string_literal) ""./echo-server-receive.dat"" (") """ (string_content) "./echo-server-receive.dat" (") """ (,) "," (string_literal) ""wb"" (") """ (string_content) "wb" (") """ ()) ")" (;) ";" (if_statement) "if (NULL == file)\n {\n perror("failed to open file to write received data");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }" (if) "if" (parenthesized_expression) "(NULL == file)" (() "(" (binary_expression) "NULL == file" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "file" ()) ")" (compound_statement) "{\n perror("failed to open file to write received data");\n }" ({) "{" (expression_statement) "perror("failed to open file to write received data");" (call_expression) "perror("failed to open file to write received data")" (identifier) "perror" (argument_list) "("failed to open file to write received data")" (() "(" (string_literal) ""failed to open file to write received data"" (") """ (string_content) "failed to open file to write received data" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }" (else) "else" (compound_statement) "{\n fwrite(data, size, 1, file);\n fclose(file);\n }" ({) "{" (expression_statement) "fwrite(data, size, 1, file);" (call_expression) "fwrite(data, size, 1, file)" (identifier) "fwrite" (argument_list) "(data, size, 1, file)" (() "(" (identifier) "data" (,) "," (identifier) "size" (,) "," (number_literal) "1" (,) "," (identifier) "file" ()) ")" (;) ";" (expression_statement) "fclose(file);" (call_expression) "fclose(file)" (identifier) "fclose" (argument_list) "(file)" (() "(" (identifier) "file" ()) ")" (;) ";" (}) "}" (expression_statement) "puts("[Server] On (Stream) Data");" (call_expression) "puts("[Server] On (Stream) Data")" (identifier) "puts" (argument_list) "("[Server] On (Stream) Data")" (() "(" (string_literal) ""[Server] On (Stream) Data"" (") """ (string_content) "[Server] On (Stream) Data" (") """ ()) ")" (;) ";" (expression_statement) "printf("\t received %d bytes, now resending to the client\n", size);" (call_expression) "printf("\t received %d bytes, now resending to the client\n", size)" (identifier) "printf" (argument_list) "("\t received %d bytes, now resending to the client\n", size)" (() "(" (string_literal) ""\t received %d bytes, now resending to the client\n"" (") """ (escape_sequence) "\t" (string_content) " received %d bytes, now resending to the client" (escape_sequence) "\n" (") """ (,) "," (identifier) "size" ()) ")" (;) ";" (expression_statement) "all_sent = evn_stream_write(EV_A_ stream, data, size);" (assignment_expression) "all_sent = evn_stream_write(EV_A_ stream, data, size)" (identifier) "all_sent" (=) "=" (call_expression) "evn_stream_write(EV_A_ stream, data, size)" (identifier) "evn_stream_write" (argument_list) "(EV_A_ stream, data, size)" (() "(" (ERROR) "EV_A_" (identifier) "EV_A_" (identifier) "stream" (,) "," (identifier) "data" (,) "," (identifier) "size" ()) ")" (;) ";" (if_statement) "if (false == all_sent)\n {\n puts("\t all or part of the data was queued in user memory");\n puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");\n stream->on_drain = on_drain;\n }\n else\n {\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }" (if) "if" (parenthesized_expression) "(false == all_sent)" (() "(" (binary_expression) "false == all_sent" (false) "false" (==) "==" (identifier) "all_sent" ()) ")" (compound_statement) "{\n puts("\t all or part of the data was queued in user memory");\n puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");\n stream->on_drain = on_drain;\n }" ({) "{" (expression_statement) "puts("\t all or part of the data was queued in user memory");" (call_expression) "puts("\t all or part of the data was queued in user memory")" (identifier) "puts" (argument_list) "("\t all or part of the data was queued in user memory")" (() "(" (string_literal) ""\t all or part of the data was queued in user memory"" (") """ (escape_sequence) "\t" (string_content) " all or part of the data was queued in user memory" (") """ ()) ")" (;) ";" (expression_statement) "puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket");" (call_expression) "puts("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket")" (identifier) "puts" (argument_list) "("\t 'drain' will be emitted when the buffer is again free, and we will then end the socket")" (() "(" (string_literal) ""\t 'drain' will be emitted when the buffer is again free, and we will then end the socket"" (") """ (escape_sequence) "\t" (string_content) " 'drain' will be emitted when the buffer is again free, and we will then end the socket" (") """ ()) ")" (;) ";" (expression_statement) "stream->on_drain = on_drain;" (assignment_expression) "stream->on_drain = on_drain" (field_expression) "stream->on_drain" (identifier) "stream" (->) "->" (field_identifier) "on_drain" (=) "=" (identifier) "on_drain" (;) ";" (}) "}" (else_clause) "else\n {\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }" (else) "else" (compound_statement) "{\n puts("\t wrote all data in one shot.");\n evn_stream_end(EV_A_ stream);\n }" ({) "{" (expression_statement) "puts("\t wrote all data in one shot.");" (call_expression) "puts("\t wrote all data in one shot.")" (identifier) "puts" (argument_list) "("\t wrote all data in one shot.")" (() "(" (string_literal) ""\t wrote all data in one shot."" (") """ (escape_sequence) "\t" (string_content) " wrote all data in one shot." (") """ ()) ")" (;) ";" (macro_type_specifier) "evn_stream_end(EV_A_ stream)" (identifier) "evn_stream_end" (() "(" (ERROR) "EV_A_" (type_identifier) "EV_A_" (type_descriptor) "stream" (type_identifier) "stream" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// End" (function_definition) "static void on_stream_end(EV_P_ struct evn_stream* stream)\n{\n puts("[Server] On (Stream) End");\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_stream_end(EV_P_ struct evn_stream* stream)" (identifier) "on_stream_end" (parameter_list) "(EV_P_ struct evn_stream* stream)" (() "(" (parameter_declaration) "EV_P_ struct evn_stream* stream" (type_identifier) "EV_P_" (ERROR) "struct evn_stream" (identifier) "struct" (identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" ()) ")" (compound_statement) "{\n puts("[Server] On (Stream) End");\n}" ({) "{" (expression_statement) "puts("[Server] On (Stream) End");" (call_expression) "puts("[Server] On (Stream) End")" (identifier) "puts" (argument_list) "("[Server] On (Stream) End")" (() "(" (string_literal) ""[Server] On (Stream) End"" (") """ (string_content) "[Server] On (Stream) End" (") """ ()) ")" (;) ";" (}) "}" (comment) "// Close" (function_definition) "static void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)\n{\n //struct evn_server* server = stream->server;\n puts("[Server] On (Stream) Close");\n if (true == had_error)\n {\n fprintf(stderr, "\t[Server] Stream Close had an error\n");\n }\n\n //evn_server_close(EV_A_ server);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)" (identifier) "on_stream_close" (parameter_list) "(EV_P_ struct evn_stream* stream, bool had_error)" (() "(" (parameter_declaration) "EV_P_ struct evn_stream* stream" (type_identifier) "EV_P_" (ERROR) "struct evn_stream" (identifier) "struct" (identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" (,) "," (parameter_declaration) "bool had_error" (primitive_type) "bool" (identifier) "had_error" ()) ")" (compound_statement) "{\n //struct evn_server* server = stream->server;\n puts("[Server] On (Stream) Close");\n if (true == had_error)\n {\n fprintf(stderr, "\t[Server] Stream Close had an error\n");\n }\n\n //evn_server_close(EV_A_ server);\n}" ({) "{" (comment) "//struct evn_server* server = stream->server;" (expression_statement) "puts("[Server] On (Stream) Close");" (call_expression) "puts("[Server] On (Stream) Close")" (identifier) "puts" (argument_list) "("[Server] On (Stream) Close")" (() "(" (string_literal) ""[Server] On (Stream) Close"" (") """ (string_content) "[Server] On (Stream) Close" (") """ ()) ")" (;) ";" (if_statement) "if (true == had_error)\n {\n fprintf(stderr, "\t[Server] Stream Close had an error\n");\n }" (if) "if" (parenthesized_expression) "(true == had_error)" (() "(" (binary_expression) "true == had_error" (true) "true" (==) "==" (identifier) "had_error" ()) ")" (compound_statement) "{\n fprintf(stderr, "\t[Server] Stream Close had an error\n");\n }" ({) "{" (expression_statement) "fprintf(stderr, "\t[Server] Stream Close had an error\n");" (call_expression) "fprintf(stderr, "\t[Server] Stream Close had an error\n")" (identifier) "fprintf" (argument_list) "(stderr, "\t[Server] Stream Close had an error\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""\t[Server] Stream Close had an error\n"" (") """ (escape_sequence) "\t" (string_content) "[Server] Stream Close had an error" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (comment) "//evn_server_close(EV_A_ server);" (}) "}" (function_definition) "static void on_stream_timeout(EV_P, struct evn_stream* stream)\n{\n puts("connection timed out, destroying stream");\n evn_stream_destroy(EV_A, stream);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_stream_timeout(EV_P, struct evn_stream* stream)" (identifier) "on_stream_timeout" (parameter_list) "(EV_P, struct evn_stream* stream)" (() "(" (parameter_declaration) "EV_P" (type_identifier) "EV_P" (,) "," (parameter_declaration) "struct evn_stream* stream" (struct_specifier) "struct evn_stream" (struct) "struct" (type_identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" ()) ")" (compound_statement) "{\n puts("connection timed out, destroying stream");\n evn_stream_destroy(EV_A, stream);\n}" ({) "{" (expression_statement) "puts("connection timed out, destroying stream");" (call_expression) "puts("connection timed out, destroying stream")" (identifier) "puts" (argument_list) "("connection timed out, destroying stream")" (() "(" (string_literal) ""connection timed out, destroying stream"" (") """ (string_content) "connection timed out, destroying stream" (") """ ()) ")" (;) ";" (expression_statement) "evn_stream_destroy(EV_A, stream);" (call_expression) "evn_stream_destroy(EV_A, stream)" (identifier) "evn_stream_destroy" (argument_list) "(EV_A, stream)" (() "(" (identifier) "EV_A" (,) "," (identifier) "stream" ()) ")" (;) ";" (}) "}" (comment) "// Connection" (function_definition) "static void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)\n{\n puts("[Server] On Connection");\n stream->on_data = on_data;\n stream->on_end = on_stream_end;\n stream->on_close = on_stream_close;\n stream->on_timeout = on_stream_timeout;\n stream->oneshot = true;\n\n evn_stream_set_timeout(EV_A, stream, 4000);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)" (identifier) "on_connection" (parameter_list) "(EV_P_ struct evn_server* server, struct evn_stream* stream)" (() "(" (parameter_declaration) "EV_P_ struct evn_server* server" (type_identifier) "EV_P_" (ERROR) "struct evn_server" (identifier) "struct" (identifier) "evn_server" (pointer_declarator) "* server" (*) "*" (identifier) "server" (,) "," (parameter_declaration) "struct evn_stream* stream" (struct_specifier) "struct evn_stream" (struct) "struct" (type_identifier) "evn_stream" (pointer_declarator) "* stream" (*) "*" (identifier) "stream" ()) ")" (compound_statement) "{\n puts("[Server] On Connection");\n stream->on_data = on_data;\n stream->on_end = on_stream_end;\n stream->on_close = on_stream_close;\n stream->on_timeout = on_stream_timeout;\n stream->oneshot = true;\n\n evn_stream_set_timeout(EV_A, stream, 4000);\n}" ({) "{" (expression_statement) "puts("[Server] On Connection");" (call_expression) "puts("[Server] On Connection")" (identifier) "puts" (argument_list) "("[Server] On Connection")" (() "(" (string_literal) ""[Server] On Connection"" (") """ (string_content) "[Server] On Connection" (") """ ()) ")" (;) ";" (expression_statement) "stream->on_data = on_data;" (assignment_expression) "stream->on_data = on_data" (field_expression) "stream->on_data" (identifier) "stream" (->) "->" (field_identifier) "on_data" (=) "=" (identifier) "on_data" (;) ";" (expression_statement) "stream->on_end = on_stream_end;" (assignment_expression) "stream->on_end = on_stream_end" (field_expression) "stream->on_end" (identifier) "stream" (->) "->" (field_identifier) "on_end" (=) "=" (identifier) "on_stream_end" (;) ";" (expression_statement) "stream->on_close = on_stream_close;" (assignment_expression) "stream->on_close = on_stream_close" (field_expression) "stream->on_close" (identifier) "stream" (->) "->" (field_identifier) "on_close" (=) "=" (identifier) "on_stream_close" (;) ";" (expression_statement) "stream->on_timeout = on_stream_timeout;" (assignment_expression) "stream->on_timeout = on_stream_timeout" (field_expression) "stream->on_timeout" (identifier) "stream" (->) "->" (field_identifier) "on_timeout" (=) "=" (identifier) "on_stream_timeout" (;) ";" (expression_statement) "stream->oneshot = true;" (assignment_expression) "stream->oneshot = true" (field_expression) "stream->oneshot" (identifier) "stream" (->) "->" (field_identifier) "oneshot" (=) "=" (true) "true" (;) ";" (expression_statement) "evn_stream_set_timeout(EV_A, stream, 4000);" (call_expression) "evn_stream_set_timeout(EV_A, stream, 4000)" (identifier) "evn_stream_set_timeout" (argument_list) "(EV_A, stream, 4000)" (() "(" (identifier) "EV_A" (,) "," (identifier) "stream" (,) "," (number_literal) "4000" ()) ")" (;) ";" (}) "}" (comment) "//// Listen" (comment) "//static void on_listen(EV_P_ struct evn_server* server)" (comment) "//{" (comment) "//puts("[Server] On Listen");" (comment) "//}" (comment) "// Close" (function_definition) "static void on_server_close(EV_P, struct evn_server* server)\n{\n puts("[Server] on server close");\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "on_server_close(EV_P, struct evn_server* server)" (identifier) "on_server_close" (parameter_list) "(EV_P, struct evn_server* server)" (() "(" (parameter_declaration) "EV_P" (type_identifier) "EV_P" (,) "," (parameter_declaration) "struct evn_server* server" (struct_specifier) "struct evn_server" (struct) "struct" (type_identifier) "evn_server" (pointer_declarator) "* server" (*) "*" (identifier) "server" ()) ")" (compound_statement) "{\n puts("[Server] on server close");\n}" ({) "{" (expression_statement) "puts("[Server] on server close");" (call_expression) "puts("[Server] on server close")" (identifier) "puts" (argument_list) "("[Server] on server close")" (() "(" (string_literal) ""[Server] on server close"" (") """ (string_content) "[Server] on server close" (") """ ()) ")" (;) ";" (}) "}" (comment) "//" (comment) "// Run Application" (comment) "//" (function_definition) "int main (int argc, char* argv[])\n{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // Create unix socket in non-blocking fashion\n char socket_address[256] = {};\n snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock");\n printf("socket_address: %s\n", socket_address);\n unlink(socket_address);\n\n server = evn_server_create(EV_A_ on_connection);\n //server->on_listen = on_listen;\n server->on_close = on_server_close;\n evn_server_listen(server, 0, socket_address);\n\n ev_loop(EV_A_ 0);\n puts("[Server] No events left");\n return 0;\n}" (primitive_type) "int" (function_declarator) "main (int argc, char* argv[])" (identifier) "main" (parameter_list) "(int argc, char* argv[])" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char* argv[]" (primitive_type) "char" (pointer_declarator) "* argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // Create unix socket in non-blocking fashion\n char socket_address[256] = {};\n snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock");\n printf("socket_address: %s\n", socket_address);\n unlink(socket_address);\n\n server = evn_server_create(EV_A_ on_connection);\n //server->on_listen = on_listen;\n server->on_close = on_server_close;\n evn_server_listen(server, 0, socket_address);\n\n ev_loop(EV_A_ 0);\n puts("[Server] No events left");\n return 0;\n}" ({) "{" (expression_statement) "EV_P = ev_default_loop(0);" (assignment_expression) "EV_P = ev_default_loop(0)" (identifier) "EV_P" (=) "=" (call_expression) "ev_default_loop(0)" (identifier) "ev_default_loop" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (declaration) "struct evn_server* server;" (struct_specifier) "struct evn_server" (struct) "struct" (type_identifier) "evn_server" (pointer_declarator) "* server" (*) "*" (identifier) "server" (;) ";" (comment) "// Create unix socket in non-blocking fashion" (declaration) "char socket_address[256] = {};" (primitive_type) "char" (init_declarator) "socket_address[256] = {}" (array_declarator) "socket_address[256]" (identifier) "socket_address" ([) "[" (number_literal) "256" (]) "]" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (expression_statement) "snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock");" (call_expression) "snprintf(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock")" (identifier) "snprintf" (argument_list) "(socket_address, 256, "%s%i%s", "/tmp/libevnet-echo.", (int) getuid(), ".sock")" (() "(" (identifier) "socket_address" (,) "," (number_literal) "256" (,) "," (string_literal) ""%s%i%s"" (") """ (string_content) "%s%i%s" (") """ (,) "," (string_literal) ""/tmp/libevnet-echo."" (") """ (string_content) "/tmp/libevnet-echo." (") """ (,) "," (cast_expression) "(int) getuid()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "getuid()" (identifier) "getuid" (argument_list) "()" (() "(" ()) ")" (,) "," (string_literal) "".sock"" (") """ (string_content) ".sock" (") """ ()) ")" (;) ";" (expression_statement) "printf("socket_address: %s\n", socket_address);" (call_expression) "printf("socket_address: %s\n", socket_address)" (identifier) "printf" (argument_list) "("socket_address: %s\n", socket_address)" (() "(" (string_literal) ""socket_address: %s\n"" (") """ (string_content) "socket_address: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "socket_address" ()) ")" (;) ";" (expression_statement) "unlink(socket_address);" (call_expression) "unlink(socket_address)" (identifier) "unlink" (argument_list) "(socket_address)" (() "(" (identifier) "socket_address" ()) ")" (;) ";" (expression_statement) "server = evn_server_create(EV_A_ on_connection);" (assignment_expression) "server = evn_server_create(EV_A_ on_connection)" (identifier) "server" (=) "=" (call_expression) "evn_server_create(EV_A_ on_connection)" (identifier) "evn_server_create" (argument_list) "(EV_A_ on_connection)" (() "(" (ERROR) "EV_A_" (identifier) "EV_A_" (identifier) "on_connection" ()) ")" (;) ";" (comment) "//server->on_listen = on_listen;" (expression_statement) "server->on_close = on_server_close;" (assignment_expression) "server->on_close = on_server_close" (field_expression) "server->on_close" (identifier) "server" (->) "->" (field_identifier) "on_close" (=) "=" (identifier) "on_server_close" (;) ";" (expression_statement) "evn_server_listen(server, 0, socket_address);" (call_expression) "evn_server_listen(server, 0, socket_address)" (identifier) "evn_server_listen" (argument_list) "(server, 0, socket_address)" (() "(" (identifier) "server" (,) "," (number_literal) "0" (,) "," (identifier) "socket_address" ()) ")" (;) ";" (ERROR) "ev_loop(EV_A_" (identifier) "ev_loop" (() "(" (identifier) "EV_A_" (expression_statement) "0);" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "puts("[Server] No events left");" (call_expression) "puts("[Server] No events left")" (identifier) "puts" (argument_list) "("[Server] No events left")" (() "(" (string_literal) ""[Server] No events left"" (") """ (string_content) "[Server] No events left" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
735
9
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 26.13, "nodes": 390, "errors": 0, "source_hash": "06e055c217771645e46c49e476068365691b9758403b443cbe786a54a0332736", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <ev.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<ev.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include \"evn.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"evn.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 9, "type": "function_definition", "text": "static void on_drain(EV_P, struct evn_stream* stream) {\n puts(\"[Server] On (Stream) Drain\");\n evn_stream_end(EV_A, stream);\n}", "parent": null, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 11}}, {"id": 11, "type": "function_declarator", "text": "on_drain(EV_P, struct evn_stream* stream)", "parent": 9, "children": [12, 13], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 53}}, {"id": 12, "type": "identifier", "text": "on_drain", "parent": 11, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 20}}, {"id": 13, "type": "parameter_list", "text": "(EV_P, struct evn_stream* stream)", "parent": 11, "children": [14, 16], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 53}}, {"id": 14, "type": "parameter_declaration", "text": "EV_P", "parent": 13, "children": [15], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 25}}, {"id": 15, "type": "type_identifier", "text": "EV_P", "parent": 14, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 25}}, {"id": 16, "type": "parameter_declaration", "text": "struct evn_stream* stream", "parent": 13, "children": [17, 20], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 52}}, {"id": 17, "type": "struct_specifier", "text": "struct evn_stream", "parent": 16, "children": [18, 19], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 44}}, {"id": 18, "type": "struct", "text": "struct", "parent": 17, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 33}}, {"id": 19, "type": "type_identifier", "text": "evn_stream", "parent": 17, "children": [], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 44}}, {"id": 20, "type": "pointer_declarator", "text": "* stream", "parent": 16, "children": [21, 22], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 52}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 45}}, {"id": 22, "type": "identifier", "text": "stream", "parent": 20, "children": [], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 52}}, {"id": 23, "type": "call_expression", "text": "puts(\"[Server] On (Stream) Drain\")", "parent": 9, "children": [24, 25], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 36}}, {"id": 24, "type": "identifier", "text": "puts", "parent": 23, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 6}}, {"id": 25, "type": "argument_list", "text": "(\"[Server] On (Stream) Drain\")", "parent": 23, "children": [26], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 36}}, {"id": 26, "type": "string_literal", "text": "\"[Server] On (Stream) Drain\"", "parent": 25, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 35}}, {"id": 27, "type": "call_expression", "text": "evn_stream_end(EV_A, stream)", "parent": 9, "children": [28, 29], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 30}}, {"id": 28, "type": "identifier", "text": "evn_stream_end", "parent": 27, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 16}}, {"id": 29, "type": "argument_list", "text": "(EV_A, stream)", "parent": 27, "children": [30, 31], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 30}}, {"id": 30, "type": "identifier", "text": "EV_A", "parent": 29, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 21}}, {"id": 31, "type": "identifier", "text": "stream", "parent": 29, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 32, "type": "function_definition", "text": "static void on_data(EV_P_ struct evn_stream* stream, void* data, int size)\n{\n bool all_sent;\n FILE* file;\n\n file = fopen(\"./echo-server-receive.dat\", \"wb\");\n if (NULL == file)\n {\n perror(\"failed to open file to write received data\");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }\n\n puts(\"[Server] On (Stream) Data\");\n printf(\"\\t received %d bytes, now resending to the client\\n\", size);\n all_sent = evn_stream_write(EV_A_ stream, data, size);\n\n if (false == all_sent)\n {\n puts(\"\\t all or part of the data was queued in user memory\");\n puts(\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\");\n stream->on_drain = on_drain;\n }\n else\n {\n puts(\"\\t wrote all data in one shot.\");\n evn_stream_end(EV_A_ stream);\n }\n}", "parent": null, "children": [33, 34], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 11}}, {"id": 34, "type": "function_declarator", "text": "on_data(EV_P_ struct evn_stream* stream, void* data, int size)", "parent": 32, "children": [35, 36], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 74}}, {"id": 35, "type": "identifier", "text": "on_data", "parent": 34, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 19}}, {"id": 36, "type": "parameter_list", "text": "(EV_P_ struct evn_stream* stream, void* data, int size)", "parent": 34, "children": [37, 45, 50], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 74}}, {"id": 37, "type": "parameter_declaration", "text": "EV_P_ struct evn_stream* stream", "parent": 36, "children": [38, 39, 42], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 51}}, {"id": 38, "type": "type_identifier", "text": "EV_P_", "parent": 37, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 25}}, {"id": 39, "type": "ERROR", "text": "struct evn_stream", "parent": 37, "children": [40, 41], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 43}}, {"id": 40, "type": "identifier", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 32}}, {"id": 41, "type": "identifier", "text": "evn_stream", "parent": 39, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 43}}, {"id": 42, "type": "pointer_declarator", "text": "* stream", "parent": 37, "children": [43, 44], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 51}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 44}}, {"id": 44, "type": "identifier", "text": "stream", "parent": 42, "children": [], "start_point": {"row": 15, "column": 45}, "end_point": {"row": 15, "column": 51}}, {"id": 45, "type": "parameter_declaration", "text": "void* data", "parent": 36, "children": [46, 47], "start_point": {"row": 15, "column": 53}, "end_point": {"row": 15, "column": 63}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 15, "column": 53}, "end_point": {"row": 15, "column": 57}}, {"id": 47, "type": "pointer_declarator", "text": "* data", "parent": 45, "children": [48, 49], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 63}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 58}}, {"id": 49, "type": "identifier", "text": "data", "parent": 47, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 63}}, {"id": 50, "type": "parameter_declaration", "text": "int size", "parent": 36, "children": [51, 52], "start_point": {"row": 15, "column": 65}, "end_point": {"row": 15, "column": 73}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 15, "column": 65}, "end_point": {"row": 15, "column": 68}}, {"id": 52, "type": "identifier", "text": "size", "parent": 50, "children": [], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 73}}, {"id": 53, "type": "declaration", "text": "bool all_sent;", "parent": 32, "children": [54, 55], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 16}}, {"id": 54, "type": "primitive_type", "text": "bool", "parent": 53, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 55, "type": "identifier", "text": "all_sent", "parent": 53, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 56, "type": "declaration", "text": "FILE* file;", "parent": 32, "children": [57, 58], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 13}}, {"id": 57, "type": "type_identifier", "text": "FILE", "parent": 56, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 58, "type": "pointer_declarator", "text": "* file", "parent": 56, "children": [59, 60], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 12}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 7}}, {"id": 60, "type": "identifier", "text": "file", "parent": 58, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 61, "type": "assignment_expression", "text": "file = fopen(\"./echo-server-receive.dat\", \"wb\")", "parent": 32, "children": [62, 63, 64], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 49}}, {"id": 62, "type": "identifier", "text": "file", "parent": 61, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 6}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 8}}, {"id": 64, "type": "call_expression", "text": "fopen(\"./echo-server-receive.dat\", \"wb\")", "parent": 61, "children": [65, 66], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 49}}, {"id": 65, "type": "identifier", "text": "fopen", "parent": 64, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 14}}, {"id": 66, "type": "argument_list", "text": "(\"./echo-server-receive.dat\", \"wb\")", "parent": 64, "children": [67, 68], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 49}}, {"id": 67, "type": "string_literal", "text": "\"./echo-server-receive.dat\"", "parent": 66, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 42}}, {"id": 68, "type": "string_literal", "text": "\"wb\"", "parent": 66, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 48}}, {"id": 69, "type": "if_statement", "text": "if (NULL == file)\n {\n perror(\"failed to open file to write received data\");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }", "parent": 32, "children": [70, 80], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 70, "type": "parenthesized_expression", "text": "(NULL == file)", "parent": 69, "children": [71], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 19}}, {"id": 71, "type": "binary_expression", "text": "NULL == file", "parent": 70, "children": [72, 74, 75], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 18}}, {"id": 72, "type": "null", "text": "NULL", "parent": 71, "children": [73], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 10}}, {"id": 73, "type": "NULL", "text": "NULL", "parent": 72, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 10}}, {"id": 74, "type": "==", "text": "==", "parent": 71, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 13}}, {"id": 75, "type": "identifier", "text": "file", "parent": 71, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 18}}, {"id": 76, "type": "call_expression", "text": "perror(\"failed to open file to write received data\")", "parent": 69, "children": [77, 78], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 56}}, {"id": 77, "type": "identifier", "text": "perror", "parent": 76, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 10}}, {"id": 78, "type": "argument_list", "text": "(\"failed to open file to write received data\")", "parent": 76, "children": [79], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 56}}, {"id": 79, "type": "string_literal", "text": "\"failed to open file to write received data\"", "parent": 78, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 55}}, {"id": 80, "type": "else_clause", "text": "else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }", "parent": 69, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 81, "type": "call_expression", "text": "fwrite(data, size, 1, file)", "parent": 80, "children": [82, 83], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 31}}, {"id": 82, "type": "identifier", "text": "fwrite", "parent": 81, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 10}}, {"id": 83, "type": "argument_list", "text": "(data, size, 1, file)", "parent": 81, "children": [84, 85, 86, 87], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 31}}, {"id": 84, "type": "identifier", "text": "data", "parent": 83, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 15}}, {"id": 85, "type": "identifier", "text": "size", "parent": 83, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 21}}, {"id": 86, "type": "number_literal", "text": "1", "parent": 83, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 87, "type": "identifier", "text": "file", "parent": 83, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 30}}, {"id": 88, "type": "call_expression", "text": "fclose(file)", "parent": 80, "children": [89, 90], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 16}}, {"id": 89, "type": "identifier", "text": "fclose", "parent": 88, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 90, "type": "argument_list", "text": "(file)", "parent": 88, "children": [91], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 91, "type": "identifier", "text": "file", "parent": 90, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 15}}, {"id": 92, "type": "call_expression", "text": "puts(\"[Server] On (Stream) Data\")", "parent": 32, "children": [93, 94], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 35}}, {"id": 93, "type": "identifier", "text": "puts", "parent": 92, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 94, "type": "argument_list", "text": "(\"[Server] On (Stream) Data\")", "parent": 92, "children": [95], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 35}}, {"id": 95, "type": "string_literal", "text": "\"[Server] On (Stream) Data\"", "parent": 94, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 34}}, {"id": 96, "type": "call_expression", "text": "printf(\"\\t received %d bytes, now resending to the client\\n\", size)", "parent": 32, "children": [97, 98], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 69}}, {"id": 97, "type": "identifier", "text": "printf", "parent": 96, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 8}}, {"id": 98, "type": "argument_list", "text": "(\"\\t received %d bytes, now resending to the client\\n\", size)", "parent": 96, "children": [99, 102], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 69}}, {"id": 99, "type": "string_literal", "text": "\"\\t received %d bytes, now resending to the client\\n\"", "parent": 98, "children": [100, 101], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 62}}, {"id": 100, "type": "escape_sequence", "text": "\\t", "parent": 99, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 12}}, {"id": 101, "type": "escape_sequence", "text": "\\n", "parent": 99, "children": [], "start_point": {"row": 32, "column": 59}, "end_point": {"row": 32, "column": 61}}, {"id": 102, "type": "identifier", "text": "size", "parent": 98, "children": [], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 68}}, {"id": 103, "type": "assignment_expression", "text": "all_sent = evn_stream_write(EV_A_ stream, data, size)", "parent": 32, "children": [104, 105, 106], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 55}}, {"id": 104, "type": "identifier", "text": "all_sent", "parent": 103, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 10}}, {"id": 105, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 106, "type": "call_expression", "text": "evn_stream_write(EV_A_ stream, data, size)", "parent": 103, "children": [107, 108], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 55}}, {"id": 107, "type": "identifier", "text": "evn_stream_write", "parent": 106, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 29}}, {"id": 108, "type": "argument_list", "text": "(EV_A_ stream, data, size)", "parent": 106, "children": [109, 111, 112, 113], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 55}}, {"id": 109, "type": "ERROR", "text": "EV_A_", "parent": 108, "children": [110], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 35}}, {"id": 110, "type": "identifier", "text": "EV_A_", "parent": 109, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 35}}, {"id": 111, "type": "identifier", "text": "stream", "parent": 108, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 42}}, {"id": 112, "type": "identifier", "text": "data", "parent": 108, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 48}}, {"id": 113, "type": "identifier", "text": "size", "parent": 108, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 54}}, {"id": 114, "type": "if_statement", "text": "if (false == all_sent)\n {\n puts(\"\\t all or part of the data was queued in user memory\");\n puts(\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\");\n stream->on_drain = on_drain;\n }\n else\n {\n puts(\"\\t wrote all data in one shot.\");\n evn_stream_end(EV_A_ stream);\n }", "parent": 32, "children": [115, 136], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 45, "column": 3}}, {"id": 115, "type": "parenthesized_expression", "text": "(false == all_sent)", "parent": 114, "children": [116], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 24}}, {"id": 116, "type": "binary_expression", "text": "false == all_sent", "parent": 115, "children": [117, 118, 119], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 23}}, {"id": 117, "type": "false", "text": "false", "parent": 116, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 11}}, {"id": 118, "type": "==", "text": "==", "parent": 116, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 14}}, {"id": 119, "type": "identifier", "text": "all_sent", "parent": 116, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 23}}, {"id": 120, "type": "call_expression", "text": "puts(\"\\t all or part of the data was queued in user memory\")", "parent": 114, "children": [121, 122], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 64}}, {"id": 121, "type": "identifier", "text": "puts", "parent": 120, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 122, "type": "argument_list", "text": "(\"\\t all or part of the data was queued in user memory\")", "parent": 120, "children": [123], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 64}}, {"id": 123, "type": "string_literal", "text": "\"\\t all or part of the data was queued in user memory\"", "parent": 122, "children": [124], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 63}}, {"id": 124, "type": "escape_sequence", "text": "\\t", "parent": 123, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 12}}, {"id": 125, "type": "call_expression", "text": "puts(\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\")", "parent": 114, "children": [126, 127], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 101}}, {"id": 126, "type": "identifier", "text": "puts", "parent": 125, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 127, "type": "argument_list", "text": "(\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\")", "parent": 125, "children": [128], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 101}}, {"id": 128, "type": "string_literal", "text": "\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\"", "parent": 127, "children": [129], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 100}}, {"id": 129, "type": "escape_sequence", "text": "\\t", "parent": 128, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 12}}, {"id": 130, "type": "assignment_expression", "text": "stream->on_drain = on_drain", "parent": 114, "children": [131, 134, 135], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 31}}, {"id": 131, "type": "field_expression", "text": "stream->on_drain", "parent": 130, "children": [132, 133], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 20}}, {"id": 132, "type": "identifier", "text": "stream", "parent": 131, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 133, "type": "field_identifier", "text": "on_drain", "parent": 131, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 134, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 135, "type": "identifier", "text": "on_drain", "parent": 130, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 31}}, {"id": 136, "type": "else_clause", "text": "else\n {\n puts(\"\\t wrote all data in one shot.\");\n evn_stream_end(EV_A_ stream);\n }", "parent": 114, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 45, "column": 3}}, {"id": 137, "type": "call_expression", "text": "puts(\"\\t wrote all data in one shot.\")", "parent": 136, "children": [138, 139], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 42}}, {"id": 138, "type": "identifier", "text": "puts", "parent": 137, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 139, "type": "argument_list", "text": "(\"\\t wrote all data in one shot.\")", "parent": 137, "children": [140], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 42}}, {"id": 140, "type": "string_literal", "text": "\"\\t wrote all data in one shot.\"", "parent": 139, "children": [141], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 41}}, {"id": 141, "type": "escape_sequence", "text": "\\t", "parent": 140, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 12}}, {"id": 142, "type": "macro_type_specifier", "text": "evn_stream_end(EV_A_ stream)", "parent": 136, "children": [143, 144, 146], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 32}}, {"id": 143, "type": "identifier", "text": "evn_stream_end", "parent": 142, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 18}}, {"id": 144, "type": "ERROR", "text": "EV_A_", "parent": 142, "children": [145], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 24}}, {"id": 145, "type": "type_identifier", "text": "EV_A_", "parent": 144, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 24}}, {"id": 146, "type": "type_descriptor", "text": "stream", "parent": 142, "children": [147], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 31}}, {"id": 147, "type": "type_identifier", "text": "stream", "parent": 146, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 31}}, {"id": 148, "type": "function_definition", "text": "static void on_stream_end(EV_P_ struct evn_stream* stream)\n{\n puts(\"[Server] On (Stream) End\");\n}", "parent": null, "children": [149, 150], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 11}}, {"id": 150, "type": "function_declarator", "text": "on_stream_end(EV_P_ struct evn_stream* stream)", "parent": 148, "children": [151, 152], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 58}}, {"id": 151, "type": "identifier", "text": "on_stream_end", "parent": 150, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 25}}, {"id": 152, "type": "parameter_list", "text": "(EV_P_ struct evn_stream* stream)", "parent": 150, "children": [153], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 58}}, {"id": 153, "type": "parameter_declaration", "text": "EV_P_ struct evn_stream* stream", "parent": 152, "children": [154, 155, 158], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 57}}, {"id": 154, "type": "type_identifier", "text": "EV_P_", "parent": 153, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 31}}, {"id": 155, "type": "ERROR", "text": "struct evn_stream", "parent": 153, "children": [156, 157], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 49}}, {"id": 156, "type": "identifier", "text": "struct", "parent": 155, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 38}}, {"id": 157, "type": "identifier", "text": "evn_stream", "parent": 155, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 49}}, {"id": 158, "type": "pointer_declarator", "text": "* stream", "parent": 153, "children": [159, 160], "start_point": {"row": 49, "column": 49}, "end_point": {"row": 49, "column": 57}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 49, "column": 49}, "end_point": {"row": 49, "column": 50}}, {"id": 160, "type": "identifier", "text": "stream", "parent": 158, "children": [], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 57}}, {"id": 161, "type": "call_expression", "text": "puts(\"[Server] On (Stream) End\")", "parent": 148, "children": [162, 163], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 34}}, {"id": 162, "type": "identifier", "text": "puts", "parent": 161, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 6}}, {"id": 163, "type": "argument_list", "text": "(\"[Server] On (Stream) End\")", "parent": 161, "children": [164], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 34}}, {"id": 164, "type": "string_literal", "text": "\"[Server] On (Stream) End\"", "parent": 163, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 33}}, {"id": 165, "type": "function_definition", "text": "static void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)\n{\n //struct evn_server* server = stream->server;\n puts(\"[Server] On (Stream) Close\");\n if (true == had_error)\n {\n fprintf(stderr, \"\\t[Server] Stream Close had an error\\n\");\n }\n\n //evn_server_close(EV_A_ server);\n}", "parent": null, "children": [166, 167], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 166, "type": "primitive_type", "text": "void", "parent": 165, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 11}}, {"id": 167, "type": "function_declarator", "text": "on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)", "parent": 165, "children": [168, 169], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 76}}, {"id": 168, "type": "identifier", "text": "on_stream_close", "parent": 167, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 27}}, {"id": 169, "type": "parameter_list", "text": "(EV_P_ struct evn_stream* stream, bool had_error)", "parent": 167, "children": [170, 178], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 76}}, {"id": 170, "type": "parameter_declaration", "text": "EV_P_ struct evn_stream* stream", "parent": 169, "children": [171, 172, 175], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 59}}, {"id": 171, "type": "type_identifier", "text": "EV_P_", "parent": 170, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 33}}, {"id": 172, "type": "ERROR", "text": "struct evn_stream", "parent": 170, "children": [173, 174], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 51}}, {"id": 173, "type": "identifier", "text": "struct", "parent": 172, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 40}}, {"id": 174, "type": "identifier", "text": "evn_stream", "parent": 172, "children": [], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 51}}, {"id": 175, "type": "pointer_declarator", "text": "* stream", "parent": 170, "children": [176, 177], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 59}}, {"id": 176, "type": "*", "text": "*", "parent": 175, "children": [], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 52}}, {"id": 177, "type": "identifier", "text": "stream", "parent": 175, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 59}}, {"id": 178, "type": "parameter_declaration", "text": "bool had_error", "parent": 169, "children": [179, 180], "start_point": {"row": 55, "column": 61}, "end_point": {"row": 55, "column": 75}}, {"id": 179, "type": "primitive_type", "text": "bool", "parent": 178, "children": [], "start_point": {"row": 55, "column": 61}, "end_point": {"row": 55, "column": 65}}, {"id": 180, "type": "identifier", "text": "had_error", "parent": 178, "children": [], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 75}}, {"id": 181, "type": "call_expression", "text": "puts(\"[Server] On (Stream) Close\")", "parent": 165, "children": [182, 183], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 36}}, {"id": 182, "type": "identifier", "text": "puts", "parent": 181, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 6}}, {"id": 183, "type": "argument_list", "text": "(\"[Server] On (Stream) Close\")", "parent": 181, "children": [184], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 36}}, {"id": 184, "type": "string_literal", "text": "\"[Server] On (Stream) Close\"", "parent": 183, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 35}}, {"id": 185, "type": "if_statement", "text": "if (true == had_error)\n {\n fprintf(stderr, \"\\t[Server] Stream Close had an error\\n\");\n }", "parent": 165, "children": [186], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 62, "column": 3}}, {"id": 186, "type": "parenthesized_expression", "text": "(true == had_error)", "parent": 185, "children": [187], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 24}}, {"id": 187, "type": "binary_expression", "text": "true == had_error", "parent": 186, "children": [188, 189, 190], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 23}}, {"id": 188, "type": "true", "text": "true", "parent": 187, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 10}}, {"id": 189, "type": "==", "text": "==", "parent": 187, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 13}}, {"id": 190, "type": "identifier", "text": "had_error", "parent": 187, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 23}}, {"id": 191, "type": "call_expression", "text": "fprintf(stderr, \"\\t[Server] Stream Close had an error\\n\")", "parent": 185, "children": [192, 193], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 61}}, {"id": 192, "type": "identifier", "text": "fprintf", "parent": 191, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 11}}, {"id": 193, "type": "argument_list", "text": "(stderr, \"\\t[Server] Stream Close had an error\\n\")", "parent": 191, "children": [194, 195], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 61}}, {"id": 194, "type": "identifier", "text": "stderr", "parent": 193, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 18}}, {"id": 195, "type": "string_literal", "text": "\"\\t[Server] Stream Close had an error\\n\"", "parent": 193, "children": [196, 197], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 60}}, {"id": 196, "type": "escape_sequence", "text": "\\t", "parent": 195, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 23}}, {"id": 197, "type": "escape_sequence", "text": "\\n", "parent": 195, "children": [], "start_point": {"row": 61, "column": 57}, "end_point": {"row": 61, "column": 59}}, {"id": 198, "type": "function_definition", "text": "static void on_stream_timeout(EV_P, struct evn_stream* stream)\n{\n puts(\"connection timed out, destroying stream\");\n evn_stream_destroy(EV_A, stream);\n}", "parent": null, "children": [199, 200], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 200, "type": "function_declarator", "text": "on_stream_timeout(EV_P, struct evn_stream* stream)", "parent": 198, "children": [201, 202], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 62}}, {"id": 201, "type": "identifier", "text": "on_stream_timeout", "parent": 200, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 29}}, {"id": 202, "type": "parameter_list", "text": "(EV_P, struct evn_stream* stream)", "parent": 200, "children": [203, 205], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 62}}, {"id": 203, "type": "parameter_declaration", "text": "EV_P", "parent": 202, "children": [204], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 34}}, {"id": 204, "type": "type_identifier", "text": "EV_P", "parent": 203, "children": [], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 34}}, {"id": 205, "type": "parameter_declaration", "text": "struct evn_stream* stream", "parent": 202, "children": [206, 209], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 61}}, {"id": 206, "type": "struct_specifier", "text": "struct evn_stream", "parent": 205, "children": [207, 208], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 53}}, {"id": 207, "type": "struct", "text": "struct", "parent": 206, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 42}}, {"id": 208, "type": "type_identifier", "text": "evn_stream", "parent": 206, "children": [], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 53}}, {"id": 209, "type": "pointer_declarator", "text": "* stream", "parent": 205, "children": [210, 211], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 61}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 54}}, {"id": 211, "type": "identifier", "text": "stream", "parent": 209, "children": [], "start_point": {"row": 67, "column": 55}, "end_point": {"row": 67, "column": 61}}, {"id": 212, "type": "call_expression", "text": "puts(\"connection timed out, destroying stream\")", "parent": 198, "children": [213, 214], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 49}}, {"id": 213, "type": "identifier", "text": "puts", "parent": 212, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 6}}, {"id": 214, "type": "argument_list", "text": "(\"connection timed out, destroying stream\")", "parent": 212, "children": [215], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 49}}, {"id": 215, "type": "string_literal", "text": "\"connection timed out, destroying stream\"", "parent": 214, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 48}}, {"id": 216, "type": "call_expression", "text": "evn_stream_destroy(EV_A, stream)", "parent": 198, "children": [217, 218], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 34}}, {"id": 217, "type": "identifier", "text": "evn_stream_destroy", "parent": 216, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 20}}, {"id": 218, "type": "argument_list", "text": "(EV_A, stream)", "parent": 216, "children": [219, 220], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 34}}, {"id": 219, "type": "identifier", "text": "EV_A", "parent": 218, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 25}}, {"id": 220, "type": "identifier", "text": "stream", "parent": 218, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 33}}, {"id": 221, "type": "function_definition", "text": "static void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)\n{\n puts(\"[Server] On Connection\");\n stream->on_data = on_data;\n stream->on_end = on_stream_end;\n stream->on_close = on_stream_close;\n stream->on_timeout = on_stream_timeout;\n stream->oneshot = true;\n\n evn_stream_set_timeout(EV_A, stream, 4000);\n}", "parent": null, "children": [222, 223], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 222, "type": "primitive_type", "text": "void", "parent": 221, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 11}}, {"id": 223, "type": "function_declarator", "text": "on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)", "parent": 221, "children": [224, 225], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 85}}, {"id": 224, "type": "identifier", "text": "on_connection", "parent": 223, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 25}}, {"id": 225, "type": "parameter_list", "text": "(EV_P_ struct evn_server* server, struct evn_stream* stream)", "parent": 223, "children": [226, 234], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 85}}, {"id": 226, "type": "parameter_declaration", "text": "EV_P_ struct evn_server* server", "parent": 225, "children": [227, 228, 231], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 57}}, {"id": 227, "type": "type_identifier", "text": "EV_P_", "parent": 226, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 31}}, {"id": 228, "type": "ERROR", "text": "struct evn_server", "parent": 226, "children": [229, 230], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 49}}, {"id": 229, "type": "identifier", "text": "struct", "parent": 228, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 38}}, {"id": 230, "type": "identifier", "text": "evn_server", "parent": 228, "children": [], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 49}}, {"id": 231, "type": "pointer_declarator", "text": "* server", "parent": 226, "children": [232, 233], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 57}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 50}}, {"id": 233, "type": "identifier", "text": "server", "parent": 231, "children": [], "start_point": {"row": 74, "column": 51}, "end_point": {"row": 74, "column": 57}}, {"id": 234, "type": "parameter_declaration", "text": "struct evn_stream* stream", "parent": 225, "children": [235, 238], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 84}}, {"id": 235, "type": "struct_specifier", "text": "struct evn_stream", "parent": 234, "children": [236, 237], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 76}}, {"id": 236, "type": "struct", "text": "struct", "parent": 235, "children": [], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 65}}, {"id": 237, "type": "type_identifier", "text": "evn_stream", "parent": 235, "children": [], "start_point": {"row": 74, "column": 66}, "end_point": {"row": 74, "column": 76}}, {"id": 238, "type": "pointer_declarator", "text": "* stream", "parent": 234, "children": [239, 240], "start_point": {"row": 74, "column": 76}, "end_point": {"row": 74, "column": 84}}, {"id": 239, "type": "*", "text": "*", "parent": 238, "children": [], "start_point": {"row": 74, "column": 76}, "end_point": {"row": 74, "column": 77}}, {"id": 240, "type": "identifier", "text": "stream", "parent": 238, "children": [], "start_point": {"row": 74, "column": 78}, "end_point": {"row": 74, "column": 84}}, {"id": 241, "type": "call_expression", "text": "puts(\"[Server] On Connection\")", "parent": 221, "children": [242, 243], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 32}}, {"id": 242, "type": "identifier", "text": "puts", "parent": 241, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 243, "type": "argument_list", "text": "(\"[Server] On Connection\")", "parent": 241, "children": [244], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 32}}, {"id": 244, "type": "string_literal", "text": "\"[Server] On Connection\"", "parent": 243, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 31}}, {"id": 245, "type": "assignment_expression", "text": "stream->on_data = on_data", "parent": 221, "children": [246, 249, 250], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 27}}, {"id": 246, "type": "field_expression", "text": "stream->on_data", "parent": 245, "children": [247, 248], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 17}}, {"id": 247, "type": "identifier", "text": "stream", "parent": 246, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 8}}, {"id": 248, "type": "field_identifier", "text": "on_data", "parent": 246, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 17}}, {"id": 249, "type": "=", "text": "=", "parent": 245, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 19}}, {"id": 250, "type": "identifier", "text": "on_data", "parent": 245, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 27}}, {"id": 251, "type": "assignment_expression", "text": "stream->on_end = on_stream_end", "parent": 221, "children": [252, 255, 256], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 32}}, {"id": 252, "type": "field_expression", "text": "stream->on_end", "parent": 251, "children": [253, 254], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 16}}, {"id": 253, "type": "identifier", "text": "stream", "parent": 252, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 8}}, {"id": 254, "type": "field_identifier", "text": "on_end", "parent": 252, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 16}}, {"id": 255, "type": "=", "text": "=", "parent": 251, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 18}}, {"id": 256, "type": "identifier", "text": "on_stream_end", "parent": 251, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 32}}, {"id": 257, "type": "assignment_expression", "text": "stream->on_close = on_stream_close", "parent": 221, "children": [258, 261, 262], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 36}}, {"id": 258, "type": "field_expression", "text": "stream->on_close", "parent": 257, "children": [259, 260], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 18}}, {"id": 259, "type": "identifier", "text": "stream", "parent": 258, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 8}}, {"id": 260, "type": "field_identifier", "text": "on_close", "parent": 258, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 18}}, {"id": 261, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 20}}, {"id": 262, "type": "identifier", "text": "on_stream_close", "parent": 257, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 36}}, {"id": 263, "type": "assignment_expression", "text": "stream->on_timeout = on_stream_timeout", "parent": 221, "children": [264, 267, 268], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 40}}, {"id": 264, "type": "field_expression", "text": "stream->on_timeout", "parent": 263, "children": [265, 266], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 20}}, {"id": 265, "type": "identifier", "text": "stream", "parent": 264, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 8}}, {"id": 266, "type": "field_identifier", "text": "on_timeout", "parent": 264, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 20}}, {"id": 267, "type": "=", "text": "=", "parent": 263, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 22}}, {"id": 268, "type": "identifier", "text": "on_stream_timeout", "parent": 263, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 40}}, {"id": 269, "type": "assignment_expression", "text": "stream->oneshot = true", "parent": 221, "children": [270, 273, 274], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 24}}, {"id": 270, "type": "field_expression", "text": "stream->oneshot", "parent": 269, "children": [271, 272], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 17}}, {"id": 271, "type": "identifier", "text": "stream", "parent": 270, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 8}}, {"id": 272, "type": "field_identifier", "text": "oneshot", "parent": 270, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 17}}, {"id": 273, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 274, "type": "true", "text": "true", "parent": 269, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 24}}, {"id": 275, "type": "call_expression", "text": "evn_stream_set_timeout(EV_A, stream, 4000)", "parent": 221, "children": [276, 277], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 44}}, {"id": 276, "type": "identifier", "text": "evn_stream_set_timeout", "parent": 275, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 24}}, {"id": 277, "type": "argument_list", "text": "(EV_A, stream, 4000)", "parent": 275, "children": [278, 279, 280], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 44}}, {"id": 278, "type": "identifier", "text": "EV_A", "parent": 277, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 29}}, {"id": 279, "type": "identifier", "text": "stream", "parent": 277, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 37}}, {"id": 280, "type": "number_literal", "text": "4000", "parent": 277, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 43}}, {"id": 281, "type": "function_definition", "text": "static void on_server_close(EV_P, struct evn_server* server)\n{\n puts(\"[Server] on server close\");\n}", "parent": null, "children": [282, 283], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 282, "type": "primitive_type", "text": "void", "parent": 281, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 11}}, {"id": 283, "type": "function_declarator", "text": "on_server_close(EV_P, struct evn_server* server)", "parent": 281, "children": [284, 285], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 60}}, {"id": 284, "type": "identifier", "text": "on_server_close", "parent": 283, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 27}}, {"id": 285, "type": "parameter_list", "text": "(EV_P, struct evn_server* server)", "parent": 283, "children": [286, 288], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 60}}, {"id": 286, "type": "parameter_declaration", "text": "EV_P", "parent": 285, "children": [287], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 32}}, {"id": 287, "type": "type_identifier", "text": "EV_P", "parent": 286, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 32}}, {"id": 288, "type": "parameter_declaration", "text": "struct evn_server* server", "parent": 285, "children": [289, 292], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 59}}, {"id": 289, "type": "struct_specifier", "text": "struct evn_server", "parent": 288, "children": [290, 291], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 51}}, {"id": 290, "type": "struct", "text": "struct", "parent": 289, "children": [], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 40}}, {"id": 291, "type": "type_identifier", "text": "evn_server", "parent": 289, "children": [], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 93, "column": 51}}, {"id": 292, "type": "pointer_declarator", "text": "* server", "parent": 288, "children": [293, 294], "start_point": {"row": 93, "column": 51}, "end_point": {"row": 93, "column": 59}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 93, "column": 51}, "end_point": {"row": 93, "column": 52}}, {"id": 294, "type": "identifier", "text": "server", "parent": 292, "children": [], "start_point": {"row": 93, "column": 53}, "end_point": {"row": 93, "column": 59}}, {"id": 295, "type": "call_expression", "text": "puts(\"[Server] on server close\")", "parent": 281, "children": [296, 297], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 34}}, {"id": 296, "type": "identifier", "text": "puts", "parent": 295, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 297, "type": "argument_list", "text": "(\"[Server] on server close\")", "parent": 295, "children": [298], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 34}}, {"id": 298, "type": "string_literal", "text": "\"[Server] on server close\"", "parent": 297, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 33}}, {"id": 299, "type": "function_definition", "text": "int main (int argc, char* argv[])\n{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // Create unix socket in non-blocking fashion\n char socket_address[256] = {};\n snprintf(socket_address, 256, \"%s%i%s\", \"/tmp/libevnet-echo.\", (int) getuid(), \".sock\");\n printf(\"socket_address: %s\\n\", socket_address);\n unlink(socket_address);\n\n server = evn_server_create(EV_A_ on_connection);\n //server->on_listen = on_listen;\n server->on_close = on_server_close;\n evn_server_listen(server, 0, socket_address);\n\n ev_loop(EV_A_ 0);\n puts(\"[Server] No events left\");\n return 0;\n}", "parent": null, "children": [300, 301], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 300, "type": "primitive_type", "text": "int", "parent": 299, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 3}}, {"id": 301, "type": "function_declarator", "text": "main (int argc, char* argv[])", "parent": 299, "children": [302, 303], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 33}}, {"id": 302, "type": "identifier", "text": "main", "parent": 301, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 8}}, {"id": 303, "type": "parameter_list", "text": "(int argc, char* argv[])", "parent": 301, "children": [304, 307], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 33}}, {"id": 304, "type": "parameter_declaration", "text": "int argc", "parent": 303, "children": [305, 306], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 18}}, {"id": 305, "type": "primitive_type", "text": "int", "parent": 304, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 13}}, {"id": 306, "type": "identifier", "text": "argc", "parent": 304, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 18}}, {"id": 307, "type": "parameter_declaration", "text": "char* argv[]", "parent": 303, "children": [308, 309], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 32}}, {"id": 308, "type": "primitive_type", "text": "char", "parent": 307, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 24}}, {"id": 309, "type": "pointer_declarator", "text": "* argv[]", "parent": 307, "children": [310, 311], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 32}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 311, "type": "array_declarator", "text": "argv[]", "parent": 309, "children": [312], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 32}}, {"id": 312, "type": "identifier", "text": "argv", "parent": 311, "children": [], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 30}}, {"id": 313, "type": "assignment_expression", "text": "EV_P = ev_default_loop(0)", "parent": 299, "children": [314, 315, 316], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 27}}, {"id": 314, "type": "identifier", "text": "EV_P", "parent": 313, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 6}}, {"id": 315, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 316, "type": "call_expression", "text": "ev_default_loop(0)", "parent": 313, "children": [317, 318], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 27}}, {"id": 317, "type": "identifier", "text": "ev_default_loop", "parent": 316, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 24}}, {"id": 318, "type": "argument_list", "text": "(0)", "parent": 316, "children": [319], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 27}}, {"id": 319, "type": "number_literal", "text": "0", "parent": 318, "children": [], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 26}}, {"id": 320, "type": "declaration", "text": "struct evn_server* server;", "parent": 299, "children": [321, 324], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 28}}, {"id": 321, "type": "struct_specifier", "text": "struct evn_server", "parent": 320, "children": [322, 323], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 19}}, {"id": 322, "type": "struct", "text": "struct", "parent": 321, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 8}}, {"id": 323, "type": "type_identifier", "text": "evn_server", "parent": 321, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 19}}, {"id": 324, "type": "pointer_declarator", "text": "* server", "parent": 320, "children": [325, 326], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 27}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 20}}, {"id": 326, "type": "identifier", "text": "server", "parent": 324, "children": [], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 27}}, {"id": 327, "type": "declaration", "text": "char socket_address[256] = {};", "parent": 299, "children": [328, 329], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 32}}, {"id": 328, "type": "primitive_type", "text": "char", "parent": 327, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 6}}, {"id": 329, "type": "init_declarator", "text": "socket_address[256] = {}", "parent": 327, "children": [330, 333, 334], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 31}}, {"id": 330, "type": "array_declarator", "text": "socket_address[256]", "parent": 329, "children": [331, 332], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 26}}, {"id": 331, "type": "identifier", "text": "socket_address", "parent": 330, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 21}}, {"id": 332, "type": "number_literal", "text": "256", "parent": 330, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 25}}, {"id": 333, "type": "=", "text": "=", "parent": 329, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 28}}, {"id": 334, "type": "initializer_list", "text": "{}", "parent": 329, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 31}}, {"id": 335, "type": "call_expression", "text": "snprintf(socket_address, 256, \"%s%i%s\", \"/tmp/libevnet-echo.\", (int) getuid(), \".sock\")", "parent": 299, "children": [336, 337], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 89}}, {"id": 336, "type": "identifier", "text": "snprintf", "parent": 335, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 10}}, {"id": 337, "type": "argument_list", "text": "(socket_address, 256, \"%s%i%s\", \"/tmp/libevnet-echo.\", (int) getuid(), \".sock\")", "parent": 335, "children": [338, 339, 340, 341, 342, 348], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 89}}, {"id": 338, "type": "identifier", "text": "socket_address", "parent": 337, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 25}}, {"id": 339, "type": "number_literal", "text": "256", "parent": 337, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 30}}, {"id": 340, "type": "string_literal", "text": "\"%s%i%s\"", "parent": 337, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 40}}, {"id": 341, "type": "string_literal", "text": "\"/tmp/libevnet-echo.\"", "parent": 337, "children": [], "start_point": {"row": 108, "column": 42}, "end_point": {"row": 108, "column": 63}}, {"id": 342, "type": "cast_expression", "text": "(int) getuid()", "parent": 337, "children": [343, 345], "start_point": {"row": 108, "column": 65}, "end_point": {"row": 108, "column": 79}}, {"id": 343, "type": "type_descriptor", "text": "int", "parent": 342, "children": [344], "start_point": {"row": 108, "column": 66}, "end_point": {"row": 108, "column": 69}}, {"id": 344, "type": "primitive_type", "text": "int", "parent": 343, "children": [], "start_point": {"row": 108, "column": 66}, "end_point": {"row": 108, "column": 69}}, {"id": 345, "type": "call_expression", "text": "getuid()", "parent": 342, "children": [346, 347], "start_point": {"row": 108, "column": 71}, "end_point": {"row": 108, "column": 79}}, {"id": 346, "type": "identifier", "text": "getuid", "parent": 345, "children": [], "start_point": {"row": 108, "column": 71}, "end_point": {"row": 108, "column": 77}}, {"id": 347, "type": "argument_list", "text": "()", "parent": 345, "children": [], "start_point": {"row": 108, "column": 77}, "end_point": {"row": 108, "column": 79}}, {"id": 348, "type": "string_literal", "text": "\".sock\"", "parent": 337, "children": [], "start_point": {"row": 108, "column": 81}, "end_point": {"row": 108, "column": 88}}, {"id": 349, "type": "call_expression", "text": "printf(\"socket_address: %s\\n\", socket_address)", "parent": 299, "children": [350, 351], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 48}}, {"id": 350, "type": "identifier", "text": "printf", "parent": 349, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 8}}, {"id": 351, "type": "argument_list", "text": "(\"socket_address: %s\\n\", socket_address)", "parent": 349, "children": [352, 354], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 48}}, {"id": 352, "type": "string_literal", "text": "\"socket_address: %s\\n\"", "parent": 351, "children": [353], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 31}}, {"id": 353, "type": "escape_sequence", "text": "\\n", "parent": 352, "children": [], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 30}}, {"id": 354, "type": "identifier", "text": "socket_address", "parent": 351, "children": [], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 47}}, {"id": 355, "type": "call_expression", "text": "unlink(socket_address)", "parent": 299, "children": [356, 357], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 24}}, {"id": 356, "type": "identifier", "text": "unlink", "parent": 355, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 8}}, {"id": 357, "type": "argument_list", "text": "(socket_address)", "parent": 355, "children": [358], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 24}}, {"id": 358, "type": "identifier", "text": "socket_address", "parent": 357, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 23}}, {"id": 359, "type": "assignment_expression", "text": "server = evn_server_create(EV_A_ on_connection)", "parent": 299, "children": [360, 361, 362], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 49}}, {"id": 360, "type": "identifier", "text": "server", "parent": 359, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 8}}, {"id": 361, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 10}}, {"id": 362, "type": "call_expression", "text": "evn_server_create(EV_A_ on_connection)", "parent": 359, "children": [363, 364], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 49}}, {"id": 363, "type": "identifier", "text": "evn_server_create", "parent": 362, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 28}}, {"id": 364, "type": "argument_list", "text": "(EV_A_ on_connection)", "parent": 362, "children": [365, 367], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 49}}, {"id": 365, "type": "ERROR", "text": "EV_A_", "parent": 364, "children": [366], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 34}}, {"id": 366, "type": "identifier", "text": "EV_A_", "parent": 365, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 34}}, {"id": 367, "type": "identifier", "text": "on_connection", "parent": 364, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 48}}, {"id": 368, "type": "assignment_expression", "text": "server->on_close = on_server_close", "parent": 299, "children": [369, 372, 373], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 36}}, {"id": 369, "type": "field_expression", "text": "server->on_close", "parent": 368, "children": [370, 371], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 18}}, {"id": 370, "type": "identifier", "text": "server", "parent": 369, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 8}}, {"id": 371, "type": "field_identifier", "text": "on_close", "parent": 369, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 18}}, {"id": 372, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 20}}, {"id": 373, "type": "identifier", "text": "on_server_close", "parent": 368, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 36}}, {"id": 374, "type": "call_expression", "text": "evn_server_listen(server, 0, socket_address)", "parent": 299, "children": [375, 376], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 46}}, {"id": 375, "type": "identifier", "text": "evn_server_listen", "parent": 374, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 19}}, {"id": 376, "type": "argument_list", "text": "(server, 0, socket_address)", "parent": 374, "children": [377, 378, 379], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 46}}, {"id": 377, "type": "identifier", "text": "server", "parent": 376, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 26}}, {"id": 378, "type": "number_literal", "text": "0", "parent": 376, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 29}}, {"id": 379, "type": "identifier", "text": "socket_address", "parent": 376, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 45}}, {"id": 380, "type": "ERROR", "text": "ev_loop(EV_A_", "parent": 299, "children": [381, 382], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 15}}, {"id": 381, "type": "identifier", "text": "ev_loop", "parent": 380, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 9}}, {"id": 382, "type": "identifier", "text": "EV_A_", "parent": 380, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 15}}, {"id": 383, "type": "number_literal", "text": "0", "parent": 299, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 17}}, {"id": 384, "type": "call_expression", "text": "puts(\"[Server] No events left\")", "parent": 299, "children": [385, 386], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 33}}, {"id": 385, "type": "identifier", "text": "puts", "parent": 384, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 6}}, {"id": 386, "type": "argument_list", "text": "(\"[Server] No events left\")", "parent": 384, "children": [387], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 33}}, {"id": 387, "type": "string_literal", "text": "\"[Server] No events left\"", "parent": 386, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 32}}, {"id": 388, "type": "return_statement", "text": "return 0;", "parent": 299, "children": [389], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 11}}, {"id": 389, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}]}, "node_categories": {"declarations": {"functions": [9, 11, 32, 34, 148, 150, 165, 167, 198, 200, 221, 223, 281, 283, 299, 301], "variables": [14, 16, 37, 45, 50, 53, 56, 153, 170, 178, 203, 205, 226, 234, 286, 288, 304, 307, 320, 327], "classes": [17, 18, 206, 207, 235, 236, 289, 290, 321, 322], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [23, 27, 64, 70, 71, 76, 81, 88, 92, 96, 106, 115, 116, 120, 125, 131, 137, 161, 181, 186, 187, 191, 212, 216, 241, 246, 252, 258, 264, 270, 275, 295, 316, 335, 342, 345, 349, 355, 362, 369, 374, 384], "assignments": [61, 103, 130, 245, 251, 257, 263, 269, 313, 359, 368], "loops": [], "conditionals": [12, 15, 19, 22, 24, 28, 30, 31, 35, 38, 40, 41, 44, 49, 52, 55, 57, 60, 62, 65, 69, 75, 77, 82, 84, 85, 87, 89, 91, 93, 97, 102, 104, 107, 110, 111, 112, 113, 114, 119, 121, 126, 132, 133, 135, 138, 142, 143, 145, 147, 151, 154, 156, 157, 160, 162, 168, 171, 173, 174, 177, 180, 182, 185, 190, 192, 194, 201, 204, 208, 211, 213, 217, 219, 220, 224, 227, 229, 230, 233, 237, 240, 242, 247, 248, 250, 253, 254, 256, 259, 260, 262, 265, 266, 268, 271, 272, 276, 278, 279, 284, 287, 291, 294, 296, 302, 306, 312, 314, 317, 323, 326, 331, 336, 338, 346, 350, 354, 356, 358, 360, 363, 366, 367, 370, 371, 373, 375, 377, 379, 381, 382, 385], "returns": [388], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 26, 67, 68, 79, 86, 95, 99, 123, 128, 140, 164, 184, 195, 215, 244, 280, 298, 319, 332, 339, 340, 341, 348, 352, 378, 383, 387, 389], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "on_drain", "text_snippet": "static void on_drain(EV_P, struct evn_stream* stream) {\n puts(\"[Server] On (Stream) Drain\");\n evn_"}, {"node_id": 11, "universal_type": "function", "name": "evn_stream*", "text_snippet": "on_drain(EV_P, struct evn_stream* stream)"}, {"node_id": 32, "universal_type": "function", "name": "on_data", "text_snippet": "static void on_data(EV_P_ struct evn_stream* stream, void* data, int size)\n{\n bool all_sent;\n FILE"}, {"node_id": 34, "universal_type": "function", "name": "evn_stream*", "text_snippet": "on_data(EV_P_ struct evn_stream* stream, void* data, int size)"}, {"node_id": 148, "universal_type": "function", "name": "on_stream_end", "text_snippet": "static void on_stream_end(EV_P_ struct evn_stream* stream)\n{\n puts(\"[Server] On (Stream) End\");\n}"}, {"node_id": 150, "universal_type": "function", "name": "evn_stream*", "text_snippet": "on_stream_end(EV_P_ struct evn_stream* stream)"}, {"node_id": 165, "universal_type": "function", "name": "on_stream_close", "text_snippet": "static void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)\n{\n //struct evn_server"}, {"node_id": 167, "universal_type": "function", "name": "evn_stream*", "text_snippet": "on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)"}, {"node_id": 198, "universal_type": "function", "name": "on_stream_timeout", "text_snippet": "static void on_stream_timeout(EV_P, struct evn_stream* stream)\n{\n puts(\"connection timed out, destr"}, {"node_id": 200, "universal_type": "function", "name": "evn_stream*", "text_snippet": "on_stream_timeout(EV_P, struct evn_stream* stream)"}, {"node_id": 221, "universal_type": "function", "name": "on_connection", "text_snippet": "static void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)\n{\n puts(\"[Ser"}, {"node_id": 223, "universal_type": "function", "name": "evn_server*", "text_snippet": "on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)"}, {"node_id": 281, "universal_type": "function", "name": "on_server_close", "text_snippet": "static void on_server_close(EV_P, struct evn_server* server)\n{\n puts(\"[Server] on server close\");\n}"}, {"node_id": 283, "universal_type": "function", "name": "evn_server*", "text_snippet": "on_server_close(EV_P, struct evn_server* server)"}, {"node_id": 299, "universal_type": "function", "name": "main", "text_snippet": "int main (int argc, char* argv[])\n{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // "}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "main (int argc, char* argv[])"}], "class_declarations": [{"node_id": 17, "universal_type": "class", "name": "evn_stream", "text_snippet": "struct evn_stream"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 206, "universal_type": "class", "name": "evn_stream", "text_snippet": "struct evn_stream"}, {"node_id": 207, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 235, "universal_type": "class", "name": "evn_stream", "text_snippet": "struct evn_stream"}, {"node_id": 236, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 289, "universal_type": "class", "name": "evn_server", "text_snippet": "struct evn_server"}, {"node_id": 290, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 321, "universal_type": "class", "name": "evn_server", "text_snippet": "struct evn_server"}, {"node_id": 322, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <ev.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"evn.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <ev.h>\n\n#include \"evn.h\"\n\n//\n// Event Callbacks\n//\n\nstatic void on_drain(EV_P, struct evn_stream* stream) {\n puts(\"[Server] On (Stream) Drain\");\n evn_stream_end(EV_A, stream);\n}\n\n// Data\nstatic void on_data(EV_P_ struct evn_stream* stream, void* data, int size)\n{\n bool all_sent;\n FILE* file;\n\n file = fopen(\"./echo-server-receive.dat\", \"wb\");\n if (NULL == file)\n {\n perror(\"failed to open file to write received data\");\n }\n else\n {\n fwrite(data, size, 1, file);\n fclose(file);\n }\n\n puts(\"[Server] On (Stream) Data\");\n printf(\"\\t received %d bytes, now resending to the client\\n\", size);\n all_sent = evn_stream_write(EV_A_ stream, data, size);\n\n if (false == all_sent)\n {\n puts(\"\\t all or part of the data was queued in user memory\");\n puts(\"\\t 'drain' will be emitted when the buffer is again free, and we will then end the socket\");\n stream->on_drain = on_drain;\n }\n else\n {\n puts(\"\\t wrote all data in one shot.\");\n evn_stream_end(EV_A_ stream);\n }\n}\n\n// End\nstatic void on_stream_end(EV_P_ struct evn_stream* stream)\n{\n puts(\"[Server] On (Stream) End\");\n}\n\n// Close\nstatic void on_stream_close(EV_P_ struct evn_stream* stream, bool had_error)\n{\n //struct evn_server* server = stream->server;\n puts(\"[Server] On (Stream) Close\");\n if (true == had_error)\n {\n fprintf(stderr, \"\\t[Server] Stream Close had an error\\n\");\n }\n\n //evn_server_close(EV_A_ server);\n}\n\nstatic void on_stream_timeout(EV_P, struct evn_stream* stream)\n{\n puts(\"connection timed out, destroying stream\");\n evn_stream_destroy(EV_A, stream);\n}\n\n// Connection\nstatic void on_connection(EV_P_ struct evn_server* server, struct evn_stream* stream)\n{\n puts(\"[Server] On Connection\");\n stream->on_data = on_data;\n stream->on_end = on_stream_end;\n stream->on_close = on_stream_close;\n stream->on_timeout = on_stream_timeout;\n stream->oneshot = true;\n\n evn_stream_set_timeout(EV_A, stream, 4000);\n}\n\n//// Listen\n//static void on_listen(EV_P_ struct evn_server* server)\n//{\n //puts(\"[Server] On Listen\");\n//}\n\n// Close\nstatic void on_server_close(EV_P, struct evn_server* server)\n{\n puts(\"[Server] on server close\");\n}\n\n//\n// Run Application\n//\nint main (int argc, char* argv[])\n{\n EV_P = ev_default_loop(0);\n struct evn_server* server;\n\n // Create unix socket in non-blocking fashion\n char socket_address[256] = {};\n snprintf(socket_address, 256, \"%s%i%s\", \"/tmp/libevnet-echo.\", (int) getuid(), \".sock\");\n printf(\"socket_address: %s\\n\", socket_address);\n unlink(socket_address);\n\n server = evn_server_create(EV_A_ on_connection);\n //server->on_listen = on_listen;\n server->on_close = on_server_close;\n evn_server_listen(server, 0, socket_address);\n\n ev_loop(EV_A_ 0);\n puts(\"[Server] No events left\");\n return 0;\n}\n"}
81,040
c
#ifndef __CCAPITYPES__ #define __CCAPITYPES__ using namespace std; #include <memory> #include <list> #include <iostream> #include <vector> #include <memory> class Variant { public: Variant(float v); Variant(short v); Variant(char v); Variant(long v); Variant(long long v); Variant() { pt_obj.cPt = (char*)&value;} float asFloat() { return *pt_obj.fPt; } long asLong() { return *pt_obj.lPt; } short asShort() { return *pt_obj.sPt; } char asChar() { return *pt_obj.cPt; } long long asLongLong() { return *pt_obj.llPt; } char * asPointer() { return pt_obj.cPt; } short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; } long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; } long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; } float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; } short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; } long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; } long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; } float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; } private: union pointer { char *cPt; short *sPt; long *lPt; long long *llPt; float *fPt; } pt_obj; char value[8]; }; struct AddressOffset //this is a pointer helper that contains an address and an offset { unsigned long address; unsigned int offset; AddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; } }; typedef list<unsigned int> PointerOffsets; //this is a list of offsets for a pointer typedef list<AddressOffset> AddressOffsets; //this is a list of address and offset items class PointerObj { public: PointerObj(AddressOffsets b); PointerObj(const unsigned long address, const PointerOffsets &pt); AddressOffsets pointers; unsigned long resolved; //this is our resolved address unsigned int updateCount; void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt); bool equal(PointerObj p); void update(); PointerOffsets getOffsets(); }; typedef shared_ptr<PointerObj> PointerItem; /* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on. The value is the memory at that address or whatever the resolved pointer address is. */ class AddressObj { public: unsigned long address; //this is our base address long long value; //this is the memory from either our base address or our resolved address long long store; //this is the value we will write to memory char sign; //signed or unsigned char type; //1-4byte, float PointerItem pointer; //our pointer info if we are using one AddressObj(); AddressObj(AddressObj &item); AddressObj(unsigned long a, unsigned long v, char t, char s); //a single address AddressObj(unsigned long a, unsigned long v, char s); //a single address AddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value AddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer void init(unsigned long a, unsigned long v, char t, char s); AddressObj &operator=(const AddressObj& t); bool operator==(const AddressObj &t); bool operator!=(const AddressObj &t); bool isPointer() { return pointer != nullptr; } int read(char *buf); int write(char *buf); void debug(); }; typedef shared_ptr<AddressObj> AddressItem; typedef vector<AddressItem> AddressList; #endif
36.03
96
(translation_unit) "#ifndef __CCAPITYPES__\n#define __CCAPITYPES__\n\nusing namespace std;\n#include <memory>\n#include <list>\n#include <iostream>\n#include <vector>\n#include <memory>\n\nclass Variant\n{\npublic:\n Variant(float v);\n Variant(short v);\n Variant(char v);\n Variant(long v);\n Variant(long long v);\n Variant() { pt_obj.cPt = (char*)&value;}\n\n\n float asFloat() { return *pt_obj.fPt; }\n long asLong() { return *pt_obj.lPt; }\n short asShort() { return *pt_obj.sPt; }\n char asChar() { return *pt_obj.cPt; }\n long long asLongLong() { return *pt_obj.llPt; }\n char * asPointer() { return pt_obj.cPt; }\n\n short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;\n char value[8];\n};\n\nstruct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n unsigned long address;\n unsigned int offset;\n AddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }\n};\n\ntypedef list<unsigned int> PointerOffsets; //this is a list of offsets for a pointer\ntypedef list<AddressOffset> AddressOffsets; //this is a list of address and offset items\n\n\nclass PointerObj\n{\npublic:\n PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);\n\n AddressOffsets pointers;\n unsigned long resolved; //this is our resolved address\n\n unsigned int updateCount;\n void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n bool equal(PointerObj p);\n void update();\n PointerOffsets getOffsets();\n};\ntypedef shared_ptr<PointerObj> PointerItem;\n\n/* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on.\n The value is the memory at that address or whatever the resolved pointer address is. */\nclass AddressObj\n{\npublic:\n unsigned long address; //this is our base address\n long long value; //this is the memory from either our base address or our resolved address\n long long store; //this is the value we will write to memory\n char sign; //signed or unsigned\n char type; //1-4byte, float\n PointerItem pointer; //our pointer info if we are using one\n AddressObj();\n AddressObj(AddressObj &item);\n AddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n AddressObj(unsigned long a, unsigned long v, char s); //a single address\n AddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n AddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n void init(unsigned long a, unsigned long v, char t, char s);\n AddressObj &operator=(const AddressObj& t); \n bool operator==(const AddressObj &t);\n bool operator!=(const AddressObj &t);\n bool isPointer() { return pointer != nullptr; }\n int read(char *buf);\n int write(char *buf);\n void debug();\n};\ntypedef shared_ptr<AddressObj> AddressItem;\n\ntypedef vector<AddressItem> AddressList;\n#endif\n" (preproc_ifdef) "#ifndef __CCAPITYPES__\n#define __CCAPITYPES__\n\nusing namespace std;\n#include <memory>\n#include <list>\n#include <iostream>\n#include <vector>\n#include <memory>\n\nclass Variant\n{\npublic:\n Variant(float v);\n Variant(short v);\n Variant(char v);\n Variant(long v);\n Variant(long long v);\n Variant() { pt_obj.cPt = (char*)&value;}\n\n\n float asFloat() { return *pt_obj.fPt; }\n long asLong() { return *pt_obj.lPt; }\n short asShort() { return *pt_obj.sPt; }\n char asChar() { return *pt_obj.cPt; }\n long long asLongLong() { return *pt_obj.llPt; }\n char * asPointer() { return pt_obj.cPt; }\n\n short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;\n char value[8];\n};\n\nstruct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n unsigned long address;\n unsigned int offset;\n AddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }\n};\n\ntypedef list<unsigned int> PointerOffsets; //this is a list of offsets for a pointer\ntypedef list<AddressOffset> AddressOffsets; //this is a list of address and offset items\n\n\nclass PointerObj\n{\npublic:\n PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);\n\n AddressOffsets pointers;\n unsigned long resolved; //this is our resolved address\n\n unsigned int updateCount;\n void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n bool equal(PointerObj p);\n void update();\n PointerOffsets getOffsets();\n};\ntypedef shared_ptr<PointerObj> PointerItem;\n\n/* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on.\n The value is the memory at that address or whatever the resolved pointer address is. */\nclass AddressObj\n{\npublic:\n unsigned long address; //this is our base address\n long long value; //this is the memory from either our base address or our resolved address\n long long store; //this is the value we will write to memory\n char sign; //signed or unsigned\n char type; //1-4byte, float\n PointerItem pointer; //our pointer info if we are using one\n AddressObj();\n AddressObj(AddressObj &item);\n AddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n AddressObj(unsigned long a, unsigned long v, char s); //a single address\n AddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n AddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n void init(unsigned long a, unsigned long v, char t, char s);\n AddressObj &operator=(const AddressObj& t); \n bool operator==(const AddressObj &t);\n bool operator!=(const AddressObj &t);\n bool isPointer() { return pointer != nullptr; }\n int read(char *buf);\n int write(char *buf);\n void debug();\n};\ntypedef shared_ptr<AddressObj> AddressItem;\n\ntypedef vector<AddressItem> AddressList;\n#endif" (#ifndef) "#ifndef" (identifier) "__CCAPITYPES__" (preproc_def) "#define __CCAPITYPES__\n" (#define) "#define" (identifier) "__CCAPITYPES__" (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <list>\n" (#include) "#include" (system_lib_string) "<list>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (function_definition) "class Variant\n{\npublic:\n Variant(float v);\n Variant(short v);\n Variant(char v);\n Variant(long v);\n Variant(long long v);\n Variant() { pt_obj.cPt = (char*)&value;}\n\n\n float asFloat() { return *pt_obj.fPt; }\n long asLong() { return *pt_obj.lPt; }\n short asShort() { return *pt_obj.sPt; }\n char asChar() { return *pt_obj.cPt; }\n long long asLongLong() { return *pt_obj.llPt; }\n char * asPointer() { return pt_obj.cPt; }\n\n short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;\n char value[8];\n}" (type_identifier) "class" (identifier) "Variant" (compound_statement) "{\npublic:\n Variant(float v);\n Variant(short v);\n Variant(char v);\n Variant(long v);\n Variant(long long v);\n Variant() { pt_obj.cPt = (char*)&value;}\n\n\n float asFloat() { return *pt_obj.fPt; }\n long asLong() { return *pt_obj.lPt; }\n short asShort() { return *pt_obj.sPt; }\n char asChar() { return *pt_obj.cPt; }\n long long asLongLong() { return *pt_obj.llPt; }\n char * asPointer() { return pt_obj.cPt; }\n\n short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;\n char value[8];\n}" ({) "{" (labeled_statement) "public:\n Variant(float v);\n Variant(short v);" (statement_identifier) "public" (:) ":" (declaration) "Variant(float v);\n Variant(short v);" (macro_type_specifier) "Variant(float v)" (identifier) "Variant" (() "(" (ERROR) "float" (primitive_type) "float" (type_descriptor) "v" (type_identifier) "v" ()) ")" (ERROR) ";" (;) ";" (function_declarator) "Variant(short v)" (identifier) "Variant" (parameter_list) "(short v)" (() "(" (parameter_declaration) "short v" (sized_type_specifier) "short" (short) "short" (identifier) "v" ()) ")" (;) ";" (macro_type_specifier) "Variant(char v)" (identifier) "Variant" (() "(" (ERROR) "char" (primitive_type) "char" (type_descriptor) "v" (type_identifier) "v" ()) ")" (;) ";" (macro_type_specifier) "Variant(long v)" (identifier) "Variant" (() "(" (type_descriptor) "long v" (sized_type_specifier) "long v" (long) "long" (type_identifier) "v" ()) ")" (;) ";" (macro_type_specifier) "Variant(long long v)" (identifier) "Variant" (() "(" (type_descriptor) "long long v" (sized_type_specifier) "long long v" (long) "long" (long) "long" (type_identifier) "v" ()) ")" (;) ";" (expression_statement) "Variant()" (call_expression) "Variant()" (identifier) "Variant" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ pt_obj.cPt = (char*)&value;}" ({) "{" (expression_statement) "pt_obj.cPt = (char*)&value;" (assignment_expression) "pt_obj.cPt = (char*)&value" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (cast_expression) "(char*)&value" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&value" (&) "&" (identifier) "value" (;) ";" (}) "}" (function_definition) "float asFloat() { return *pt_obj.fPt; }" (primitive_type) "float" (function_declarator) "asFloat()" (identifier) "asFloat" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return *pt_obj.fPt; }" ({) "{" (return_statement) "return *pt_obj.fPt;" (return) "return" (pointer_expression) "*pt_obj.fPt" (*) "*" (field_expression) "pt_obj.fPt" (identifier) "pt_obj" (.) "." (field_identifier) "fPt" (;) ";" (}) "}" (function_definition) "long asLong() { return *pt_obj.lPt; }" (sized_type_specifier) "long" (long) "long" (function_declarator) "asLong()" (identifier) "asLong" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return *pt_obj.lPt; }" ({) "{" (return_statement) "return *pt_obj.lPt;" (return) "return" (pointer_expression) "*pt_obj.lPt" (*) "*" (field_expression) "pt_obj.lPt" (identifier) "pt_obj" (.) "." (field_identifier) "lPt" (;) ";" (}) "}" (function_definition) "short asShort() { return *pt_obj.sPt; }" (sized_type_specifier) "short" (short) "short" (function_declarator) "asShort()" (identifier) "asShort" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return *pt_obj.sPt; }" ({) "{" (return_statement) "return *pt_obj.sPt;" (return) "return" (pointer_expression) "*pt_obj.sPt" (*) "*" (field_expression) "pt_obj.sPt" (identifier) "pt_obj" (.) "." (field_identifier) "sPt" (;) ";" (}) "}" (function_definition) "char asChar() { return *pt_obj.cPt; }" (primitive_type) "char" (function_declarator) "asChar()" (identifier) "asChar" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return *pt_obj.cPt; }" ({) "{" (return_statement) "return *pt_obj.cPt;" (return) "return" (pointer_expression) "*pt_obj.cPt" (*) "*" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (;) ";" (}) "}" (function_definition) "long long asLongLong() { return *pt_obj.llPt; }" (sized_type_specifier) "long long" (long) "long" (long) "long" (function_declarator) "asLongLong()" (identifier) "asLongLong" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return *pt_obj.llPt; }" ({) "{" (return_statement) "return *pt_obj.llPt;" (return) "return" (pointer_expression) "*pt_obj.llPt" (*) "*" (field_expression) "pt_obj.llPt" (identifier) "pt_obj" (.) "." (field_identifier) "llPt" (;) ";" (}) "}" (function_definition) "char * asPointer() { return pt_obj.cPt; }" (primitive_type) "char" (pointer_declarator) "* asPointer()" (*) "*" (function_declarator) "asPointer()" (identifier) "asPointer" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return pt_obj.cPt; }" ({) "{" (return_statement) "return pt_obj.cPt;" (return) "return" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (;) ";" (}) "}" (function_definition) "short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "*convertToShortPointer(char *pt)" (*) "*" (function_declarator) "convertToShortPointer(char *pt)" (identifier) "convertToShortPointer" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return pt_obj.sPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return pt_obj.sPt;" (return) "return" (field_expression) "pt_obj.sPt" (identifier) "pt_obj" (.) "." (field_identifier) "sPt" (;) ";" (}) "}" (function_definition) "long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }" (sized_type_specifier) "long" (long) "long" (pointer_declarator) "*convertToLongPointer(char *pt)" (*) "*" (function_declarator) "convertToLongPointer(char *pt)" (identifier) "convertToLongPointer" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return pt_obj.lPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return pt_obj.lPt;" (return) "return" (field_expression) "pt_obj.lPt" (identifier) "pt_obj" (.) "." (field_identifier) "lPt" (;) ";" (}) "}" (function_definition) "long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }" (sized_type_specifier) "long long" (long) "long" (long) "long" (pointer_declarator) "*convertToLongLongPointer(char *pt)" (*) "*" (function_declarator) "convertToLongLongPointer(char *pt)" (identifier) "convertToLongLongPointer" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return pt_obj.llPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return pt_obj.llPt;" (return) "return" (field_expression) "pt_obj.llPt" (identifier) "pt_obj" (.) "." (field_identifier) "llPt" (;) ";" (}) "}" (function_definition) "float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }" (primitive_type) "float" (pointer_declarator) "*convertToFloatPointer(char *pt)" (*) "*" (function_declarator) "convertToFloatPointer(char *pt)" (identifier) "convertToFloatPointer" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return pt_obj.fPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return pt_obj.fPt;" (return) "return" (field_expression) "pt_obj.fPt" (identifier) "pt_obj" (.) "." (field_identifier) "fPt" (;) ";" (}) "}" (function_definition) "short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }" (sized_type_specifier) "short" (short) "short" (function_declarator) "convertToShort(char *pt)" (identifier) "convertToShort" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return *pt_obj.sPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return *pt_obj.sPt;" (return) "return" (pointer_expression) "*pt_obj.sPt" (*) "*" (field_expression) "pt_obj.sPt" (identifier) "pt_obj" (.) "." (field_identifier) "sPt" (;) ";" (}) "}" (function_definition) "long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }" (sized_type_specifier) "long" (long) "long" (function_declarator) "convertToLong(char *pt)" (identifier) "convertToLong" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return *pt_obj.lPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return *pt_obj.lPt;" (return) "return" (pointer_expression) "*pt_obj.lPt" (*) "*" (field_expression) "pt_obj.lPt" (identifier) "pt_obj" (.) "." (field_identifier) "lPt" (;) ";" (}) "}" (function_definition) "long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }" (sized_type_specifier) "long long" (long) "long" (long) "long" (function_declarator) "convertToLongLong(char *pt)" (identifier) "convertToLongLong" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return *pt_obj.llPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return *pt_obj.llPt;" (return) "return" (pointer_expression) "*pt_obj.llPt" (*) "*" (field_expression) "pt_obj.llPt" (identifier) "pt_obj" (.) "." (field_identifier) "llPt" (;) ";" (}) "}" (function_definition) "float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }" (primitive_type) "float" (function_declarator) "convertToFloat(char *pt)" (identifier) "convertToFloat" (parameter_list) "(char *pt)" (() "(" (parameter_declaration) "char *pt" (primitive_type) "char" (pointer_declarator) "*pt" (*) "*" (identifier) "pt" ()) ")" (compound_statement) "{ pt_obj.cPt = pt; return *pt_obj.fPt; }" ({) "{" (expression_statement) "pt_obj.cPt = pt;" (assignment_expression) "pt_obj.cPt = pt" (field_expression) "pt_obj.cPt" (identifier) "pt_obj" (.) "." (field_identifier) "cPt" (=) "=" (identifier) "pt" (;) ";" (return_statement) "return *pt_obj.fPt;" (return) "return" (pointer_expression) "*pt_obj.fPt" (*) "*" (field_expression) "pt_obj.fPt" (identifier) "pt_obj" (.) "." (field_identifier) "fPt" (;) ";" (}) "}" (labeled_statement) "private:\n union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;" (statement_identifier) "private" (:) ":" (declaration) "union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n } pt_obj;" (union_specifier) "union pointer\n {\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n }" (union) "union" (type_identifier) "pointer" (field_declaration_list) "{\n char *cPt;\n short *sPt;\n long *lPt;\n long long *llPt;\n float *fPt;\n }" ({) "{" (field_declaration) "char *cPt;" (primitive_type) "char" (pointer_declarator) "*cPt" (*) "*" (field_identifier) "cPt" (;) ";" (field_declaration) "short *sPt;" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "*sPt" (*) "*" (field_identifier) "sPt" (;) ";" (field_declaration) "long *lPt;" (sized_type_specifier) "long" (long) "long" (pointer_declarator) "*lPt" (*) "*" (field_identifier) "lPt" (;) ";" (field_declaration) "long long *llPt;" (sized_type_specifier) "long long" (long) "long" (long) "long" (pointer_declarator) "*llPt" (*) "*" (field_identifier) "llPt" (;) ";" (field_declaration) "float *fPt;" (primitive_type) "float" (pointer_declarator) "*fPt" (*) "*" (field_identifier) "fPt" (;) ";" (}) "}" (identifier) "pt_obj" (;) ";" (declaration) "char value[8];" (primitive_type) "char" (array_declarator) "value[8]" (identifier) "value" ([) "[" (number_literal) "8" (]) "]" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n unsigned long address;\n unsigned int offset;\n AddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }" (struct) "struct" (type_identifier) "AddressOffset" (comment) "//this is a pointer helper that contains an address and an offset" (field_declaration_list) "{\n unsigned long address;\n unsigned int offset;\n AddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }" ({) "{" (field_declaration) "unsigned long address;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "address" (;) ";" (field_declaration) "unsigned int offset;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "offset" (;) ";" (field_declaration) "AddressOffset(unsigned long a, unsigned int o) { address = a;" (macro_type_specifier) "AddressOffset(unsigned long a, unsigned int o)" (identifier) "AddressOffset" (() "(" (ERROR) "unsigned long a, unsigned int" (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (,) "," (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (type_descriptor) "o" (type_identifier) "o" ()) ")" (ERROR) "{ address =" ({) "{" (field_identifier) "address" (=) "=" (field_identifier) "a" (;) ";" (field_declaration) "offset = o;" (type_identifier) "offset" (ERROR) "=" (=) "=" (field_identifier) "o" (;) ";" (}) "}" (ERROR) "}" (}) "}" (;) ";" (type_definition) "typedef list<unsigned int> PointerOffsets;" (typedef) "typedef" (sized_type_specifier) "list<unsigned" (type_identifier) "list" (ERROR) "<" (<) "<" (unsigned) "unsigned" (ERROR) "int>" (primitive_type) "int" (>) ">" (type_identifier) "PointerOffsets" (;) ";" (comment) "//this is a list of offsets for a pointer" (type_definition) "typedef list<AddressOffset> AddressOffsets;" (typedef) "typedef" (type_identifier) "list" (ERROR) "<AddressOffset>" (<) "<" (type_identifier) "AddressOffset" (>) ">" (type_identifier) "AddressOffsets" (;) ";" (comment) "//this is a list of address and offset items" (function_definition) "class PointerObj\n{\npublic:\n PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);\n\n AddressOffsets pointers;\n unsigned long resolved; //this is our resolved address\n\n unsigned int updateCount;\n void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n bool equal(PointerObj p);\n void update();\n PointerOffsets getOffsets();\n}" (type_identifier) "class" (identifier) "PointerObj" (compound_statement) "{\npublic:\n PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);\n\n AddressOffsets pointers;\n unsigned long resolved; //this is our resolved address\n\n unsigned int updateCount;\n void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n bool equal(PointerObj p);\n void update();\n PointerOffsets getOffsets();\n}" ({) "{" (labeled_statement) "public:\n PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);" (statement_identifier) "public" (:) ":" (declaration) "PointerObj(AddressOffsets b);\n PointerObj(const unsigned long address, const PointerOffsets &pt);" (macro_type_specifier) "PointerObj(AddressOffsets b)" (identifier) "PointerObj" (() "(" (type_descriptor) "AddressOffsets" (type_identifier) "AddressOffsets" (ERROR) "b" (identifier) "b" ()) ")" (ERROR) ";" (;) ";" (function_declarator) "PointerObj(const unsigned long address, const PointerOffsets &pt)" (identifier) "PointerObj" (parameter_list) "(const unsigned long address, const PointerOffsets &pt)" (() "(" (parameter_declaration) "const unsigned long address" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "address" (,) "," (parameter_declaration) "const PointerOffsets &pt" (type_qualifier) "const" (const) "const" (type_identifier) "PointerOffsets" (ERROR) "&" (&) "&" (identifier) "pt" ()) ")" (;) ";" (declaration) "AddressOffsets pointers;" (type_identifier) "AddressOffsets" (identifier) "pointers" (;) ";" (declaration) "unsigned long resolved;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "resolved" (;) ";" (comment) "//this is our resolved address" (declaration) "unsigned int updateCount;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "updateCount" (;) ";" (declaration) "void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);" (primitive_type) "void" (function_declarator) "fromPointerOffsets(const unsigned long address, const PointerOffsets &pt)" (identifier) "fromPointerOffsets" (parameter_list) "(const unsigned long address, const PointerOffsets &pt)" (() "(" (parameter_declaration) "const unsigned long address" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "address" (,) "," (parameter_declaration) "const PointerOffsets &pt" (type_qualifier) "const" (const) "const" (type_identifier) "PointerOffsets" (ERROR) "&" (&) "&" (identifier) "pt" ()) ")" (;) ";" (declaration) "bool equal(PointerObj p);" (primitive_type) "bool" (function_declarator) "equal(PointerObj p)" (identifier) "equal" (parameter_list) "(PointerObj p)" (() "(" (parameter_declaration) "PointerObj p" (type_identifier) "PointerObj" (identifier) "p" ()) ")" (;) ";" (declaration) "void update();" (primitive_type) "void" (function_declarator) "update()" (identifier) "update" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "PointerOffsets getOffsets();" (type_identifier) "PointerOffsets" (function_declarator) "getOffsets()" (identifier) "getOffsets" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef shared_ptr<PointerObj> PointerItem;" (typedef) "typedef" (type_identifier) "shared_ptr" (ERROR) "<PointerObj>" (<) "<" (type_identifier) "PointerObj" (>) ">" (type_identifier) "PointerItem" (;) ";" (comment) "/* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on.\n The value is the memory at that address or whatever the resolved pointer address is. */" (function_definition) "class AddressObj\n{\npublic:\n unsigned long address; //this is our base address\n long long value; //this is the memory from either our base address or our resolved address\n long long store; //this is the value we will write to memory\n char sign; //signed or unsigned\n char type; //1-4byte, float\n PointerItem pointer; //our pointer info if we are using one\n AddressObj();\n AddressObj(AddressObj &item);\n AddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n AddressObj(unsigned long a, unsigned long v, char s); //a single address\n AddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n AddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n void init(unsigned long a, unsigned long v, char t, char s);\n AddressObj &operator=(const AddressObj& t); \n bool operator==(const AddressObj &t);\n bool operator!=(const AddressObj &t);\n bool isPointer() { return pointer != nullptr; }\n int read(char *buf);\n int write(char *buf);\n void debug();\n}" (type_identifier) "class" (identifier) "AddressObj" (compound_statement) "{\npublic:\n unsigned long address; //this is our base address\n long long value; //this is the memory from either our base address or our resolved address\n long long store; //this is the value we will write to memory\n char sign; //signed or unsigned\n char type; //1-4byte, float\n PointerItem pointer; //our pointer info if we are using one\n AddressObj();\n AddressObj(AddressObj &item);\n AddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n AddressObj(unsigned long a, unsigned long v, char s); //a single address\n AddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n AddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n void init(unsigned long a, unsigned long v, char t, char s);\n AddressObj &operator=(const AddressObj& t); \n bool operator==(const AddressObj &t);\n bool operator!=(const AddressObj &t);\n bool isPointer() { return pointer != nullptr; }\n int read(char *buf);\n int write(char *buf);\n void debug();\n}" ({) "{" (labeled_statement) "public:\n unsigned long address;" (statement_identifier) "public" (:) ":" (declaration) "unsigned long address;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "address" (;) ";" (comment) "//this is our base address" (declaration) "long long value;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "value" (;) ";" (comment) "//this is the memory from either our base address or our resolved address" (declaration) "long long store;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "store" (;) ";" (comment) "//this is the value we will write to memory" (declaration) "char sign;" (primitive_type) "char" (identifier) "sign" (;) ";" (comment) "//signed or unsigned" (declaration) "char type;" (primitive_type) "char" (identifier) "type" (;) ";" (comment) "//1-4byte, float" (declaration) "PointerItem pointer;" (type_identifier) "PointerItem" (identifier) "pointer" (;) ";" (comment) "//our pointer info if we are using one" (expression_statement) "AddressObj();" (call_expression) "AddressObj()" (identifier) "AddressObj" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "AddressObj(AddressObj &item);" (call_expression) "AddressObj(AddressObj &item)" (identifier) "AddressObj" (argument_list) "(AddressObj &item)" (() "(" (binary_expression) "AddressObj &item" (identifier) "AddressObj" (&) "&" (identifier) "item" ()) ")" (;) ";" (declaration) "AddressObj(unsigned long a, unsigned long v, char t, char s);" (macro_type_specifier) "AddressObj(unsigned long a, unsigned long v, char" (identifier) "AddressObj" (() "(" (ERROR) "unsigned long a, unsigned long v," (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (,) "," (type_descriptor) "unsigned long v" (sized_type_specifier) "unsigned long v" (unsigned) "unsigned" (long) "long" (type_identifier) "v" (,) "," (type_descriptor) "char" (primitive_type) "char" ()) "" (identifier) "t" (,) "," (identifier) "char" (ERROR) "s)" (identifier) "s" ()) ")" (;) ";" (comment) "//a single address" (macro_type_specifier) "AddressObj(unsigned long a, unsigned long v, char s)" (identifier) "AddressObj" (() "(" (ERROR) "unsigned long a, unsigned long v, char" (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (,) "," (type_descriptor) "unsigned long v" (sized_type_specifier) "unsigned long v" (unsigned) "unsigned" (long) "long" (type_identifier) "v" (,) "," (primitive_type) "char" (type_descriptor) "s" (type_identifier) "s" ()) ")" (;) ";" (comment) "//a single address" (macro_type_specifier) "AddressObj(unsigned long a, PointerOffsets p, char t, char s)" (identifier) "AddressObj" (() "(" (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (ERROR) ", PointerOffsets p, char t, char s" (,) "," (identifier) "PointerOffsets" (identifier) "p" (,) "," (primitive_type) "char" (identifier) "t" (,) "," (primitive_type) "char" (identifier) "s" ()) ")" (;) ";" (comment) "//a pointer" (declaration) "AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s);" (macro_type_specifier) "AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char" (identifier) "AddressObj" (() "(" (ERROR) "unsigned long a, PointerOffsets p, unsigned long v," (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (,) "," (identifier) "PointerOffsets" (identifier) "p" (,) "," (type_descriptor) "unsigned long v" (sized_type_specifier) "unsigned long v" (unsigned) "unsigned" (long) "long" (type_identifier) "v" (,) "," (type_descriptor) "char" (primitive_type) "char" ()) "" (identifier) "t" (,) "," (identifier) "char" (ERROR) "s)" (identifier) "s" ()) ")" (;) ";" (comment) "//a pointer and value" (macro_type_specifier) "AddressObj(unsigned long a, PointerItem p, char t, char s)" (identifier) "AddressObj" (() "(" (type_descriptor) "unsigned long a" (sized_type_specifier) "unsigned long a" (unsigned) "unsigned" (long) "long" (type_identifier) "a" (ERROR) ", PointerItem p, char t, char s" (,) "," (identifier) "PointerItem" (identifier) "p" (,) "," (primitive_type) "char" (identifier) "t" (,) "," (primitive_type) "char" (identifier) "s" ()) ")" (;) ";" (comment) "//a pointer" (declaration) "void init(unsigned long a, unsigned long v, char t, char s);" (primitive_type) "void" (function_declarator) "init(unsigned long a, unsigned long v, char t, char s)" (identifier) "init" (parameter_list) "(unsigned long a, unsigned long v, char t, char s)" (() "(" (parameter_declaration) "unsigned long a" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "a" (,) "," (parameter_declaration) "unsigned long v" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "v" (,) "," (parameter_declaration) "char t" (primitive_type) "char" (identifier) "t" (,) "," (parameter_declaration) "char s" (primitive_type) "char" (identifier) "s" ()) ")" (;) ";" (expression_statement) "AddressObj &operator=(const AddressObj& t);" (binary_expression) "AddressObj &operator=(const AddressObj& t)" (identifier) "AddressObj" (&) "&" (assignment_expression) "operator=(const AddressObj& t)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const AddressObj& t)" (() "(" (ERROR) "const AddressObj" (type_descriptor) "const AddressObj" (type_qualifier) "const" (const) "const" (type_identifier) "AddressObj" (pointer_expression) "& t" (&) "&" (identifier) "t" ()) ")" (;) ";" (ERROR) "bool operator==(const AddressObj" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "AddressObj" (expression_statement) "&t);" (pointer_expression) "&t" (&) "&" (identifier) "t" (ERROR) ")" ()) ")" (;) ";" (ERROR) "bool operator!=(const AddressObj" (primitive_type) "bool" (identifier) "operator" (!=) "!=" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "AddressObj" (expression_statement) "&t);" (pointer_expression) "&t" (&) "&" (identifier) "t" (ERROR) ")" ()) ")" (;) ";" (function_definition) "bool isPointer() { return pointer != nullptr; }" (primitive_type) "bool" (function_declarator) "isPointer()" (identifier) "isPointer" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return pointer != nullptr; }" ({) "{" (return_statement) "return pointer != nullptr;" (return) "return" (binary_expression) "pointer != nullptr" (identifier) "pointer" (!=) "!=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (declaration) "int read(char *buf);" (primitive_type) "int" (function_declarator) "read(char *buf)" (identifier) "read" (parameter_list) "(char *buf)" (() "(" (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" ()) ")" (;) ";" (declaration) "int write(char *buf);" (primitive_type) "int" (function_declarator) "write(char *buf)" (identifier) "write" (parameter_list) "(char *buf)" (() "(" (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" ()) ")" (;) ";" (declaration) "void debug();" (primitive_type) "void" (function_declarator) "debug()" (identifier) "debug" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef shared_ptr<AddressObj> AddressItem;" (typedef) "typedef" (type_identifier) "shared_ptr" (ERROR) "<AddressObj>" (<) "<" (type_identifier) "AddressObj" (>) ">" (type_identifier) "AddressItem" (;) ";" (type_definition) "typedef vector<AddressItem> AddressList;" (typedef) "typedef" (type_identifier) "vector" (ERROR) "<AddressItem>" (<) "<" (type_identifier) "AddressItem" (>) ">" (type_identifier) "AddressList" (;) ";" (#endif) "#endif"
1,089
30
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 36.03, "nodes": 720, "errors": 0, "source_hash": "00005f1a41bb541c0146fb8beae4f67e92b733f26147a73b4da5d82e234c7422", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __CCAPITYPES__\n#define __CCAPITYPES__\n\nusing namespace std;\n#include <memory>\n#include <list>\n#include <iostream>\n#include <vector>\n#include <memory>\n\nclass Variant\n{\npublic:\n\tVariant(float v);\n\tVariant(short v);\n\tVariant(char v);\n\tVariant(long v);\n\tVariant(long long v);\n\tVariant() { pt_obj.cPt = (char*)&value;}\n\n\n\tfloat asFloat() { return *pt_obj.fPt; }\n\tlong asLong() { return *pt_obj.lPt; }\n\tshort asShort() { return *pt_obj.sPt; }\n\tchar asChar() { return *pt_obj.cPt; }\n\tlong long asLongLong() { return *pt_obj.llPt; }\n\tchar * asPointer() { return pt_obj.cPt; }\n\n\tshort *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n\tlong *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n\tlong long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n\tfloat *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n\tshort convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n\tlong convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n\tlong long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n\tfloat convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n\tunion pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t} pt_obj;\n\tchar value[8];\n};\n\nstruct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n\tunsigned long address;\n\tunsigned int offset;\n\tAddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }\n};\n\ntypedef list<unsigned int> PointerOffsets; //this is a list of offsets for a pointer\ntypedef list<AddressOffset> AddressOffsets; //this is a list of address and offset items\n\n\nclass PointerObj\n{\npublic:\n\tPointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, const PointerOffsets &pt);\n\n\tAddressOffsets pointers;\n\tunsigned long resolved; //this is our resolved address\n\n\tunsigned int updateCount;\n\tvoid fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n\tbool equal(PointerObj p);\n\tvoid update();\n\tPointerOffsets getOffsets();\n};\ntypedef shared_ptr<PointerObj> PointerItem;\n\n/* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on.\n The value is the memory at that address or whatever the resolved pointer address is. */\nclass AddressObj\n{\npublic:\n\tunsigned long address; //this is our base address\n\tlong long value; //this is the memory from either our base address or our resolved address\n\tlong long store; //this is the value we will write to memory\n\tchar sign; //signed or unsigned\n\tchar type; //1-4byte, float\n\tPointerItem pointer; //our pointer info if we are using one\n\tAddressObj();\n\tAddressObj(AddressObj &item);\n\tAddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n\tAddressObj(unsigned long a, unsigned long v, char s); //a single address\n\tAddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n\tAddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n\tAddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n\tvoid init(unsigned long a, unsigned long v, char t, char s);\n\tAddressObj &operator=(const AddressObj& t);\t\n\tbool operator==(const AddressObj &t);\n\tbool operator!=(const AddressObj &t);\n\tbool isPointer() { return pointer != nullptr; }\n\tint read(char *buf);\n\tint write(char *buf);\n\tvoid debug();\n};\ntypedef shared_ptr<AddressObj> AddressItem;\n\ntypedef vector<AddressItem> AddressList;\n#endif", "parent": null, "children": [1, 2, 3, 6, 11, 14, 17, 20, 23, 26, 371, 407, 418, 426, 491, 499, 703, 711, 719], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 108, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "__CCAPITYPES__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define __CCAPITYPES__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "__CCAPITYPES__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "declaration", "text": "using namespace std;", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 20}}, {"id": 7, "type": "type_identifier", "text": "using", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 5}}, {"id": 8, "type": "identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 15}}, {"id": 9, "type": "ERROR", "text": "std", "parent": 6, "children": [10], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 19}}, {"id": 10, "type": "identifier", "text": "std", "parent": 9, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 19}}, {"id": 11, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [12, 13], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<memory>", "parent": 11, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 14, "type": "preproc_include", "text": "#include <list>\n", "parent": 0, "children": [15, 16], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 16, "type": "system_lib_string", "text": "<list>", "parent": 14, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 17, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [18, 19], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 19, "type": "system_lib_string", "text": "<iostream>", "parent": 17, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 20, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [21, 22], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 22, "type": "system_lib_string", "text": "<vector>", "parent": 20, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 23, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [24, 25], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 25, "type": "system_lib_string", "text": "<memory>", "parent": 23, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 26, "type": "function_definition", "text": "class Variant\n{\npublic:\n\tVariant(float v);\n\tVariant(short v);\n\tVariant(char v);\n\tVariant(long v);\n\tVariant(long long v);\n\tVariant() { pt_obj.cPt = (char*)&value;}\n\n\n\tfloat asFloat() { return *pt_obj.fPt; }\n\tlong asLong() { return *pt_obj.lPt; }\n\tshort asShort() { return *pt_obj.sPt; }\n\tchar asChar() { return *pt_obj.cPt; }\n\tlong long asLongLong() { return *pt_obj.llPt; }\n\tchar * asPointer() { return pt_obj.cPt; }\n\n\tshort *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n\tlong *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n\tlong long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n\tfloat *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n\tshort convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n\tlong convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n\tlong long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n\tfloat convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n\tunion pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t} pt_obj;\n\tchar value[8];\n}", "parent": 0, "children": [27], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 27, "type": "identifier", "text": "Variant", "parent": 26, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 13}}, {"id": 28, "type": "labeled_statement", "text": "public:\n\tVariant(float v);\n\tVariant(short v);", "parent": 26, "children": [29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 18}}, {"id": 29, "type": "declaration", "text": "Variant(float v);\n\tVariant(short v);", "parent": 28, "children": [30, 36], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 14, "column": 18}}, {"id": 30, "type": "macro_type_specifier", "text": "Variant(float v)", "parent": 29, "children": [31, 32, 34], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 17}}, {"id": 31, "type": "identifier", "text": "Variant", "parent": 30, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 8}}, {"id": 32, "type": "ERROR", "text": "float", "parent": 30, "children": [33], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 33, "type": "primitive_type", "text": "float", "parent": 32, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 34, "type": "type_descriptor", "text": "v", "parent": 30, "children": [35], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 35, "type": "type_identifier", "text": "v", "parent": 34, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 36, "type": "function_declarator", "text": "Variant(short v)", "parent": 29, "children": [37, 38], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 17}}, {"id": 37, "type": "identifier", "text": "Variant", "parent": 36, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 38, "type": "parameter_list", "text": "(short v)", "parent": 36, "children": [39], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 39, "type": "parameter_declaration", "text": "short v", "parent": 38, "children": [40, 42], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 16}}, {"id": 40, "type": "sized_type_specifier", "text": "short", "parent": 39, "children": [41], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 14}}, {"id": 41, "type": "short", "text": "short", "parent": 40, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 14}}, {"id": 42, "type": "identifier", "text": "v", "parent": 39, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 43, "type": "macro_type_specifier", "text": "Variant(char v)", "parent": 26, "children": [44, 45, 47], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 16}}, {"id": 44, "type": "identifier", "text": "Variant", "parent": 43, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 8}}, {"id": 45, "type": "ERROR", "text": "char", "parent": 43, "children": [46], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 46, "type": "primitive_type", "text": "char", "parent": 45, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 47, "type": "type_descriptor", "text": "v", "parent": 43, "children": [48], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 48, "type": "type_identifier", "text": "v", "parent": 47, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 49, "type": "macro_type_specifier", "text": "Variant(long v)", "parent": 26, "children": [50, 51], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 16}}, {"id": 50, "type": "identifier", "text": "Variant", "parent": 49, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 51, "type": "type_descriptor", "text": "long v", "parent": 49, "children": [52], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 15}}, {"id": 52, "type": "sized_type_specifier", "text": "long v", "parent": 51, "children": [53, 54], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 15}}, {"id": 53, "type": "long", "text": "long", "parent": 52, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 54, "type": "type_identifier", "text": "v", "parent": 52, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 55, "type": "macro_type_specifier", "text": "Variant(long long v)", "parent": 26, "children": [56, 57], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 21}}, {"id": 56, "type": "identifier", "text": "Variant", "parent": 55, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 8}}, {"id": 57, "type": "type_descriptor", "text": "long long v", "parent": 55, "children": [58], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 58, "type": "sized_type_specifier", "text": "long long v", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 59, "type": "long", "text": "long", "parent": 58, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 60, "type": "long", "text": "long", "parent": 58, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 61, "type": "type_identifier", "text": "v", "parent": 58, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 20}}, {"id": 62, "type": "call_expression", "text": "Variant()", "parent": 26, "children": [63, 64], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 63, "type": "identifier", "text": "Variant", "parent": 62, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 64, "type": "argument_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 10}}, {"id": 65, "type": "assignment_expression", "text": "pt_obj.cPt = (char*)&value", "parent": 26, "children": [66, 69, 70], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 39}}, {"id": 66, "type": "field_expression", "text": "pt_obj.cPt", "parent": 65, "children": [67, 68], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 23}}, {"id": 67, "type": "identifier", "text": "pt_obj", "parent": 66, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 19}}, {"id": 68, "type": "field_identifier", "text": "cPt", "parent": 66, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 23}}, {"id": 69, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 25}}, {"id": 70, "type": "cast_expression", "text": "(char*)&value", "parent": 65, "children": [71, 75], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 39}}, {"id": 71, "type": "type_descriptor", "text": "char*", "parent": 70, "children": [72, 73], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 32}}, {"id": 72, "type": "primitive_type", "text": "char", "parent": 71, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 31}}, {"id": 73, "type": "abstract_pointer_declarator", "text": "*", "parent": 71, "children": [74], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 32}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 32}}, {"id": 75, "type": "pointer_expression", "text": "&value", "parent": 70, "children": [76], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 39}}, {"id": 76, "type": "identifier", "text": "value", "parent": 75, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 39}}, {"id": 77, "type": "function_definition", "text": "float asFloat() { return *pt_obj.fPt; }", "parent": 26, "children": [78, 79], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 40}}, {"id": 78, "type": "primitive_type", "text": "float", "parent": 77, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 6}}, {"id": 79, "type": "function_declarator", "text": "asFloat()", "parent": 77, "children": [80, 81], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 16}}, {"id": 80, "type": "identifier", "text": "asFloat", "parent": 79, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 14}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 16}}, {"id": 82, "type": "return_statement", "text": "return *pt_obj.fPt;", "parent": 77, "children": [83], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 38}}, {"id": 83, "type": "pointer_expression", "text": "*pt_obj.fPt", "parent": 82, "children": [84, 85], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 37}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 85, "type": "field_expression", "text": "pt_obj.fPt", "parent": 83, "children": [86, 87], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 37}}, {"id": 86, "type": "identifier", "text": "pt_obj", "parent": 85, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 33}}, {"id": 87, "type": "field_identifier", "text": "fPt", "parent": 85, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 37}}, {"id": 88, "type": "function_definition", "text": "long asLong() { return *pt_obj.lPt; }", "parent": 26, "children": [89, 91], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 38}}, {"id": 89, "type": "sized_type_specifier", "text": "long", "parent": 88, "children": [90], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 90, "type": "long", "text": "long", "parent": 89, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 91, "type": "function_declarator", "text": "asLong()", "parent": 88, "children": [92, 93], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 92, "type": "identifier", "text": "asLong", "parent": 91, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 12}}, {"id": 93, "type": "parameter_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 14}}, {"id": 94, "type": "return_statement", "text": "return *pt_obj.lPt;", "parent": 88, "children": [95], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 36}}, {"id": 95, "type": "pointer_expression", "text": "*pt_obj.lPt", "parent": 94, "children": [96, 97], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 35}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 25}}, {"id": 97, "type": "field_expression", "text": "pt_obj.lPt", "parent": 95, "children": [98, 99], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 35}}, {"id": 98, "type": "identifier", "text": "pt_obj", "parent": 97, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 31}}, {"id": 99, "type": "field_identifier", "text": "lPt", "parent": 97, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 35}}, {"id": 100, "type": "function_definition", "text": "short asShort() { return *pt_obj.sPt; }", "parent": 26, "children": [101, 103], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 40}}, {"id": 101, "type": "sized_type_specifier", "text": "short", "parent": 100, "children": [102], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 6}}, {"id": 102, "type": "short", "text": "short", "parent": 101, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 6}}, {"id": 103, "type": "function_declarator", "text": "asShort()", "parent": 100, "children": [104, 105], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 16}}, {"id": 104, "type": "identifier", "text": "asShort", "parent": 103, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 14}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 16}}, {"id": 106, "type": "return_statement", "text": "return *pt_obj.sPt;", "parent": 100, "children": [107], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 38}}, {"id": 107, "type": "pointer_expression", "text": "*pt_obj.sPt", "parent": 106, "children": [108, 109], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 37}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 27}}, {"id": 109, "type": "field_expression", "text": "pt_obj.sPt", "parent": 107, "children": [110, 111], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 37}}, {"id": 110, "type": "identifier", "text": "pt_obj", "parent": 109, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 33}}, {"id": 111, "type": "field_identifier", "text": "sPt", "parent": 109, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 37}}, {"id": 112, "type": "function_definition", "text": "char asChar() { return *pt_obj.cPt; }", "parent": 26, "children": [113, 114], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 38}}, {"id": 113, "type": "primitive_type", "text": "char", "parent": 112, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 114, "type": "function_declarator", "text": "asChar()", "parent": 112, "children": [115, 116], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 14}}, {"id": 115, "type": "identifier", "text": "asChar", "parent": 114, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 12}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 14}}, {"id": 117, "type": "return_statement", "text": "return *pt_obj.cPt;", "parent": 112, "children": [118], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 36}}, {"id": 118, "type": "pointer_expression", "text": "*pt_obj.cPt", "parent": 117, "children": [119, 120], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 35}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 25}}, {"id": 120, "type": "field_expression", "text": "pt_obj.cPt", "parent": 118, "children": [121, 122], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 35}}, {"id": 121, "type": "identifier", "text": "pt_obj", "parent": 120, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 31}}, {"id": 122, "type": "field_identifier", "text": "cPt", "parent": 120, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 35}}, {"id": 123, "type": "function_definition", "text": "long long asLongLong() { return *pt_obj.llPt; }", "parent": 26, "children": [124, 127], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 48}}, {"id": 124, "type": "sized_type_specifier", "text": "long long", "parent": 123, "children": [125, 126], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 10}}, {"id": 125, "type": "long", "text": "long", "parent": 124, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 126, "type": "long", "text": "long", "parent": 124, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 127, "type": "function_declarator", "text": "asLongLong()", "parent": 123, "children": [128, 129], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 23}}, {"id": 128, "type": "identifier", "text": "asLongLong", "parent": 127, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 21}}, {"id": 129, "type": "parameter_list", "text": "()", "parent": 127, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 23}}, {"id": 130, "type": "return_statement", "text": "return *pt_obj.llPt;", "parent": 123, "children": [131], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 46}}, {"id": 131, "type": "pointer_expression", "text": "*pt_obj.llPt", "parent": 130, "children": [132, 133], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 45}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 34}}, {"id": 133, "type": "field_expression", "text": "pt_obj.llPt", "parent": 131, "children": [134, 135], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 45}}, {"id": 134, "type": "identifier", "text": "pt_obj", "parent": 133, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 40}}, {"id": 135, "type": "field_identifier", "text": "llPt", "parent": 133, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 45}}, {"id": 136, "type": "function_definition", "text": "char * asPointer() { return pt_obj.cPt; }", "parent": 26, "children": [137, 138], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 42}}, {"id": 137, "type": "primitive_type", "text": "char", "parent": 136, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 5}}, {"id": 138, "type": "pointer_declarator", "text": "* asPointer()", "parent": 136, "children": [139, 140], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 19}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 140, "type": "function_declarator", "text": "asPointer()", "parent": 138, "children": [141, 142], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 141, "type": "identifier", "text": "asPointer", "parent": 140, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 17}}, {"id": 142, "type": "parameter_list", "text": "()", "parent": 140, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 19}}, {"id": 143, "type": "return_statement", "text": "return pt_obj.cPt;", "parent": 136, "children": [144], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 40}}, {"id": 144, "type": "field_expression", "text": "pt_obj.cPt", "parent": 143, "children": [145, 146], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 39}}, {"id": 145, "type": "identifier", "text": "pt_obj", "parent": 144, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 35}}, {"id": 146, "type": "field_identifier", "text": "cPt", "parent": 144, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 39}}, {"id": 147, "type": "function_definition", "text": "short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }", "parent": 26, "children": [148, 150], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 79}}, {"id": 148, "type": "sized_type_specifier", "text": "short", "parent": 147, "children": [149], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 6}}, {"id": 149, "type": "short", "text": "short", "parent": 148, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 6}}, {"id": 150, "type": "pointer_declarator", "text": "*convertToShortPointer(char *pt)", "parent": 147, "children": [151, 152], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 39}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 8}}, {"id": 152, "type": "function_declarator", "text": "convertToShortPointer(char *pt)", "parent": 150, "children": [153, 154], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 39}}, {"id": 153, "type": "identifier", "text": "convertToShortPointer", "parent": 152, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 29}}, {"id": 154, "type": "parameter_list", "text": "(char *pt)", "parent": 152, "children": [155], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 39}}, {"id": 155, "type": "parameter_declaration", "text": "char *pt", "parent": 154, "children": [156, 157], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 38}}, {"id": 156, "type": "primitive_type", "text": "char", "parent": 155, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 34}}, {"id": 157, "type": "pointer_declarator", "text": "*pt", "parent": 155, "children": [158, 159], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 38}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 36}}, {"id": 159, "type": "identifier", "text": "pt", "parent": 157, "children": [], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 38}}, {"id": 160, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 147, "children": [161, 164, 165], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 57}}, {"id": 161, "type": "field_expression", "text": "pt_obj.cPt", "parent": 160, "children": [162, 163], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 52}}, {"id": 162, "type": "identifier", "text": "pt_obj", "parent": 161, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 48}}, {"id": 163, "type": "field_identifier", "text": "cPt", "parent": 161, "children": [], "start_point": {"row": 28, "column": 49}, "end_point": {"row": 28, "column": 52}}, {"id": 164, "type": "=", "text": "=", "parent": 160, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 54}}, {"id": 165, "type": "identifier", "text": "pt", "parent": 160, "children": [], "start_point": {"row": 28, "column": 55}, "end_point": {"row": 28, "column": 57}}, {"id": 166, "type": "return_statement", "text": "return pt_obj.sPt;", "parent": 147, "children": [167], "start_point": {"row": 28, "column": 59}, "end_point": {"row": 28, "column": 77}}, {"id": 167, "type": "field_expression", "text": "pt_obj.sPt", "parent": 166, "children": [168, 169], "start_point": {"row": 28, "column": 66}, "end_point": {"row": 28, "column": 76}}, {"id": 168, "type": "identifier", "text": "pt_obj", "parent": 167, "children": [], "start_point": {"row": 28, "column": 66}, "end_point": {"row": 28, "column": 72}}, {"id": 169, "type": "field_identifier", "text": "sPt", "parent": 167, "children": [], "start_point": {"row": 28, "column": 73}, "end_point": {"row": 28, "column": 76}}, {"id": 170, "type": "function_definition", "text": "long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }", "parent": 26, "children": [171, 173], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 77}}, {"id": 171, "type": "sized_type_specifier", "text": "long", "parent": 170, "children": [172], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 5}}, {"id": 172, "type": "long", "text": "long", "parent": 171, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 5}}, {"id": 173, "type": "pointer_declarator", "text": "*convertToLongPointer(char *pt)", "parent": 170, "children": [174, 175], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 37}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 7}}, {"id": 175, "type": "function_declarator", "text": "convertToLongPointer(char *pt)", "parent": 173, "children": [176, 177], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 37}}, {"id": 176, "type": "identifier", "text": "convertToLongPointer", "parent": 175, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 27}}, {"id": 177, "type": "parameter_list", "text": "(char *pt)", "parent": 175, "children": [178], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 37}}, {"id": 178, "type": "parameter_declaration", "text": "char *pt", "parent": 177, "children": [179, 180], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 36}}, {"id": 179, "type": "primitive_type", "text": "char", "parent": 178, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 32}}, {"id": 180, "type": "pointer_declarator", "text": "*pt", "parent": 178, "children": [181, 182], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 36}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 182, "type": "identifier", "text": "pt", "parent": 180, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 36}}, {"id": 183, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 170, "children": [184, 187, 188], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 55}}, {"id": 184, "type": "field_expression", "text": "pt_obj.cPt", "parent": 183, "children": [185, 186], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 50}}, {"id": 185, "type": "identifier", "text": "pt_obj", "parent": 184, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 46}}, {"id": 186, "type": "field_identifier", "text": "cPt", "parent": 184, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 50}}, {"id": 187, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 52}}, {"id": 188, "type": "identifier", "text": "pt", "parent": 183, "children": [], "start_point": {"row": 29, "column": 53}, "end_point": {"row": 29, "column": 55}}, {"id": 189, "type": "return_statement", "text": "return pt_obj.lPt;", "parent": 170, "children": [190], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 75}}, {"id": 190, "type": "field_expression", "text": "pt_obj.lPt", "parent": 189, "children": [191, 192], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 74}}, {"id": 191, "type": "identifier", "text": "pt_obj", "parent": 190, "children": [], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 70}}, {"id": 192, "type": "field_identifier", "text": "lPt", "parent": 190, "children": [], "start_point": {"row": 29, "column": 71}, "end_point": {"row": 29, "column": 74}}, {"id": 193, "type": "function_definition", "text": "long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }", "parent": 26, "children": [194, 197], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 87}}, {"id": 194, "type": "sized_type_specifier", "text": "long long", "parent": 193, "children": [195, 196], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 10}}, {"id": 195, "type": "long", "text": "long", "parent": 194, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 196, "type": "long", "text": "long", "parent": 194, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 10}}, {"id": 197, "type": "pointer_declarator", "text": "*convertToLongLongPointer(char *pt)", "parent": 193, "children": [198, 199], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 46}}, {"id": 198, "type": "*", "text": "*", "parent": 197, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 199, "type": "function_declarator", "text": "convertToLongLongPointer(char *pt)", "parent": 197, "children": [200, 201], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 46}}, {"id": 200, "type": "identifier", "text": "convertToLongLongPointer", "parent": 199, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 36}}, {"id": 201, "type": "parameter_list", "text": "(char *pt)", "parent": 199, "children": [202], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 46}}, {"id": 202, "type": "parameter_declaration", "text": "char *pt", "parent": 201, "children": [203, 204], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 45}}, {"id": 203, "type": "primitive_type", "text": "char", "parent": 202, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 41}}, {"id": 204, "type": "pointer_declarator", "text": "*pt", "parent": 202, "children": [205, 206], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 45}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 43}}, {"id": 206, "type": "identifier", "text": "pt", "parent": 204, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 45}}, {"id": 207, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 193, "children": [208, 211, 212], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 64}}, {"id": 208, "type": "field_expression", "text": "pt_obj.cPt", "parent": 207, "children": [209, 210], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 59}}, {"id": 209, "type": "identifier", "text": "pt_obj", "parent": 208, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 55}}, {"id": 210, "type": "field_identifier", "text": "cPt", "parent": 208, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 59}}, {"id": 211, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 61}}, {"id": 212, "type": "identifier", "text": "pt", "parent": 207, "children": [], "start_point": {"row": 30, "column": 62}, "end_point": {"row": 30, "column": 64}}, {"id": 213, "type": "return_statement", "text": "return pt_obj.llPt;", "parent": 193, "children": [214], "start_point": {"row": 30, "column": 66}, "end_point": {"row": 30, "column": 85}}, {"id": 214, "type": "field_expression", "text": "pt_obj.llPt", "parent": 213, "children": [215, 216], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 30, "column": 84}}, {"id": 215, "type": "identifier", "text": "pt_obj", "parent": 214, "children": [], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 30, "column": 79}}, {"id": 216, "type": "field_identifier", "text": "llPt", "parent": 214, "children": [], "start_point": {"row": 30, "column": 80}, "end_point": {"row": 30, "column": 84}}, {"id": 217, "type": "function_definition", "text": "float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }", "parent": 26, "children": [218, 219], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 79}}, {"id": 218, "type": "primitive_type", "text": "float", "parent": 217, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 6}}, {"id": 219, "type": "pointer_declarator", "text": "*convertToFloatPointer(char *pt)", "parent": 217, "children": [220, 221], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 39}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 8}}, {"id": 221, "type": "function_declarator", "text": "convertToFloatPointer(char *pt)", "parent": 219, "children": [222, 223], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 39}}, {"id": 222, "type": "identifier", "text": "convertToFloatPointer", "parent": 221, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 29}}, {"id": 223, "type": "parameter_list", "text": "(char *pt)", "parent": 221, "children": [224], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 39}}, {"id": 224, "type": "parameter_declaration", "text": "char *pt", "parent": 223, "children": [225, 226], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 38}}, {"id": 225, "type": "primitive_type", "text": "char", "parent": 224, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 34}}, {"id": 226, "type": "pointer_declarator", "text": "*pt", "parent": 224, "children": [227, 228], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 38}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 36}}, {"id": 228, "type": "identifier", "text": "pt", "parent": 226, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 38}}, {"id": 229, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 217, "children": [230, 233, 234], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 57}}, {"id": 230, "type": "field_expression", "text": "pt_obj.cPt", "parent": 229, "children": [231, 232], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 52}}, {"id": 231, "type": "identifier", "text": "pt_obj", "parent": 230, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 48}}, {"id": 232, "type": "field_identifier", "text": "cPt", "parent": 230, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 52}}, {"id": 233, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 234, "type": "identifier", "text": "pt", "parent": 229, "children": [], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 57}}, {"id": 235, "type": "return_statement", "text": "return pt_obj.fPt;", "parent": 217, "children": [236], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 77}}, {"id": 236, "type": "field_expression", "text": "pt_obj.fPt", "parent": 235, "children": [237, 238], "start_point": {"row": 31, "column": 66}, "end_point": {"row": 31, "column": 76}}, {"id": 237, "type": "identifier", "text": "pt_obj", "parent": 236, "children": [], "start_point": {"row": 31, "column": 66}, "end_point": {"row": 31, "column": 72}}, {"id": 238, "type": "field_identifier", "text": "fPt", "parent": 236, "children": [], "start_point": {"row": 31, "column": 73}, "end_point": {"row": 31, "column": 76}}, {"id": 239, "type": "function_definition", "text": "short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }", "parent": 26, "children": [240, 242], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 72}}, {"id": 240, "type": "sized_type_specifier", "text": "short", "parent": 239, "children": [241], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 241, "type": "short", "text": "short", "parent": 240, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 242, "type": "function_declarator", "text": "convertToShort(char *pt)", "parent": 239, "children": [243, 244], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 31}}, {"id": 243, "type": "identifier", "text": "convertToShort", "parent": 242, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 21}}, {"id": 244, "type": "parameter_list", "text": "(char *pt)", "parent": 242, "children": [245], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 31}}, {"id": 245, "type": "parameter_declaration", "text": "char *pt", "parent": 244, "children": [246, 247], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 30}}, {"id": 246, "type": "primitive_type", "text": "char", "parent": 245, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 247, "type": "pointer_declarator", "text": "*pt", "parent": 245, "children": [248, 249], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 30}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 28}}, {"id": 249, "type": "identifier", "text": "pt", "parent": 247, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 30}}, {"id": 250, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 239, "children": [251, 254, 255], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 49}}, {"id": 251, "type": "field_expression", "text": "pt_obj.cPt", "parent": 250, "children": [252, 253], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 44}}, {"id": 252, "type": "identifier", "text": "pt_obj", "parent": 251, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 40}}, {"id": 253, "type": "field_identifier", "text": "cPt", "parent": 251, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 44}}, {"id": 254, "type": "=", "text": "=", "parent": 250, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 46}}, {"id": 255, "type": "identifier", "text": "pt", "parent": 250, "children": [], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 49}}, {"id": 256, "type": "return_statement", "text": "return *pt_obj.sPt;", "parent": 239, "children": [257], "start_point": {"row": 33, "column": 51}, "end_point": {"row": 33, "column": 70}}, {"id": 257, "type": "pointer_expression", "text": "*pt_obj.sPt", "parent": 256, "children": [258, 259], "start_point": {"row": 33, "column": 58}, "end_point": {"row": 33, "column": 69}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 33, "column": 58}, "end_point": {"row": 33, "column": 59}}, {"id": 259, "type": "field_expression", "text": "pt_obj.sPt", "parent": 257, "children": [260, 261], "start_point": {"row": 33, "column": 59}, "end_point": {"row": 33, "column": 69}}, {"id": 260, "type": "identifier", "text": "pt_obj", "parent": 259, "children": [], "start_point": {"row": 33, "column": 59}, "end_point": {"row": 33, "column": 65}}, {"id": 261, "type": "field_identifier", "text": "sPt", "parent": 259, "children": [], "start_point": {"row": 33, "column": 66}, "end_point": {"row": 33, "column": 69}}, {"id": 262, "type": "function_definition", "text": "long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }", "parent": 26, "children": [263, 265], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 70}}, {"id": 263, "type": "sized_type_specifier", "text": "long", "parent": 262, "children": [264], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 264, "type": "long", "text": "long", "parent": 263, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 265, "type": "function_declarator", "text": "convertToLong(char *pt)", "parent": 262, "children": [266, 267], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 29}}, {"id": 266, "type": "identifier", "text": "convertToLong", "parent": 265, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 19}}, {"id": 267, "type": "parameter_list", "text": "(char *pt)", "parent": 265, "children": [268], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 29}}, {"id": 268, "type": "parameter_declaration", "text": "char *pt", "parent": 267, "children": [269, 270], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 28}}, {"id": 269, "type": "primitive_type", "text": "char", "parent": 268, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 24}}, {"id": 270, "type": "pointer_declarator", "text": "*pt", "parent": 268, "children": [271, 272], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 28}}, {"id": 271, "type": "*", "text": "*", "parent": 270, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 272, "type": "identifier", "text": "pt", "parent": 270, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 28}}, {"id": 273, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 262, "children": [274, 277, 278], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 47}}, {"id": 274, "type": "field_expression", "text": "pt_obj.cPt", "parent": 273, "children": [275, 276], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 42}}, {"id": 275, "type": "identifier", "text": "pt_obj", "parent": 274, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 38}}, {"id": 276, "type": "field_identifier", "text": "cPt", "parent": 274, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 42}}, {"id": 277, "type": "=", "text": "=", "parent": 273, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 44}}, {"id": 278, "type": "identifier", "text": "pt", "parent": 273, "children": [], "start_point": {"row": 34, "column": 45}, "end_point": {"row": 34, "column": 47}}, {"id": 279, "type": "return_statement", "text": "return *pt_obj.lPt;", "parent": 262, "children": [280], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 68}}, {"id": 280, "type": "pointer_expression", "text": "*pt_obj.lPt", "parent": 279, "children": [281, 282], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 67}}, {"id": 281, "type": "*", "text": "*", "parent": 280, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 57}}, {"id": 282, "type": "field_expression", "text": "pt_obj.lPt", "parent": 280, "children": [283, 284], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 67}}, {"id": 283, "type": "identifier", "text": "pt_obj", "parent": 282, "children": [], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 63}}, {"id": 284, "type": "field_identifier", "text": "lPt", "parent": 282, "children": [], "start_point": {"row": 34, "column": 64}, "end_point": {"row": 34, "column": 67}}, {"id": 285, "type": "function_definition", "text": "long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }", "parent": 26, "children": [286, 289], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 80}}, {"id": 286, "type": "sized_type_specifier", "text": "long long", "parent": 285, "children": [287, 288], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 287, "type": "long", "text": "long", "parent": 286, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 288, "type": "long", "text": "long", "parent": 286, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 10}}, {"id": 289, "type": "function_declarator", "text": "convertToLongLong(char *pt)", "parent": 285, "children": [290, 291], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 38}}, {"id": 290, "type": "identifier", "text": "convertToLongLong", "parent": 289, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 28}}, {"id": 291, "type": "parameter_list", "text": "(char *pt)", "parent": 289, "children": [292], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 38}}, {"id": 292, "type": "parameter_declaration", "text": "char *pt", "parent": 291, "children": [293, 294], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 37}}, {"id": 293, "type": "primitive_type", "text": "char", "parent": 292, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 33}}, {"id": 294, "type": "pointer_declarator", "text": "*pt", "parent": 292, "children": [295, 296], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 37}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 35}}, {"id": 296, "type": "identifier", "text": "pt", "parent": 294, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 37}}, {"id": 297, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 285, "children": [298, 301, 302], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 56}}, {"id": 298, "type": "field_expression", "text": "pt_obj.cPt", "parent": 297, "children": [299, 300], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 51}}, {"id": 299, "type": "identifier", "text": "pt_obj", "parent": 298, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 47}}, {"id": 300, "type": "field_identifier", "text": "cPt", "parent": 298, "children": [], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 51}}, {"id": 301, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 53}}, {"id": 302, "type": "identifier", "text": "pt", "parent": 297, "children": [], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 56}}, {"id": 303, "type": "return_statement", "text": "return *pt_obj.llPt;", "parent": 285, "children": [304], "start_point": {"row": 35, "column": 58}, "end_point": {"row": 35, "column": 78}}, {"id": 304, "type": "pointer_expression", "text": "*pt_obj.llPt", "parent": 303, "children": [305, 306], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 77}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 66}}, {"id": 306, "type": "field_expression", "text": "pt_obj.llPt", "parent": 304, "children": [307, 308], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 77}}, {"id": 307, "type": "identifier", "text": "pt_obj", "parent": 306, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 72}}, {"id": 308, "type": "field_identifier", "text": "llPt", "parent": 306, "children": [], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 77}}, {"id": 309, "type": "function_definition", "text": "float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }", "parent": 26, "children": [310, 311], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 72}}, {"id": 310, "type": "primitive_type", "text": "float", "parent": 309, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 6}}, {"id": 311, "type": "function_declarator", "text": "convertToFloat(char *pt)", "parent": 309, "children": [312, 313], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 31}}, {"id": 312, "type": "identifier", "text": "convertToFloat", "parent": 311, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 21}}, {"id": 313, "type": "parameter_list", "text": "(char *pt)", "parent": 311, "children": [314], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 31}}, {"id": 314, "type": "parameter_declaration", "text": "char *pt", "parent": 313, "children": [315, 316], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 30}}, {"id": 315, "type": "primitive_type", "text": "char", "parent": 314, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 26}}, {"id": 316, "type": "pointer_declarator", "text": "*pt", "parent": 314, "children": [317, 318], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 30}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 28}}, {"id": 318, "type": "identifier", "text": "pt", "parent": 316, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 30}}, {"id": 319, "type": "assignment_expression", "text": "pt_obj.cPt = pt", "parent": 309, "children": [320, 323, 324], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 49}}, {"id": 320, "type": "field_expression", "text": "pt_obj.cPt", "parent": 319, "children": [321, 322], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 44}}, {"id": 321, "type": "identifier", "text": "pt_obj", "parent": 320, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 40}}, {"id": 322, "type": "field_identifier", "text": "cPt", "parent": 320, "children": [], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 44}}, {"id": 323, "type": "=", "text": "=", "parent": 319, "children": [], "start_point": {"row": 36, "column": 45}, "end_point": {"row": 36, "column": 46}}, {"id": 324, "type": "identifier", "text": "pt", "parent": 319, "children": [], "start_point": {"row": 36, "column": 47}, "end_point": {"row": 36, "column": 49}}, {"id": 325, "type": "return_statement", "text": "return *pt_obj.fPt;", "parent": 309, "children": [326], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 70}}, {"id": 326, "type": "pointer_expression", "text": "*pt_obj.fPt", "parent": 325, "children": [327, 328], "start_point": {"row": 36, "column": 58}, "end_point": {"row": 36, "column": 69}}, {"id": 327, "type": "*", "text": "*", "parent": 326, "children": [], "start_point": {"row": 36, "column": 58}, "end_point": {"row": 36, "column": 59}}, {"id": 328, "type": "field_expression", "text": "pt_obj.fPt", "parent": 326, "children": [329, 330], "start_point": {"row": 36, "column": 59}, "end_point": {"row": 36, "column": 69}}, {"id": 329, "type": "identifier", "text": "pt_obj", "parent": 328, "children": [], "start_point": {"row": 36, "column": 59}, "end_point": {"row": 36, "column": 65}}, {"id": 330, "type": "field_identifier", "text": "fPt", "parent": 328, "children": [], "start_point": {"row": 36, "column": 66}, "end_point": {"row": 36, "column": 69}}, {"id": 331, "type": "labeled_statement", "text": "private:\n\tunion pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t} pt_obj;", "parent": 26, "children": [332], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 46, "column": 10}}, {"id": 332, "type": "declaration", "text": "union pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t} pt_obj;", "parent": 331, "children": [333, 365], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 46, "column": 10}}, {"id": 333, "type": "union_specifier", "text": "union pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t}", "parent": 332, "children": [334, 335], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 334, "type": "union", "text": "union", "parent": 333, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 6}}, {"id": 335, "type": "type_identifier", "text": "pointer", "parent": 333, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 14}}, {"id": 336, "type": "field_declaration", "text": "char *cPt;", "parent": 333, "children": [337, 338], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 12}}, {"id": 337, "type": "primitive_type", "text": "char", "parent": 336, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 338, "type": "pointer_declarator", "text": "*cPt", "parent": 336, "children": [339, 340], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 11}}, {"id": 339, "type": "*", "text": "*", "parent": 338, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 8}}, {"id": 340, "type": "field_identifier", "text": "cPt", "parent": 338, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 11}}, {"id": 341, "type": "field_declaration", "text": "short *sPt;", "parent": 333, "children": [342, 344], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 13}}, {"id": 342, "type": "sized_type_specifier", "text": "short", "parent": 341, "children": [343], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 7}}, {"id": 343, "type": "short", "text": "short", "parent": 342, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 7}}, {"id": 344, "type": "pointer_declarator", "text": "*sPt", "parent": 341, "children": [345, 346], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 9}}, {"id": 346, "type": "field_identifier", "text": "sPt", "parent": 344, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 12}}, {"id": 347, "type": "field_declaration", "text": "long *lPt;", "parent": 333, "children": [348, 350], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 12}}, {"id": 348, "type": "sized_type_specifier", "text": "long", "parent": 347, "children": [349], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 349, "type": "long", "text": "long", "parent": 348, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 350, "type": "pointer_declarator", "text": "*lPt", "parent": 347, "children": [351, 352], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 11}}, {"id": 351, "type": "*", "text": "*", "parent": 350, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 8}}, {"id": 352, "type": "field_identifier", "text": "lPt", "parent": 350, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 11}}, {"id": 353, "type": "field_declaration", "text": "long long *llPt;", "parent": 333, "children": [354, 357], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 18}}, {"id": 354, "type": "sized_type_specifier", "text": "long long", "parent": 353, "children": [355, 356], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 11}}, {"id": 355, "type": "long", "text": "long", "parent": 354, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 356, "type": "long", "text": "long", "parent": 354, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 11}}, {"id": 357, "type": "pointer_declarator", "text": "*llPt", "parent": 353, "children": [358, 359], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 17}}, {"id": 358, "type": "*", "text": "*", "parent": 357, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 359, "type": "field_identifier", "text": "llPt", "parent": 357, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 17}}, {"id": 360, "type": "field_declaration", "text": "float *fPt;", "parent": 333, "children": [361, 362], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 13}}, {"id": 361, "type": "primitive_type", "text": "float", "parent": 360, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 7}}, {"id": 362, "type": "pointer_declarator", "text": "*fPt", "parent": 360, "children": [363, 364], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 12}}, {"id": 363, "type": "*", "text": "*", "parent": 362, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 9}}, {"id": 364, "type": "field_identifier", "text": "fPt", "parent": 362, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 12}}, {"id": 365, "type": "identifier", "text": "pt_obj", "parent": 332, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 9}}, {"id": 366, "type": "declaration", "text": "char value[8];", "parent": 26, "children": [367, 368], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 15}}, {"id": 367, "type": "primitive_type", "text": "char", "parent": 366, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 5}}, {"id": 368, "type": "array_declarator", "text": "value[8]", "parent": 366, "children": [369, 370], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 14}}, {"id": 369, "type": "identifier", "text": "value", "parent": 368, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 11}}, {"id": 370, "type": "number_literal", "text": "8", "parent": 368, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 371, "type": "struct_specifier", "text": "struct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n\tunsigned long address;\n\tunsigned int offset;\n\tAddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }", "parent": 0, "children": [372, 373], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 54, "column": 76}}, {"id": 372, "type": "struct", "text": "struct", "parent": 371, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 373, "type": "type_identifier", "text": "AddressOffset", "parent": 371, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 20}}, {"id": 374, "type": "field_declaration", "text": "unsigned long address;", "parent": 371, "children": [375, 378], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 23}}, {"id": 375, "type": "sized_type_specifier", "text": "unsigned long", "parent": 374, "children": [376, 377], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 14}}, {"id": 376, "type": "unsigned", "text": "unsigned", "parent": 375, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 9}}, {"id": 377, "type": "long", "text": "long", "parent": 375, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 14}}, {"id": 378, "type": "field_identifier", "text": "address", "parent": 374, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 22}}, {"id": 379, "type": "field_declaration", "text": "unsigned int offset;", "parent": 371, "children": [380, 383], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 21}}, {"id": 380, "type": "sized_type_specifier", "text": "unsigned int", "parent": 379, "children": [381, 382], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 13}}, {"id": 381, "type": "unsigned", "text": "unsigned", "parent": 380, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 382, "type": "primitive_type", "text": "int", "parent": 380, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 13}}, {"id": 383, "type": "field_identifier", "text": "offset", "parent": 379, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 20}}, {"id": 384, "type": "field_declaration", "text": "AddressOffset(unsigned long a, unsigned int o) { address = a;", "parent": 371, "children": [385, 398, 401], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 62}}, {"id": 385, "type": "macro_type_specifier", "text": "AddressOffset(unsigned long a, unsigned int o)", "parent": 384, "children": [386, 387, 396], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 47}}, {"id": 386, "type": "identifier", "text": "AddressOffset", "parent": 385, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 14}}, {"id": 387, "type": "ERROR", "text": "unsigned long a, unsigned int", "parent": 385, "children": [388, 393], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 44}}, {"id": 388, "type": "type_descriptor", "text": "unsigned long a", "parent": 387, "children": [389], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 30}}, {"id": 389, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 388, "children": [390, 391, 392], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 30}}, {"id": 390, "type": "unsigned", "text": "unsigned", "parent": 389, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 23}}, {"id": 391, "type": "long", "text": "long", "parent": 389, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 28}}, {"id": 392, "type": "type_identifier", "text": "a", "parent": 389, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 30}}, {"id": 393, "type": "sized_type_specifier", "text": "unsigned int", "parent": 387, "children": [394, 395], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 44}}, {"id": 394, "type": "unsigned", "text": "unsigned", "parent": 393, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 40}}, {"id": 395, "type": "primitive_type", "text": "int", "parent": 393, "children": [], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 44}}, {"id": 396, "type": "type_descriptor", "text": "o", "parent": 385, "children": [397], "start_point": {"row": 54, "column": 45}, "end_point": {"row": 54, "column": 46}}, {"id": 397, "type": "type_identifier", "text": "o", "parent": 396, "children": [], "start_point": {"row": 54, "column": 45}, "end_point": {"row": 54, "column": 46}}, {"id": 398, "type": "ERROR", "text": "{ address =", "parent": 384, "children": [399, 400], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 59}}, {"id": 399, "type": "field_identifier", "text": "address", "parent": 398, "children": [], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 57}}, {"id": 400, "type": "=", "text": "=", "parent": 398, "children": [], "start_point": {"row": 54, "column": 58}, "end_point": {"row": 54, "column": 59}}, {"id": 401, "type": "field_identifier", "text": "a", "parent": 384, "children": [], "start_point": {"row": 54, "column": 60}, "end_point": {"row": 54, "column": 61}}, {"id": 402, "type": "field_declaration", "text": "offset = o;", "parent": 371, "children": [403, 404, 406], "start_point": {"row": 54, "column": 63}, "end_point": {"row": 54, "column": 74}}, {"id": 403, "type": "type_identifier", "text": "offset", "parent": 402, "children": [], "start_point": {"row": 54, "column": 63}, "end_point": {"row": 54, "column": 69}}, {"id": 404, "type": "ERROR", "text": "=", "parent": 402, "children": [405], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 405, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 406, "type": "field_identifier", "text": "o", "parent": 402, "children": [], "start_point": {"row": 54, "column": 72}, "end_point": {"row": 54, "column": 73}}, {"id": 407, "type": "type_definition", "text": "typedef list<unsigned int> PointerOffsets;", "parent": 0, "children": [408, 409, 414, 417], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 42}}, {"id": 408, "type": "typedef", "text": "typedef", "parent": 407, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 409, "type": "sized_type_specifier", "text": "list<unsigned", "parent": 407, "children": [410, 411, 413], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 21}}, {"id": 410, "type": "type_identifier", "text": "list", "parent": 409, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 12}}, {"id": 411, "type": "ERROR", "text": "<", "parent": 409, "children": [412], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 412, "type": "<", "text": "<", "parent": 411, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 413, "type": "unsigned", "text": "unsigned", "parent": 409, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 21}}, {"id": 414, "type": "ERROR", "text": "int>", "parent": 407, "children": [415, 416], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 26}}, {"id": 415, "type": "primitive_type", "text": "int", "parent": 414, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 25}}, {"id": 416, "type": ">", "text": ">", "parent": 414, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 417, "type": "type_identifier", "text": "PointerOffsets", "parent": 407, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 41}}, {"id": 418, "type": "type_definition", "text": "typedef list<AddressOffset> AddressOffsets;", "parent": 0, "children": [419, 420, 421, 425], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 43}}, {"id": 419, "type": "typedef", "text": "typedef", "parent": 418, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 420, "type": "type_identifier", "text": "list", "parent": 418, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 12}}, {"id": 421, "type": "ERROR", "text": "<AddressOffset>", "parent": 418, "children": [422, 423, 424], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 27}}, {"id": 422, "type": "<", "text": "<", "parent": 421, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 423, "type": "type_identifier", "text": "AddressOffset", "parent": 421, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 26}}, {"id": 424, "type": ">", "text": ">", "parent": 421, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 27}}, {"id": 425, "type": "type_identifier", "text": "AddressOffsets", "parent": 418, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 42}}, {"id": 426, "type": "function_definition", "text": "class PointerObj\n{\npublic:\n\tPointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, const PointerOffsets &pt);\n\n\tAddressOffsets pointers;\n\tunsigned long resolved; //this is our resolved address\n\n\tunsigned int updateCount;\n\tvoid fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n\tbool equal(PointerObj p);\n\tvoid update();\n\tPointerOffsets getOffsets();\n}", "parent": 0, "children": [427], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 427, "type": "identifier", "text": "PointerObj", "parent": 426, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 16}}, {"id": 428, "type": "labeled_statement", "text": "public:\n\tPointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, const PointerOffsets &pt);", "parent": 426, "children": [429], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 65, "column": 67}}, {"id": 429, "type": "declaration", "text": "PointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, const PointerOffsets &pt);", "parent": 428, "children": [430, 436], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 65, "column": 67}}, {"id": 430, "type": "macro_type_specifier", "text": "PointerObj(AddressOffsets b)", "parent": 429, "children": [431, 432, 434], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 29}}, {"id": 431, "type": "identifier", "text": "PointerObj", "parent": 430, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 11}}, {"id": 432, "type": "type_descriptor", "text": "AddressOffsets", "parent": 430, "children": [433], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 26}}, {"id": 433, "type": "type_identifier", "text": "AddressOffsets", "parent": 432, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 26}}, {"id": 434, "type": "ERROR", "text": "b", "parent": 430, "children": [435], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 28}}, {"id": 435, "type": "identifier", "text": "b", "parent": 434, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 28}}, {"id": 436, "type": "function_declarator", "text": "PointerObj(const unsigned long address, const PointerOffsets &pt)", "parent": 429, "children": [437, 438], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 66}}, {"id": 437, "type": "identifier", "text": "PointerObj", "parent": 436, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 11}}, {"id": 438, "type": "parameter_list", "text": "(const unsigned long address, const PointerOffsets &pt)", "parent": 436, "children": [439, 444], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 66}}, {"id": 439, "type": "parameter_declaration", "text": "const unsigned long address", "parent": 438, "children": [440, 443], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 39}}, {"id": 440, "type": "sized_type_specifier", "text": "unsigned long", "parent": 439, "children": [441, 442], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 31}}, {"id": 441, "type": "unsigned", "text": "unsigned", "parent": 440, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 26}}, {"id": 442, "type": "long", "text": "long", "parent": 440, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 31}}, {"id": 443, "type": "identifier", "text": "address", "parent": 439, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 39}}, {"id": 444, "type": "parameter_declaration", "text": "const PointerOffsets &pt", "parent": 438, "children": [445, 446], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 65}}, {"id": 445, "type": "type_identifier", "text": "PointerOffsets", "parent": 444, "children": [], "start_point": {"row": 65, "column": 47}, "end_point": {"row": 65, "column": 61}}, {"id": 446, "type": "identifier", "text": "pt", "parent": 444, "children": [], "start_point": {"row": 65, "column": 63}, "end_point": {"row": 65, "column": 65}}, {"id": 447, "type": "declaration", "text": "AddressOffsets pointers;", "parent": 426, "children": [448, 449], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 25}}, {"id": 448, "type": "type_identifier", "text": "AddressOffsets", "parent": 447, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 15}}, {"id": 449, "type": "identifier", "text": "pointers", "parent": 447, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 24}}, {"id": 450, "type": "declaration", "text": "unsigned long resolved;", "parent": 426, "children": [451, 454], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 24}}, {"id": 451, "type": "sized_type_specifier", "text": "unsigned long", "parent": 450, "children": [452, 453], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 14}}, {"id": 452, "type": "unsigned", "text": "unsigned", "parent": 451, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 9}}, {"id": 453, "type": "long", "text": "long", "parent": 451, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 14}}, {"id": 454, "type": "identifier", "text": "resolved", "parent": 450, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 23}}, {"id": 455, "type": "declaration", "text": "unsigned int updateCount;", "parent": 426, "children": [456, 459], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 26}}, {"id": 456, "type": "sized_type_specifier", "text": "unsigned int", "parent": 455, "children": [457, 458], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 13}}, {"id": 457, "type": "unsigned", "text": "unsigned", "parent": 456, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 458, "type": "primitive_type", "text": "int", "parent": 456, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 13}}, {"id": 459, "type": "identifier", "text": "updateCount", "parent": 455, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 25}}, {"id": 460, "type": "declaration", "text": "void fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);", "parent": 426, "children": [461, 462], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 80}}, {"id": 461, "type": "primitive_type", "text": "void", "parent": 460, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 462, "type": "function_declarator", "text": "fromPointerOffsets(const unsigned long address, const PointerOffsets &pt)", "parent": 460, "children": [463, 464], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 79}}, {"id": 463, "type": "identifier", "text": "fromPointerOffsets", "parent": 462, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 24}}, {"id": 464, "type": "parameter_list", "text": "(const unsigned long address, const PointerOffsets &pt)", "parent": 462, "children": [465, 470], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 79}}, {"id": 465, "type": "parameter_declaration", "text": "const unsigned long address", "parent": 464, "children": [466, 469], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 52}}, {"id": 466, "type": "sized_type_specifier", "text": "unsigned long", "parent": 465, "children": [467, 468], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 44}}, {"id": 467, "type": "unsigned", "text": "unsigned", "parent": 466, "children": [], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 39}}, {"id": 468, "type": "long", "text": "long", "parent": 466, "children": [], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 44}}, {"id": 469, "type": "identifier", "text": "address", "parent": 465, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 52}}, {"id": 470, "type": "parameter_declaration", "text": "const PointerOffsets &pt", "parent": 464, "children": [471, 472], "start_point": {"row": 71, "column": 54}, "end_point": {"row": 71, "column": 78}}, {"id": 471, "type": "type_identifier", "text": "PointerOffsets", "parent": 470, "children": [], "start_point": {"row": 71, "column": 60}, "end_point": {"row": 71, "column": 74}}, {"id": 472, "type": "identifier", "text": "pt", "parent": 470, "children": [], "start_point": {"row": 71, "column": 76}, "end_point": {"row": 71, "column": 78}}, {"id": 473, "type": "declaration", "text": "bool equal(PointerObj p);", "parent": 426, "children": [474, 475], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 26}}, {"id": 474, "type": "primitive_type", "text": "bool", "parent": 473, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 475, "type": "function_declarator", "text": "equal(PointerObj p)", "parent": 473, "children": [476, 477], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 25}}, {"id": 476, "type": "identifier", "text": "equal", "parent": 475, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 11}}, {"id": 477, "type": "parameter_list", "text": "(PointerObj p)", "parent": 475, "children": [478], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 25}}, {"id": 478, "type": "parameter_declaration", "text": "PointerObj p", "parent": 477, "children": [479, 480], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 24}}, {"id": 479, "type": "type_identifier", "text": "PointerObj", "parent": 478, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 22}}, {"id": 480, "type": "identifier", "text": "p", "parent": 478, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 24}}, {"id": 481, "type": "declaration", "text": "void update();", "parent": 426, "children": [482, 483], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 15}}, {"id": 482, "type": "primitive_type", "text": "void", "parent": 481, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 5}}, {"id": 483, "type": "function_declarator", "text": "update()", "parent": 481, "children": [484, 485], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 14}}, {"id": 484, "type": "identifier", "text": "update", "parent": 483, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 12}}, {"id": 485, "type": "parameter_list", "text": "()", "parent": 483, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 14}}, {"id": 486, "type": "declaration", "text": "PointerOffsets getOffsets();", "parent": 426, "children": [487, 488], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 29}}, {"id": 487, "type": "type_identifier", "text": "PointerOffsets", "parent": 486, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 15}}, {"id": 488, "type": "function_declarator", "text": "getOffsets()", "parent": 486, "children": [489, 490], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 28}}, {"id": 489, "type": "identifier", "text": "getOffsets", "parent": 488, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 26}}, {"id": 490, "type": "parameter_list", "text": "()", "parent": 488, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 28}}, {"id": 491, "type": "type_definition", "text": "typedef shared_ptr<PointerObj> PointerItem;", "parent": 0, "children": [492, 493, 494, 498], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 43}}, {"id": 492, "type": "typedef", "text": "typedef", "parent": 491, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 7}}, {"id": 493, "type": "type_identifier", "text": "shared_ptr", "parent": 491, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 18}}, {"id": 494, "type": "ERROR", "text": "<PointerObj>", "parent": 491, "children": [495, 496, 497], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 30}}, {"id": 495, "type": "<", "text": "<", "parent": 494, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 19}}, {"id": 496, "type": "type_identifier", "text": "PointerObj", "parent": 494, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 29}}, {"id": 497, "type": ">", "text": ">", "parent": 494, "children": [], "start_point": {"row": 76, "column": 29}, "end_point": {"row": 76, "column": 30}}, {"id": 498, "type": "type_identifier", "text": "PointerItem", "parent": 491, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 42}}, {"id": 499, "type": "function_definition", "text": "class AddressObj\n{\npublic:\n\tunsigned long address; //this is our base address\n\tlong long value; //this is the memory from either our base address or our resolved address\n\tlong long store; //this is the value we will write to memory\n\tchar sign; //signed or unsigned\n\tchar type; //1-4byte, float\n\tPointerItem pointer; //our pointer info if we are using one\n\tAddressObj();\n\tAddressObj(AddressObj &item);\n\tAddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n\tAddressObj(unsigned long a, unsigned long v, char s); //a single address\n\tAddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n\tAddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n\tAddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n\tvoid init(unsigned long a, unsigned long v, char t, char s);\n\tAddressObj &operator=(const AddressObj& t);\t\n\tbool operator==(const AddressObj &t);\n\tbool operator!=(const AddressObj &t);\n\tbool isPointer() { return pointer != nullptr; }\n\tint read(char *buf);\n\tint write(char *buf);\n\tvoid debug();\n}", "parent": 0, "children": [500], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 500, "type": "identifier", "text": "AddressObj", "parent": 499, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 16}}, {"id": 501, "type": "labeled_statement", "text": "public:\n\tunsigned long address;", "parent": 499, "children": [502], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 83, "column": 23}}, {"id": 502, "type": "declaration", "text": "unsigned long address;", "parent": 501, "children": [503, 506], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 23}}, {"id": 503, "type": "sized_type_specifier", "text": "unsigned long", "parent": 502, "children": [504, 505], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 14}}, {"id": 504, "type": "unsigned", "text": "unsigned", "parent": 503, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 9}}, {"id": 505, "type": "long", "text": "long", "parent": 503, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 14}}, {"id": 506, "type": "identifier", "text": "address", "parent": 502, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 22}}, {"id": 507, "type": "declaration", "text": "long long value;", "parent": 499, "children": [508, 511], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 17}}, {"id": 508, "type": "sized_type_specifier", "text": "long long", "parent": 507, "children": [509, 510], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 10}}, {"id": 509, "type": "long", "text": "long", "parent": 508, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 5}}, {"id": 510, "type": "long", "text": "long", "parent": 508, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 10}}, {"id": 511, "type": "identifier", "text": "value", "parent": 507, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 16}}, {"id": 512, "type": "declaration", "text": "long long store;", "parent": 499, "children": [513, 516], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 17}}, {"id": 513, "type": "sized_type_specifier", "text": "long long", "parent": 512, "children": [514, 515], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 10}}, {"id": 514, "type": "long", "text": "long", "parent": 513, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 5}}, {"id": 515, "type": "long", "text": "long", "parent": 513, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 10}}, {"id": 516, "type": "identifier", "text": "store", "parent": 512, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 16}}, {"id": 517, "type": "declaration", "text": "char sign;", "parent": 499, "children": [518, 519], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 11}}, {"id": 518, "type": "primitive_type", "text": "char", "parent": 517, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 519, "type": "identifier", "text": "sign", "parent": 517, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 10}}, {"id": 520, "type": "declaration", "text": "char type;", "parent": 499, "children": [521, 522], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 11}}, {"id": 521, "type": "primitive_type", "text": "char", "parent": 520, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 5}}, {"id": 522, "type": "identifier", "text": "type", "parent": 520, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 10}}, {"id": 523, "type": "declaration", "text": "PointerItem pointer;", "parent": 499, "children": [524, 525], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 21}}, {"id": 524, "type": "type_identifier", "text": "PointerItem", "parent": 523, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 12}}, {"id": 525, "type": "identifier", "text": "pointer", "parent": 523, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 20}}, {"id": 526, "type": "call_expression", "text": "AddressObj()", "parent": 499, "children": [527, 528], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 13}}, {"id": 527, "type": "identifier", "text": "AddressObj", "parent": 526, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 11}}, {"id": 528, "type": "argument_list", "text": "()", "parent": 526, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 13}}, {"id": 529, "type": "call_expression", "text": "AddressObj(AddressObj &item)", "parent": 499, "children": [530, 531], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 29}}, {"id": 530, "type": "identifier", "text": "AddressObj", "parent": 529, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 11}}, {"id": 531, "type": "argument_list", "text": "(AddressObj &item)", "parent": 529, "children": [532], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 29}}, {"id": 532, "type": "binary_expression", "text": "AddressObj &item", "parent": 531, "children": [533, 534], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 28}}, {"id": 533, "type": "identifier", "text": "AddressObj", "parent": 532, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 22}}, {"id": 534, "type": "identifier", "text": "item", "parent": 532, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 28}}, {"id": 535, "type": "declaration", "text": "AddressObj(unsigned long a, unsigned long v, char t, char s);", "parent": 499, "children": [536, 551, 552, 553], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 62}}, {"id": 536, "type": "macro_type_specifier", "text": "AddressObj(unsigned long a, unsigned long v, char", "parent": 535, "children": [537, 538, 549], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 50}}, {"id": 537, "type": "identifier", "text": "AddressObj", "parent": 536, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 11}}, {"id": 538, "type": "ERROR", "text": "unsigned long a, unsigned long v,", "parent": 536, "children": [539, 544], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 45}}, {"id": 539, "type": "type_descriptor", "text": "unsigned long a", "parent": 538, "children": [540], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 27}}, {"id": 540, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 539, "children": [541, 542, 543], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 27}}, {"id": 541, "type": "unsigned", "text": "unsigned", "parent": 540, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 20}}, {"id": 542, "type": "long", "text": "long", "parent": 540, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 25}}, {"id": 543, "type": "type_identifier", "text": "a", "parent": 540, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 27}}, {"id": 544, "type": "type_descriptor", "text": "unsigned long v", "parent": 538, "children": [545], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 44}}, {"id": 545, "type": "sized_type_specifier", "text": "unsigned long v", "parent": 544, "children": [546, 547, 548], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 44}}, {"id": 546, "type": "unsigned", "text": "unsigned", "parent": 545, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 37}}, {"id": 547, "type": "long", "text": "long", "parent": 545, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 42}}, {"id": 548, "type": "type_identifier", "text": "v", "parent": 545, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 44}}, {"id": 549, "type": "type_descriptor", "text": "char", "parent": 536, "children": [550], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 50}}, {"id": 550, "type": "primitive_type", "text": "char", "parent": 549, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 50}}, {"id": 551, "type": "identifier", "text": "t", "parent": 535, "children": [], "start_point": {"row": 91, "column": 51}, "end_point": {"row": 91, "column": 52}}, {"id": 552, "type": "identifier", "text": "char", "parent": 535, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 58}}, {"id": 553, "type": "ERROR", "text": "s)", "parent": 535, "children": [554], "start_point": {"row": 91, "column": 59}, "end_point": {"row": 91, "column": 61}}, {"id": 554, "type": "identifier", "text": "s", "parent": 553, "children": [], "start_point": {"row": 91, "column": 59}, "end_point": {"row": 91, "column": 60}}, {"id": 555, "type": "macro_type_specifier", "text": "AddressObj(unsigned long a, unsigned long v, char s)", "parent": 499, "children": [556, 557, 569], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 53}}, {"id": 556, "type": "identifier", "text": "AddressObj", "parent": 555, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 11}}, {"id": 557, "type": "ERROR", "text": "unsigned long a, unsigned long v, char", "parent": 555, "children": [558, 563, 568], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 50}}, {"id": 558, "type": "type_descriptor", "text": "unsigned long a", "parent": 557, "children": [559], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 27}}, {"id": 559, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 558, "children": [560, 561, 562], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 27}}, {"id": 560, "type": "unsigned", "text": "unsigned", "parent": 559, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 20}}, {"id": 561, "type": "long", "text": "long", "parent": 559, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 25}}, {"id": 562, "type": "type_identifier", "text": "a", "parent": 559, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 27}}, {"id": 563, "type": "type_descriptor", "text": "unsigned long v", "parent": 557, "children": [564], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 44}}, {"id": 564, "type": "sized_type_specifier", "text": "unsigned long v", "parent": 563, "children": [565, 566, 567], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 44}}, {"id": 565, "type": "unsigned", "text": "unsigned", "parent": 564, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 37}}, {"id": 566, "type": "long", "text": "long", "parent": 564, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 42}}, {"id": 567, "type": "type_identifier", "text": "v", "parent": 564, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 44}}, {"id": 568, "type": "primitive_type", "text": "char", "parent": 557, "children": [], "start_point": {"row": 92, "column": 46}, "end_point": {"row": 92, "column": 50}}, {"id": 569, "type": "type_descriptor", "text": "s", "parent": 555, "children": [570], "start_point": {"row": 92, "column": 51}, "end_point": {"row": 92, "column": 52}}, {"id": 570, "type": "type_identifier", "text": "s", "parent": 569, "children": [], "start_point": {"row": 92, "column": 51}, "end_point": {"row": 92, "column": 52}}, {"id": 571, "type": "macro_type_specifier", "text": "AddressObj(unsigned long a, PointerOffsets p, char t, char s)", "parent": 499, "children": [572, 573, 578], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 62}}, {"id": 572, "type": "identifier", "text": "AddressObj", "parent": 571, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 11}}, {"id": 573, "type": "type_descriptor", "text": "unsigned long a", "parent": 571, "children": [574], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 27}}, {"id": 574, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 573, "children": [575, 576, 577], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 27}}, {"id": 575, "type": "unsigned", "text": "unsigned", "parent": 574, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 20}}, {"id": 576, "type": "long", "text": "long", "parent": 574, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 25}}, {"id": 577, "type": "type_identifier", "text": "a", "parent": 574, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 27}}, {"id": 578, "type": "ERROR", "text": ", PointerOffsets p, char t, char s", "parent": 571, "children": [579, 580, 581, 582, 583, 584], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 61}}, {"id": 579, "type": "identifier", "text": "PointerOffsets", "parent": 578, "children": [], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 43}}, {"id": 580, "type": "identifier", "text": "p", "parent": 578, "children": [], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 45}}, {"id": 581, "type": "primitive_type", "text": "char", "parent": 578, "children": [], "start_point": {"row": 93, "column": 47}, "end_point": {"row": 93, "column": 51}}, {"id": 582, "type": "identifier", "text": "t", "parent": 578, "children": [], "start_point": {"row": 93, "column": 52}, "end_point": {"row": 93, "column": 53}}, {"id": 583, "type": "primitive_type", "text": "char", "parent": 578, "children": [], "start_point": {"row": 93, "column": 55}, "end_point": {"row": 93, "column": 59}}, {"id": 584, "type": "identifier", "text": "s", "parent": 578, "children": [], "start_point": {"row": 93, "column": 60}, "end_point": {"row": 93, "column": 61}}, {"id": 585, "type": "declaration", "text": "AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s);", "parent": 499, "children": [586, 603, 604, 605], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 80}}, {"id": 586, "type": "macro_type_specifier", "text": "AddressObj(unsigned long a, PointerOffsets p, unsigned long v, char", "parent": 585, "children": [587, 588, 601], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 68}}, {"id": 587, "type": "identifier", "text": "AddressObj", "parent": 586, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 11}}, {"id": 588, "type": "ERROR", "text": "unsigned long a, PointerOffsets p, unsigned long v,", "parent": 586, "children": [589, 594, 595, 596], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 63}}, {"id": 589, "type": "type_descriptor", "text": "unsigned long a", "parent": 588, "children": [590], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 27}}, {"id": 590, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 589, "children": [591, 592, 593], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 27}}, {"id": 591, "type": "unsigned", "text": "unsigned", "parent": 590, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 20}}, {"id": 592, "type": "long", "text": "long", "parent": 590, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 25}}, {"id": 593, "type": "type_identifier", "text": "a", "parent": 590, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 27}}, {"id": 594, "type": "identifier", "text": "PointerOffsets", "parent": 588, "children": [], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 43}}, {"id": 595, "type": "identifier", "text": "p", "parent": 588, "children": [], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 45}}, {"id": 596, "type": "type_descriptor", "text": "unsigned long v", "parent": 588, "children": [597], "start_point": {"row": 94, "column": 47}, "end_point": {"row": 94, "column": 62}}, {"id": 597, "type": "sized_type_specifier", "text": "unsigned long v", "parent": 596, "children": [598, 599, 600], "start_point": {"row": 94, "column": 47}, "end_point": {"row": 94, "column": 62}}, {"id": 598, "type": "unsigned", "text": "unsigned", "parent": 597, "children": [], "start_point": {"row": 94, "column": 47}, "end_point": {"row": 94, "column": 55}}, {"id": 599, "type": "long", "text": "long", "parent": 597, "children": [], "start_point": {"row": 94, "column": 56}, "end_point": {"row": 94, "column": 60}}, {"id": 600, "type": "type_identifier", "text": "v", "parent": 597, "children": [], "start_point": {"row": 94, "column": 61}, "end_point": {"row": 94, "column": 62}}, {"id": 601, "type": "type_descriptor", "text": "char", "parent": 586, "children": [602], "start_point": {"row": 94, "column": 64}, "end_point": {"row": 94, "column": 68}}, {"id": 602, "type": "primitive_type", "text": "char", "parent": 601, "children": [], "start_point": {"row": 94, "column": 64}, "end_point": {"row": 94, "column": 68}}, {"id": 603, "type": "identifier", "text": "t", "parent": 585, "children": [], "start_point": {"row": 94, "column": 69}, "end_point": {"row": 94, "column": 70}}, {"id": 604, "type": "identifier", "text": "char", "parent": 585, "children": [], "start_point": {"row": 94, "column": 72}, "end_point": {"row": 94, "column": 76}}, {"id": 605, "type": "ERROR", "text": "s)", "parent": 585, "children": [606], "start_point": {"row": 94, "column": 77}, "end_point": {"row": 94, "column": 79}}, {"id": 606, "type": "identifier", "text": "s", "parent": 605, "children": [], "start_point": {"row": 94, "column": 77}, "end_point": {"row": 94, "column": 78}}, {"id": 607, "type": "macro_type_specifier", "text": "AddressObj(unsigned long a, PointerItem p, char t, char s)", "parent": 499, "children": [608, 609, 614], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 59}}, {"id": 608, "type": "identifier", "text": "AddressObj", "parent": 607, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 11}}, {"id": 609, "type": "type_descriptor", "text": "unsigned long a", "parent": 607, "children": [610], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 27}}, {"id": 610, "type": "sized_type_specifier", "text": "unsigned long a", "parent": 609, "children": [611, 612, 613], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 27}}, {"id": 611, "type": "unsigned", "text": "unsigned", "parent": 610, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 20}}, {"id": 612, "type": "long", "text": "long", "parent": 610, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 25}}, {"id": 613, "type": "type_identifier", "text": "a", "parent": 610, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 27}}, {"id": 614, "type": "ERROR", "text": ", PointerItem p, char t, char s", "parent": 607, "children": [615, 616, 617, 618, 619, 620], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 58}}, {"id": 615, "type": "identifier", "text": "PointerItem", "parent": 614, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 40}}, {"id": 616, "type": "identifier", "text": "p", "parent": 614, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 42}}, {"id": 617, "type": "primitive_type", "text": "char", "parent": 614, "children": [], "start_point": {"row": 95, "column": 44}, "end_point": {"row": 95, "column": 48}}, {"id": 618, "type": "identifier", "text": "t", "parent": 614, "children": [], "start_point": {"row": 95, "column": 49}, "end_point": {"row": 95, "column": 50}}, {"id": 619, "type": "primitive_type", "text": "char", "parent": 614, "children": [], "start_point": {"row": 95, "column": 52}, "end_point": {"row": 95, "column": 56}}, {"id": 620, "type": "identifier", "text": "s", "parent": 614, "children": [], "start_point": {"row": 95, "column": 57}, "end_point": {"row": 95, "column": 58}}, {"id": 621, "type": "declaration", "text": "void init(unsigned long a, unsigned long v, char t, char s);", "parent": 499, "children": [622, 623], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 61}}, {"id": 622, "type": "primitive_type", "text": "void", "parent": 621, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 5}}, {"id": 623, "type": "function_declarator", "text": "init(unsigned long a, unsigned long v, char t, char s)", "parent": 621, "children": [624, 625], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 60}}, {"id": 624, "type": "identifier", "text": "init", "parent": 623, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 10}}, {"id": 625, "type": "parameter_list", "text": "(unsigned long a, unsigned long v, char t, char s)", "parent": 623, "children": [626, 631, 636, 639], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 60}}, {"id": 626, "type": "parameter_declaration", "text": "unsigned long a", "parent": 625, "children": [627, 630], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 26}}, {"id": 627, "type": "sized_type_specifier", "text": "unsigned long", "parent": 626, "children": [628, 629], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 24}}, {"id": 628, "type": "unsigned", "text": "unsigned", "parent": 627, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 19}}, {"id": 629, "type": "long", "text": "long", "parent": 627, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 24}}, {"id": 630, "type": "identifier", "text": "a", "parent": 626, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 26}}, {"id": 631, "type": "parameter_declaration", "text": "unsigned long v", "parent": 625, "children": [632, 635], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 43}}, {"id": 632, "type": "sized_type_specifier", "text": "unsigned long", "parent": 631, "children": [633, 634], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 41}}, {"id": 633, "type": "unsigned", "text": "unsigned", "parent": 632, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 36}}, {"id": 634, "type": "long", "text": "long", "parent": 632, "children": [], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 41}}, {"id": 635, "type": "identifier", "text": "v", "parent": 631, "children": [], "start_point": {"row": 96, "column": 42}, "end_point": {"row": 96, "column": 43}}, {"id": 636, "type": "parameter_declaration", "text": "char t", "parent": 625, "children": [637, 638], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 51}}, {"id": 637, "type": "primitive_type", "text": "char", "parent": 636, "children": [], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 49}}, {"id": 638, "type": "identifier", "text": "t", "parent": 636, "children": [], "start_point": {"row": 96, "column": 50}, "end_point": {"row": 96, "column": 51}}, {"id": 639, "type": "parameter_declaration", "text": "char s", "parent": 625, "children": [640, 641], "start_point": {"row": 96, "column": 53}, "end_point": {"row": 96, "column": 59}}, {"id": 640, "type": "primitive_type", "text": "char", "parent": 639, "children": [], "start_point": {"row": 96, "column": 53}, "end_point": {"row": 96, "column": 57}}, {"id": 641, "type": "identifier", "text": "s", "parent": 639, "children": [], "start_point": {"row": 96, "column": 58}, "end_point": {"row": 96, "column": 59}}, {"id": 642, "type": "binary_expression", "text": "AddressObj &operator=(const AddressObj& t)", "parent": 499, "children": [643, 644], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 43}}, {"id": 643, "type": "identifier", "text": "AddressObj", "parent": 642, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 11}}, {"id": 644, "type": "assignment_expression", "text": "operator=(const AddressObj& t)", "parent": 642, "children": [645, 646, 647], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 43}}, {"id": 645, "type": "identifier", "text": "operator", "parent": 644, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 21}}, {"id": 646, "type": "=", "text": "=", "parent": 644, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 22}}, {"id": 647, "type": "parenthesized_expression", "text": "(const AddressObj& t)", "parent": 644, "children": [648, 651], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 43}}, {"id": 648, "type": "ERROR", "text": "const AddressObj", "parent": 647, "children": [649], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 39}}, {"id": 649, "type": "type_descriptor", "text": "const AddressObj", "parent": 648, "children": [650], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 39}}, {"id": 650, "type": "type_identifier", "text": "AddressObj", "parent": 649, "children": [], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 39}}, {"id": 651, "type": "pointer_expression", "text": "& t", "parent": 647, "children": [652], "start_point": {"row": 97, "column": 39}, "end_point": {"row": 97, "column": 42}}, {"id": 652, "type": "identifier", "text": "t", "parent": 651, "children": [], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 42}}, {"id": 653, "type": "ERROR", "text": "bool operator==(const AddressObj", "parent": 499, "children": [654, 655, 656, 657], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 33}}, {"id": 654, "type": "primitive_type", "text": "bool", "parent": 653, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 5}}, {"id": 655, "type": "identifier", "text": "operator", "parent": 653, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 14}}, {"id": 656, "type": "==", "text": "==", "parent": 653, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 16}}, {"id": 657, "type": "type_identifier", "text": "AddressObj", "parent": 653, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 33}}, {"id": 658, "type": "pointer_expression", "text": "&t", "parent": 499, "children": [659], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 36}}, {"id": 659, "type": "identifier", "text": "t", "parent": 658, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 36}}, {"id": 660, "type": "ERROR", "text": "bool operator!=(const AddressObj", "parent": 499, "children": [661, 662, 663, 664], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 33}}, {"id": 661, "type": "primitive_type", "text": "bool", "parent": 660, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 5}}, {"id": 662, "type": "identifier", "text": "operator", "parent": 660, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 14}}, {"id": 663, "type": "!=", "text": "!=", "parent": 660, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 16}}, {"id": 664, "type": "type_identifier", "text": "AddressObj", "parent": 660, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 33}}, {"id": 665, "type": "pointer_expression", "text": "&t", "parent": 499, "children": [666], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 36}}, {"id": 666, "type": "identifier", "text": "t", "parent": 665, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 36}}, {"id": 667, "type": "function_definition", "text": "bool isPointer() { return pointer != nullptr; }", "parent": 499, "children": [668, 669], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 48}}, {"id": 668, "type": "primitive_type", "text": "bool", "parent": 667, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 5}}, {"id": 669, "type": "function_declarator", "text": "isPointer()", "parent": 667, "children": [670, 671], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 17}}, {"id": 670, "type": "identifier", "text": "isPointer", "parent": 669, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 15}}, {"id": 671, "type": "parameter_list", "text": "()", "parent": 669, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 17}}, {"id": 672, "type": "return_statement", "text": "return pointer != nullptr;", "parent": 667, "children": [673], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 46}}, {"id": 673, "type": "binary_expression", "text": "pointer != nullptr", "parent": 672, "children": [674, 675, 676], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 45}}, {"id": 674, "type": "identifier", "text": "pointer", "parent": 673, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 34}}, {"id": 675, "type": "!=", "text": "!=", "parent": 673, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 37}}, {"id": 676, "type": "null", "text": "nullptr", "parent": 673, "children": [677], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 45}}, {"id": 677, "type": "nullptr", "text": "nullptr", "parent": 676, "children": [], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 45}}, {"id": 678, "type": "declaration", "text": "int read(char *buf);", "parent": 499, "children": [679, 680], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 21}}, {"id": 679, "type": "primitive_type", "text": "int", "parent": 678, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 4}}, {"id": 680, "type": "function_declarator", "text": "read(char *buf)", "parent": 678, "children": [681, 682], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 20}}, {"id": 681, "type": "identifier", "text": "read", "parent": 680, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 9}}, {"id": 682, "type": "parameter_list", "text": "(char *buf)", "parent": 680, "children": [683], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 20}}, {"id": 683, "type": "parameter_declaration", "text": "char *buf", "parent": 682, "children": [684, 685], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 19}}, {"id": 684, "type": "primitive_type", "text": "char", "parent": 683, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 14}}, {"id": 685, "type": "pointer_declarator", "text": "*buf", "parent": 683, "children": [686, 687], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 19}}, {"id": 686, "type": "*", "text": "*", "parent": 685, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 16}}, {"id": 687, "type": "identifier", "text": "buf", "parent": 685, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 19}}, {"id": 688, "type": "declaration", "text": "int write(char *buf);", "parent": 499, "children": [689, 690], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 22}}, {"id": 689, "type": "primitive_type", "text": "int", "parent": 688, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 4}}, {"id": 690, "type": "function_declarator", "text": "write(char *buf)", "parent": 688, "children": [691, 692], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 21}}, {"id": 691, "type": "identifier", "text": "write", "parent": 690, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 10}}, {"id": 692, "type": "parameter_list", "text": "(char *buf)", "parent": 690, "children": [693], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 21}}, {"id": 693, "type": "parameter_declaration", "text": "char *buf", "parent": 692, "children": [694, 695], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 20}}, {"id": 694, "type": "primitive_type", "text": "char", "parent": 693, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 15}}, {"id": 695, "type": "pointer_declarator", "text": "*buf", "parent": 693, "children": [696, 697], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 20}}, {"id": 696, "type": "*", "text": "*", "parent": 695, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 697, "type": "identifier", "text": "buf", "parent": 695, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 20}}, {"id": 698, "type": "declaration", "text": "void debug();", "parent": 499, "children": [699, 700], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 14}}, {"id": 699, "type": "primitive_type", "text": "void", "parent": 698, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 5}}, {"id": 700, "type": "function_declarator", "text": "debug()", "parent": 698, "children": [701, 702], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 13}}, {"id": 701, "type": "identifier", "text": "debug", "parent": 700, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 11}}, {"id": 702, "type": "parameter_list", "text": "()", "parent": 700, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 13}}, {"id": 703, "type": "type_definition", "text": "typedef shared_ptr<AddressObj> AddressItem;", "parent": 0, "children": [704, 705, 706, 710], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 43}}, {"id": 704, "type": "typedef", "text": "typedef", "parent": 703, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 705, "type": "type_identifier", "text": "shared_ptr", "parent": 703, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 18}}, {"id": 706, "type": "ERROR", "text": "<AddressObj>", "parent": 703, "children": [707, 708, 709], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 30}}, {"id": 707, "type": "<", "text": "<", "parent": 706, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 19}}, {"id": 708, "type": "type_identifier", "text": "AddressObj", "parent": 706, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 29}}, {"id": 709, "type": ">", "text": ">", "parent": 706, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 30}}, {"id": 710, "type": "type_identifier", "text": "AddressItem", "parent": 703, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 42}}, {"id": 711, "type": "type_definition", "text": "typedef vector<AddressItem> AddressList;", "parent": 0, "children": [712, 713, 714, 718], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 40}}, {"id": 712, "type": "typedef", "text": "typedef", "parent": 711, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 713, "type": "type_identifier", "text": "vector", "parent": 711, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 14}}, {"id": 714, "type": "ERROR", "text": "<AddressItem>", "parent": 711, "children": [715, 716, 717], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 27}}, {"id": 715, "type": "<", "text": "<", "parent": 714, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 15}}, {"id": 716, "type": "type_identifier", "text": "AddressItem", "parent": 714, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 26}}, {"id": 717, "type": ">", "text": ">", "parent": 714, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 27}}, {"id": 718, "type": "type_identifier", "text": "AddressList", "parent": 711, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 39}}, {"id": 719, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 6}}]}, "node_categories": {"declarations": {"functions": [26, 36, 77, 79, 88, 91, 100, 103, 112, 114, 123, 127, 136, 140, 147, 152, 170, 175, 193, 199, 217, 221, 239, 242, 262, 265, 285, 289, 309, 311, 426, 436, 462, 475, 483, 488, 499, 623, 667, 669, 680, 690, 700], "variables": [6, 29, 39, 155, 178, 202, 224, 245, 268, 292, 314, 332, 336, 341, 347, 353, 360, 366, 374, 379, 384, 402, 407, 418, 429, 439, 444, 447, 450, 455, 460, 465, 470, 473, 478, 481, 486, 491, 502, 507, 512, 517, 520, 523, 535, 585, 621, 626, 631, 636, 639, 678, 683, 688, 693, 698, 703, 711], "classes": [333, 334, 371, 372], "imports": [11, 12, 14, 15, 17, 18, 20, 21, 23, 24], "modules": [], "enums": []}, "statements": {"expressions": [62, 66, 70, 75, 83, 85, 95, 97, 107, 109, 118, 120, 131, 133, 144, 161, 167, 184, 190, 208, 214, 230, 236, 251, 257, 259, 274, 280, 282, 298, 304, 306, 320, 326, 328, 526, 529, 532, 642, 647, 651, 658, 665, 673], "assignments": [65, 160, 183, 207, 229, 250, 273, 297, 319, 644], "loops": [], "conditionals": [0, 1, 2, 5, 7, 8, 10, 27, 30, 31, 35, 37, 40, 42, 43, 44, 48, 49, 50, 52, 54, 55, 56, 58, 61, 63, 67, 68, 76, 80, 86, 87, 89, 92, 98, 99, 101, 104, 110, 111, 115, 121, 122, 124, 128, 134, 135, 141, 145, 146, 148, 153, 159, 162, 163, 165, 168, 169, 171, 176, 182, 185, 186, 188, 191, 192, 194, 200, 206, 209, 210, 212, 215, 216, 222, 228, 231, 232, 234, 237, 238, 240, 243, 249, 252, 253, 255, 260, 261, 263, 266, 272, 275, 276, 278, 283, 284, 286, 290, 296, 299, 300, 302, 307, 308, 312, 318, 321, 322, 324, 329, 330, 335, 340, 342, 346, 348, 352, 354, 359, 364, 365, 369, 373, 375, 378, 380, 383, 385, 386, 389, 392, 393, 397, 399, 401, 403, 406, 409, 410, 417, 420, 423, 425, 427, 430, 431, 433, 435, 437, 440, 443, 445, 446, 448, 449, 451, 454, 456, 459, 463, 466, 469, 471, 472, 476, 479, 480, 484, 487, 489, 493, 496, 498, 500, 503, 506, 508, 511, 513, 516, 519, 522, 524, 525, 527, 530, 533, 534, 536, 537, 540, 543, 545, 548, 551, 552, 554, 555, 556, 559, 562, 564, 567, 570, 571, 572, 574, 577, 579, 580, 582, 584, 586, 587, 590, 593, 594, 595, 597, 600, 603, 604, 606, 607, 608, 610, 613, 615, 616, 618, 620, 624, 627, 630, 632, 635, 638, 641, 643, 645, 650, 652, 655, 657, 659, 662, 664, 666, 670, 674, 681, 687, 691, 697, 701, 705, 708, 710, 713, 716, 718, 719], "returns": [82, 94, 106, 117, 130, 143, 166, 189, 213, 235, 256, 279, 303, 325, 672], "exceptions": []}, "expressions": {"calls": [], "literals": [13, 16, 19, 22, 25, 370], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "Variant", "text_snippet": "class Variant\n{\npublic:\n\tVariant(float v);\n\tVariant(short v);\n\tVariant(char v);\n\tVariant(long v);\n\tV"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "Variant(short v)"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "float asFloat() { return *pt_obj.fPt; }"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "asFloat()"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "long asLong() { return *pt_obj.lPt; }"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "asLong()"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "short asShort() { return *pt_obj.sPt; }"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "asShort()"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "char asChar() { return *pt_obj.cPt; }"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "asChar()"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "long long asLongLong() { return *pt_obj.llPt; }"}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "asLongLong()"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "char * asPointer() { return pt_obj.cPt; }"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "asPointer()"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "short *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "convertToShortPointer(char *pt)"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "long *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "convertToLongPointer(char *pt)"}, {"node_id": 193, "universal_type": "function", "name": "unknown", "text_snippet": "long long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "convertToLongLongPointer(char *pt)"}, {"node_id": 217, "universal_type": "function", "name": "unknown", "text_snippet": "float *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "convertToFloatPointer(char *pt)"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "short convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "convertToShort(char *pt)"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "long convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "convertToLong(char *pt)"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "long long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "convertToLongLong(char *pt)"}, {"node_id": 309, "universal_type": "function", "name": "unknown", "text_snippet": "float convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }"}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": "convertToFloat(char *pt)"}, {"node_id": 426, "universal_type": "function", "name": "PointerObj", "text_snippet": "class PointerObj\n{\npublic:\n\tPointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, c"}, {"node_id": 436, "universal_type": "function", "name": "unknown", "text_snippet": "PointerObj(const unsigned long address, const PointerOffsets &pt)"}, {"node_id": 462, "universal_type": "function", "name": "unknown", "text_snippet": "fromPointerOffsets(const unsigned long address, const PointerOffsets &pt)"}, {"node_id": 475, "universal_type": "function", "name": "unknown", "text_snippet": "equal(PointerObj p)"}, {"node_id": 483, "universal_type": "function", "name": "unknown", "text_snippet": "update()"}, {"node_id": 488, "universal_type": "function", "name": "unknown", "text_snippet": "getOffsets()"}, {"node_id": 499, "universal_type": "function", "name": "AddressObj", "text_snippet": "class AddressObj\n{\npublic:\n\tunsigned long address; //this is our base address\n\tlong long value; //th"}, {"node_id": 623, "universal_type": "function", "name": "unknown", "text_snippet": "init(unsigned long a, unsigned long v, char t, char s)"}, {"node_id": 667, "universal_type": "function", "name": "isPointer", "text_snippet": "bool isPointer() { return pointer != nullptr; }"}, {"node_id": 669, "universal_type": "function", "name": "unknown", "text_snippet": "isPointer()"}, {"node_id": 680, "universal_type": "function", "name": "unknown", "text_snippet": "read(char *buf)"}, {"node_id": 690, "universal_type": "function", "name": "unknown", "text_snippet": "write(char *buf)"}, {"node_id": 700, "universal_type": "function", "name": "unknown", "text_snippet": "debug()"}], "class_declarations": [{"node_id": 333, "universal_type": "class", "name": "pointer", "text_snippet": "union pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t}"}, {"node_id": 334, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 371, "universal_type": "class", "name": "AddressOffset", "text_snippet": "struct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n\tunsigned "}, {"node_id": 372, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 11, "text": "#include <memory>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include <list>\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include <iostream>\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include <vector>\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include <memory>\n"}, {"node_id": 24, "text": "#include"}]}, "original_source_code": "#ifndef __CCAPITYPES__\n#define __CCAPITYPES__\n\nusing namespace std;\n#include <memory>\n#include <list>\n#include <iostream>\n#include <vector>\n#include <memory>\n\nclass Variant\n{\npublic:\n\tVariant(float v);\n\tVariant(short v);\n\tVariant(char v);\n\tVariant(long v);\n\tVariant(long long v);\n\tVariant() { pt_obj.cPt = (char*)&value;}\n\n\n\tfloat asFloat() { return *pt_obj.fPt; }\n\tlong asLong() { return *pt_obj.lPt; }\n\tshort asShort() { return *pt_obj.sPt; }\n\tchar asChar() { return *pt_obj.cPt; }\n\tlong long asLongLong() { return *pt_obj.llPt; }\n\tchar * asPointer() { return pt_obj.cPt; }\n\n\tshort *convertToShortPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.sPt; }\n\tlong *convertToLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.lPt; }\n\tlong long *convertToLongLongPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.llPt; }\n\tfloat *convertToFloatPointer(char *pt) { pt_obj.cPt = pt; return pt_obj.fPt; }\n\n\tshort convertToShort(char *pt) { pt_obj.cPt = pt; return *pt_obj.sPt; }\n\tlong convertToLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.lPt; }\n\tlong long convertToLongLong(char *pt) { pt_obj.cPt = pt; return *pt_obj.llPt; }\n\tfloat convertToFloat(char *pt) { pt_obj.cPt = pt; return *pt_obj.fPt; }\n\nprivate:\n\tunion pointer\n\t{\n\t\tchar *cPt;\n\t\tshort *sPt;\n\t\tlong *lPt;\n\t\tlong long *llPt;\n\t\tfloat *fPt;\n\t} pt_obj;\n\tchar value[8];\n};\n\nstruct AddressOffset //this is a pointer helper that contains an address and an offset\n{\n\tunsigned long address;\n\tunsigned int offset;\n\tAddressOffset(unsigned long a, unsigned int o) { address = a; offset = o; }\n};\n\ntypedef list<unsigned int> PointerOffsets; //this is a list of offsets for a pointer\ntypedef list<AddressOffset> AddressOffsets; //this is a list of address and offset items\n\n\nclass PointerObj\n{\npublic:\n\tPointerObj(AddressOffsets b);\n\tPointerObj(const unsigned long address, const PointerOffsets &pt);\n\n\tAddressOffsets pointers;\n\tunsigned long resolved; //this is our resolved address\n\n\tunsigned int updateCount;\n\tvoid fromPointerOffsets(const unsigned long address, const PointerOffsets &pt);\n\tbool equal(PointerObj p);\n\tvoid update();\n\tPointerOffsets getOffsets();\n};\ntypedef shared_ptr<PointerObj> PointerItem;\n\n/* An AddressItem is either an address that we are focusing on or a base of a pointer that we are focusing on.\n The value is the memory at that address or whatever the resolved pointer address is. */\nclass AddressObj\n{\npublic:\n\tunsigned long address; //this is our base address\n\tlong long value; //this is the memory from either our base address or our resolved address\n\tlong long store; //this is the value we will write to memory\n\tchar sign; //signed or unsigned\n\tchar type; //1-4byte, float\n\tPointerItem pointer; //our pointer info if we are using one\n\tAddressObj();\n\tAddressObj(AddressObj &item);\n\tAddressObj(unsigned long a, unsigned long v, char t, char s); //a single address\n\tAddressObj(unsigned long a, unsigned long v, char s); //a single address\n\tAddressObj(unsigned long a, PointerOffsets p, char t, char s); //a pointer\n\tAddressObj(unsigned long a, PointerOffsets p, unsigned long v, char t, char s); //a pointer and value\n\tAddressObj(unsigned long a, PointerItem p, char t, char s); //a pointer\n\tvoid init(unsigned long a, unsigned long v, char t, char s);\n\tAddressObj &operator=(const AddressObj& t);\t\n\tbool operator==(const AddressObj &t);\n\tbool operator!=(const AddressObj &t);\n\tbool isPointer() { return pointer != nullptr; }\n\tint read(char *buf);\n\tint write(char *buf);\n\tvoid debug();\n};\ntypedef shared_ptr<AddressObj> AddressItem;\n\ntypedef vector<AddressItem> AddressList;\n#endif\n"}
81,041
c
/* * wodOS Operating System * Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Contributor(s): * - <NAME> <<EMAIL>> */ #ifndef __UTILS_STRING_H__ #define __UTILS_STRING_H__ #include <stdbool.h> #include <stddef.h> #include <stdint.h> const char *strchr(const char *str, char chr); char *strcpy(char *dst, const char *src); unsigned strlen(const char *str); bool is_lower(char chr); char to_upper(char chr); #endif // __UTILS_STRING_H__
26.76
21
(translation_unit) "/*\n * wodOS Operating System\n * Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Contributor(s):\n * - <NAME> <<EMAIL>>\n */\n\n#ifndef __UTILS_STRING_H__\n#define __UTILS_STRING_H__\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\nconst char *strchr(const char *str, char chr);\n\nchar *strcpy(char *dst, const char *src);\n\nunsigned strlen(const char *str);\n\nbool is_lower(char chr);\n\nchar to_upper(char chr);\n\n#endif // __UTILS_STRING_H__" (comment) "/*\n * wodOS Operating System\n * Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Contributor(s):\n * - <NAME> <<EMAIL>>\n */\n" (preproc_ifdef) "ifndef __UTILS_STRING_H__\n#define __UTILS_STRING_H__\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\nconst char *strchr(const char *str, char chr);\n\nchar *strcpy(char *dst, const char *src);\n\nunsigned strlen(const char *str);\n\nbool is_lower(char chr);\n\nchar to_upper(char chr);\n\n#endif " (#ifndef) "ifndef " (identifier) "_UTILS_STRING_H__\n" (preproc_def) "define __UTILS_STRING_H__\n\n" (#define) "define " (identifier) "_UTILS_STRING_H__\n" (preproc_include) "include <stdbool.h>\n#" (#include) "include " (system_lib_string) "stdbool.h>\n" (preproc_include) "include <stddef.h>\n#" (#include) "include " (system_lib_string) "stddef.h>\n" (preproc_include) "include <stdint.h>\n\n" (#include) "include " (system_lib_string) "stdint.h>\n" (declaration) "onst char *strchr(const char *str, char chr);\n" (type_qualifier) "onst " (const) "onst " (primitive_type) "har " (pointer_declarator) "strchr(const char *str, char chr);" (*) "s" (function_declarator) "trchr(const char *str, char chr);" (identifier) "trchr(" (parameter_list) "const char *str, char chr);" (() "c" (parameter_declaration) "onst char *str," (type_qualifier) "onst " (const) "onst " (primitive_type) "har " (pointer_declarator) "str," (*) "s" (identifier) "tr," (,) " " (parameter_declaration) "har chr)" (primitive_type) "har " (identifier) "hr)" ()) ";" (;) "\n" (declaration) "har *strcpy(char *dst, const char *src);\n" (primitive_type) "har " (pointer_declarator) "strcpy(char *dst, const char *src);" (*) "s" (function_declarator) "trcpy(char *dst, const char *src);" (identifier) "trcpy(" (parameter_list) "char *dst, const char *src);" (() "c" (parameter_declaration) "har *dst," (primitive_type) "har " (pointer_declarator) "dst," (*) "d" (identifier) "st," (,) " " (parameter_declaration) "onst char *src)" (type_qualifier) "onst " (const) "onst " (primitive_type) "har " (pointer_declarator) "src)" (*) "s" (identifier) "rc)" ()) ";" (;) "\n" (declaration) "nsigned strlen(const char *str);\n" (sized_type_specifier) "nsigned " (unsigned) "nsigned " (function_declarator) "trlen(const char *str);" (identifier) "trlen(" (parameter_list) "const char *str);" (() "c" (parameter_declaration) "onst char *str)" (type_qualifier) "onst " (const) "onst " (primitive_type) "har " (pointer_declarator) "str)" (*) "s" (identifier) "tr)" ()) ";" (;) "\n" (declaration) "ool is_lower(char chr);\n" (primitive_type) "ool " (function_declarator) "s_lower(char chr);" (identifier) "s_lower(" (parameter_list) "char chr);" (() "c" (parameter_declaration) "har chr)" (primitive_type) "har " (identifier) "hr)" ()) ";" (;) "\n" (declaration) "har to_upper(char chr);\n" (primitive_type) "har " (function_declarator) "o_upper(char chr);" (identifier) "o_upper(" (parameter_list) "char chr);" (() "c" (parameter_declaration) "har chr)" (primitive_type) "har " (identifier) "hr)" ()) ";" (;) "\n" (#endif) "endif " (comment) "/ __UTILS_STRING_H__"
103
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.76, "nodes": 79, "errors": 0, "source_hash": "98ef96e2a5f95c9820fc10b7523d896dbfc7108aa4ed04504dc107dd23feebfc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef __UTILS_STRING_H__\n#define __UTILS_STRING_H__\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\nconst char *strchr(const char *str, char chr);\n\nchar *strcpy(char *dst, const char *src);\n\nunsigned strlen(const char *str);\n\nbool is_lower(char chr);\n\nchar to_upper(char chr);\n\n#endif ", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 32, 50, 62, 70, 78], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "ifndef ", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "identifier", "text": "_UTILS_STRING_H__\n", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "define __UTILS_STRING_H__\n\n", "parent": 0, "children": [4, 5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 4, "type": "#define", "text": "define ", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 5, "type": "identifier", "text": "_UTILS_STRING_H__\n", "parent": 3, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "include <stdbool.h>\n#", "parent": 0, "children": [7, 8], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 7, "type": "#include", "text": "include ", "parent": 6, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "stdbool.h>\n", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "include <stddef.h>\n#", "parent": 0, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "include ", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "stddef.h>\n", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "include <stdint.h>\n\n", "parent": 0, "children": [13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 13, "type": "#include", "text": "include ", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "stdint.h>\n", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 15, "type": "declaration", "text": "onst char *strchr(const char *str, char chr);\n", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 46}}, {"id": 16, "type": "type_qualifier", "text": "onst ", "parent": 15, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 5}}, {"id": 17, "type": "primitive_type", "text": "har ", "parent": 15, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 10}}, {"id": 18, "type": "pointer_declarator", "text": "strchr(const char *str, char chr);", "parent": 15, "children": [19, 20], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 45}}, {"id": 19, "type": "*", "text": "s", "parent": 18, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 20, "type": "function_declarator", "text": "trchr(const char *str, char chr);", "parent": 18, "children": [21, 22], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 45}}, {"id": 21, "type": "identifier", "text": "trchr(", "parent": 20, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 18}}, {"id": 22, "type": "parameter_list", "text": "const char *str, char chr);", "parent": 20, "children": [23, 29], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 45}}, {"id": 23, "type": "parameter_declaration", "text": "onst char *str,", "parent": 22, "children": [24, 25, 26], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 34}}, {"id": 24, "type": "type_qualifier", "text": "onst ", "parent": 23, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 24}}, {"id": 25, "type": "primitive_type", "text": "har ", "parent": 23, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 29}}, {"id": 26, "type": "pointer_declarator", "text": "str,", "parent": 23, "children": [27, 28], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 34}}, {"id": 27, "type": "*", "text": "s", "parent": 26, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 31}}, {"id": 28, "type": "identifier", "text": "tr,", "parent": 26, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 34}}, {"id": 29, "type": "parameter_declaration", "text": "har chr)", "parent": 22, "children": [30, 31], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 44}}, {"id": 30, "type": "primitive_type", "text": "har ", "parent": 29, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 40}}, {"id": 31, "type": "identifier", "text": "hr)", "parent": 29, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 44}}, {"id": 32, "type": "declaration", "text": "har *strcpy(char *dst, const char *src);\n", "parent": 0, "children": [33, 34], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 41}}, {"id": 33, "type": "primitive_type", "text": "har ", "parent": 32, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 34, "type": "pointer_declarator", "text": "strcpy(char *dst, const char *src);", "parent": 32, "children": [35, 36], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 40}}, {"id": 35, "type": "*", "text": "s", "parent": 34, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 6}}, {"id": 36, "type": "function_declarator", "text": "trcpy(char *dst, const char *src);", "parent": 34, "children": [37, 38], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 40}}, {"id": 37, "type": "identifier", "text": "trcpy(", "parent": 36, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 12}}, {"id": 38, "type": "parameter_list", "text": "char *dst, const char *src);", "parent": 36, "children": [39, 44], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 40}}, {"id": 39, "type": "parameter_declaration", "text": "har *dst,", "parent": 38, "children": [40, 41], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 22}}, {"id": 40, "type": "primitive_type", "text": "har ", "parent": 39, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 17}}, {"id": 41, "type": "pointer_declarator", "text": "dst,", "parent": 39, "children": [42, 43], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 22}}, {"id": 42, "type": "*", "text": "d", "parent": 41, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 43, "type": "identifier", "text": "st,", "parent": 41, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 22}}, {"id": 44, "type": "parameter_declaration", "text": "onst char *src)", "parent": 38, "children": [45, 46, 47], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 39}}, {"id": 45, "type": "type_qualifier", "text": "onst ", "parent": 44, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 29}}, {"id": 46, "type": "primitive_type", "text": "har ", "parent": 44, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 34}}, {"id": 47, "type": "pointer_declarator", "text": "src)", "parent": 44, "children": [48, 49], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 48, "type": "*", "text": "s", "parent": 47, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 36}}, {"id": 49, "type": "identifier", "text": "rc)", "parent": 47, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 39}}, {"id": 50, "type": "declaration", "text": "nsigned strlen(const char *str);\n", "parent": 0, "children": [51, 53], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 33}}, {"id": 51, "type": "sized_type_specifier", "text": "nsigned ", "parent": 50, "children": [52], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 52, "type": "unsigned", "text": "nsigned ", "parent": 51, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 53, "type": "function_declarator", "text": "trlen(const char *str);", "parent": 50, "children": [54, 55], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 32}}, {"id": 54, "type": "identifier", "text": "trlen(", "parent": 53, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 15}}, {"id": 55, "type": "parameter_list", "text": "const char *str);", "parent": 53, "children": [56], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 32}}, {"id": 56, "type": "parameter_declaration", "text": "onst char *str)", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 31}}, {"id": 57, "type": "type_qualifier", "text": "onst ", "parent": 56, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 21}}, {"id": 58, "type": "primitive_type", "text": "har ", "parent": 56, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 59, "type": "pointer_declarator", "text": "str)", "parent": 56, "children": [60, 61], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 31}}, {"id": 60, "type": "*", "text": "s", "parent": 59, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 28}}, {"id": 61, "type": "identifier", "text": "tr)", "parent": 59, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 62, "type": "declaration", "text": "ool is_lower(char chr);\n", "parent": 0, "children": [63, 64], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 63, "type": "primitive_type", "text": "ool ", "parent": 62, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 64, "type": "function_declarator", "text": "s_lower(char chr);", "parent": 62, "children": [65, 66], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 23}}, {"id": 65, "type": "identifier", "text": "s_lower(", "parent": 64, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 13}}, {"id": 66, "type": "parameter_list", "text": "char chr);", "parent": 64, "children": [67], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 23}}, {"id": 67, "type": "parameter_declaration", "text": "har chr)", "parent": 66, "children": [68, 69], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 22}}, {"id": 68, "type": "primitive_type", "text": "har ", "parent": 67, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 69, "type": "identifier", "text": "hr)", "parent": 67, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 22}}, {"id": 70, "type": "declaration", "text": "har to_upper(char chr);\n", "parent": 0, "children": [71, 72], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 24}}, {"id": 71, "type": "primitive_type", "text": "har ", "parent": 70, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 72, "type": "function_declarator", "text": "o_upper(char chr);", "parent": 70, "children": [73, 74], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 23}}, {"id": 73, "type": "identifier", "text": "o_upper(", "parent": 72, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 13}}, {"id": 74, "type": "parameter_list", "text": "char chr);", "parent": 72, "children": [75], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 23}}, {"id": 75, "type": "parameter_declaration", "text": "har chr)", "parent": 74, "children": [76, 77], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 22}}, {"id": 76, "type": "primitive_type", "text": "har ", "parent": 75, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 18}}, {"id": 77, "type": "identifier", "text": "hr)", "parent": 75, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 22}}, {"id": 78, "type": "#endif", "text": "endif ", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20, 36, 53, 64, 72], "variables": [15, 23, 29, 32, 39, 44, 50, 56, 62, 67, 70, 75], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 21, 24, 28, 31, 37, 43, 45, 49, 51, 54, 57, 61, 65, 69, 73, 77, 78], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "trchr(const char *str, char chr);"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "trcpy(char *dst, const char *src);"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "trlen(const char *str);"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "s_lower(char chr);"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "o_upper(char chr);"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "include <stdbool.h>\n#"}, {"node_id": 7, "text": "include "}, {"node_id": 9, "text": "include <stddef.h>\n#"}, {"node_id": 10, "text": "include "}, {"node_id": 12, "text": "include <stdint.h>\n\n"}, {"node_id": 13, "text": "include "}]}, "original_source_code": "/*\n * wodOS Operating System\n * Copyright \u00a9 2021-2022 wodOS Operating System Developers. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Contributor(s):\n * \t- <NAME> <<EMAIL>>\n */\n\n#ifndef __UTILS_STRING_H__\n#define __UTILS_STRING_H__\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\nconst char *strchr(const char *str, char chr);\n\nchar *strcpy(char *dst, const char *src);\n\nunsigned strlen(const char *str);\n\nbool is_lower(char chr);\n\nchar to_upper(char chr);\n\n#endif // __UTILS_STRING_H__"}
81,042
c
#pragma once #ifdef LG_PLATFORM_WINDOWS extern LG::Application* LG::CreateApplication(); int main(int argc, char** argv) { LG::Log::Init(); int a = 3; LG_CORE_CRITICAL("Critical var={0}", a); LG_CORE_ERROR("Error"); LG_CORE_WARN("Warning"); LG_CORE_INFO("Info"); LG_CORE_TRACE("Trace"); LG_CRITICAL("Critical"); LG_ERROR("Error"); LG_WARN("Warning"); LG_INFO("Info"); LG_TRACE("Trace"); auto app = LG::CreateApplication(); app->Run(); delete app; } #endif
19.52
23
(translation_unit) "#pragma once\n\n#ifdef LG_PLATFORM_WINDOWS\n\nextern LG::Application* LG::CreateApplication();\n\nint main(int argc, char** argv)\n{\n\n LG::Log::Init();\n int a = 3;\n LG_CORE_CRITICAL("Critical var={0}", a);\n LG_CORE_ERROR("Error");\n LG_CORE_WARN("Warning");\n LG_CORE_INFO("Info");\n LG_CORE_TRACE("Trace");\n\n LG_CRITICAL("Critical");\n LG_ERROR("Error");\n LG_WARN("Warning");\n LG_INFO("Info");\n LG_TRACE("Trace");\n\n\n\n auto app = LG::CreateApplication();\n app->Run();\n\n delete app;\n}\n#endif" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef LG_PLATFORM_WINDOWS\n\nextern LG::Application* LG::CreateApplication();\n\nint main(int argc, char** argv)\n{\n\n LG::Log::Init();\n int a = 3;\n LG_CORE_CRITICAL("Critical var={0}", a);\n LG_CORE_ERROR("Error");\n LG_CORE_WARN("Warning");\n LG_CORE_INFO("Info");\n LG_CORE_TRACE("Trace");\n\n LG_CRITICAL("Critical");\n LG_ERROR("Error");\n LG_WARN("Warning");\n LG_INFO("Info");\n LG_TRACE("Trace");\n\n\n\n auto app = LG::CreateApplication();\n app->Run();\n\n delete app;\n}\n#endif" (#ifdef) "#ifdef" (identifier) "LG_PLATFORM_WINDOWS" (declaration) "extern LG::Application* LG::CreateApplication();" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "LG" (ERROR) "::Application" (:) ":" (:) ":" (identifier) "Application" (pointer_declarator) "* LG::CreateApplication()" (*) "*" (ERROR) "LG::" (identifier) "LG" (:) ":" (:) ":" (function_declarator) "CreateApplication()" (identifier) "CreateApplication" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int main(int argc, char** argv)\n{\n\n LG::Log::Init();\n int a = 3;\n LG_CORE_CRITICAL("Critical var={0}", a);\n LG_CORE_ERROR("Error");\n LG_CORE_WARN("Warning");\n LG_CORE_INFO("Info");\n LG_CORE_TRACE("Trace");\n\n LG_CRITICAL("Critical");\n LG_ERROR("Error");\n LG_WARN("Warning");\n LG_INFO("Info");\n LG_TRACE("Trace");\n\n\n\n auto app = LG::CreateApplication();\n app->Run();\n\n delete app;\n}" (primitive_type) "int" (function_declarator) "main(int argc, char** argv)" (identifier) "main" (parameter_list) "(int argc, char** argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char** argv" (primitive_type) "char" (pointer_declarator) "** argv" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n\n LG::Log::Init();\n int a = 3;\n LG_CORE_CRITICAL("Critical var={0}", a);\n LG_CORE_ERROR("Error");\n LG_CORE_WARN("Warning");\n LG_CORE_INFO("Info");\n LG_CORE_TRACE("Trace");\n\n LG_CRITICAL("Critical");\n LG_ERROR("Error");\n LG_WARN("Warning");\n LG_INFO("Info");\n LG_TRACE("Trace");\n\n\n\n auto app = LG::CreateApplication();\n app->Run();\n\n delete app;\n}" ({) "{" (labeled_statement) "LG::Log::Init();" (statement_identifier) "LG" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "Log::Init();" (statement_identifier) "Log" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "Init();" (call_expression) "Init()" (identifier) "Init" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int a = 3;" (primitive_type) "int" (init_declarator) "a = 3" (identifier) "a" (=) "=" (number_literal) "3" (;) ";" (expression_statement) "LG_CORE_CRITICAL("Critical var={0}", a);" (call_expression) "LG_CORE_CRITICAL("Critical var={0}", a)" (identifier) "LG_CORE_CRITICAL" (argument_list) "("Critical var={0}", a)" (() "(" (string_literal) ""Critical var={0}"" (") """ (string_content) "Critical var={0}" (") """ (,) "," (identifier) "a" ()) ")" (;) ";" (expression_statement) "LG_CORE_ERROR("Error");" (call_expression) "LG_CORE_ERROR("Error")" (identifier) "LG_CORE_ERROR" (argument_list) "("Error")" (() "(" (string_literal) ""Error"" (") """ (string_content) "Error" (") """ ()) ")" (;) ";" (expression_statement) "LG_CORE_WARN("Warning");" (call_expression) "LG_CORE_WARN("Warning")" (identifier) "LG_CORE_WARN" (argument_list) "("Warning")" (() "(" (string_literal) ""Warning"" (") """ (string_content) "Warning" (") """ ()) ")" (;) ";" (expression_statement) "LG_CORE_INFO("Info");" (call_expression) "LG_CORE_INFO("Info")" (identifier) "LG_CORE_INFO" (argument_list) "("Info")" (() "(" (string_literal) ""Info"" (") """ (string_content) "Info" (") """ ()) ")" (;) ";" (expression_statement) "LG_CORE_TRACE("Trace");" (call_expression) "LG_CORE_TRACE("Trace")" (identifier) "LG_CORE_TRACE" (argument_list) "("Trace")" (() "(" (string_literal) ""Trace"" (") """ (string_content) "Trace" (") """ ()) ")" (;) ";" (expression_statement) "LG_CRITICAL("Critical");" (call_expression) "LG_CRITICAL("Critical")" (identifier) "LG_CRITICAL" (argument_list) "("Critical")" (() "(" (string_literal) ""Critical"" (") """ (string_content) "Critical" (") """ ()) ")" (;) ";" (expression_statement) "LG_ERROR("Error");" (call_expression) "LG_ERROR("Error")" (identifier) "LG_ERROR" (argument_list) "("Error")" (() "(" (string_literal) ""Error"" (") """ (string_content) "Error" (") """ ()) ")" (;) ";" (expression_statement) "LG_WARN("Warning");" (call_expression) "LG_WARN("Warning")" (identifier) "LG_WARN" (argument_list) "("Warning")" (() "(" (string_literal) ""Warning"" (") """ (string_content) "Warning" (") """ ()) ")" (;) ";" (expression_statement) "LG_INFO("Info");" (call_expression) "LG_INFO("Info")" (identifier) "LG_INFO" (argument_list) "("Info")" (() "(" (string_literal) ""Info"" (") """ (string_content) "Info" (") """ ()) ")" (;) ";" (expression_statement) "LG_TRACE("Trace");" (call_expression) "LG_TRACE("Trace")" (identifier) "LG_TRACE" (argument_list) "("Trace")" (() "(" (string_literal) ""Trace"" (") """ (string_content) "Trace" (") """ ()) ")" (;) ";" (declaration) "auto app = LG::CreateApplication();" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "app" (ERROR) "= LG::" (=) "=" (identifier) "LG" (:) ":" (:) ":" (function_declarator) "CreateApplication()" (identifier) "CreateApplication" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "app->Run();" (call_expression) "app->Run()" (field_expression) "app->Run" (identifier) "app" (->) "->" (field_identifier) "Run" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "delete app;" (type_identifier) "delete" (identifier) "app" (;) ";" (}) "}" (#endif) "#endif"
214
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.52, "nodes": 106, "errors": 0, "source_hash": "cbe8e09005d5ca5e65fa7c2e328530d07f123aaedb6296affb85eaa36a53489c", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifdef LG_PLATFORM_WINDOWS\n\nextern LG::Application* LG::CreateApplication();\n\nint main(int argc, char** argv)\n{\n\n\tLG::Log::Init();\n\tint a = 3;\n\tLG_CORE_CRITICAL(\"Critical var={0}\", a);\n\tLG_CORE_ERROR(\"Error\");\n\tLG_CORE_WARN(\"Warning\");\n\tLG_CORE_INFO(\"Info\");\n\tLG_CORE_TRACE(\"Trace\");\n\n\tLG_CRITICAL(\"Critical\");\n\tLG_ERROR(\"Error\");\n\tLG_WARN(\"Warning\");\n\tLG_INFO(\"Info\");\n\tLG_TRACE(\"Trace\");\n\n\n\n\tauto app = LG::CreateApplication();\n\tapp->Run();\n\n\tdelete app;\n}\n#endif", "parent": null, "children": [4, 5, 6, 19, 105], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 4, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 5, "type": "identifier", "text": "LG_PLATFORM_WINDOWS", "parent": 3, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "declaration", "text": "extern LG::Application* LG::CreateApplication();", "parent": 3, "children": [7, 9, 10, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 48}}, {"id": 7, "type": "storage_class_specifier", "text": "extern", "parent": 6, "children": [8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "extern", "text": "extern", "parent": 7, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 9, "type": "type_identifier", "text": "LG", "parent": 6, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 9}}, {"id": 10, "type": "ERROR", "text": "::Application", "parent": 6, "children": [11], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 22}}, {"id": 11, "type": "identifier", "text": "Application", "parent": 10, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 22}}, {"id": 12, "type": "pointer_declarator", "text": "* LG::CreateApplication()", "parent": 6, "children": [13, 14, 16], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 47}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 23}}, {"id": 14, "type": "ERROR", "text": "LG::", "parent": 12, "children": [15], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 28}}, {"id": 15, "type": "identifier", "text": "LG", "parent": 14, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 26}}, {"id": 16, "type": "function_declarator", "text": "CreateApplication()", "parent": 12, "children": [17, 18], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 47}}, {"id": 17, "type": "identifier", "text": "CreateApplication", "parent": 16, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 45}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 4, "column": 45}, "end_point": {"row": 4, "column": 47}}, {"id": 19, "type": "function_definition", "text": "int main(int argc, char** argv)\n{\n\n\tLG::Log::Init();\n\tint a = 3;\n\tLG_CORE_CRITICAL(\"Critical var={0}\", a);\n\tLG_CORE_ERROR(\"Error\");\n\tLG_CORE_WARN(\"Warning\");\n\tLG_CORE_INFO(\"Info\");\n\tLG_CORE_TRACE(\"Trace\");\n\n\tLG_CRITICAL(\"Critical\");\n\tLG_ERROR(\"Error\");\n\tLG_WARN(\"Warning\");\n\tLG_INFO(\"Info\");\n\tLG_TRACE(\"Trace\");\n\n\n\n\tauto app = LG::CreateApplication();\n\tapp->Run();\n\n\tdelete app;\n}", "parent": 3, "children": [20, 21], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 21, "type": "function_declarator", "text": "main(int argc, char** argv)", "parent": 19, "children": [22, 23], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 31}}, {"id": 22, "type": "identifier", "text": "main", "parent": 21, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 8}}, {"id": 23, "type": "parameter_list", "text": "(int argc, char** argv)", "parent": 21, "children": [24, 27], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 31}}, {"id": 24, "type": "parameter_declaration", "text": "int argc", "parent": 23, "children": [25, 26], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 12}}, {"id": 26, "type": "identifier", "text": "argc", "parent": 24, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 27, "type": "parameter_declaration", "text": "char** argv", "parent": 23, "children": [28, 29], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 30}}, {"id": 28, "type": "primitive_type", "text": "char", "parent": 27, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 23}}, {"id": 29, "type": "pointer_declarator", "text": "** argv", "parent": 27, "children": [30, 31], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 30}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 24}}, {"id": 31, "type": "pointer_declarator", "text": "* argv", "parent": 29, "children": [32, 33], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 30}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 25}}, {"id": 33, "type": "identifier", "text": "argv", "parent": 31, "children": [], "start_point": {"row": 6, "column": 26}, "end_point": {"row": 6, "column": 30}}, {"id": 34, "type": "labeled_statement", "text": "LG::Log::Init();", "parent": 19, "children": [35, 36], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 17}}, {"id": 35, "type": "statement_identifier", "text": "LG", "parent": 34, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 3}}, {"id": 36, "type": "labeled_statement", "text": "Log::Init();", "parent": 34, "children": [37], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 17}}, {"id": 37, "type": "statement_identifier", "text": "Log", "parent": 36, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 8}}, {"id": 38, "type": "call_expression", "text": "Init()", "parent": 36, "children": [39, 40], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 16}}, {"id": 39, "type": "identifier", "text": "Init", "parent": 38, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 14}}, {"id": 40, "type": "argument_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 16}}, {"id": 41, "type": "declaration", "text": "int a = 3;", "parent": 19, "children": [42, 43], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 11}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 43, "type": "init_declarator", "text": "a = 3", "parent": 41, "children": [44, 45, 46], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 10}}, {"id": 44, "type": "identifier", "text": "a", "parent": 43, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 6}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 46, "type": "number_literal", "text": "3", "parent": 43, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 10}}, {"id": 47, "type": "call_expression", "text": "LG_CORE_CRITICAL(\"Critical var={0}\", a)", "parent": 19, "children": [48, 49], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 40}}, {"id": 48, "type": "identifier", "text": "LG_CORE_CRITICAL", "parent": 47, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 17}}, {"id": 49, "type": "argument_list", "text": "(\"Critical var={0}\", a)", "parent": 47, "children": [50, 51], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 40}}, {"id": 50, "type": "string_literal", "text": "\"Critical var={0}\"", "parent": 49, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 36}}, {"id": 51, "type": "identifier", "text": "a", "parent": 49, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 39}}, {"id": 52, "type": "call_expression", "text": "LG_CORE_ERROR(\"Error\")", "parent": 19, "children": [53, 54], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 23}}, {"id": 53, "type": "identifier", "text": "LG_CORE_ERROR", "parent": 52, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 14}}, {"id": 54, "type": "argument_list", "text": "(\"Error\")", "parent": 52, "children": [55], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 23}}, {"id": 55, "type": "string_literal", "text": "\"Error\"", "parent": 54, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 22}}, {"id": 56, "type": "call_expression", "text": "LG_CORE_WARN(\"Warning\")", "parent": 19, "children": [57, 58], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 24}}, {"id": 57, "type": "identifier", "text": "LG_CORE_WARN", "parent": 56, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 13}}, {"id": 58, "type": "argument_list", "text": "(\"Warning\")", "parent": 56, "children": [59], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 24}}, {"id": 59, "type": "string_literal", "text": "\"Warning\"", "parent": 58, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 23}}, {"id": 60, "type": "call_expression", "text": "LG_CORE_INFO(\"Info\")", "parent": 19, "children": [61, 62], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 21}}, {"id": 61, "type": "identifier", "text": "LG_CORE_INFO", "parent": 60, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 13}}, {"id": 62, "type": "argument_list", "text": "(\"Info\")", "parent": 60, "children": [63], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 63, "type": "string_literal", "text": "\"Info\"", "parent": 62, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 20}}, {"id": 64, "type": "call_expression", "text": "LG_CORE_TRACE(\"Trace\")", "parent": 19, "children": [65, 66], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 23}}, {"id": 65, "type": "identifier", "text": "LG_CORE_TRACE", "parent": 64, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 14}}, {"id": 66, "type": "argument_list", "text": "(\"Trace\")", "parent": 64, "children": [67], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 23}}, {"id": 67, "type": "string_literal", "text": "\"Trace\"", "parent": 66, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 22}}, {"id": 68, "type": "call_expression", "text": "LG_CRITICAL(\"Critical\")", "parent": 19, "children": [69, 70], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 24}}, {"id": 69, "type": "identifier", "text": "LG_CRITICAL", "parent": 68, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 12}}, {"id": 70, "type": "argument_list", "text": "(\"Critical\")", "parent": 68, "children": [71], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 24}}, {"id": 71, "type": "string_literal", "text": "\"Critical\"", "parent": 70, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 23}}, {"id": 72, "type": "call_expression", "text": "LG_ERROR(\"Error\")", "parent": 19, "children": [73, 74], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 18}}, {"id": 73, "type": "identifier", "text": "LG_ERROR", "parent": 72, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 74, "type": "argument_list", "text": "(\"Error\")", "parent": 72, "children": [75], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 18}}, {"id": 75, "type": "string_literal", "text": "\"Error\"", "parent": 74, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 17}}, {"id": 76, "type": "call_expression", "text": "LG_WARN(\"Warning\")", "parent": 19, "children": [77, 78], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 19}}, {"id": 77, "type": "identifier", "text": "LG_WARN", "parent": 76, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 78, "type": "argument_list", "text": "(\"Warning\")", "parent": 76, "children": [79], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 19}}, {"id": 79, "type": "string_literal", "text": "\"Warning\"", "parent": 78, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 80, "type": "call_expression", "text": "LG_INFO(\"Info\")", "parent": 19, "children": [81, 82], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 16}}, {"id": 81, "type": "identifier", "text": "LG_INFO", "parent": 80, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 8}}, {"id": 82, "type": "argument_list", "text": "(\"Info\")", "parent": 80, "children": [83], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 83, "type": "string_literal", "text": "\"Info\"", "parent": 82, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 15}}, {"id": 84, "type": "call_expression", "text": "LG_TRACE(\"Trace\")", "parent": 19, "children": [85, 86], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 18}}, {"id": 85, "type": "identifier", "text": "LG_TRACE", "parent": 84, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 86, "type": "argument_list", "text": "(\"Trace\")", "parent": 84, "children": [87], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 18}}, {"id": 87, "type": "string_literal", "text": "\"Trace\"", "parent": 86, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 17}}, {"id": 88, "type": "declaration", "text": "auto app = LG::CreateApplication();", "parent": 19, "children": [89, 91, 92, 95], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 36}}, {"id": 89, "type": "storage_class_specifier", "text": "auto", "parent": 88, "children": [90], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 90, "type": "auto", "text": "auto", "parent": 89, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 91, "type": "type_identifier", "text": "app", "parent": 88, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 9}}, {"id": 92, "type": "ERROR", "text": "= LG::", "parent": 88, "children": [93, 94], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 16}}, {"id": 93, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 94, "type": "identifier", "text": "LG", "parent": 92, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 14}}, {"id": 95, "type": "function_declarator", "text": "CreateApplication()", "parent": 88, "children": [96, 97], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 35}}, {"id": 96, "type": "identifier", "text": "CreateApplication", "parent": 95, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 33}}, {"id": 97, "type": "parameter_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 35}}, {"id": 98, "type": "call_expression", "text": "app->Run()", "parent": 19, "children": [99, 102], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 11}}, {"id": 99, "type": "field_expression", "text": "app->Run", "parent": 98, "children": [100, 101], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 9}}, {"id": 100, "type": "identifier", "text": "app", "parent": 99, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}, {"id": 101, "type": "field_identifier", "text": "Run", "parent": 99, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 9}}, {"id": 102, "type": "argument_list", "text": "()", "parent": 98, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 11}}, {"id": 103, "type": "declaration", "text": "delete app;", "parent": 19, "children": [104], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 12}}, {"id": 104, "type": "identifier", "text": "app", "parent": 103, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 11}}, {"id": 105, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}]}, "node_categories": {"declarations": {"functions": [16, 19, 21, 95], "variables": [6, 24, 27, 41, 88, 103], "classes": [7, 89], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [38, 47, 52, 56, 60, 64, 68, 72, 76, 80, 84, 98, 99], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 9, 11, 15, 17, 22, 26, 33, 35, 37, 39, 44, 48, 51, 53, 57, 61, 65, 69, 73, 77, 81, 85, 91, 94, 96, 100, 101, 104, 105], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [46, 50, 55, 59, 63, 67, 71, 75, 79, 83, 87], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "CreateApplication()"}, {"node_id": 19, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char** argv)\n{\n\n\tLG::Log::Init();\n\tint a = 3;\n\tLG_CORE_CRITICAL(\"Critical var={0}"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char** argv)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "CreateApplication()"}], "class_declarations": [{"node_id": 7, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 89, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": []}, "original_source_code": "#pragma once\n\n#ifdef LG_PLATFORM_WINDOWS\n\nextern LG::Application* LG::CreateApplication();\n\nint main(int argc, char** argv)\n{\n\n\tLG::Log::Init();\n\tint a = 3;\n\tLG_CORE_CRITICAL(\"Critical var={0}\", a);\n\tLG_CORE_ERROR(\"Error\");\n\tLG_CORE_WARN(\"Warning\");\n\tLG_CORE_INFO(\"Info\");\n\tLG_CORE_TRACE(\"Trace\");\n\n\tLG_CRITICAL(\"Critical\");\n\tLG_ERROR(\"Error\");\n\tLG_WARN(\"Warning\");\n\tLG_INFO(\"Info\");\n\tLG_TRACE(\"Trace\");\n\n\n\n\tauto app = LG::CreateApplication();\n\tapp->Run();\n\n\tdelete app;\n}\n#endif"}
81,043
c
#pragma once #include <map> #include <list> #include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std; /* Programado por WoLf */ class TokenizerRow { public: map<DWORD, string> Columns; int ColumnCount; string GetString(DWORD Column, string Default = "") { map<DWORD, string>::iterator it = this->Columns.find(Column); if(it == this->Columns.end()) { return Default; } return it->second; } char* GetStringPtr(DWORD Column, string Default = "") { map<DWORD, string>::iterator it = this->Columns.find(Column); if(it == this->Columns.end()) { return (char*)Default.c_str(); } return (char*)it->second.c_str(); } int GetInt(DWORD Column, DWORD Default = -1) { map<DWORD, string>::iterator it = this->Columns.find(Column); if(it == this->Columns.end()) { return Default; } return atoi(it->second.c_str()); } double GetFloat(DWORD Column, double Default = 0.0f) { map<DWORD, string>::iterator it = this->Columns.find(Column); if(it == this->Columns.end()) { return Default; } return atof(it->second.c_str()); } }; class TokenizerSection { public: map<DWORD, TokenizerRow*> Rows; int RowCount; }; class TokenizerGroup { public: map<DWORD, TokenizerSection*> Sections; TokenizerSection* GetSection(DWORD Index) { map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index); if(it == this->Sections.end()) { return NULL; } else { return it->second; } } }; class Tokenizer { private: char* m_pBuffer; DWORD m_pBufferSize; DWORD m_pBufferIndex; public: TokenizerRow* ParseLine(string line) { string data = ""; char* dump = (char*)line.c_str(); bool openstring = false; bool clearingspace = true; TokenizerRow* pRow = new TokenizerRow(); int column = 0; for(unsigned int i = 0; i < line.length(); i++) { if(clearingspace) { if(dump[i] == ' ' || dump[i] == '\t') { continue; } clearingspace = false; } if(openstring) { if(dump[i] == '"') { openstring = false; continue; } data += dump[i]; } else { if(dump[i] == '"') { if(data != "") { return NULL; } openstring = true; continue; } else { if(dump[i] == '\t' || dump[i] == ' ') { if(data != "") { pRow->Columns[column++] = data; data = ""; } continue; } data += dump[i]; } } } if(data != "") { pRow->Columns[column++] = data; } data = ""; pRow->ColumnCount = column; return pRow; } TokenizerGroup* ParseFile(string file) { fstream f(file.c_str(), ios::in); TokenizerGroup* tok = new TokenizerGroup(); if(f.is_open()) { if(f.good()) { TokenizerSection* sec = NULL; int current_sec = 0; int sec_index = 0; bool sec_open = false; while(!f.eof()) { char temp[4096]; char* dump = NULL; string line = ""; ZeroMemory(&temp[0], 4096); f.getline(&temp[0], 4095); line.assign(&temp[0]); dump = (char*)line.c_str(); int start = 0; int end = 0; for(DWORD i = 0; i < line.length(); i++) { if(dump[i] != ' ' && dump[i] != '\t') { break; } start++; } for(DWORD i = line.length()-1; i >= 0; i--) { if(dump[i] != ' ' && dump[i] != '\t') { break; } end++; } line = line.substr(start, line.length() - end - start); if(line.substr(0, 2) == "//") continue; if(line[0] == '#') continue; if(line == "end") { if(sec_open == false) { return NULL; // falha de sintaxe } sec_open = false; sec->RowCount = sec_index; tok->Sections[current_sec] = sec; continue; } if(line == "") continue; TokenizerRow* row = this->ParseLine(line); if(row->ColumnCount == 1) { if(sec_open == false) { sec_index = 0; current_sec = row->GetInt(0, 0); sec = new TokenizerSection(); sec_open = true; continue; } } sec->Rows[sec_index++] = row; } } else { f.close(); return NULL; } f.close(); return tok; } else { return NULL; } } };
17.6
231
(translation_unit) "#pragma once\n\n#include <map>\n#include <list>\n#include <iostream>\n#include <fstream>\n#include <string>\n#include <stdlib.h>\n\nusing namespace std;\n\n/*\n Programado por WoLf\n*/\n\nclass TokenizerRow\n{\npublic:\n map<DWORD, string> Columns;\n int ColumnCount;\n\n string GetString(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return Default;\n }\n return it->second;\n }\n\n char* GetStringPtr(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return (char*)Default.c_str();\n }\n return (char*)it->second.c_str();\n }\n\n int GetInt(DWORD Column, DWORD Default = -1)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return Default;\n }\n return atoi(it->second.c_str());\n }\n\n double GetFloat(DWORD Column, double Default = 0.0f)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return Default;\n }\n return atof(it->second.c_str());\n }\n\n};\n\nclass TokenizerSection\n{\npublic:\n map<DWORD, TokenizerRow*> Rows;\n int RowCount;\n};\n\nclass TokenizerGroup\n{\npublic:\n map<DWORD, TokenizerSection*> Sections;\n\n TokenizerSection* GetSection(DWORD Index)\n {\n map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }\n }\n\n};\n\nclass Tokenizer\n{\nprivate:\n char* m_pBuffer;\n DWORD m_pBufferSize;\n DWORD m_pBufferIndex;\n\npublic:\n\n TokenizerRow* ParseLine(string line)\n {\n\n string data = "";\n\n char* dump = (char*)line.c_str();\n \n bool openstring = false;\n bool clearingspace = true;\n\n TokenizerRow* pRow = new TokenizerRow();\n \n int column = 0;\n\n for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }\n\n if(data != "")\n {\n pRow->Columns[column++] = data;\n }\n\n data = "";\n\n pRow->ColumnCount = column;\n\n return pRow;\n\n }\n\n TokenizerGroup* ParseFile(string file)\n {\n\n fstream f(file.c_str(), ios::in);\n TokenizerGroup* tok = new TokenizerGroup();\n\n if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }\n\n }\n\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <list>\n" (#include) "#include" (system_lib_string) "<list>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <fstream>\n" (#include) "#include" (system_lib_string) "<fstream>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (comment) "/*\n Programado por WoLf\n*/" (function_definition) "class TokenizerRow\n{\npublic:\n map<DWORD, string> Columns;\n int ColumnCount;\n\n string GetString(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return Default;\n }\n return it->second;\n }" (type_identifier) "class" (identifier) "TokenizerRow" (compound_statement) "{\npublic:\n map<DWORD, string> Columns;\n int ColumnCount;\n\n string GetString(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);\n if(it == this->Columns.end())\n {\n return Default;\n }\n return it->second;\n }" ({) "{" (labeled_statement) "public:\n map<DWORD, string> Columns;" (statement_identifier) "public" (:) ":" (expression_statement) "map<DWORD, string> Columns;" (comma_expression) "map<DWORD, string> Columns" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "string> Columns" (identifier) "string" (>) ">" (identifier) "Columns" (;) ";" (declaration) "int ColumnCount;" (primitive_type) "int" (identifier) "ColumnCount" (;) ";" (declaration) "string GetString(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);" (type_identifier) "string" (init_declarator) "GetString(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column)" (function_declarator) "GetString(DWORD Column, string Default" (identifier) "GetString" (parameter_list) "(DWORD Column, string Default" (() "(" (parameter_declaration) "DWORD Column" (type_identifier) "DWORD" (identifier) "Column" (,) "," (parameter_declaration) "string Default" (type_identifier) "string" (identifier) "Default" ()) "" (=) "=" (ERROR) """)" (string_literal) """" (") """ (") """ ()) ")" (initializer_list) "{\n map<DWORD, string>::iterator it = this->Columns.find(Column)" ({) "{" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "string>::iterator it = this->Columns.find(Column)" (identifier) "string" (>) ">" (ERROR) "::iterator" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "it = this->Columns.find(Column)" (identifier) "it" (=) "=" (call_expression) "this->Columns.find(Column)" (field_expression) "this->Columns.find" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "find" (argument_list) "(Column)" (() "(" (identifier) "Column" ()) ")" (}) "" (;) ";" (if_statement) "if(it == this->Columns.end())\n {\n return Default;\n }" (if) "if" (parenthesized_expression) "(it == this->Columns.end())" (() "(" (binary_expression) "it == this->Columns.end()" (identifier) "it" (==) "==" (call_expression) "this->Columns.end()" (field_expression) "this->Columns.end" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n return Default;\n }" ({) "{" (return_statement) "return Default;" (return) "return" (identifier) "Default" (;) ";" (}) "}" (return_statement) "return it->second;" (return) "return" (field_expression) "it->second" (identifier) "it" (->) "->" (field_identifier) "second" (;) ";" (}) "}" (declaration) "char* GetStringPtr(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);" (primitive_type) "char" (init_declarator) "* GetStringPtr(DWORD Column, string Default = "")\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column)" (pointer_declarator) "* GetStringPtr(DWORD Column, string Default" (*) "*" (function_declarator) "GetStringPtr(DWORD Column, string Default" (identifier) "GetStringPtr" (parameter_list) "(DWORD Column, string Default" (() "(" (parameter_declaration) "DWORD Column" (type_identifier) "DWORD" (identifier) "Column" (,) "," (parameter_declaration) "string Default" (type_identifier) "string" (identifier) "Default" ()) "" (=) "=" (ERROR) """)" (string_literal) """" (") """ (") """ ()) ")" (initializer_list) "{\n map<DWORD, string>::iterator it = this->Columns.find(Column)" ({) "{" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "string>::iterator it = this->Columns.find(Column)" (identifier) "string" (>) ">" (ERROR) "::iterator" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "it = this->Columns.find(Column)" (identifier) "it" (=) "=" (call_expression) "this->Columns.find(Column)" (field_expression) "this->Columns.find" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "find" (argument_list) "(Column)" (() "(" (identifier) "Column" ()) ")" (}) "" (;) ";" (if_statement) "if(it == this->Columns.end())\n {\n return (char*)Default.c_str();\n }" (if) "if" (parenthesized_expression) "(it == this->Columns.end())" (() "(" (binary_expression) "it == this->Columns.end()" (identifier) "it" (==) "==" (call_expression) "this->Columns.end()" (field_expression) "this->Columns.end" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n return (char*)Default.c_str();\n }" ({) "{" (return_statement) "return (char*)Default.c_str();" (return) "return" (cast_expression) "(char*)Default.c_str()" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "Default.c_str()" (field_expression) "Default.c_str" (identifier) "Default" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (return_statement) "return (char*)it->second.c_str();" (return) "return" (cast_expression) "(char*)it->second.c_str()" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "it->second.c_str()" (field_expression) "it->second.c_str" (field_expression) "it->second" (identifier) "it" (->) "->" (field_identifier) "second" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "}" (}) "}" (declaration) "int GetInt(DWORD Column, DWORD Default = -1)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);" (primitive_type) "int" (init_declarator) "GetInt(DWORD Column, DWORD Default = -1)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column)" (function_declarator) "GetInt(DWORD Column, DWORD Default" (identifier) "GetInt" (parameter_list) "(DWORD Column, DWORD Default" (() "(" (parameter_declaration) "DWORD Column" (type_identifier) "DWORD" (identifier) "Column" (,) "," (parameter_declaration) "DWORD Default" (type_identifier) "DWORD" (identifier) "Default" ()) "" (=) "=" (ERROR) "-1)" (number_literal) "-1" ()) ")" (initializer_list) "{\n map<DWORD, string>::iterator it = this->Columns.find(Column)" ({) "{" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "string>::iterator it = this->Columns.find(Column)" (identifier) "string" (>) ">" (ERROR) "::iterator" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "it = this->Columns.find(Column)" (identifier) "it" (=) "=" (call_expression) "this->Columns.find(Column)" (field_expression) "this->Columns.find" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "find" (argument_list) "(Column)" (() "(" (identifier) "Column" ()) ")" (}) "" (;) ";" (if_statement) "if(it == this->Columns.end())\n {\n return Default;\n }" (if) "if" (parenthesized_expression) "(it == this->Columns.end())" (() "(" (binary_expression) "it == this->Columns.end()" (identifier) "it" (==) "==" (call_expression) "this->Columns.end()" (field_expression) "this->Columns.end" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n return Default;\n }" ({) "{" (return_statement) "return Default;" (return) "return" (identifier) "Default" (;) ";" (}) "}" (return_statement) "return atoi(it->second.c_str());" (return) "return" (call_expression) "atoi(it->second.c_str())" (identifier) "atoi" (argument_list) "(it->second.c_str())" (() "(" (call_expression) "it->second.c_str()" (field_expression) "it->second.c_str" (field_expression) "it->second" (identifier) "it" (->) "->" (field_identifier) "second" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (ERROR) "}" (}) "}" (declaration) "double GetFloat(DWORD Column, double Default = 0.0f)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column);" (primitive_type) "double" (init_declarator) "GetFloat(DWORD Column, double Default = 0.0f)\n {\n map<DWORD, string>::iterator it = this->Columns.find(Column)" (function_declarator) "GetFloat(DWORD Column, double Default" (identifier) "GetFloat" (parameter_list) "(DWORD Column, double Default" (() "(" (parameter_declaration) "DWORD Column" (type_identifier) "DWORD" (identifier) "Column" (,) "," (parameter_declaration) "double Default" (primitive_type) "double" (identifier) "Default" ()) "" (=) "=" (ERROR) "0.0f)" (number_literal) "0.0f" ()) ")" (initializer_list) "{\n map<DWORD, string>::iterator it = this->Columns.find(Column)" ({) "{" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "string>::iterator it = this->Columns.find(Column)" (identifier) "string" (>) ">" (ERROR) "::iterator" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "it = this->Columns.find(Column)" (identifier) "it" (=) "=" (call_expression) "this->Columns.find(Column)" (field_expression) "this->Columns.find" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "find" (argument_list) "(Column)" (() "(" (identifier) "Column" ()) ")" (}) "" (;) ";" (if_statement) "if(it == this->Columns.end())\n {\n return Default;\n }" (if) "if" (parenthesized_expression) "(it == this->Columns.end())" (() "(" (binary_expression) "it == this->Columns.end()" (identifier) "it" (==) "==" (call_expression) "this->Columns.end()" (field_expression) "this->Columns.end" (field_expression) "this->Columns" (identifier) "this" (->) "->" (field_identifier) "Columns" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n return Default;\n }" ({) "{" (return_statement) "return Default;" (return) "return" (identifier) "Default" (;) ";" (}) "}" (return_statement) "return atof(it->second.c_str());" (return) "return" (call_expression) "atof(it->second.c_str())" (identifier) "atof" (argument_list) "(it->second.c_str())" (() "(" (call_expression) "it->second.c_str()" (field_expression) "it->second.c_str" (field_expression) "it->second" (identifier) "it" (->) "->" (field_identifier) "second" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (ERROR) "}\n\n}" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class TokenizerSection\n{\npublic:\n map<DWORD, TokenizerRow*> Rows;\n int RowCount;\n}" (type_identifier) "class" (identifier) "TokenizerSection" (compound_statement) "{\npublic:\n map<DWORD, TokenizerRow*> Rows;\n int RowCount;\n}" ({) "{" (labeled_statement) "public:\n map<DWORD, TokenizerRow*> Rows;" (statement_identifier) "public" (:) ":" (expression_statement) "map<DWORD, TokenizerRow*> Rows;" (comma_expression) "map<DWORD, TokenizerRow*> Rows" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "TokenizerRow*> Rows" (identifier) "TokenizerRow" (*) "*" (ERROR) ">" (>) ">" (identifier) "Rows" (;) ";" (declaration) "int RowCount;" (primitive_type) "int" (identifier) "RowCount" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class TokenizerGroup\n{\npublic:\n map<DWORD, TokenizerSection*> Sections;\n\n TokenizerSection* GetSection(DWORD Index)\n {\n map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }\n }\n\n}" (type_identifier) "class" (identifier) "TokenizerGroup" (compound_statement) "{\npublic:\n map<DWORD, TokenizerSection*> Sections;\n\n TokenizerSection* GetSection(DWORD Index)\n {\n map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }\n }\n\n}" ({) "{" (labeled_statement) "public:\n map<DWORD, TokenizerSection*> Sections;" (statement_identifier) "public" (:) ":" (expression_statement) "map<DWORD, TokenizerSection*> Sections;" (comma_expression) "map<DWORD, TokenizerSection*> Sections" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "TokenizerSection*> Sections" (identifier) "TokenizerSection" (*) "*" (ERROR) ">" (>) ">" (identifier) "Sections" (;) ";" (function_definition) "TokenizerSection* GetSection(DWORD Index)\n {\n map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }\n }" (type_identifier) "TokenizerSection" (pointer_declarator) "* GetSection(DWORD Index)" (*) "*" (function_declarator) "GetSection(DWORD Index)" (identifier) "GetSection" (parameter_list) "(DWORD Index)" (() "(" (parameter_declaration) "DWORD Index" (type_identifier) "DWORD" (identifier) "Index" ()) ")" (compound_statement) "{\n map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }\n }" ({) "{" (expression_statement) "map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);" (comma_expression) "map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index)" (binary_expression) "map<DWORD" (identifier) "map" (<) "<" (identifier) "DWORD" (,) "," (binary_expression) "TokenizerSection*>::iterator it = this->Sections.find(Index)" (identifier) "TokenizerSection" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "it = this->Sections.find(Index)" (identifier) "it" (=) "=" (call_expression) "this->Sections.find(Index)" (field_expression) "this->Sections.find" (field_expression) "this->Sections" (identifier) "this" (->) "->" (field_identifier) "Sections" (.) "." (field_identifier) "find" (argument_list) "(Index)" (() "(" (identifier) "Index" ()) ")" (;) ";" (if_statement) "if(it == this->Sections.end())\n {\n return NULL;\n }\n else\n {\n return it->second;\n }" (if) "if" (parenthesized_expression) "(it == this->Sections.end())" (() "(" (binary_expression) "it == this->Sections.end()" (identifier) "it" (==) "==" (call_expression) "this->Sections.end()" (field_expression) "this->Sections.end" (field_expression) "this->Sections" (identifier) "this" (->) "->" (field_identifier) "Sections" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else\n {\n return it->second;\n }" (else) "else" (compound_statement) "{\n return it->second;\n }" ({) "{" (return_statement) "return it->second;" (return) "return" (field_expression) "it->second" (identifier) "it" (->) "->" (field_identifier) "second" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class Tokenizer\n{\nprivate:\n char* m_pBuffer;\n DWORD m_pBufferSize;\n DWORD m_pBufferIndex;\n\npublic:\n\n TokenizerRow* ParseLine(string line)\n {\n\n string data = "";\n\n char* dump = (char*)line.c_str();\n \n bool openstring = false;\n bool clearingspace = true;\n\n TokenizerRow* pRow = new TokenizerRow();\n \n int column = 0;\n\n for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }\n\n if(data != "")\n {\n pRow->Columns[column++] = data;\n }\n\n data = "";\n\n pRow->ColumnCount = column;\n\n return pRow;\n\n }\n\n TokenizerGroup* ParseFile(string file)\n {\n\n fstream f(file.c_str(), ios::in);\n TokenizerGroup* tok = new TokenizerGroup();\n\n if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }\n\n }\n\n}" (type_identifier) "class" (identifier) "Tokenizer" (compound_statement) "{\nprivate:\n char* m_pBuffer;\n DWORD m_pBufferSize;\n DWORD m_pBufferIndex;\n\npublic:\n\n TokenizerRow* ParseLine(string line)\n {\n\n string data = "";\n\n char* dump = (char*)line.c_str();\n \n bool openstring = false;\n bool clearingspace = true;\n\n TokenizerRow* pRow = new TokenizerRow();\n \n int column = 0;\n\n for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }\n\n if(data != "")\n {\n pRow->Columns[column++] = data;\n }\n\n data = "";\n\n pRow->ColumnCount = column;\n\n return pRow;\n\n }\n\n TokenizerGroup* ParseFile(string file)\n {\n\n fstream f(file.c_str(), ios::in);\n TokenizerGroup* tok = new TokenizerGroup();\n\n if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }\n\n }\n\n}" ({) "{" (labeled_statement) "private:\n char* m_pBuffer;" (statement_identifier) "private" (:) ":" (declaration) "char* m_pBuffer;" (primitive_type) "char" (pointer_declarator) "* m_pBuffer" (*) "*" (identifier) "m_pBuffer" (;) ";" (declaration) "DWORD m_pBufferSize;" (type_identifier) "DWORD" (identifier) "m_pBufferSize" (;) ";" (declaration) "DWORD m_pBufferIndex;" (type_identifier) "DWORD" (identifier) "m_pBufferIndex" (;) ";" (labeled_statement) "public:\n\n TokenizerRow* ParseLine(string line)\n {\n\n string data = "";\n\n char* dump = (char*)line.c_str();\n \n bool openstring = false;\n bool clearingspace = true;\n\n TokenizerRow* pRow = new TokenizerRow();\n \n int column = 0;\n\n for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }\n\n if(data != "")\n {\n pRow->Columns[column++] = data;\n }\n\n data = "";\n\n pRow->ColumnCount = column;\n\n return pRow;\n\n }" (statement_identifier) "public" (:) ":" (ERROR) "TokenizerRow* ParseLine(string line)" (type_identifier) "TokenizerRow" (pointer_declarator) "* ParseLine(string line)" (*) "*" (function_declarator) "ParseLine(string line)" (identifier) "ParseLine" (parameter_list) "(string line)" (() "(" (parameter_declaration) "string line" (type_identifier) "string" (identifier) "line" ()) ")" (compound_statement) "{\n\n string data = "";\n\n char* dump = (char*)line.c_str();\n \n bool openstring = false;\n bool clearingspace = true;\n\n TokenizerRow* pRow = new TokenizerRow();\n \n int column = 0;\n\n for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }\n\n if(data != "")\n {\n pRow->Columns[column++] = data;\n }\n\n data = "";\n\n pRow->ColumnCount = column;\n\n return pRow;\n\n }" ({) "{" (declaration) "string data = "";" (type_identifier) "string" (init_declarator) "data = """ (identifier) "data" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (declaration) "char* dump = (char*)line.c_str();" (primitive_type) "char" (init_declarator) "* dump = (char*)line.c_str()" (pointer_declarator) "* dump" (*) "*" (identifier) "dump" (=) "=" (cast_expression) "(char*)line.c_str()" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "line.c_str()" (field_expression) "line.c_str" (identifier) "line" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool openstring = false;" (primitive_type) "bool" (init_declarator) "openstring = false" (identifier) "openstring" (=) "=" (false) "false" (;) ";" (declaration) "bool clearingspace = true;" (primitive_type) "bool" (init_declarator) "clearingspace = true" (identifier) "clearingspace" (=) "=" (true) "true" (;) ";" (declaration) "TokenizerRow* pRow = new TokenizerRow();" (type_identifier) "TokenizerRow" (init_declarator) "* pRow = new TokenizerRow()" (pointer_declarator) "* pRow" (*) "*" (identifier) "pRow" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "TokenizerRow()" (identifier) "TokenizerRow" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int column = 0;" (primitive_type) "int" (init_declarator) "column = 0" (identifier) "column" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(unsigned int i = 0; i < line.length(); i++)\n {\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }" (for) "for" (() "(" (declaration) "unsigned int i = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < line.length()" (identifier) "i" (<) "<" (call_expression) "line.length()" (field_expression) "line.length" (identifier) "line" (.) "." (field_identifier) "length" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n\n if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }\n\n if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }\n\n }" ({) "{" (if_statement) "if(clearingspace)\n {\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }" (if) "if" (parenthesized_expression) "(clearingspace)" (() "(" (identifier) "clearingspace" ()) ")" (compound_statement) "{\n if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }\n clearingspace = false;\n }" ({) "{" (if_statement) "if(dump[i] == ' ' || dump[i] == '\t')\n {\n continue;\n }" (if) "if" (parenthesized_expression) "(dump[i] == ' ' || dump[i] == '\t')" (() "(" (binary_expression) "dump[i] == ' ' || dump[i] == '\t'" (binary_expression) "dump[i] == ' '" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" (||) "||" (binary_expression) "dump[i] == '\t'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" (compound_statement) "{\n continue;\n }" ({) "{" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "clearingspace = false;" (assignment_expression) "clearingspace = false" (identifier) "clearingspace" (=) "=" (false) "false" (;) ";" (}) "}" (if_statement) "if(openstring)\n {\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }\n else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }" (if) "if" (parenthesized_expression) "(openstring)" (() "(" (identifier) "openstring" ()) ")" (compound_statement) "{\n if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }\n data += dump[i];\n }" ({) "{" (if_statement) "if(dump[i] == '"')\n {\n openstring = false;\n continue;\n }" (if) "if" (parenthesized_expression) "(dump[i] == '"')" (() "(" (binary_expression) "dump[i] == '"'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'"'" (') "'" (character) """ (') "'" ()) ")" (compound_statement) "{\n openstring = false;\n continue;\n }" ({) "{" (expression_statement) "openstring = false;" (assignment_expression) "openstring = false" (identifier) "openstring" (=) "=" (false) "false" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "data += dump[i];" (assignment_expression) "data += dump[i]" (identifier) "data" (+=) "+=" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (else_clause) "else\n {\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }" (else) "else" (compound_statement) "{\n if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }\n }" ({) "{" (if_statement) "if(dump[i] == '"')\n {\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }\n else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }" (if) "if" (parenthesized_expression) "(dump[i] == '"')" (() "(" (binary_expression) "dump[i] == '"'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'"'" (') "'" (character) """ (') "'" ()) ")" (compound_statement) "{\n if(data != "")\n {\n return NULL;\n }\n openstring = true;\n continue;\n }" ({) "{" (if_statement) "if(data != "")\n {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(data != "")" (() "(" (binary_expression) "data != """ (identifier) "data" (!=) "!=" (string_literal) """" (") """ (") """ ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "openstring = true;" (assignment_expression) "openstring = true" (identifier) "openstring" (=) "=" (true) "true" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (else_clause) "else\n {\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }" (else) "else" (compound_statement) "{\n if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n } \n data += dump[i];\n }" ({) "{" (if_statement) "if(dump[i] == '\t' || dump[i] == ' ')\n {\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n }" (if) "if" (parenthesized_expression) "(dump[i] == '\t' || dump[i] == ' ')" (() "(" (binary_expression) "dump[i] == '\t' || dump[i] == ' '" (binary_expression) "dump[i] == '\t'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" (||) "||" (binary_expression) "dump[i] == ' '" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (compound_statement) "{\n if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }\n continue;\n }" ({) "{" (if_statement) "if(data != "")\n {\n pRow->Columns[column++] = data;\n data = "";\n }" (if) "if" (parenthesized_expression) "(data != "")" (() "(" (binary_expression) "data != """ (identifier) "data" (!=) "!=" (string_literal) """" (") """ (") """ ()) ")" (compound_statement) "{\n pRow->Columns[column++] = data;\n data = "";\n }" ({) "{" (expression_statement) "pRow->Columns[column++] = data;" (assignment_expression) "pRow->Columns[column++] = data" (subscript_expression) "pRow->Columns[column++]" (field_expression) "pRow->Columns" (identifier) "pRow" (->) "->" (field_identifier) "Columns" ([) "[" (update_expression) "column++" (identifier) "column" (++) "++" (]) "]" (=) "=" (identifier) "data" (;) ";" (expression_statement) "data = "";" (assignment_expression) "data = """ (identifier) "data" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (}) "}" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "data += dump[i];" (assignment_expression) "data += dump[i]" (identifier) "data" (+=) "+=" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (}) "}" (}) "}" (if_statement) "if(data != "")\n {\n pRow->Columns[column++] = data;\n }" (if) "if" (parenthesized_expression) "(data != "")" (() "(" (binary_expression) "data != """ (identifier) "data" (!=) "!=" (string_literal) """" (") """ (") """ ()) ")" (compound_statement) "{\n pRow->Columns[column++] = data;\n }" ({) "{" (expression_statement) "pRow->Columns[column++] = data;" (assignment_expression) "pRow->Columns[column++] = data" (subscript_expression) "pRow->Columns[column++]" (field_expression) "pRow->Columns" (identifier) "pRow" (->) "->" (field_identifier) "Columns" ([) "[" (update_expression) "column++" (identifier) "column" (++) "++" (]) "]" (=) "=" (identifier) "data" (;) ";" (}) "}" (expression_statement) "data = "";" (assignment_expression) "data = """ (identifier) "data" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (expression_statement) "pRow->ColumnCount = column;" (assignment_expression) "pRow->ColumnCount = column" (field_expression) "pRow->ColumnCount" (identifier) "pRow" (->) "->" (field_identifier) "ColumnCount" (=) "=" (identifier) "column" (;) ";" (return_statement) "return pRow;" (return) "return" (identifier) "pRow" (;) ";" (}) "}" (function_definition) "TokenizerGroup* ParseFile(string file)\n {\n\n fstream f(file.c_str(), ios::in);\n TokenizerGroup* tok = new TokenizerGroup();\n\n if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }\n\n }" (type_identifier) "TokenizerGroup" (pointer_declarator) "* ParseFile(string file)" (*) "*" (function_declarator) "ParseFile(string file)" (identifier) "ParseFile" (parameter_list) "(string file)" (() "(" (parameter_declaration) "string file" (type_identifier) "string" (identifier) "file" ()) ")" (compound_statement) "{\n\n fstream f(file.c_str(), ios::in);\n TokenizerGroup* tok = new TokenizerGroup();\n\n if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }\n\n }" ({) "{" (declaration) "fstream f(file.c_str(), ios::in);" (type_identifier) "fstream" (function_declarator) "f(file.c_str(), ios::in)" (identifier) "f" (parameter_list) "(file.c_str(), ios::in)" (() "(" (parameter_declaration) "file.c_str()" (type_identifier) "file" (ERROR) "." (.) "." (function_declarator) "c_str()" (identifier) "c_str" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "ios::in" (type_identifier) "ios" (ERROR) "::" (:) ":" (:) ":" (identifier) "in" ()) ")" (;) ";" (declaration) "TokenizerGroup* tok = new TokenizerGroup();" (type_identifier) "TokenizerGroup" (init_declarator) "* tok = new TokenizerGroup()" (pointer_declarator) "* tok" (*) "*" (identifier) "tok" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "TokenizerGroup()" (identifier) "TokenizerGroup" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if(f.is_open())\n {\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }\n else\n {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(f.is_open())" (() "(" (call_expression) "f.is_open()" (field_expression) "f.is_open" (identifier) "f" (.) "." (field_identifier) "is_open" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n\n if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }\n \n f.close();\n\n return tok;\n\n }" ({) "{" (if_statement) "if(f.good())\n {\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }\n else\n {\n f.close();\n return NULL;\n }" (if) "if" (parenthesized_expression) "(f.good())" (() "(" (call_expression) "f.good()" (field_expression) "f.good" (identifier) "f" (.) "." (field_identifier) "good" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n\n TokenizerSection* sec = NULL;\n int current_sec = 0;\n int sec_index = 0;\n bool sec_open = false;\n\n while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }\n\n }" ({) "{" (declaration) "TokenizerSection* sec = NULL;" (type_identifier) "TokenizerSection" (init_declarator) "* sec = NULL" (pointer_declarator) "* sec" (*) "*" (identifier) "sec" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int current_sec = 0;" (primitive_type) "int" (init_declarator) "current_sec = 0" (identifier) "current_sec" (=) "=" (number_literal) "0" (;) ";" (declaration) "int sec_index = 0;" (primitive_type) "int" (init_declarator) "sec_index = 0" (identifier) "sec_index" (=) "=" (number_literal) "0" (;) ";" (declaration) "bool sec_open = false;" (primitive_type) "bool" (init_declarator) "sec_open = false" (identifier) "sec_open" (=) "=" (false) "false" (;) ";" (while_statement) "while(!f.eof())\n {\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }" (while) "while" (parenthesized_expression) "(!f.eof())" (() "(" (unary_expression) "!f.eof()" (!) "!" (call_expression) "f.eof()" (field_expression) "f.eof" (identifier) "f" (.) "." (field_identifier) "eof" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n\n char temp[4096];\n char* dump = NULL;\n string line = "";\n\n ZeroMemory(&temp[0], 4096);\n\n f.getline(&temp[0], 4095);\n line.assign(&temp[0]);\n\n dump = (char*)line.c_str();\n\n int start = 0;\n int end = 0;\n\n for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }\n\n for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }\n\n line = line.substr(start, line.length() - end - start); \n\n if(line.substr(0, 2) == "//") continue;\n if(line[0] == '#') continue;\n\n if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }\n \n if(line == "") continue;\n\n TokenizerRow* row = this->ParseLine(line);\n if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }\n\n sec->Rows[sec_index++] = row;\n\n }" ({) "{" (declaration) "char temp[4096];" (primitive_type) "char" (array_declarator) "temp[4096]" (identifier) "temp" ([) "[" (number_literal) "4096" (]) "]" (;) ";" (declaration) "char* dump = NULL;" (primitive_type) "char" (init_declarator) "* dump = NULL" (pointer_declarator) "* dump" (*) "*" (identifier) "dump" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "string line = "";" (type_identifier) "string" (init_declarator) "line = """ (identifier) "line" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (expression_statement) "ZeroMemory(&temp[0], 4096);" (call_expression) "ZeroMemory(&temp[0], 4096)" (identifier) "ZeroMemory" (argument_list) "(&temp[0], 4096)" (() "(" (pointer_expression) "&temp[0]" (&) "&" (subscript_expression) "temp[0]" (identifier) "temp" ([) "[" (number_literal) "0" (]) "]" (,) "," (number_literal) "4096" ()) ")" (;) ";" (expression_statement) "f.getline(&temp[0], 4095);" (call_expression) "f.getline(&temp[0], 4095)" (field_expression) "f.getline" (identifier) "f" (.) "." (field_identifier) "getline" (argument_list) "(&temp[0], 4095)" (() "(" (pointer_expression) "&temp[0]" (&) "&" (subscript_expression) "temp[0]" (identifier) "temp" ([) "[" (number_literal) "0" (]) "]" (,) "," (number_literal) "4095" ()) ")" (;) ";" (expression_statement) "line.assign(&temp[0]);" (call_expression) "line.assign(&temp[0])" (field_expression) "line.assign" (identifier) "line" (.) "." (field_identifier) "assign" (argument_list) "(&temp[0])" (() "(" (pointer_expression) "&temp[0]" (&) "&" (subscript_expression) "temp[0]" (identifier) "temp" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "dump = (char*)line.c_str();" (assignment_expression) "dump = (char*)line.c_str()" (identifier) "dump" (=) "=" (cast_expression) "(char*)line.c_str()" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "line.c_str()" (field_expression) "line.c_str" (identifier) "line" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int start = 0;" (primitive_type) "int" (init_declarator) "start = 0" (identifier) "start" (=) "=" (number_literal) "0" (;) ";" (declaration) "int end = 0;" (primitive_type) "int" (init_declarator) "end = 0" (identifier) "end" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(DWORD i = 0; i < line.length(); i++)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }" (for) "for" (() "(" (declaration) "DWORD i = 0;" (type_identifier) "DWORD" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < line.length()" (identifier) "i" (<) "<" (call_expression) "line.length()" (field_expression) "line.length" (identifier) "line" (.) "." (field_identifier) "length" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n start++;\n }" ({) "{" (if_statement) "if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }" (if) "if" (parenthesized_expression) "(dump[i] != ' ' && dump[i] != '\t')" (() "(" (binary_expression) "dump[i] != ' ' && dump[i] != '\t'" (binary_expression) "dump[i] != ' '" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "' '" (') "'" (character) " " (') "'" (&&) "&&" (binary_expression) "dump[i] != '\t'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "start++;" (update_expression) "start++" (identifier) "start" (++) "++" (;) ";" (}) "}" (for_statement) "for(DWORD i = line.length()-1; i >= 0; i--)\n {\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }" (for) "for" (() "(" (declaration) "DWORD i = line.length()-1;" (type_identifier) "DWORD" (init_declarator) "i = line.length()-1" (identifier) "i" (=) "=" (binary_expression) "line.length()-1" (call_expression) "line.length()" (field_expression) "line.length" (identifier) "line" (.) "." (field_identifier) "length" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (;) ";" (binary_expression) "i >= 0" (identifier) "i" (>=) ">=" (number_literal) "0" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (compound_statement) "{\n if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }\n end++;\n }" ({) "{" (if_statement) "if(dump[i] != ' ' && dump[i] != '\t')\n {\n break;\n }" (if) "if" (parenthesized_expression) "(dump[i] != ' ' && dump[i] != '\t')" (() "(" (binary_expression) "dump[i] != ' ' && dump[i] != '\t'" (binary_expression) "dump[i] != ' '" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "' '" (') "'" (character) " " (') "'" (&&) "&&" (binary_expression) "dump[i] != '\t'" (subscript_expression) "dump[i]" (identifier) "dump" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "end++;" (update_expression) "end++" (identifier) "end" (++) "++" (;) ";" (}) "}" (expression_statement) "line = line.substr(start, line.length() - end - start);" (assignment_expression) "line = line.substr(start, line.length() - end - start)" (identifier) "line" (=) "=" (call_expression) "line.substr(start, line.length() - end - start)" (field_expression) "line.substr" (identifier) "line" (.) "." (field_identifier) "substr" (argument_list) "(start, line.length() - end - start)" (() "(" (identifier) "start" (,) "," (binary_expression) "line.length() - end - start" (binary_expression) "line.length() - end" (call_expression) "line.length()" (field_expression) "line.length" (identifier) "line" (.) "." (field_identifier) "length" (argument_list) "()" (() "(" ()) ")" (-) "-" (identifier) "end" (-) "-" (identifier) "start" ()) ")" (;) ";" (if_statement) "if(line.substr(0, 2) == "//") continue;" (if) "if" (parenthesized_expression) "(line.substr(0, 2) == "//")" (() "(" (binary_expression) "line.substr(0, 2) == "//"" (call_expression) "line.substr(0, 2)" (field_expression) "line.substr" (identifier) "line" (.) "." (field_identifier) "substr" (argument_list) "(0, 2)" (() "(" (number_literal) "0" (,) "," (number_literal) "2" ()) ")" (==) "==" (string_literal) ""//"" (") """ (string_content) "//" (") """ ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (if_statement) "if(line[0] == '#') continue;" (if) "if" (parenthesized_expression) "(line[0] == '#')" (() "(" (binary_expression) "line[0] == '#'" (subscript_expression) "line[0]" (identifier) "line" ([) "[" (number_literal) "0" (]) "]" (==) "==" (char_literal) "'#'" (') "'" (character) "#" (') "'" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (if_statement) "if(line == "end")\n {\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }" (if) "if" (parenthesized_expression) "(line == "end")" (() "(" (binary_expression) "line == "end"" (identifier) "line" (==) "==" (string_literal) ""end"" (") """ (string_content) "end" (") """ ()) ")" (compound_statement) "{\n if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }\n sec_open = false;\n sec->RowCount = sec_index;\n tok->Sections[current_sec] = sec;\n continue;\n }" ({) "{" (if_statement) "if(sec_open == false) \n {\n return NULL; // falha de sintaxe\n }" (if) "if" (parenthesized_expression) "(sec_open == false)" (() "(" (binary_expression) "sec_open == false" (identifier) "sec_open" (==) "==" (false) "false" ()) ")" (compound_statement) "{\n return NULL; // falha de sintaxe\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "// falha de sintaxe" (}) "}" (expression_statement) "sec_open = false;" (assignment_expression) "sec_open = false" (identifier) "sec_open" (=) "=" (false) "false" (;) ";" (expression_statement) "sec->RowCount = sec_index;" (assignment_expression) "sec->RowCount = sec_index" (field_expression) "sec->RowCount" (identifier) "sec" (->) "->" (field_identifier) "RowCount" (=) "=" (identifier) "sec_index" (;) ";" (expression_statement) "tok->Sections[current_sec] = sec;" (assignment_expression) "tok->Sections[current_sec] = sec" (subscript_expression) "tok->Sections[current_sec]" (field_expression) "tok->Sections" (identifier) "tok" (->) "->" (field_identifier) "Sections" ([) "[" (identifier) "current_sec" (]) "]" (=) "=" (identifier) "sec" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if(line == "") continue;" (if) "if" (parenthesized_expression) "(line == "")" (() "(" (binary_expression) "line == """ (identifier) "line" (==) "==" (string_literal) """" (") """ (") """ ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (declaration) "TokenizerRow* row = this->ParseLine(line);" (type_identifier) "TokenizerRow" (init_declarator) "* row = this->ParseLine(line)" (pointer_declarator) "* row" (*) "*" (identifier) "row" (=) "=" (call_expression) "this->ParseLine(line)" (field_expression) "this->ParseLine" (identifier) "this" (->) "->" (field_identifier) "ParseLine" (argument_list) "(line)" (() "(" (identifier) "line" ()) ")" (;) ";" (if_statement) "if(row->ColumnCount == 1)\n {\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }" (if) "if" (parenthesized_expression) "(row->ColumnCount == 1)" (() "(" (binary_expression) "row->ColumnCount == 1" (field_expression) "row->ColumnCount" (identifier) "row" (->) "->" (field_identifier) "ColumnCount" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }\n }" ({) "{" (if_statement) "if(sec_open == false)\n {\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }" (if) "if" (parenthesized_expression) "(sec_open == false)" (() "(" (binary_expression) "sec_open == false" (identifier) "sec_open" (==) "==" (false) "false" ()) ")" (compound_statement) "{\n sec_index = 0;\n current_sec = row->GetInt(0, 0);\n sec = new TokenizerSection();\n sec_open = true;\n continue;\n }" ({) "{" (expression_statement) "sec_index = 0;" (assignment_expression) "sec_index = 0" (identifier) "sec_index" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "current_sec = row->GetInt(0, 0);" (assignment_expression) "current_sec = row->GetInt(0, 0)" (identifier) "current_sec" (=) "=" (call_expression) "row->GetInt(0, 0)" (field_expression) "row->GetInt" (identifier) "row" (->) "->" (field_identifier) "GetInt" (argument_list) "(0, 0)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "sec = new TokenizerSection();" (assignment_expression) "sec = new TokenizerSection()" (identifier) "sec" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "TokenizerSection()" (identifier) "TokenizerSection" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "sec_open = true;" (assignment_expression) "sec_open = true" (identifier) "sec_open" (=) "=" (true) "true" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (}) "}" (expression_statement) "sec->Rows[sec_index++] = row;" (assignment_expression) "sec->Rows[sec_index++] = row" (subscript_expression) "sec->Rows[sec_index++]" (field_expression) "sec->Rows" (identifier) "sec" (->) "->" (field_identifier) "Rows" ([) "[" (update_expression) "sec_index++" (identifier) "sec_index" (++) "++" (]) "]" (=) "=" (identifier) "row" (;) ";" (}) "}" (}) "}" (else_clause) "else\n {\n f.close();\n return NULL;\n }" (else) "else" (compound_statement) "{\n f.close();\n return NULL;\n }" ({) "{" (expression_statement) "f.close();" (call_expression) "f.close()" (field_expression) "f.close" (identifier) "f" (.) "." (field_identifier) "close" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "f.close();" (call_expression) "f.close()" (field_expression) "f.close" (identifier) "f" (.) "." (field_identifier) "close" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return tok;" (return) "return" (identifier) "tok" (;) ";" (}) "}" (else_clause) "else\n {\n return NULL;\n }" (else) "else" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";"
1,706
21
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 17.6, "nodes": 1047, "errors": 0, "source_hash": "7fe312ca32d8cd14186bb96067829a7a4b3f56464c6c9ad2d87bb6811e4f5fad", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <map>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<map>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include <list>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<list>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 15}}, {"id": 9, "type": "preproc_include", "text": "#include <iostream>\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<iostream>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <fstream>\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<fstream>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 21, "type": "declaration", "text": "using namespace std;", "parent": null, "children": [22, 23, 24], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 20}}, {"id": 22, "type": "type_identifier", "text": "using", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 23, "type": "identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 15}}, {"id": 24, "type": "ERROR", "text": "std", "parent": 21, "children": [25], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 19}}, {"id": 25, "type": "identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 19}}, {"id": 26, "type": "function_definition", "text": "class TokenizerRow\n{\npublic:\n\tmap<DWORD, string>\tColumns;\n\tint\tColumnCount;\n\n\tstring GetString(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);\n\t\tif(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}\n\t\treturn it->second;\n\t}", "parent": null, "children": [27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 29, "column": 2}}, {"id": 27, "type": "identifier", "text": "TokenizerRow", "parent": 26, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 18}}, {"id": 28, "type": "labeled_statement", "text": "public:\n\tmap<DWORD, string>\tColumns;", "parent": 26, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 28}}, {"id": 29, "type": "comma_expression", "text": "map<DWORD, string>\tColumns", "parent": 28, "children": [30, 34], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 27}}, {"id": 30, "type": "binary_expression", "text": "map<DWORD", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 31, "type": "identifier", "text": "map", "parent": 30, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}, {"id": 32, "type": "<", "text": "<", "parent": 30, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 5}}, {"id": 33, "type": "identifier", "text": "DWORD", "parent": 30, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 10}}, {"id": 34, "type": "binary_expression", "text": "string>\tColumns", "parent": 29, "children": [35, 36, 37], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 27}}, {"id": 35, "type": "identifier", "text": "string", "parent": 34, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 18}}, {"id": 36, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 37, "type": "identifier", "text": "Columns", "parent": 34, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 27}}, {"id": 38, "type": "declaration", "text": "int\tColumnCount;", "parent": 26, "children": [39, 40], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 17}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 4}}, {"id": 40, "type": "identifier", "text": "ColumnCount", "parent": 38, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 16}}, {"id": 41, "type": "declaration", "text": "string GetString(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);", "parent": 26, "children": [42, 43], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 23, "column": 63}}, {"id": 42, "type": "type_identifier", "text": "string", "parent": 41, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 7}}, {"id": 43, "type": "init_declarator", "text": "GetString(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 41, "children": [44, 53, 54, 56], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 23, "column": 62}}, {"id": 44, "type": "function_declarator", "text": "GetString(DWORD Column, string Default", "parent": 43, "children": [45, 46], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 46}}, {"id": 45, "type": "identifier", "text": "GetString", "parent": 44, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 17}}, {"id": 46, "type": "parameter_list", "text": "(DWORD Column, string Default", "parent": 44, "children": [47, 50], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 46}}, {"id": 47, "type": "parameter_declaration", "text": "DWORD Column", "parent": 46, "children": [48, 49], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 30}}, {"id": 48, "type": "type_identifier", "text": "DWORD", "parent": 47, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 23}}, {"id": 49, "type": "identifier", "text": "Column", "parent": 47, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 30}}, {"id": 50, "type": "parameter_declaration", "text": "string Default", "parent": 46, "children": [51, 52], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 46}}, {"id": 51, "type": "type_identifier", "text": "string", "parent": 50, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 38}}, {"id": 52, "type": "identifier", "text": "Default", "parent": 50, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 46}}, {"id": 53, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 48}}, {"id": 54, "type": "ERROR", "text": "\"\")", "parent": 43, "children": [55], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 52}}, {"id": 55, "type": "string_literal", "text": "\"\"", "parent": 54, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 51}}, {"id": 56, "type": "initializer_list", "text": "{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 43, "children": [57, 61], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 62}}, {"id": 57, "type": "binary_expression", "text": "map<DWORD", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 11}}, {"id": 58, "type": "identifier", "text": "map", "parent": 57, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 6}}, {"id": 60, "type": "identifier", "text": "DWORD", "parent": 57, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 11}}, {"id": 61, "type": "binary_expression", "text": "string>::iterator it = this->Columns.find(Column)", "parent": 56, "children": [62, 63, 64, 66], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 62}}, {"id": 62, "type": "identifier", "text": "string", "parent": 61, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 19}}, {"id": 63, "type": ">", "text": ">", "parent": 61, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 64, "type": "ERROR", "text": "::iterator", "parent": 61, "children": [65], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 30}}, {"id": 65, "type": "identifier", "text": "iterator", "parent": 64, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 30}}, {"id": 66, "type": "assignment_expression", "text": "it = this->Columns.find(Column)", "parent": 61, "children": [67, 68, 69], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 62}}, {"id": 67, "type": "identifier", "text": "it", "parent": 66, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 33}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 35}}, {"id": 69, "type": "call_expression", "text": "this->Columns.find(Column)", "parent": 66, "children": [70, 75], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 62}}, {"id": 70, "type": "field_expression", "text": "this->Columns.find", "parent": 69, "children": [71, 74], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 54}}, {"id": 71, "type": "field_expression", "text": "this->Columns", "parent": 70, "children": [72, 73], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 49}}, {"id": 72, "type": "identifier", "text": "this", "parent": 71, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 40}}, {"id": 73, "type": "field_identifier", "text": "Columns", "parent": 71, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 49}}, {"id": 74, "type": "field_identifier", "text": "find", "parent": 70, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 54}}, {"id": 75, "type": "argument_list", "text": "(Column)", "parent": 69, "children": [76], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 62}}, {"id": 76, "type": "identifier", "text": "Column", "parent": 75, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 61}}, {"id": 77, "type": "if_statement", "text": "if(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}", "parent": 26, "children": [78], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 27, "column": 3}}, {"id": 78, "type": "parenthesized_expression", "text": "(it == this->Columns.end())", "parent": 77, "children": [79], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 31}}, {"id": 79, "type": "binary_expression", "text": "it == this->Columns.end()", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 30}}, {"id": 80, "type": "identifier", "text": "it", "parent": 79, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 7}}, {"id": 81, "type": "==", "text": "==", "parent": 79, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 10}}, {"id": 82, "type": "call_expression", "text": "this->Columns.end()", "parent": 79, "children": [83, 87], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 30}}, {"id": 83, "type": "field_expression", "text": "this->Columns.end", "parent": 82, "children": [84], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 28}}, {"id": 84, "type": "field_expression", "text": "this->Columns", "parent": 83, "children": [85, 86], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 24}}, {"id": 85, "type": "identifier", "text": "this", "parent": 84, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 15}}, {"id": 86, "type": "field_identifier", "text": "Columns", "parent": 84, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 24}}, {"id": 87, "type": "argument_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 30}}, {"id": 88, "type": "return_statement", "text": "return Default;", "parent": 77, "children": [89], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 18}}, {"id": 89, "type": "identifier", "text": "Default", "parent": 88, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 17}}, {"id": 90, "type": "return_statement", "text": "return it->second;", "parent": 26, "children": [91], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 20}}, {"id": 91, "type": "field_expression", "text": "it->second", "parent": 90, "children": [92, 93], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 92, "type": "identifier", "text": "it", "parent": 91, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 11}}, {"id": 93, "type": "field_identifier", "text": "second", "parent": 91, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 19}}, {"id": 94, "type": "declaration", "text": "char* GetStringPtr(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);", "parent": null, "children": [95, 96], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 33, "column": 63}}, {"id": 95, "type": "primitive_type", "text": "char", "parent": 94, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 96, "type": "init_declarator", "text": "* GetStringPtr(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 94, "children": [97, 108, 109, 111], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 33, "column": 62}}, {"id": 97, "type": "pointer_declarator", "text": "* GetStringPtr(DWORD Column, string Default", "parent": 96, "children": [98, 99], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 48}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 6}}, {"id": 99, "type": "function_declarator", "text": "GetStringPtr(DWORD Column, string Default", "parent": 97, "children": [100, 101], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 48}}, {"id": 100, "type": "identifier", "text": "GetStringPtr", "parent": 99, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 19}}, {"id": 101, "type": "parameter_list", "text": "(DWORD Column, string Default", "parent": 99, "children": [102, 105], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 48}}, {"id": 102, "type": "parameter_declaration", "text": "DWORD Column", "parent": 101, "children": [103, 104], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 32}}, {"id": 103, "type": "type_identifier", "text": "DWORD", "parent": 102, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 25}}, {"id": 104, "type": "identifier", "text": "Column", "parent": 102, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 32}}, {"id": 105, "type": "parameter_declaration", "text": "string Default", "parent": 101, "children": [106, 107], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 48}}, {"id": 106, "type": "type_identifier", "text": "string", "parent": 105, "children": [], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 40}}, {"id": 107, "type": "identifier", "text": "Default", "parent": 105, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 48}}, {"id": 108, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 50}}, {"id": 109, "type": "ERROR", "text": "\"\")", "parent": 96, "children": [110], "start_point": {"row": 31, "column": 51}, "end_point": {"row": 31, "column": 54}}, {"id": 110, "type": "string_literal", "text": "\"\"", "parent": 109, "children": [], "start_point": {"row": 31, "column": 51}, "end_point": {"row": 31, "column": 53}}, {"id": 111, "type": "initializer_list", "text": "{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 96, "children": [112, 116], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 33, "column": 62}}, {"id": 112, "type": "binary_expression", "text": "map<DWORD", "parent": 111, "children": [113, 114, 115], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 11}}, {"id": 113, "type": "identifier", "text": "map", "parent": 112, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 5}}, {"id": 114, "type": "<", "text": "<", "parent": 112, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 6}}, {"id": 115, "type": "identifier", "text": "DWORD", "parent": 112, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 11}}, {"id": 116, "type": "binary_expression", "text": "string>::iterator it = this->Columns.find(Column)", "parent": 111, "children": [117, 118, 119, 121], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 62}}, {"id": 117, "type": "identifier", "text": "string", "parent": 116, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 19}}, {"id": 118, "type": ">", "text": ">", "parent": 116, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 119, "type": "ERROR", "text": "::iterator", "parent": 116, "children": [120], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 30}}, {"id": 120, "type": "identifier", "text": "iterator", "parent": 119, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 30}}, {"id": 121, "type": "assignment_expression", "text": "it = this->Columns.find(Column)", "parent": 116, "children": [122, 123, 124], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 62}}, {"id": 122, "type": "identifier", "text": "it", "parent": 121, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 33}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 35}}, {"id": 124, "type": "call_expression", "text": "this->Columns.find(Column)", "parent": 121, "children": [125, 130], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 62}}, {"id": 125, "type": "field_expression", "text": "this->Columns.find", "parent": 124, "children": [126, 129], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 54}}, {"id": 126, "type": "field_expression", "text": "this->Columns", "parent": 125, "children": [127, 128], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 49}}, {"id": 127, "type": "identifier", "text": "this", "parent": 126, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 40}}, {"id": 128, "type": "field_identifier", "text": "Columns", "parent": 126, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 49}}, {"id": 129, "type": "field_identifier", "text": "find", "parent": 125, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 54}}, {"id": 130, "type": "argument_list", "text": "(Column)", "parent": 124, "children": [131], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 62}}, {"id": 131, "type": "identifier", "text": "Column", "parent": 130, "children": [], "start_point": {"row": 33, "column": 55}, "end_point": {"row": 33, "column": 61}}, {"id": 132, "type": "if_statement", "text": "if(it == this->Columns.end())\n\t\t{\n\t\t\treturn (char*)Default.c_str();\n\t\t}", "parent": null, "children": [133], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 37, "column": 3}}, {"id": 133, "type": "parenthesized_expression", "text": "(it == this->Columns.end())", "parent": 132, "children": [134], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 31}}, {"id": 134, "type": "binary_expression", "text": "it == this->Columns.end()", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 30}}, {"id": 135, "type": "identifier", "text": "it", "parent": 134, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 7}}, {"id": 136, "type": "==", "text": "==", "parent": 134, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 10}}, {"id": 137, "type": "call_expression", "text": "this->Columns.end()", "parent": 134, "children": [138, 142], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 30}}, {"id": 138, "type": "field_expression", "text": "this->Columns.end", "parent": 137, "children": [139], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 28}}, {"id": 139, "type": "field_expression", "text": "this->Columns", "parent": 138, "children": [140, 141], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 24}}, {"id": 140, "type": "identifier", "text": "this", "parent": 139, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 141, "type": "field_identifier", "text": "Columns", "parent": 139, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 24}}, {"id": 142, "type": "argument_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 30}}, {"id": 143, "type": "return_statement", "text": "return (char*)Default.c_str();", "parent": 132, "children": [144], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 33}}, {"id": 144, "type": "cast_expression", "text": "(char*)Default.c_str()", "parent": 143, "children": [145, 149], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 32}}, {"id": 145, "type": "type_descriptor", "text": "char*", "parent": 144, "children": [146, 147], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 16}}, {"id": 146, "type": "primitive_type", "text": "char", "parent": 145, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 147, "type": "abstract_pointer_declarator", "text": "*", "parent": 145, "children": [148], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 149, "type": "call_expression", "text": "Default.c_str()", "parent": 144, "children": [150, 153], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 32}}, {"id": 150, "type": "field_expression", "text": "Default.c_str", "parent": 149, "children": [151, 152], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 30}}, {"id": 151, "type": "identifier", "text": "Default", "parent": 150, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 24}}, {"id": 152, "type": "field_identifier", "text": "c_str", "parent": 150, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 30}}, {"id": 153, "type": "argument_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 32}}, {"id": 154, "type": "return_statement", "text": "return (char*)it->second.c_str();", "parent": null, "children": [155], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 35}}, {"id": 155, "type": "cast_expression", "text": "(char*)it->second.c_str()", "parent": 154, "children": [156, 160], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 34}}, {"id": 156, "type": "type_descriptor", "text": "char*", "parent": 155, "children": [157, 158], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 15}}, {"id": 157, "type": "primitive_type", "text": "char", "parent": 156, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 158, "type": "abstract_pointer_declarator", "text": "*", "parent": 156, "children": [159], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 160, "type": "call_expression", "text": "it->second.c_str()", "parent": 155, "children": [161, 166], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 34}}, {"id": 161, "type": "field_expression", "text": "it->second.c_str", "parent": 160, "children": [162, 165], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 32}}, {"id": 162, "type": "field_expression", "text": "it->second", "parent": 161, "children": [163, 164], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 26}}, {"id": 163, "type": "identifier", "text": "it", "parent": 162, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 18}}, {"id": 164, "type": "field_identifier", "text": "second", "parent": 162, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 26}}, {"id": 165, "type": "field_identifier", "text": "c_str", "parent": 161, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 32}}, {"id": 166, "type": "argument_list", "text": "()", "parent": 160, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 167, "type": "declaration", "text": "int GetInt(DWORD Column, DWORD Default = -1)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);", "parent": null, "children": [168, 169], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 43, "column": 63}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 4}}, {"id": 169, "type": "init_declarator", "text": "GetInt(DWORD Column, DWORD Default = -1)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 167, "children": [170, 179, 180, 182], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 43, "column": 62}}, {"id": 170, "type": "function_declarator", "text": "GetInt(DWORD Column, DWORD Default", "parent": 169, "children": [171, 172], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 39}}, {"id": 171, "type": "identifier", "text": "GetInt", "parent": 170, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 11}}, {"id": 172, "type": "parameter_list", "text": "(DWORD Column, DWORD Default", "parent": 170, "children": [173, 176], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 39}}, {"id": 173, "type": "parameter_declaration", "text": "DWORD Column", "parent": 172, "children": [174, 175], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 24}}, {"id": 174, "type": "type_identifier", "text": "DWORD", "parent": 173, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 17}}, {"id": 175, "type": "identifier", "text": "Column", "parent": 173, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 24}}, {"id": 176, "type": "parameter_declaration", "text": "DWORD Default", "parent": 172, "children": [177, 178], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 39}}, {"id": 177, "type": "type_identifier", "text": "DWORD", "parent": 176, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 31}}, {"id": 178, "type": "identifier", "text": "Default", "parent": 176, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 39}}, {"id": 179, "type": "=", "text": "=", "parent": 169, "children": [], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 41}}, {"id": 180, "type": "ERROR", "text": "-1)", "parent": 169, "children": [181], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 45}}, {"id": 181, "type": "number_literal", "text": "-1", "parent": 180, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 44}}, {"id": 182, "type": "initializer_list", "text": "{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 169, "children": [183, 187], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 43, "column": 62}}, {"id": 183, "type": "binary_expression", "text": "map<DWORD", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 11}}, {"id": 184, "type": "identifier", "text": "map", "parent": 183, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 5}}, {"id": 185, "type": "<", "text": "<", "parent": 183, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 6}}, {"id": 186, "type": "identifier", "text": "DWORD", "parent": 183, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 11}}, {"id": 187, "type": "binary_expression", "text": "string>::iterator it = this->Columns.find(Column)", "parent": 182, "children": [188, 189, 190, 192], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 62}}, {"id": 188, "type": "identifier", "text": "string", "parent": 187, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 19}}, {"id": 189, "type": ">", "text": ">", "parent": 187, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 20}}, {"id": 190, "type": "ERROR", "text": "::iterator", "parent": 187, "children": [191], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 30}}, {"id": 191, "type": "identifier", "text": "iterator", "parent": 190, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 30}}, {"id": 192, "type": "assignment_expression", "text": "it = this->Columns.find(Column)", "parent": 187, "children": [193, 194, 195], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 62}}, {"id": 193, "type": "identifier", "text": "it", "parent": 192, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 33}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 35}}, {"id": 195, "type": "call_expression", "text": "this->Columns.find(Column)", "parent": 192, "children": [196, 201], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 62}}, {"id": 196, "type": "field_expression", "text": "this->Columns.find", "parent": 195, "children": [197, 200], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 54}}, {"id": 197, "type": "field_expression", "text": "this->Columns", "parent": 196, "children": [198, 199], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 49}}, {"id": 198, "type": "identifier", "text": "this", "parent": 197, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 40}}, {"id": 199, "type": "field_identifier", "text": "Columns", "parent": 197, "children": [], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 49}}, {"id": 200, "type": "field_identifier", "text": "find", "parent": 196, "children": [], "start_point": {"row": 43, "column": 50}, "end_point": {"row": 43, "column": 54}}, {"id": 201, "type": "argument_list", "text": "(Column)", "parent": 195, "children": [202], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 62}}, {"id": 202, "type": "identifier", "text": "Column", "parent": 201, "children": [], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 61}}, {"id": 203, "type": "if_statement", "text": "if(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}", "parent": null, "children": [204], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 47, "column": 3}}, {"id": 204, "type": "parenthesized_expression", "text": "(it == this->Columns.end())", "parent": 203, "children": [205], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 31}}, {"id": 205, "type": "binary_expression", "text": "it == this->Columns.end()", "parent": 204, "children": [206, 207, 208], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 30}}, {"id": 206, "type": "identifier", "text": "it", "parent": 205, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 7}}, {"id": 207, "type": "==", "text": "==", "parent": 205, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 10}}, {"id": 208, "type": "call_expression", "text": "this->Columns.end()", "parent": 205, "children": [209, 213], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 30}}, {"id": 209, "type": "field_expression", "text": "this->Columns.end", "parent": 208, "children": [210], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 28}}, {"id": 210, "type": "field_expression", "text": "this->Columns", "parent": 209, "children": [211, 212], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 24}}, {"id": 211, "type": "identifier", "text": "this", "parent": 210, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 15}}, {"id": 212, "type": "field_identifier", "text": "Columns", "parent": 210, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 24}}, {"id": 213, "type": "argument_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 30}}, {"id": 214, "type": "return_statement", "text": "return Default;", "parent": 203, "children": [215], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 18}}, {"id": 215, "type": "identifier", "text": "Default", "parent": 214, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 17}}, {"id": 216, "type": "return_statement", "text": "return atoi(it->second.c_str());", "parent": null, "children": [217], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 34}}, {"id": 217, "type": "call_expression", "text": "atoi(it->second.c_str())", "parent": 216, "children": [218, 219], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 33}}, {"id": 218, "type": "identifier", "text": "atoi", "parent": 217, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 219, "type": "argument_list", "text": "(it->second.c_str())", "parent": 217, "children": [220], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 33}}, {"id": 220, "type": "call_expression", "text": "it->second.c_str()", "parent": 219, "children": [221, 226], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 32}}, {"id": 221, "type": "field_expression", "text": "it->second.c_str", "parent": 220, "children": [222, 225], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 30}}, {"id": 222, "type": "field_expression", "text": "it->second", "parent": 221, "children": [223, 224], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 24}}, {"id": 223, "type": "identifier", "text": "it", "parent": 222, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 16}}, {"id": 224, "type": "field_identifier", "text": "second", "parent": 222, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 24}}, {"id": 225, "type": "field_identifier", "text": "c_str", "parent": 221, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 30}}, {"id": 226, "type": "argument_list", "text": "()", "parent": 220, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 32}}, {"id": 227, "type": "declaration", "text": "double GetFloat(DWORD Column, double Default = 0.0f)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);", "parent": null, "children": [228, 229], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 53, "column": 63}}, {"id": 228, "type": "primitive_type", "text": "double", "parent": 227, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 7}}, {"id": 229, "type": "init_declarator", "text": "GetFloat(DWORD Column, double Default = 0.0f)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 227, "children": [230, 239, 240, 242], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 53, "column": 62}}, {"id": 230, "type": "function_declarator", "text": "GetFloat(DWORD Column, double Default", "parent": 229, "children": [231, 232], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 45}}, {"id": 231, "type": "identifier", "text": "GetFloat", "parent": 230, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 16}}, {"id": 232, "type": "parameter_list", "text": "(DWORD Column, double Default", "parent": 230, "children": [233, 236], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 45}}, {"id": 233, "type": "parameter_declaration", "text": "DWORD Column", "parent": 232, "children": [234, 235], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 29}}, {"id": 234, "type": "type_identifier", "text": "DWORD", "parent": 233, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 22}}, {"id": 235, "type": "identifier", "text": "Column", "parent": 233, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 29}}, {"id": 236, "type": "parameter_declaration", "text": "double Default", "parent": 232, "children": [237, 238], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 45}}, {"id": 237, "type": "primitive_type", "text": "double", "parent": 236, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 37}}, {"id": 238, "type": "identifier", "text": "Default", "parent": 236, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 45}}, {"id": 239, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 240, "type": "ERROR", "text": "0.0f)", "parent": 229, "children": [241], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 53}}, {"id": 241, "type": "number_literal", "text": "0.0f", "parent": 240, "children": [], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 52}}, {"id": 242, "type": "initializer_list", "text": "{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column)", "parent": 229, "children": [243, 247], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 53, "column": 62}}, {"id": 243, "type": "binary_expression", "text": "map<DWORD", "parent": 242, "children": [244, 245, 246], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 11}}, {"id": 244, "type": "identifier", "text": "map", "parent": 243, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 5}}, {"id": 245, "type": "<", "text": "<", "parent": 243, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 6}}, {"id": 246, "type": "identifier", "text": "DWORD", "parent": 243, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 11}}, {"id": 247, "type": "binary_expression", "text": "string>::iterator it = this->Columns.find(Column)", "parent": 242, "children": [248, 249, 250, 252], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 62}}, {"id": 248, "type": "identifier", "text": "string", "parent": 247, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 19}}, {"id": 249, "type": ">", "text": ">", "parent": 247, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 250, "type": "ERROR", "text": "::iterator", "parent": 247, "children": [251], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 30}}, {"id": 251, "type": "identifier", "text": "iterator", "parent": 250, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 30}}, {"id": 252, "type": "assignment_expression", "text": "it = this->Columns.find(Column)", "parent": 247, "children": [253, 254, 255], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 62}}, {"id": 253, "type": "identifier", "text": "it", "parent": 252, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 33}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 35}}, {"id": 255, "type": "call_expression", "text": "this->Columns.find(Column)", "parent": 252, "children": [256, 261], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 62}}, {"id": 256, "type": "field_expression", "text": "this->Columns.find", "parent": 255, "children": [257, 260], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 54}}, {"id": 257, "type": "field_expression", "text": "this->Columns", "parent": 256, "children": [258, 259], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 49}}, {"id": 258, "type": "identifier", "text": "this", "parent": 257, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 40}}, {"id": 259, "type": "field_identifier", "text": "Columns", "parent": 257, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 49}}, {"id": 260, "type": "field_identifier", "text": "find", "parent": 256, "children": [], "start_point": {"row": 53, "column": 50}, "end_point": {"row": 53, "column": 54}}, {"id": 261, "type": "argument_list", "text": "(Column)", "parent": 255, "children": [262], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 62}}, {"id": 262, "type": "identifier", "text": "Column", "parent": 261, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 61}}, {"id": 263, "type": "if_statement", "text": "if(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}", "parent": null, "children": [264], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 57, "column": 3}}, {"id": 264, "type": "parenthesized_expression", "text": "(it == this->Columns.end())", "parent": 263, "children": [265], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 31}}, {"id": 265, "type": "binary_expression", "text": "it == this->Columns.end()", "parent": 264, "children": [266, 267, 268], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 30}}, {"id": 266, "type": "identifier", "text": "it", "parent": 265, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 7}}, {"id": 267, "type": "==", "text": "==", "parent": 265, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 10}}, {"id": 268, "type": "call_expression", "text": "this->Columns.end()", "parent": 265, "children": [269, 273], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 30}}, {"id": 269, "type": "field_expression", "text": "this->Columns.end", "parent": 268, "children": [270], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 28}}, {"id": 270, "type": "field_expression", "text": "this->Columns", "parent": 269, "children": [271, 272], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 24}}, {"id": 271, "type": "identifier", "text": "this", "parent": 270, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 15}}, {"id": 272, "type": "field_identifier", "text": "Columns", "parent": 270, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 24}}, {"id": 273, "type": "argument_list", "text": "()", "parent": 268, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 30}}, {"id": 274, "type": "return_statement", "text": "return Default;", "parent": 263, "children": [275], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 18}}, {"id": 275, "type": "identifier", "text": "Default", "parent": 274, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 17}}, {"id": 276, "type": "return_statement", "text": "return atof(it->second.c_str());", "parent": null, "children": [277], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 34}}, {"id": 277, "type": "call_expression", "text": "atof(it->second.c_str())", "parent": 276, "children": [278, 279], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 33}}, {"id": 278, "type": "identifier", "text": "atof", "parent": 277, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 13}}, {"id": 279, "type": "argument_list", "text": "(it->second.c_str())", "parent": 277, "children": [280], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 33}}, {"id": 280, "type": "call_expression", "text": "it->second.c_str()", "parent": 279, "children": [281, 286], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 32}}, {"id": 281, "type": "field_expression", "text": "it->second.c_str", "parent": 280, "children": [282, 285], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 30}}, {"id": 282, "type": "field_expression", "text": "it->second", "parent": 281, "children": [283, 284], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 24}}, {"id": 283, "type": "identifier", "text": "it", "parent": 282, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 16}}, {"id": 284, "type": "field_identifier", "text": "second", "parent": 282, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 24}}, {"id": 285, "type": "field_identifier", "text": "c_str", "parent": 281, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 30}}, {"id": 286, "type": "argument_list", "text": "()", "parent": 280, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 32}}, {"id": 287, "type": "ERROR", "text": "}\n\n}", "parent": null, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 61, "column": 1}}, {"id": 288, "type": "function_definition", "text": "class TokenizerSection\n{\npublic:\n\tmap<DWORD, TokenizerRow*>\tRows;\n\tint\t\t\t\t\t\t\tRowCount;\n}", "parent": null, "children": [289], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 289, "type": "identifier", "text": "TokenizerSection", "parent": 288, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 22}}, {"id": 290, "type": "labeled_statement", "text": "public:\n\tmap<DWORD, TokenizerRow*>\tRows;", "parent": 288, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 32}}, {"id": 291, "type": "comma_expression", "text": "map<DWORD, TokenizerRow*>\tRows", "parent": 290, "children": [292, 296], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 31}}, {"id": 292, "type": "binary_expression", "text": "map<DWORD", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 10}}, {"id": 293, "type": "identifier", "text": "map", "parent": 292, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 4}}, {"id": 294, "type": "<", "text": "<", "parent": 292, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 295, "type": "identifier", "text": "DWORD", "parent": 292, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 10}}, {"id": 296, "type": "binary_expression", "text": "TokenizerRow*>\tRows", "parent": 291, "children": [297, 298, 299, 301], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 31}}, {"id": 297, "type": "identifier", "text": "TokenizerRow", "parent": 296, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 24}}, {"id": 298, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 299, "type": "ERROR", "text": ">", "parent": 296, "children": [300], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 26}}, {"id": 300, "type": ">", "text": ">", "parent": 299, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 26}}, {"id": 301, "type": "identifier", "text": "Rows", "parent": 296, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 31}}, {"id": 302, "type": "declaration", "text": "int\t\t\t\t\t\t\tRowCount;", "parent": 288, "children": [303, 304], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 20}}, {"id": 303, "type": "primitive_type", "text": "int", "parent": 302, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 4}}, {"id": 304, "type": "identifier", "text": "RowCount", "parent": 302, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 19}}, {"id": 305, "type": "function_definition", "text": "class TokenizerGroup\n{\npublic:\n\tmap<DWORD, TokenizerSection*>\tSections;\n\n\tTokenizerSection* GetSection(DWORD Index)\n\t{\n\t\tmap<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n\t\tif(it == this->Sections.end())\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn it->second;\n\t\t}\n\t}\n\n}", "parent": null, "children": [306], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 306, "type": "identifier", "text": "TokenizerGroup", "parent": 305, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 20}}, {"id": 307, "type": "labeled_statement", "text": "public:\n\tmap<DWORD, TokenizerSection*>\tSections;", "parent": 305, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 40}}, {"id": 308, "type": "comma_expression", "text": "map<DWORD, TokenizerSection*>\tSections", "parent": 307, "children": [309, 313], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 39}}, {"id": 309, "type": "binary_expression", "text": "map<DWORD", "parent": 308, "children": [310, 311, 312], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 10}}, {"id": 310, "type": "identifier", "text": "map", "parent": 309, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 311, "type": "<", "text": "<", "parent": 309, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 312, "type": "identifier", "text": "DWORD", "parent": 309, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 10}}, {"id": 313, "type": "binary_expression", "text": "TokenizerSection*>\tSections", "parent": 308, "children": [314, 315, 316, 318], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 39}}, {"id": 314, "type": "identifier", "text": "TokenizerSection", "parent": 313, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 28}}, {"id": 315, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 316, "type": "ERROR", "text": ">", "parent": 313, "children": [317], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 317, "type": ">", "text": ">", "parent": 316, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 318, "type": "identifier", "text": "Sections", "parent": 313, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 39}}, {"id": 319, "type": "function_definition", "text": "TokenizerSection* GetSection(DWORD Index)\n\t{\n\t\tmap<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n\t\tif(it == this->Sections.end())\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn it->second;\n\t\t}\n\t}", "parent": 305, "children": [320, 321], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 86, "column": 2}}, {"id": 320, "type": "type_identifier", "text": "TokenizerSection", "parent": 319, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 17}}, {"id": 321, "type": "pointer_declarator", "text": "* GetSection(DWORD Index)", "parent": 319, "children": [322, 323], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 42}}, {"id": 322, "type": "*", "text": "*", "parent": 321, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 323, "type": "function_declarator", "text": "GetSection(DWORD Index)", "parent": 321, "children": [324, 325], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 42}}, {"id": 324, "type": "identifier", "text": "GetSection", "parent": 323, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 29}}, {"id": 325, "type": "parameter_list", "text": "(DWORD Index)", "parent": 323, "children": [326], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 42}}, {"id": 326, "type": "parameter_declaration", "text": "DWORD Index", "parent": 325, "children": [327, 328], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 41}}, {"id": 327, "type": "type_identifier", "text": "DWORD", "parent": 326, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 35}}, {"id": 328, "type": "identifier", "text": "Index", "parent": 326, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 41}}, {"id": 329, "type": "comma_expression", "text": "map<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index)", "parent": 319, "children": [330, 334], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 73}}, {"id": 330, "type": "binary_expression", "text": "map<DWORD", "parent": 329, "children": [331, 332, 333], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 11}}, {"id": 331, "type": "identifier", "text": "map", "parent": 330, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 5}}, {"id": 332, "type": "<", "text": "<", "parent": 330, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 6}}, {"id": 333, "type": "identifier", "text": "DWORD", "parent": 330, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 11}}, {"id": 334, "type": "binary_expression", "text": "TokenizerSection*>::iterator it = this->Sections.find(Index)", "parent": 329, "children": [335, 336, 337, 340], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 73}}, {"id": 335, "type": "identifier", "text": "TokenizerSection", "parent": 334, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 29}}, {"id": 336, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 30}}, {"id": 337, "type": "ERROR", "text": ">::iterator", "parent": 334, "children": [338, 339], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 41}}, {"id": 338, "type": ">", "text": ">", "parent": 337, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 31}}, {"id": 339, "type": "identifier", "text": "iterator", "parent": 337, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 41}}, {"id": 340, "type": "assignment_expression", "text": "it = this->Sections.find(Index)", "parent": 334, "children": [341, 342, 343], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 73}}, {"id": 341, "type": "identifier", "text": "it", "parent": 340, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 44}}, {"id": 342, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 77, "column": 45}, "end_point": {"row": 77, "column": 46}}, {"id": 343, "type": "call_expression", "text": "this->Sections.find(Index)", "parent": 340, "children": [344, 349], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 73}}, {"id": 344, "type": "field_expression", "text": "this->Sections.find", "parent": 343, "children": [345, 348], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 66}}, {"id": 345, "type": "field_expression", "text": "this->Sections", "parent": 344, "children": [346, 347], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 61}}, {"id": 346, "type": "identifier", "text": "this", "parent": 345, "children": [], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 51}}, {"id": 347, "type": "field_identifier", "text": "Sections", "parent": 345, "children": [], "start_point": {"row": 77, "column": 53}, "end_point": {"row": 77, "column": 61}}, {"id": 348, "type": "field_identifier", "text": "find", "parent": 344, "children": [], "start_point": {"row": 77, "column": 62}, "end_point": {"row": 77, "column": 66}}, {"id": 349, "type": "argument_list", "text": "(Index)", "parent": 343, "children": [350], "start_point": {"row": 77, "column": 66}, "end_point": {"row": 77, "column": 73}}, {"id": 350, "type": "identifier", "text": "Index", "parent": 349, "children": [], "start_point": {"row": 77, "column": 67}, "end_point": {"row": 77, "column": 72}}, {"id": 351, "type": "if_statement", "text": "if(it == this->Sections.end())\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn it->second;\n\t\t}", "parent": 319, "children": [352, 365], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 352, "type": "parenthesized_expression", "text": "(it == this->Sections.end())", "parent": 351, "children": [353], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 32}}, {"id": 353, "type": "binary_expression", "text": "it == this->Sections.end()", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 31}}, {"id": 354, "type": "identifier", "text": "it", "parent": 353, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 7}}, {"id": 355, "type": "==", "text": "==", "parent": 353, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 10}}, {"id": 356, "type": "call_expression", "text": "this->Sections.end()", "parent": 353, "children": [357, 361], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 31}}, {"id": 357, "type": "field_expression", "text": "this->Sections.end", "parent": 356, "children": [358], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 29}}, {"id": 358, "type": "field_expression", "text": "this->Sections", "parent": 357, "children": [359, 360], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 25}}, {"id": 359, "type": "identifier", "text": "this", "parent": 358, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 15}}, {"id": 360, "type": "field_identifier", "text": "Sections", "parent": 358, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 25}}, {"id": 361, "type": "argument_list", "text": "()", "parent": 356, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 31}}, {"id": 362, "type": "return_statement", "text": "return NULL;", "parent": 351, "children": [363], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 15}}, {"id": 363, "type": "null", "text": "NULL", "parent": 362, "children": [364], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 14}}, {"id": 364, "type": "NULL", "text": "NULL", "parent": 363, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 14}}, {"id": 365, "type": "else_clause", "text": "else\n\t\t{\n\t\t\treturn it->second;\n\t\t}", "parent": 351, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 366, "type": "return_statement", "text": "return it->second;", "parent": 365, "children": [367], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 21}}, {"id": 367, "type": "field_expression", "text": "it->second", "parent": 366, "children": [368, 369], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 20}}, {"id": 368, "type": "identifier", "text": "it", "parent": 367, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 12}}, {"id": 369, "type": "field_identifier", "text": "second", "parent": 367, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 20}}, {"id": 370, "type": "function_definition", "text": "class Tokenizer\n{\nprivate:\n\tchar*\tm_pBuffer;\n\tDWORD\tm_pBufferSize;\n\tDWORD\tm_pBufferIndex;\n\npublic:\n\n\tTokenizerRow* ParseLine(string line)\n\t{\n\n\t\tstring data = \"\";\n\n\t\tchar* dump = (char*)line.c_str();\n\t\t\n\t\tbool openstring = false;\n\t\tbool clearingspace = true;\n\n\t\tTokenizerRow* pRow = new TokenizerRow();\n\t\t\n\t\tint column = 0;\n\n\t\tfor(unsigned int i = 0; i < line.length(); i++)\n\t\t{\n\n\t\t\tif(clearingspace)\n\t\t\t{\n\t\t\t\tif(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclearingspace = false;\n\t\t\t}\n\n\t\t\tif(openstring)\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdata += dump[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif(data != \"\")\n\t\t{\n\t\t\tpRow->Columns[column++] = data;\n\t\t}\n\n\t\tdata = \"\";\n\n\t\tpRow->ColumnCount = column;\n\n\t\treturn pRow;\n\n\t}\n\n\tTokenizerGroup* ParseFile(string file)\n\t{\n\n\t\tfstream f(file.c_str(), ios::in);\n\t\tTokenizerGroup* tok = new TokenizerGroup();\n\n\t\tif(f.is_open())\n\t\t{\n\n\t\t\tif(f.good())\n\t\t\t{\n\n\t\t\t\tTokenizerSection* sec = NULL;\n\t\t\t\tint current_sec = 0;\n\t\t\t\tint sec_index = 0;\n\t\t\t\tbool sec_open = false;\n\n\t\t\t\twhile(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t\t\n\t\t\tf.close();\n\n\t\t\treturn tok;\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t}\n\n}", "parent": null, "children": [371], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 282, "column": 1}}, {"id": 371, "type": "identifier", "text": "Tokenizer", "parent": 370, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 15}}, {"id": 372, "type": "labeled_statement", "text": "private:\n\tchar*\tm_pBuffer;", "parent": 370, "children": [373], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 17}}, {"id": 373, "type": "declaration", "text": "char*\tm_pBuffer;", "parent": 372, "children": [374, 375], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 17}}, {"id": 374, "type": "primitive_type", "text": "char", "parent": 373, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 5}}, {"id": 375, "type": "pointer_declarator", "text": "*\tm_pBuffer", "parent": 373, "children": [376, 377], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 16}}, {"id": 376, "type": "*", "text": "*", "parent": 375, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 6}}, {"id": 377, "type": "identifier", "text": "m_pBuffer", "parent": 375, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 16}}, {"id": 378, "type": "declaration", "text": "DWORD\tm_pBufferSize;", "parent": 370, "children": [379, 380], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 21}}, {"id": 379, "type": "type_identifier", "text": "DWORD", "parent": 378, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 6}}, {"id": 380, "type": "identifier", "text": "m_pBufferSize", "parent": 378, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 20}}, {"id": 381, "type": "declaration", "text": "DWORD\tm_pBufferIndex;", "parent": 370, "children": [382, 383], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 22}}, {"id": 382, "type": "type_identifier", "text": "DWORD", "parent": 381, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 6}}, {"id": 383, "type": "identifier", "text": "m_pBufferIndex", "parent": 381, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 21}}, {"id": 384, "type": "labeled_statement", "text": "public:\n\n\tTokenizerRow* ParseLine(string line)\n\t{\n\n\t\tstring data = \"\";\n\n\t\tchar* dump = (char*)line.c_str();\n\t\t\n\t\tbool openstring = false;\n\t\tbool clearingspace = true;\n\n\t\tTokenizerRow* pRow = new TokenizerRow();\n\t\t\n\t\tint column = 0;\n\n\t\tfor(unsigned int i = 0; i < line.length(); i++)\n\t\t{\n\n\t\t\tif(clearingspace)\n\t\t\t{\n\t\t\t\tif(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclearingspace = false;\n\t\t\t}\n\n\t\t\tif(openstring)\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdata += dump[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif(data != \"\")\n\t\t{\n\t\t\tpRow->Columns[column++] = data;\n\t\t}\n\n\t\tdata = \"\";\n\n\t\tpRow->ColumnCount = column;\n\n\t\treturn pRow;\n\n\t}", "parent": 370, "children": [385], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 173, "column": 2}}, {"id": 385, "type": "ERROR", "text": "TokenizerRow* ParseLine(string line)", "parent": 384, "children": [386, 387], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 37}}, {"id": 386, "type": "type_identifier", "text": "TokenizerRow", "parent": 385, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 13}}, {"id": 387, "type": "pointer_declarator", "text": "* ParseLine(string line)", "parent": 385, "children": [388, 389], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 37}}, {"id": 388, "type": "*", "text": "*", "parent": 387, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 389, "type": "function_declarator", "text": "ParseLine(string line)", "parent": 387, "children": [390, 391], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 37}}, {"id": 390, "type": "identifier", "text": "ParseLine", "parent": 389, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 24}}, {"id": 391, "type": "parameter_list", "text": "(string line)", "parent": 389, "children": [392], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 37}}, {"id": 392, "type": "parameter_declaration", "text": "string line", "parent": 391, "children": [393, 394], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 36}}, {"id": 393, "type": "type_identifier", "text": "string", "parent": 392, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 31}}, {"id": 394, "type": "identifier", "text": "line", "parent": 392, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 36}}, {"id": 395, "type": "declaration", "text": "string data = \"\";", "parent": 384, "children": [396, 397], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 19}}, {"id": 396, "type": "type_identifier", "text": "string", "parent": 395, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 8}}, {"id": 397, "type": "init_declarator", "text": "data = \"\"", "parent": 395, "children": [398, 399, 400], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 18}}, {"id": 398, "type": "identifier", "text": "data", "parent": 397, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 13}}, {"id": 399, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 15}}, {"id": 400, "type": "string_literal", "text": "\"\"", "parent": 397, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 18}}, {"id": 401, "type": "declaration", "text": "char* dump = (char*)line.c_str();", "parent": 384, "children": [402, 403], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 35}}, {"id": 402, "type": "primitive_type", "text": "char", "parent": 401, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 6}}, {"id": 403, "type": "init_declarator", "text": "* dump = (char*)line.c_str()", "parent": 401, "children": [404, 407, 408], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 34}}, {"id": 404, "type": "pointer_declarator", "text": "* dump", "parent": 403, "children": [405, 406], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 12}}, {"id": 405, "type": "*", "text": "*", "parent": 404, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 7}}, {"id": 406, "type": "identifier", "text": "dump", "parent": 404, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 12}}, {"id": 407, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 408, "type": "cast_expression", "text": "(char*)line.c_str()", "parent": 403, "children": [409, 413], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 34}}, {"id": 409, "type": "type_descriptor", "text": "char*", "parent": 408, "children": [410, 411], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 21}}, {"id": 410, "type": "primitive_type", "text": "char", "parent": 409, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 20}}, {"id": 411, "type": "abstract_pointer_declarator", "text": "*", "parent": 409, "children": [412], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 413, "type": "call_expression", "text": "line.c_str()", "parent": 408, "children": [414, 417], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 34}}, {"id": 414, "type": "field_expression", "text": "line.c_str", "parent": 413, "children": [415, 416], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 32}}, {"id": 415, "type": "identifier", "text": "line", "parent": 414, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 416, "type": "field_identifier", "text": "c_str", "parent": 414, "children": [], "start_point": {"row": 104, "column": 27}, "end_point": {"row": 104, "column": 32}}, {"id": 417, "type": "argument_list", "text": "()", "parent": 413, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 34}}, {"id": 418, "type": "declaration", "text": "bool openstring = false;", "parent": 384, "children": [419, 420], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 26}}, {"id": 419, "type": "primitive_type", "text": "bool", "parent": 418, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 6}}, {"id": 420, "type": "init_declarator", "text": "openstring = false", "parent": 418, "children": [421, 422, 423], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 25}}, {"id": 421, "type": "identifier", "text": "openstring", "parent": 420, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 17}}, {"id": 422, "type": "=", "text": "=", "parent": 420, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 19}}, {"id": 423, "type": "false", "text": "false", "parent": 420, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 25}}, {"id": 424, "type": "declaration", "text": "bool clearingspace = true;", "parent": 384, "children": [425, 426], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 28}}, {"id": 425, "type": "primitive_type", "text": "bool", "parent": 424, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 6}}, {"id": 426, "type": "init_declarator", "text": "clearingspace = true", "parent": 424, "children": [427, 428, 429], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 27}}, {"id": 427, "type": "identifier", "text": "clearingspace", "parent": 426, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 20}}, {"id": 428, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 22}}, {"id": 429, "type": "true", "text": "true", "parent": 426, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 27}}, {"id": 430, "type": "declaration", "text": "TokenizerRow* pRow = new TokenizerRow();", "parent": 384, "children": [431, 432], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 42}}, {"id": 431, "type": "type_identifier", "text": "TokenizerRow", "parent": 430, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 14}}, {"id": 432, "type": "init_declarator", "text": "* pRow = new TokenizerRow()", "parent": 430, "children": [433, 436, 437], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 41}}, {"id": 433, "type": "pointer_declarator", "text": "* pRow", "parent": 432, "children": [434, 435], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 20}}, {"id": 434, "type": "*", "text": "*", "parent": 433, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 15}}, {"id": 435, "type": "identifier", "text": "pRow", "parent": 433, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 20}}, {"id": 436, "type": "=", "text": "=", "parent": 432, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 22}}, {"id": 437, "type": "call_expression", "text": "TokenizerRow()", "parent": 432, "children": [438, 439], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 41}}, {"id": 438, "type": "identifier", "text": "TokenizerRow", "parent": 437, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 39}}, {"id": 439, "type": "argument_list", "text": "()", "parent": 437, "children": [], "start_point": {"row": 109, "column": 39}, "end_point": {"row": 109, "column": 41}}, {"id": 440, "type": "declaration", "text": "int column = 0;", "parent": 384, "children": [441, 442], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 17}}, {"id": 441, "type": "primitive_type", "text": "int", "parent": 440, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 5}}, {"id": 442, "type": "init_declarator", "text": "column = 0", "parent": 440, "children": [443, 444, 445], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 16}}, {"id": 443, "type": "identifier", "text": "column", "parent": 442, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 12}}, {"id": 444, "type": "=", "text": "=", "parent": 442, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 14}}, {"id": 445, "type": "number_literal", "text": "0", "parent": 442, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 16}}, {"id": 446, "type": "for_statement", "text": "for(unsigned int i = 0; i < line.length(); i++)\n\t\t{\n\n\t\t\tif(clearingspace)\n\t\t\t{\n\t\t\t\tif(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclearingspace = false;\n\t\t\t}\n\n\t\t\tif(openstring)\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdata += dump[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "parent": 384, "children": [447, 455, 463], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 160, "column": 3}}, {"id": 447, "type": "declaration", "text": "unsigned int i = 0;", "parent": 446, "children": [448, 451], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 25}}, {"id": 448, "type": "sized_type_specifier", "text": "unsigned int", "parent": 447, "children": [449, 450], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 18}}, {"id": 449, "type": "unsigned", "text": "unsigned", "parent": 448, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 14}}, {"id": 450, "type": "primitive_type", "text": "int", "parent": 448, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 18}}, {"id": 451, "type": "init_declarator", "text": "i = 0", "parent": 447, "children": [452, 453, 454], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 24}}, {"id": 452, "type": "identifier", "text": "i", "parent": 451, "children": [], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 20}}, {"id": 453, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 22}}, {"id": 454, "type": "number_literal", "text": "0", "parent": 451, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 24}}, {"id": 455, "type": "binary_expression", "text": "i < line.length()", "parent": 446, "children": [456, 457, 458], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 43}}, {"id": 456, "type": "identifier", "text": "i", "parent": 455, "children": [], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 27}}, {"id": 457, "type": "<", "text": "<", "parent": 455, "children": [], "start_point": {"row": 113, "column": 28}, "end_point": {"row": 113, "column": 29}}, {"id": 458, "type": "call_expression", "text": "line.length()", "parent": 455, "children": [459, 462], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 43}}, {"id": 459, "type": "field_expression", "text": "line.length", "parent": 458, "children": [460, 461], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 41}}, {"id": 460, "type": "identifier", "text": "line", "parent": 459, "children": [], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 34}}, {"id": 461, "type": "field_identifier", "text": "length", "parent": 459, "children": [], "start_point": {"row": 113, "column": 35}, "end_point": {"row": 113, "column": 41}}, {"id": 462, "type": "argument_list", "text": "()", "parent": 458, "children": [], "start_point": {"row": 113, "column": 41}, "end_point": {"row": 113, "column": 43}}, {"id": 463, "type": "update_expression", "text": "i++", "parent": 446, "children": [464, 465], "start_point": {"row": 113, "column": 45}, "end_point": {"row": 113, "column": 48}}, {"id": 464, "type": "identifier", "text": "i", "parent": 463, "children": [], "start_point": {"row": 113, "column": 45}, "end_point": {"row": 113, "column": 46}}, {"id": 465, "type": "++", "text": "++", "parent": 463, "children": [], "start_point": {"row": 113, "column": 46}, "end_point": {"row": 113, "column": 48}}, {"id": 466, "type": "if_statement", "text": "if(clearingspace)\n\t\t\t{\n\t\t\t\tif(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclearingspace = false;\n\t\t\t}", "parent": 446, "children": [467], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 123, "column": 4}}, {"id": 467, "type": "parenthesized_expression", "text": "(clearingspace)", "parent": 466, "children": [468], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 20}}, {"id": 468, "type": "identifier", "text": "clearingspace", "parent": 467, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 19}}, {"id": 469, "type": "if_statement", "text": "if(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}", "parent": 466, "children": [470], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 121, "column": 5}}, {"id": 470, "type": "parenthesized_expression", "text": "(dump[i] == ' ' || dump[i] == '\\t')", "parent": 469, "children": [471], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 41}}, {"id": 471, "type": "binary_expression", "text": "dump[i] == ' ' || dump[i] == '\\t'", "parent": 470, "children": [472, 481, 482], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 40}}, {"id": 472, "type": "binary_expression", "text": "dump[i] == ' '", "parent": 471, "children": [473, 476, 477], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 21}}, {"id": 473, "type": "subscript_expression", "text": "dump[i]", "parent": 472, "children": [474, 475], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 14}}, {"id": 474, "type": "identifier", "text": "dump", "parent": 473, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 11}}, {"id": 475, "type": "identifier", "text": "i", "parent": 473, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 13}}, {"id": 476, "type": "==", "text": "==", "parent": 472, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 17}}, {"id": 477, "type": "char_literal", "text": "' '", "parent": 472, "children": [478, 479, 480], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 21}}, {"id": 478, "type": "'", "text": "'", "parent": 477, "children": [], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 19}}, {"id": 479, "type": "character", "text": " ", "parent": 477, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 20}}, {"id": 480, "type": "'", "text": "'", "parent": 477, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 21}}, {"id": 481, "type": "||", "text": "||", "parent": 471, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 24}}, {"id": 482, "type": "binary_expression", "text": "dump[i] == '\\t'", "parent": 471, "children": [483, 486, 487], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 40}}, {"id": 483, "type": "subscript_expression", "text": "dump[i]", "parent": 482, "children": [484, 485], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 32}}, {"id": 484, "type": "identifier", "text": "dump", "parent": 483, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 29}}, {"id": 485, "type": "identifier", "text": "i", "parent": 483, "children": [], "start_point": {"row": 118, "column": 30}, "end_point": {"row": 118, "column": 31}}, {"id": 486, "type": "==", "text": "==", "parent": 482, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 35}}, {"id": 487, "type": "char_literal", "text": "'\\t'", "parent": 482, "children": [488, 489, 490], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 40}}, {"id": 488, "type": "'", "text": "'", "parent": 487, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 37}}, {"id": 489, "type": "escape_sequence", "text": "\\t", "parent": 487, "children": [], "start_point": {"row": 118, "column": 37}, "end_point": {"row": 118, "column": 39}}, {"id": 490, "type": "'", "text": "'", "parent": 487, "children": [], "start_point": {"row": 118, "column": 39}, "end_point": {"row": 118, "column": 40}}, {"id": 491, "type": "continue_statement", "text": "continue;", "parent": 469, "children": [492], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 14}}, {"id": 492, "type": "continue", "text": "continue", "parent": 491, "children": [], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 13}}, {"id": 493, "type": "assignment_expression", "text": "clearingspace = false", "parent": 466, "children": [494, 495, 496], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 25}}, {"id": 494, "type": "identifier", "text": "clearingspace", "parent": 493, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 17}}, {"id": 495, "type": "=", "text": "=", "parent": 493, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 19}}, {"id": 496, "type": "false", "text": "false", "parent": 493, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 25}}, {"id": 497, "type": "if_statement", "text": "if(openstring)\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdata += dump[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}", "parent": 446, "children": [498, 523], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 158, "column": 4}}, {"id": 498, "type": "parenthesized_expression", "text": "(openstring)", "parent": 497, "children": [499], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 17}}, {"id": 499, "type": "identifier", "text": "openstring", "parent": 498, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 16}}, {"id": 500, "type": "if_statement", "text": "if(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}", "parent": 497, "children": [501], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 131, "column": 5}}, {"id": 501, "type": "parenthesized_expression", "text": "(dump[i] == '\"')", "parent": 500, "children": [502], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 22}}, {"id": 502, "type": "binary_expression", "text": "dump[i] == '\"'", "parent": 501, "children": [503, 506, 507], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 21}}, {"id": 503, "type": "subscript_expression", "text": "dump[i]", "parent": 502, "children": [504, 505], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 14}}, {"id": 504, "type": "identifier", "text": "dump", "parent": 503, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 11}}, {"id": 505, "type": "identifier", "text": "i", "parent": 503, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 13}}, {"id": 506, "type": "==", "text": "==", "parent": 502, "children": [], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 17}}, {"id": 507, "type": "char_literal", "text": "'\"'", "parent": 502, "children": [508, 509, 510], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 21}}, {"id": 508, "type": "'", "text": "'", "parent": 507, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 19}}, {"id": 509, "type": "character", "text": "\"", "parent": 507, "children": [], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 20}}, {"id": 510, "type": "'", "text": "'", "parent": 507, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 511, "type": "assignment_expression", "text": "openstring = false", "parent": 500, "children": [512, 513, 514], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 23}}, {"id": 512, "type": "identifier", "text": "openstring", "parent": 511, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 15}}, {"id": 513, "type": "=", "text": "=", "parent": 511, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 514, "type": "false", "text": "false", "parent": 511, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 23}}, {"id": 515, "type": "continue_statement", "text": "continue;", "parent": 500, "children": [516], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 14}}, {"id": 516, "type": "continue", "text": "continue", "parent": 515, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 13}}, {"id": 517, "type": "assignment_expression", "text": "data += dump[i]", "parent": 497, "children": [518, 519, 520], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 19}}, {"id": 518, "type": "identifier", "text": "data", "parent": 517, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 519, "type": "+=", "text": "+=", "parent": 517, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 11}}, {"id": 520, "type": "subscript_expression", "text": "dump[i]", "parent": 517, "children": [521, 522], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 19}}, {"id": 521, "type": "identifier", "text": "dump", "parent": 520, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 16}}, {"id": 522, "type": "identifier", "text": "i", "parent": 520, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 18}}, {"id": 523, "type": "else_clause", "text": "else\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}", "parent": 497, "children": [], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 158, "column": 4}}, {"id": 524, "type": "if_statement", "text": "if(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}", "parent": 523, "children": [525, 550], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 157, "column": 5}}, {"id": 525, "type": "parenthesized_expression", "text": "(dump[i] == '\"')", "parent": 524, "children": [526], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 22}}, {"id": 526, "type": "binary_expression", "text": "dump[i] == '\"'", "parent": 525, "children": [527, 530, 531], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 21}}, {"id": 527, "type": "subscript_expression", "text": "dump[i]", "parent": 526, "children": [528, 529], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 14}}, {"id": 528, "type": "identifier", "text": "dump", "parent": 527, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 11}}, {"id": 529, "type": "identifier", "text": "i", "parent": 527, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 13}}, {"id": 530, "type": "==", "text": "==", "parent": 526, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 17}}, {"id": 531, "type": "char_literal", "text": "'\"'", "parent": 526, "children": [532, 533, 534], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 21}}, {"id": 532, "type": "'", "text": "'", "parent": 531, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 19}}, {"id": 533, "type": "character", "text": "\"", "parent": 531, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 20}}, {"id": 534, "type": "'", "text": "'", "parent": 531, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 535, "type": "if_statement", "text": "if(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}", "parent": 524, "children": [536], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 141, "column": 6}}, {"id": 536, "type": "parenthesized_expression", "text": "(data != \"\")", "parent": 535, "children": [537], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 19}}, {"id": 537, "type": "binary_expression", "text": "data != \"\"", "parent": 536, "children": [538, 539, 540], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 18}}, {"id": 538, "type": "identifier", "text": "data", "parent": 537, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 12}}, {"id": 539, "type": "!=", "text": "!=", "parent": 537, "children": [], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 15}}, {"id": 540, "type": "string_literal", "text": "\"\"", "parent": 537, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 18}}, {"id": 541, "type": "return_statement", "text": "return NULL;", "parent": 535, "children": [542], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 18}}, {"id": 542, "type": "null", "text": "NULL", "parent": 541, "children": [543], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 17}}, {"id": 543, "type": "NULL", "text": "NULL", "parent": 542, "children": [], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 17}}, {"id": 544, "type": "assignment_expression", "text": "openstring = true", "parent": 524, "children": [545, 546, 547], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 22}}, {"id": 545, "type": "identifier", "text": "openstring", "parent": 544, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 15}}, {"id": 546, "type": "=", "text": "=", "parent": 544, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 17}}, {"id": 547, "type": "true", "text": "true", "parent": 544, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 22}}, {"id": 548, "type": "continue_statement", "text": "continue;", "parent": 524, "children": [549], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 14}}, {"id": 549, "type": "continue", "text": "continue", "parent": 548, "children": [], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 13}}, {"id": 550, "type": "else_clause", "text": "else\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}", "parent": 524, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 157, "column": 5}}, {"id": 551, "type": "if_statement", "text": "if(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}", "parent": 550, "children": [552], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 155, "column": 6}}, {"id": 552, "type": "parenthesized_expression", "text": "(dump[i] == '\\t' || dump[i] == ' ')", "parent": 551, "children": [553], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 42}}, {"id": 553, "type": "binary_expression", "text": "dump[i] == '\\t' || dump[i] == ' '", "parent": 552, "children": [554, 563, 564], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 41}}, {"id": 554, "type": "binary_expression", "text": "dump[i] == '\\t'", "parent": 553, "children": [555, 558, 559], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 23}}, {"id": 555, "type": "subscript_expression", "text": "dump[i]", "parent": 554, "children": [556, 557], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 15}}, {"id": 556, "type": "identifier", "text": "dump", "parent": 555, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 12}}, {"id": 557, "type": "identifier", "text": "i", "parent": 555, "children": [], "start_point": {"row": 147, "column": 13}, "end_point": {"row": 147, "column": 14}}, {"id": 558, "type": "==", "text": "==", "parent": 554, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 18}}, {"id": 559, "type": "char_literal", "text": "'\\t'", "parent": 554, "children": [560, 561, 562], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 23}}, {"id": 560, "type": "'", "text": "'", "parent": 559, "children": [], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 20}}, {"id": 561, "type": "escape_sequence", "text": "\\t", "parent": 559, "children": [], "start_point": {"row": 147, "column": 20}, "end_point": {"row": 147, "column": 22}}, {"id": 562, "type": "'", "text": "'", "parent": 559, "children": [], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 23}}, {"id": 563, "type": "||", "text": "||", "parent": 553, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 26}}, {"id": 564, "type": "binary_expression", "text": "dump[i] == ' '", "parent": 553, "children": [565, 568, 569], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 41}}, {"id": 565, "type": "subscript_expression", "text": "dump[i]", "parent": 564, "children": [566, 567], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 34}}, {"id": 566, "type": "identifier", "text": "dump", "parent": 565, "children": [], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 31}}, {"id": 567, "type": "identifier", "text": "i", "parent": 565, "children": [], "start_point": {"row": 147, "column": 32}, "end_point": {"row": 147, "column": 33}}, {"id": 568, "type": "==", "text": "==", "parent": 564, "children": [], "start_point": {"row": 147, "column": 35}, "end_point": {"row": 147, "column": 37}}, {"id": 569, "type": "char_literal", "text": "' '", "parent": 564, "children": [570, 571, 572], "start_point": {"row": 147, "column": 38}, "end_point": {"row": 147, "column": 41}}, {"id": 570, "type": "'", "text": "'", "parent": 569, "children": [], "start_point": {"row": 147, "column": 38}, "end_point": {"row": 147, "column": 39}}, {"id": 571, "type": "character", "text": " ", "parent": 569, "children": [], "start_point": {"row": 147, "column": 39}, "end_point": {"row": 147, "column": 40}}, {"id": 572, "type": "'", "text": "'", "parent": 569, "children": [], "start_point": {"row": 147, "column": 40}, "end_point": {"row": 147, "column": 41}}, {"id": 573, "type": "if_statement", "text": "if(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}", "parent": 551, "children": [574], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 153, "column": 7}}, {"id": 574, "type": "parenthesized_expression", "text": "(data != \"\")", "parent": 573, "children": [575], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 20}}, {"id": 575, "type": "binary_expression", "text": "data != \"\"", "parent": 574, "children": [576, 577, 578], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 19}}, {"id": 576, "type": "identifier", "text": "data", "parent": 575, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 13}}, {"id": 577, "type": "!=", "text": "!=", "parent": 575, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 16}}, {"id": 578, "type": "string_literal", "text": "\"\"", "parent": 575, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 19}}, {"id": 579, "type": "assignment_expression", "text": "pRow->Columns[column++] = data", "parent": 573, "children": [580, 587, 588], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 37}}, {"id": 580, "type": "subscript_expression", "text": "pRow->Columns[column++]", "parent": 579, "children": [581, 584], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 30}}, {"id": 581, "type": "field_expression", "text": "pRow->Columns", "parent": 580, "children": [582, 583], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 20}}, {"id": 582, "type": "identifier", "text": "pRow", "parent": 581, "children": [], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 11}}, {"id": 583, "type": "field_identifier", "text": "Columns", "parent": 581, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 20}}, {"id": 584, "type": "update_expression", "text": "column++", "parent": 580, "children": [585, 586], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 29}}, {"id": 585, "type": "identifier", "text": "column", "parent": 584, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 27}}, {"id": 586, "type": "++", "text": "++", "parent": 584, "children": [], "start_point": {"row": 151, "column": 27}, "end_point": {"row": 151, "column": 29}}, {"id": 587, "type": "=", "text": "=", "parent": 579, "children": [], "start_point": {"row": 151, "column": 31}, "end_point": {"row": 151, "column": 32}}, {"id": 588, "type": "identifier", "text": "data", "parent": 579, "children": [], "start_point": {"row": 151, "column": 33}, "end_point": {"row": 151, "column": 37}}, {"id": 589, "type": "assignment_expression", "text": "data = \"\"", "parent": 573, "children": [590, 591, 592], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 16}}, {"id": 590, "type": "identifier", "text": "data", "parent": 589, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 11}}, {"id": 591, "type": "=", "text": "=", "parent": 589, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 13}}, {"id": 592, "type": "string_literal", "text": "\"\"", "parent": 589, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 16}}, {"id": 593, "type": "continue_statement", "text": "continue;", "parent": 551, "children": [594], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 15}}, {"id": 594, "type": "continue", "text": "continue", "parent": 593, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 14}}, {"id": 595, "type": "assignment_expression", "text": "data += dump[i]", "parent": 550, "children": [596, 597, 598], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 20}}, {"id": 596, "type": "identifier", "text": "data", "parent": 595, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 9}}, {"id": 597, "type": "+=", "text": "+=", "parent": 595, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 12}}, {"id": 598, "type": "subscript_expression", "text": "dump[i]", "parent": 595, "children": [599, 600], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 20}}, {"id": 599, "type": "identifier", "text": "dump", "parent": 598, "children": [], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 17}}, {"id": 600, "type": "identifier", "text": "i", "parent": 598, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 19}}, {"id": 601, "type": "if_statement", "text": "if(data != \"\")\n\t\t{\n\t\t\tpRow->Columns[column++] = data;\n\t\t}", "parent": 384, "children": [602], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 165, "column": 3}}, {"id": 602, "type": "parenthesized_expression", "text": "(data != \"\")", "parent": 601, "children": [603], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 16}}, {"id": 603, "type": "binary_expression", "text": "data != \"\"", "parent": 602, "children": [604, 605, 606], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 15}}, {"id": 604, "type": "identifier", "text": "data", "parent": 603, "children": [], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 9}}, {"id": 605, "type": "!=", "text": "!=", "parent": 603, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 12}}, {"id": 606, "type": "string_literal", "text": "\"\"", "parent": 603, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 15}}, {"id": 607, "type": "assignment_expression", "text": "pRow->Columns[column++] = data", "parent": 601, "children": [608, 615, 616], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 33}}, {"id": 608, "type": "subscript_expression", "text": "pRow->Columns[column++]", "parent": 607, "children": [609, 612], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 26}}, {"id": 609, "type": "field_expression", "text": "pRow->Columns", "parent": 608, "children": [610, 611], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 16}}, {"id": 610, "type": "identifier", "text": "pRow", "parent": 609, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 7}}, {"id": 611, "type": "field_identifier", "text": "Columns", "parent": 609, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 16}}, {"id": 612, "type": "update_expression", "text": "column++", "parent": 608, "children": [613, 614], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 25}}, {"id": 613, "type": "identifier", "text": "column", "parent": 612, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 23}}, {"id": 614, "type": "++", "text": "++", "parent": 612, "children": [], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 25}}, {"id": 615, "type": "=", "text": "=", "parent": 607, "children": [], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 28}}, {"id": 616, "type": "identifier", "text": "data", "parent": 607, "children": [], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 33}}, {"id": 617, "type": "assignment_expression", "text": "data = \"\"", "parent": 384, "children": [618, 619, 620], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 11}}, {"id": 618, "type": "identifier", "text": "data", "parent": 617, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 6}}, {"id": 619, "type": "=", "text": "=", "parent": 617, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 8}}, {"id": 620, "type": "string_literal", "text": "\"\"", "parent": 617, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 11}}, {"id": 621, "type": "assignment_expression", "text": "pRow->ColumnCount = column", "parent": 384, "children": [622, 625, 626], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 28}}, {"id": 622, "type": "field_expression", "text": "pRow->ColumnCount", "parent": 621, "children": [623, 624], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 19}}, {"id": 623, "type": "identifier", "text": "pRow", "parent": 622, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 6}}, {"id": 624, "type": "field_identifier", "text": "ColumnCount", "parent": 622, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 19}}, {"id": 625, "type": "=", "text": "=", "parent": 621, "children": [], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 21}}, {"id": 626, "type": "identifier", "text": "column", "parent": 621, "children": [], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 28}}, {"id": 627, "type": "return_statement", "text": "return pRow;", "parent": 384, "children": [628], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 14}}, {"id": 628, "type": "identifier", "text": "pRow", "parent": 627, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 13}}, {"id": 629, "type": "function_definition", "text": "TokenizerGroup* ParseFile(string file)\n\t{\n\n\t\tfstream f(file.c_str(), ios::in);\n\t\tTokenizerGroup* tok = new TokenizerGroup();\n\n\t\tif(f.is_open())\n\t\t{\n\n\t\t\tif(f.good())\n\t\t\t{\n\n\t\t\t\tTokenizerSection* sec = NULL;\n\t\t\t\tint current_sec = 0;\n\t\t\t\tint sec_index = 0;\n\t\t\t\tbool sec_open = false;\n\n\t\t\t\twhile(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t\t\n\t\t\tf.close();\n\n\t\t\treturn tok;\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t}", "parent": 370, "children": [630, 631], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 280, "column": 2}}, {"id": 630, "type": "type_identifier", "text": "TokenizerGroup", "parent": 629, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 15}}, {"id": 631, "type": "pointer_declarator", "text": "* ParseFile(string file)", "parent": 629, "children": [632, 633], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 39}}, {"id": 632, "type": "*", "text": "*", "parent": 631, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 16}}, {"id": 633, "type": "function_declarator", "text": "ParseFile(string file)", "parent": 631, "children": [634, 635], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 39}}, {"id": 634, "type": "identifier", "text": "ParseFile", "parent": 633, "children": [], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 26}}, {"id": 635, "type": "parameter_list", "text": "(string file)", "parent": 633, "children": [636], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 39}}, {"id": 636, "type": "parameter_declaration", "text": "string file", "parent": 635, "children": [637, 638], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 38}}, {"id": 637, "type": "type_identifier", "text": "string", "parent": 636, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 33}}, {"id": 638, "type": "identifier", "text": "file", "parent": 636, "children": [], "start_point": {"row": 175, "column": 34}, "end_point": {"row": 175, "column": 38}}, {"id": 639, "type": "declaration", "text": "fstream f(file.c_str(), ios::in);", "parent": 629, "children": [640, 641], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 35}}, {"id": 640, "type": "type_identifier", "text": "fstream", "parent": 639, "children": [], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 9}}, {"id": 641, "type": "function_declarator", "text": "f(file.c_str(), ios::in)", "parent": 639, "children": [642, 643], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 34}}, {"id": 642, "type": "identifier", "text": "f", "parent": 641, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 11}}, {"id": 643, "type": "parameter_list", "text": "(file.c_str(), ios::in)", "parent": 641, "children": [644, 649], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 34}}, {"id": 644, "type": "parameter_declaration", "text": "file.c_str()", "parent": 643, "children": [645, 646], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 24}}, {"id": 645, "type": "type_identifier", "text": "file", "parent": 644, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 16}}, {"id": 646, "type": "function_declarator", "text": "c_str()", "parent": 644, "children": [647, 648], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 24}}, {"id": 647, "type": "identifier", "text": "c_str", "parent": 646, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 22}}, {"id": 648, "type": "parameter_list", "text": "()", "parent": 646, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 24}}, {"id": 649, "type": "parameter_declaration", "text": "ios::in", "parent": 643, "children": [650, 651], "start_point": {"row": 178, "column": 26}, "end_point": {"row": 178, "column": 33}}, {"id": 650, "type": "type_identifier", "text": "ios", "parent": 649, "children": [], "start_point": {"row": 178, "column": 26}, "end_point": {"row": 178, "column": 29}}, {"id": 651, "type": "identifier", "text": "in", "parent": 649, "children": [], "start_point": {"row": 178, "column": 31}, "end_point": {"row": 178, "column": 33}}, {"id": 652, "type": "declaration", "text": "TokenizerGroup* tok = new TokenizerGroup();", "parent": 629, "children": [653, 654], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 45}}, {"id": 653, "type": "type_identifier", "text": "TokenizerGroup", "parent": 652, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 16}}, {"id": 654, "type": "init_declarator", "text": "* tok = new TokenizerGroup()", "parent": 652, "children": [655, 658, 659], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 44}}, {"id": 655, "type": "pointer_declarator", "text": "* tok", "parent": 654, "children": [656, 657], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 21}}, {"id": 656, "type": "*", "text": "*", "parent": 655, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 17}}, {"id": 657, "type": "identifier", "text": "tok", "parent": 655, "children": [], "start_point": {"row": 179, "column": 18}, "end_point": {"row": 179, "column": 21}}, {"id": 658, "type": "=", "text": "=", "parent": 654, "children": [], "start_point": {"row": 179, "column": 22}, "end_point": {"row": 179, "column": 23}}, {"id": 659, "type": "call_expression", "text": "TokenizerGroup()", "parent": 654, "children": [660, 661], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 44}}, {"id": 660, "type": "identifier", "text": "TokenizerGroup", "parent": 659, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 42}}, {"id": 661, "type": "argument_list", "text": "()", "parent": 659, "children": [], "start_point": {"row": 179, "column": 42}, "end_point": {"row": 179, "column": 44}}, {"id": 662, "type": "if_statement", "text": "if(f.is_open())\n\t\t{\n\n\t\t\tif(f.good())\n\t\t\t{\n\n\t\t\t\tTokenizerSection* sec = NULL;\n\t\t\t\tint current_sec = 0;\n\t\t\t\tint sec_index = 0;\n\t\t\t\tbool sec_open = false;\n\n\t\t\t\twhile(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t\t\n\t\t\tf.close();\n\n\t\t\treturn tok;\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}", "parent": 629, "children": [663, 1043], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 278, "column": 3}}, {"id": 663, "type": "parenthesized_expression", "text": "(f.is_open())", "parent": 662, "children": [664], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 17}}, {"id": 664, "type": "call_expression", "text": "f.is_open()", "parent": 663, "children": [665, 668], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 16}}, {"id": 665, "type": "field_expression", "text": "f.is_open", "parent": 664, "children": [666, 667], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 14}}, {"id": 666, "type": "identifier", "text": "f", "parent": 665, "children": [], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 6}}, {"id": 667, "type": "field_identifier", "text": "is_open", "parent": 665, "children": [], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 14}}, {"id": 668, "type": "argument_list", "text": "()", "parent": 664, "children": [], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 16}}, {"id": 669, "type": "if_statement", "text": "if(f.good())\n\t\t\t{\n\n\t\t\t\tTokenizerSection* sec = NULL;\n\t\t\t\tint current_sec = 0;\n\t\t\t\tint sec_index = 0;\n\t\t\t\tbool sec_open = false;\n\n\t\t\t\twhile(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}", "parent": 662, "children": [670, 1027], "start_point": {"row": 184, "column": 3}, "end_point": {"row": 268, "column": 4}}, {"id": 670, "type": "parenthesized_expression", "text": "(f.good())", "parent": 669, "children": [671], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 15}}, {"id": 671, "type": "call_expression", "text": "f.good()", "parent": 670, "children": [672, 675], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 14}}, {"id": 672, "type": "field_expression", "text": "f.good", "parent": 671, "children": [673, 674], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 12}}, {"id": 673, "type": "identifier", "text": "f", "parent": 672, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 7}}, {"id": 674, "type": "field_identifier", "text": "good", "parent": 672, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 12}}, {"id": 675, "type": "argument_list", "text": "()", "parent": 671, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 14}}, {"id": 676, "type": "declaration", "text": "TokenizerSection* sec = NULL;", "parent": 669, "children": [677, 678], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 33}}, {"id": 677, "type": "type_identifier", "text": "TokenizerSection", "parent": 676, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 20}}, {"id": 678, "type": "init_declarator", "text": "* sec = NULL", "parent": 676, "children": [679, 682, 683], "start_point": {"row": 187, "column": 20}, "end_point": {"row": 187, "column": 32}}, {"id": 679, "type": "pointer_declarator", "text": "* sec", "parent": 678, "children": [680, 681], "start_point": {"row": 187, "column": 20}, "end_point": {"row": 187, "column": 25}}, {"id": 680, "type": "*", "text": "*", "parent": 679, "children": [], "start_point": {"row": 187, "column": 20}, "end_point": {"row": 187, "column": 21}}, {"id": 681, "type": "identifier", "text": "sec", "parent": 679, "children": [], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 25}}, {"id": 682, "type": "=", "text": "=", "parent": 678, "children": [], "start_point": {"row": 187, "column": 26}, "end_point": {"row": 187, "column": 27}}, {"id": 683, "type": "null", "text": "NULL", "parent": 678, "children": [684], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 32}}, {"id": 684, "type": "NULL", "text": "NULL", "parent": 683, "children": [], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 32}}, {"id": 685, "type": "declaration", "text": "int current_sec = 0;", "parent": 669, "children": [686, 687], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 24}}, {"id": 686, "type": "primitive_type", "text": "int", "parent": 685, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 7}}, {"id": 687, "type": "init_declarator", "text": "current_sec = 0", "parent": 685, "children": [688, 689, 690], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 23}}, {"id": 688, "type": "identifier", "text": "current_sec", "parent": 687, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 19}}, {"id": 689, "type": "=", "text": "=", "parent": 687, "children": [], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 21}}, {"id": 690, "type": "number_literal", "text": "0", "parent": 687, "children": [], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 23}}, {"id": 691, "type": "declaration", "text": "int sec_index = 0;", "parent": 669, "children": [692, 693], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 22}}, {"id": 692, "type": "primitive_type", "text": "int", "parent": 691, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 7}}, {"id": 693, "type": "init_declarator", "text": "sec_index = 0", "parent": 691, "children": [694, 695, 696], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 21}}, {"id": 694, "type": "identifier", "text": "sec_index", "parent": 693, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 17}}, {"id": 695, "type": "=", "text": "=", "parent": 693, "children": [], "start_point": {"row": 189, "column": 18}, "end_point": {"row": 189, "column": 19}}, {"id": 696, "type": "number_literal", "text": "0", "parent": 693, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 21}}, {"id": 697, "type": "declaration", "text": "bool sec_open = false;", "parent": 669, "children": [698, 699], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 26}}, {"id": 698, "type": "primitive_type", "text": "bool", "parent": 697, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 8}}, {"id": 699, "type": "init_declarator", "text": "sec_open = false", "parent": 697, "children": [700, 701, 702], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 25}}, {"id": 700, "type": "identifier", "text": "sec_open", "parent": 699, "children": [], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 17}}, {"id": 701, "type": "=", "text": "=", "parent": 699, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 19}}, {"id": 702, "type": "false", "text": "false", "parent": 699, "children": [], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 25}}, {"id": 703, "type": "while_statement", "text": "while(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}", "parent": 669, "children": [704], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 261, "column": 5}}, {"id": 704, "type": "parenthesized_expression", "text": "(!f.eof())", "parent": 703, "children": [705], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 19}}, {"id": 705, "type": "unary_expression", "text": "!f.eof()", "parent": 704, "children": [706, 707], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 18}}, {"id": 706, "type": "!", "text": "!", "parent": 705, "children": [], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 11}}, {"id": 707, "type": "call_expression", "text": "f.eof()", "parent": 705, "children": [708, 711], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 18}}, {"id": 708, "type": "field_expression", "text": "f.eof", "parent": 707, "children": [709, 710], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 16}}, {"id": 709, "type": "identifier", "text": "f", "parent": 708, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 12}}, {"id": 710, "type": "field_identifier", "text": "eof", "parent": 708, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 16}}, {"id": 711, "type": "argument_list", "text": "()", "parent": 707, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 18}}, {"id": 712, "type": "declaration", "text": "char temp[4096];", "parent": 703, "children": [713, 714], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 21}}, {"id": 713, "type": "primitive_type", "text": "char", "parent": 712, "children": [], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 9}}, {"id": 714, "type": "array_declarator", "text": "temp[4096]", "parent": 712, "children": [715, 716], "start_point": {"row": 195, "column": 10}, "end_point": {"row": 195, "column": 20}}, {"id": 715, "type": "identifier", "text": "temp", "parent": 714, "children": [], "start_point": {"row": 195, "column": 10}, "end_point": {"row": 195, "column": 14}}, {"id": 716, "type": "number_literal", "text": "4096", "parent": 714, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 19}}, {"id": 717, "type": "declaration", "text": "char* dump = NULL;", "parent": 703, "children": [718, 719], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 23}}, {"id": 718, "type": "primitive_type", "text": "char", "parent": 717, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 9}}, {"id": 719, "type": "init_declarator", "text": "* dump = NULL", "parent": 717, "children": [720, 723, 724], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 22}}, {"id": 720, "type": "pointer_declarator", "text": "* dump", "parent": 719, "children": [721, 722], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 15}}, {"id": 721, "type": "*", "text": "*", "parent": 720, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 10}}, {"id": 722, "type": "identifier", "text": "dump", "parent": 720, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 15}}, {"id": 723, "type": "=", "text": "=", "parent": 719, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 17}}, {"id": 724, "type": "null", "text": "NULL", "parent": 719, "children": [725], "start_point": {"row": 196, "column": 18}, "end_point": {"row": 196, "column": 22}}, {"id": 725, "type": "NULL", "text": "NULL", "parent": 724, "children": [], "start_point": {"row": 196, "column": 18}, "end_point": {"row": 196, "column": 22}}, {"id": 726, "type": "declaration", "text": "string line = \"\";", "parent": 703, "children": [727, 728], "start_point": {"row": 197, "column": 5}, "end_point": {"row": 197, "column": 22}}, {"id": 727, "type": "type_identifier", "text": "string", "parent": 726, "children": [], "start_point": {"row": 197, "column": 5}, "end_point": {"row": 197, "column": 11}}, {"id": 728, "type": "init_declarator", "text": "line = \"\"", "parent": 726, "children": [729, 730, 731], "start_point": {"row": 197, "column": 12}, "end_point": {"row": 197, "column": 21}}, {"id": 729, "type": "identifier", "text": "line", "parent": 728, "children": [], "start_point": {"row": 197, "column": 12}, "end_point": {"row": 197, "column": 16}}, {"id": 730, "type": "=", "text": "=", "parent": 728, "children": [], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 18}}, {"id": 731, "type": "string_literal", "text": "\"\"", "parent": 728, "children": [], "start_point": {"row": 197, "column": 19}, "end_point": {"row": 197, "column": 21}}, {"id": 732, "type": "call_expression", "text": "ZeroMemory(&temp[0], 4096)", "parent": 703, "children": [733, 734], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 31}}, {"id": 733, "type": "identifier", "text": "ZeroMemory", "parent": 732, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 15}}, {"id": 734, "type": "argument_list", "text": "(&temp[0], 4096)", "parent": 732, "children": [735, 739], "start_point": {"row": 199, "column": 15}, "end_point": {"row": 199, "column": 31}}, {"id": 735, "type": "pointer_expression", "text": "&temp[0]", "parent": 734, "children": [736], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 24}}, {"id": 736, "type": "subscript_expression", "text": "temp[0]", "parent": 735, "children": [737, 738], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 24}}, {"id": 737, "type": "identifier", "text": "temp", "parent": 736, "children": [], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 21}}, {"id": 738, "type": "number_literal", "text": "0", "parent": 736, "children": [], "start_point": {"row": 199, "column": 22}, "end_point": {"row": 199, "column": 23}}, {"id": 739, "type": "number_literal", "text": "4096", "parent": 734, "children": [], "start_point": {"row": 199, "column": 26}, "end_point": {"row": 199, "column": 30}}, {"id": 740, "type": "call_expression", "text": "f.getline(&temp[0], 4095)", "parent": 703, "children": [741, 744], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 30}}, {"id": 741, "type": "field_expression", "text": "f.getline", "parent": 740, "children": [742, 743], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 14}}, {"id": 742, "type": "identifier", "text": "f", "parent": 741, "children": [], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 6}}, {"id": 743, "type": "field_identifier", "text": "getline", "parent": 741, "children": [], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 14}}, {"id": 744, "type": "argument_list", "text": "(&temp[0], 4095)", "parent": 740, "children": [745, 749], "start_point": {"row": 201, "column": 14}, "end_point": {"row": 201, "column": 30}}, {"id": 745, "type": "pointer_expression", "text": "&temp[0]", "parent": 744, "children": [746], "start_point": {"row": 201, "column": 15}, "end_point": {"row": 201, "column": 23}}, {"id": 746, "type": "subscript_expression", "text": "temp[0]", "parent": 745, "children": [747, 748], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 23}}, {"id": 747, "type": "identifier", "text": "temp", "parent": 746, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 20}}, {"id": 748, "type": "number_literal", "text": "0", "parent": 746, "children": [], "start_point": {"row": 201, "column": 21}, "end_point": {"row": 201, "column": 22}}, {"id": 749, "type": "number_literal", "text": "4095", "parent": 744, "children": [], "start_point": {"row": 201, "column": 25}, "end_point": {"row": 201, "column": 29}}, {"id": 750, "type": "call_expression", "text": "line.assign(&temp[0])", "parent": 703, "children": [751, 754], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 26}}, {"id": 751, "type": "field_expression", "text": "line.assign", "parent": 750, "children": [752, 753], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 16}}, {"id": 752, "type": "identifier", "text": "line", "parent": 751, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 9}}, {"id": 753, "type": "field_identifier", "text": "assign", "parent": 751, "children": [], "start_point": {"row": 202, "column": 10}, "end_point": {"row": 202, "column": 16}}, {"id": 754, "type": "argument_list", "text": "(&temp[0])", "parent": 750, "children": [755], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 26}}, {"id": 755, "type": "pointer_expression", "text": "&temp[0]", "parent": 754, "children": [756], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 25}}, {"id": 756, "type": "subscript_expression", "text": "temp[0]", "parent": 755, "children": [757, 758], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 25}}, {"id": 757, "type": "identifier", "text": "temp", "parent": 756, "children": [], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 22}}, {"id": 758, "type": "number_literal", "text": "0", "parent": 756, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 24}}, {"id": 759, "type": "assignment_expression", "text": "dump = (char*)line.c_str()", "parent": 703, "children": [760, 761, 762], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 31}}, {"id": 760, "type": "identifier", "text": "dump", "parent": 759, "children": [], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 9}}, {"id": 761, "type": "=", "text": "=", "parent": 759, "children": [], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 204, "column": 11}}, {"id": 762, "type": "cast_expression", "text": "(char*)line.c_str()", "parent": 759, "children": [763, 767], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 31}}, {"id": 763, "type": "type_descriptor", "text": "char*", "parent": 762, "children": [764, 765], "start_point": {"row": 204, "column": 13}, "end_point": {"row": 204, "column": 18}}, {"id": 764, "type": "primitive_type", "text": "char", "parent": 763, "children": [], "start_point": {"row": 204, "column": 13}, "end_point": {"row": 204, "column": 17}}, {"id": 765, "type": "abstract_pointer_declarator", "text": "*", "parent": 763, "children": [766], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 18}}, {"id": 766, "type": "*", "text": "*", "parent": 765, "children": [], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 18}}, {"id": 767, "type": "call_expression", "text": "line.c_str()", "parent": 762, "children": [768, 771], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 31}}, {"id": 768, "type": "field_expression", "text": "line.c_str", "parent": 767, "children": [769, 770], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 29}}, {"id": 769, "type": "identifier", "text": "line", "parent": 768, "children": [], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 23}}, {"id": 770, "type": "field_identifier", "text": "c_str", "parent": 768, "children": [], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 29}}, {"id": 771, "type": "argument_list", "text": "()", "parent": 767, "children": [], "start_point": {"row": 204, "column": 29}, "end_point": {"row": 204, "column": 31}}, {"id": 772, "type": "declaration", "text": "int start = 0;", "parent": 703, "children": [773, 774], "start_point": {"row": 206, "column": 5}, "end_point": {"row": 206, "column": 19}}, {"id": 773, "type": "primitive_type", "text": "int", "parent": 772, "children": [], "start_point": {"row": 206, "column": 5}, "end_point": {"row": 206, "column": 8}}, {"id": 774, "type": "init_declarator", "text": "start = 0", "parent": 772, "children": [775, 776, 777], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 18}}, {"id": 775, "type": "identifier", "text": "start", "parent": 774, "children": [], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 14}}, {"id": 776, "type": "=", "text": "=", "parent": 774, "children": [], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 16}}, {"id": 777, "type": "number_literal", "text": "0", "parent": 774, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 18}}, {"id": 778, "type": "declaration", "text": "int end = 0;", "parent": 703, "children": [779, 780], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 17}}, {"id": 779, "type": "primitive_type", "text": "int", "parent": 778, "children": [], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 8}}, {"id": 780, "type": "init_declarator", "text": "end = 0", "parent": 778, "children": [781, 782], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 16}}, {"id": 781, "type": "=", "text": "=", "parent": 780, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 14}}, {"id": 782, "type": "number_literal", "text": "0", "parent": 780, "children": [], "start_point": {"row": 207, "column": 15}, "end_point": {"row": 207, "column": 16}}, {"id": 783, "type": "for_statement", "text": "for(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}", "parent": 703, "children": [784, 790, 798], "start_point": {"row": 209, "column": 5}, "end_point": {"row": 216, "column": 6}}, {"id": 784, "type": "declaration", "text": "DWORD i = 0;", "parent": 783, "children": [785, 786], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 21}}, {"id": 785, "type": "type_identifier", "text": "DWORD", "parent": 784, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 14}}, {"id": 786, "type": "init_declarator", "text": "i = 0", "parent": 784, "children": [787, 788, 789], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 20}}, {"id": 787, "type": "identifier", "text": "i", "parent": 786, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 16}}, {"id": 788, "type": "=", "text": "=", "parent": 786, "children": [], "start_point": {"row": 209, "column": 17}, "end_point": {"row": 209, "column": 18}}, {"id": 789, "type": "number_literal", "text": "0", "parent": 786, "children": [], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 20}}, {"id": 790, "type": "binary_expression", "text": "i < line.length()", "parent": 783, "children": [791, 792, 793], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 39}}, {"id": 791, "type": "identifier", "text": "i", "parent": 790, "children": [], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 23}}, {"id": 792, "type": "<", "text": "<", "parent": 790, "children": [], "start_point": {"row": 209, "column": 24}, "end_point": {"row": 209, "column": 25}}, {"id": 793, "type": "call_expression", "text": "line.length()", "parent": 790, "children": [794, 797], "start_point": {"row": 209, "column": 26}, "end_point": {"row": 209, "column": 39}}, {"id": 794, "type": "field_expression", "text": "line.length", "parent": 793, "children": [795, 796], "start_point": {"row": 209, "column": 26}, "end_point": {"row": 209, "column": 37}}, {"id": 795, "type": "identifier", "text": "line", "parent": 794, "children": [], "start_point": {"row": 209, "column": 26}, "end_point": {"row": 209, "column": 30}}, {"id": 796, "type": "field_identifier", "text": "length", "parent": 794, "children": [], "start_point": {"row": 209, "column": 31}, "end_point": {"row": 209, "column": 37}}, {"id": 797, "type": "argument_list", "text": "()", "parent": 793, "children": [], "start_point": {"row": 209, "column": 37}, "end_point": {"row": 209, "column": 39}}, {"id": 798, "type": "update_expression", "text": "i++", "parent": 783, "children": [799, 800], "start_point": {"row": 209, "column": 41}, "end_point": {"row": 209, "column": 44}}, {"id": 799, "type": "identifier", "text": "i", "parent": 798, "children": [], "start_point": {"row": 209, "column": 41}, "end_point": {"row": 209, "column": 42}}, {"id": 800, "type": "++", "text": "++", "parent": 798, "children": [], "start_point": {"row": 209, "column": 42}, "end_point": {"row": 209, "column": 44}}, {"id": 801, "type": "if_statement", "text": "if(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "parent": 783, "children": [802], "start_point": {"row": 211, "column": 6}, "end_point": {"row": 214, "column": 7}}, {"id": 802, "type": "parenthesized_expression", "text": "(dump[i] != ' ' && dump[i] != '\\t')", "parent": 801, "children": [803], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 43}}, {"id": 803, "type": "binary_expression", "text": "dump[i] != ' ' && dump[i] != '\\t'", "parent": 802, "children": [804, 813, 814], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 42}}, {"id": 804, "type": "binary_expression", "text": "dump[i] != ' '", "parent": 803, "children": [805, 808, 809], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 23}}, {"id": 805, "type": "subscript_expression", "text": "dump[i]", "parent": 804, "children": [806, 807], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 16}}, {"id": 806, "type": "identifier", "text": "dump", "parent": 805, "children": [], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 13}}, {"id": 807, "type": "identifier", "text": "i", "parent": 805, "children": [], "start_point": {"row": 211, "column": 14}, "end_point": {"row": 211, "column": 15}}, {"id": 808, "type": "!=", "text": "!=", "parent": 804, "children": [], "start_point": {"row": 211, "column": 17}, "end_point": {"row": 211, "column": 19}}, {"id": 809, "type": "char_literal", "text": "' '", "parent": 804, "children": [810, 811, 812], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 23}}, {"id": 810, "type": "'", "text": "'", "parent": 809, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 21}}, {"id": 811, "type": "character", "text": " ", "parent": 809, "children": [], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 22}}, {"id": 812, "type": "'", "text": "'", "parent": 809, "children": [], "start_point": {"row": 211, "column": 22}, "end_point": {"row": 211, "column": 23}}, {"id": 813, "type": "&&", "text": "&&", "parent": 803, "children": [], "start_point": {"row": 211, "column": 24}, "end_point": {"row": 211, "column": 26}}, {"id": 814, "type": "binary_expression", "text": "dump[i] != '\\t'", "parent": 803, "children": [815, 818, 819], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 42}}, {"id": 815, "type": "subscript_expression", "text": "dump[i]", "parent": 814, "children": [816, 817], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 34}}, {"id": 816, "type": "identifier", "text": "dump", "parent": 815, "children": [], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 31}}, {"id": 817, "type": "identifier", "text": "i", "parent": 815, "children": [], "start_point": {"row": 211, "column": 32}, "end_point": {"row": 211, "column": 33}}, {"id": 818, "type": "!=", "text": "!=", "parent": 814, "children": [], "start_point": {"row": 211, "column": 35}, "end_point": {"row": 211, "column": 37}}, {"id": 819, "type": "char_literal", "text": "'\\t'", "parent": 814, "children": [820, 821, 822], "start_point": {"row": 211, "column": 38}, "end_point": {"row": 211, "column": 42}}, {"id": 820, "type": "'", "text": "'", "parent": 819, "children": [], "start_point": {"row": 211, "column": 38}, "end_point": {"row": 211, "column": 39}}, {"id": 821, "type": "escape_sequence", "text": "\\t", "parent": 819, "children": [], "start_point": {"row": 211, "column": 39}, "end_point": {"row": 211, "column": 41}}, {"id": 822, "type": "'", "text": "'", "parent": 819, "children": [], "start_point": {"row": 211, "column": 41}, "end_point": {"row": 211, "column": 42}}, {"id": 823, "type": "break_statement", "text": "break;", "parent": 801, "children": [824], "start_point": {"row": 213, "column": 7}, "end_point": {"row": 213, "column": 13}}, {"id": 824, "type": "break", "text": "break", "parent": 823, "children": [], "start_point": {"row": 213, "column": 7}, "end_point": {"row": 213, "column": 12}}, {"id": 825, "type": "update_expression", "text": "start++", "parent": 783, "children": [826, 827], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 13}}, {"id": 826, "type": "identifier", "text": "start", "parent": 825, "children": [], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 11}}, {"id": 827, "type": "++", "text": "++", "parent": 825, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 13}}, {"id": 828, "type": "for_statement", "text": "for(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}", "parent": 703, "children": [829, 842, 846], "start_point": {"row": 218, "column": 5}, "end_point": {"row": 225, "column": 6}}, {"id": 829, "type": "declaration", "text": "DWORD i = line.length()-1;", "parent": 828, "children": [830, 831], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 35}}, {"id": 830, "type": "type_identifier", "text": "DWORD", "parent": 829, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 14}}, {"id": 831, "type": "init_declarator", "text": "i = line.length()-1", "parent": 829, "children": [832, 833, 834], "start_point": {"row": 218, "column": 15}, "end_point": {"row": 218, "column": 34}}, {"id": 832, "type": "identifier", "text": "i", "parent": 831, "children": [], "start_point": {"row": 218, "column": 15}, "end_point": {"row": 218, "column": 16}}, {"id": 833, "type": "=", "text": "=", "parent": 831, "children": [], "start_point": {"row": 218, "column": 17}, "end_point": {"row": 218, "column": 18}}, {"id": 834, "type": "binary_expression", "text": "line.length()-1", "parent": 831, "children": [835, 840, 841], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 34}}, {"id": 835, "type": "call_expression", "text": "line.length()", "parent": 834, "children": [836, 839], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 32}}, {"id": 836, "type": "field_expression", "text": "line.length", "parent": 835, "children": [837, 838], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 30}}, {"id": 837, "type": "identifier", "text": "line", "parent": 836, "children": [], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 23}}, {"id": 838, "type": "field_identifier", "text": "length", "parent": 836, "children": [], "start_point": {"row": 218, "column": 24}, "end_point": {"row": 218, "column": 30}}, {"id": 839, "type": "argument_list", "text": "()", "parent": 835, "children": [], "start_point": {"row": 218, "column": 30}, "end_point": {"row": 218, "column": 32}}, {"id": 840, "type": "-", "text": "-", "parent": 834, "children": [], "start_point": {"row": 218, "column": 32}, "end_point": {"row": 218, "column": 33}}, {"id": 841, "type": "number_literal", "text": "1", "parent": 834, "children": [], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 34}}, {"id": 842, "type": "binary_expression", "text": "i >= 0", "parent": 828, "children": [843, 844, 845], "start_point": {"row": 218, "column": 36}, "end_point": {"row": 218, "column": 42}}, {"id": 843, "type": "identifier", "text": "i", "parent": 842, "children": [], "start_point": {"row": 218, "column": 36}, "end_point": {"row": 218, "column": 37}}, {"id": 844, "type": ">=", "text": ">=", "parent": 842, "children": [], "start_point": {"row": 218, "column": 38}, "end_point": {"row": 218, "column": 40}}, {"id": 845, "type": "number_literal", "text": "0", "parent": 842, "children": [], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 42}}, {"id": 846, "type": "update_expression", "text": "i--", "parent": 828, "children": [847, 848], "start_point": {"row": 218, "column": 44}, "end_point": {"row": 218, "column": 47}}, {"id": 847, "type": "identifier", "text": "i", "parent": 846, "children": [], "start_point": {"row": 218, "column": 44}, "end_point": {"row": 218, "column": 45}}, {"id": 848, "type": "--", "text": "--", "parent": 846, "children": [], "start_point": {"row": 218, "column": 45}, "end_point": {"row": 218, "column": 47}}, {"id": 849, "type": "if_statement", "text": "if(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "parent": 828, "children": [850], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 223, "column": 7}}, {"id": 850, "type": "parenthesized_expression", "text": "(dump[i] != ' ' && dump[i] != '\\t')", "parent": 849, "children": [851], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 43}}, {"id": 851, "type": "binary_expression", "text": "dump[i] != ' ' && dump[i] != '\\t'", "parent": 850, "children": [852, 861, 862], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 42}}, {"id": 852, "type": "binary_expression", "text": "dump[i] != ' '", "parent": 851, "children": [853, 856, 857], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 23}}, {"id": 853, "type": "subscript_expression", "text": "dump[i]", "parent": 852, "children": [854, 855], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 16}}, {"id": 854, "type": "identifier", "text": "dump", "parent": 853, "children": [], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 13}}, {"id": 855, "type": "identifier", "text": "i", "parent": 853, "children": [], "start_point": {"row": 220, "column": 14}, "end_point": {"row": 220, "column": 15}}, {"id": 856, "type": "!=", "text": "!=", "parent": 852, "children": [], "start_point": {"row": 220, "column": 17}, "end_point": {"row": 220, "column": 19}}, {"id": 857, "type": "char_literal", "text": "' '", "parent": 852, "children": [858, 859, 860], "start_point": {"row": 220, "column": 20}, "end_point": {"row": 220, "column": 23}}, {"id": 858, "type": "'", "text": "'", "parent": 857, "children": [], "start_point": {"row": 220, "column": 20}, "end_point": {"row": 220, "column": 21}}, {"id": 859, "type": "character", "text": " ", "parent": 857, "children": [], "start_point": {"row": 220, "column": 21}, "end_point": {"row": 220, "column": 22}}, {"id": 860, "type": "'", "text": "'", "parent": 857, "children": [], "start_point": {"row": 220, "column": 22}, "end_point": {"row": 220, "column": 23}}, {"id": 861, "type": "&&", "text": "&&", "parent": 851, "children": [], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 26}}, {"id": 862, "type": "binary_expression", "text": "dump[i] != '\\t'", "parent": 851, "children": [863, 866, 867], "start_point": {"row": 220, "column": 27}, "end_point": {"row": 220, "column": 42}}, {"id": 863, "type": "subscript_expression", "text": "dump[i]", "parent": 862, "children": [864, 865], "start_point": {"row": 220, "column": 27}, "end_point": {"row": 220, "column": 34}}, {"id": 864, "type": "identifier", "text": "dump", "parent": 863, "children": [], "start_point": {"row": 220, "column": 27}, "end_point": {"row": 220, "column": 31}}, {"id": 865, "type": "identifier", "text": "i", "parent": 863, "children": [], "start_point": {"row": 220, "column": 32}, "end_point": {"row": 220, "column": 33}}, {"id": 866, "type": "!=", "text": "!=", "parent": 862, "children": [], "start_point": {"row": 220, "column": 35}, "end_point": {"row": 220, "column": 37}}, {"id": 867, "type": "char_literal", "text": "'\\t'", "parent": 862, "children": [868, 869, 870], "start_point": {"row": 220, "column": 38}, "end_point": {"row": 220, "column": 42}}, {"id": 868, "type": "'", "text": "'", "parent": 867, "children": [], "start_point": {"row": 220, "column": 38}, "end_point": {"row": 220, "column": 39}}, {"id": 869, "type": "escape_sequence", "text": "\\t", "parent": 867, "children": [], "start_point": {"row": 220, "column": 39}, "end_point": {"row": 220, "column": 41}}, {"id": 870, "type": "'", "text": "'", "parent": 867, "children": [], "start_point": {"row": 220, "column": 41}, "end_point": {"row": 220, "column": 42}}, {"id": 871, "type": "break_statement", "text": "break;", "parent": 849, "children": [872], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 13}}, {"id": 872, "type": "break", "text": "break", "parent": 871, "children": [], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 12}}, {"id": 873, "type": "update_expression", "text": "end++", "parent": 828, "children": [874], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 11}}, {"id": 874, "type": "++", "text": "++", "parent": 873, "children": [], "start_point": {"row": 224, "column": 9}, "end_point": {"row": 224, "column": 11}}, {"id": 875, "type": "assignment_expression", "text": "line = line.substr(start, line.length() - end - start)", "parent": 703, "children": [876, 877, 878], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 59}}, {"id": 876, "type": "identifier", "text": "line", "parent": 875, "children": [], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 9}}, {"id": 877, "type": "=", "text": "=", "parent": 875, "children": [], "start_point": {"row": 227, "column": 10}, "end_point": {"row": 227, "column": 11}}, {"id": 878, "type": "call_expression", "text": "line.substr(start, line.length() - end - start)", "parent": 875, "children": [879, 882], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 59}}, {"id": 879, "type": "field_expression", "text": "line.substr", "parent": 878, "children": [880, 881], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 23}}, {"id": 880, "type": "identifier", "text": "line", "parent": 879, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 16}}, {"id": 881, "type": "field_identifier", "text": "substr", "parent": 879, "children": [], "start_point": {"row": 227, "column": 17}, "end_point": {"row": 227, "column": 23}}, {"id": 882, "type": "argument_list", "text": "(start, line.length() - end - start)", "parent": 878, "children": [883, 884], "start_point": {"row": 227, "column": 23}, "end_point": {"row": 227, "column": 59}}, {"id": 883, "type": "identifier", "text": "start", "parent": 882, "children": [], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 29}}, {"id": 884, "type": "binary_expression", "text": "line.length() - end - start", "parent": 882, "children": [885, 892, 893], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 58}}, {"id": 885, "type": "binary_expression", "text": "line.length() - end", "parent": 884, "children": [886, 891], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 50}}, {"id": 886, "type": "call_expression", "text": "line.length()", "parent": 885, "children": [887, 890], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 44}}, {"id": 887, "type": "field_expression", "text": "line.length", "parent": 886, "children": [888, 889], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 42}}, {"id": 888, "type": "identifier", "text": "line", "parent": 887, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 35}}, {"id": 889, "type": "field_identifier", "text": "length", "parent": 887, "children": [], "start_point": {"row": 227, "column": 36}, "end_point": {"row": 227, "column": 42}}, {"id": 890, "type": "argument_list", "text": "()", "parent": 886, "children": [], "start_point": {"row": 227, "column": 42}, "end_point": {"row": 227, "column": 44}}, {"id": 891, "type": "-", "text": "-", "parent": 885, "children": [], "start_point": {"row": 227, "column": 45}, "end_point": {"row": 227, "column": 46}}, {"id": 892, "type": "-", "text": "-", "parent": 884, "children": [], "start_point": {"row": 227, "column": 51}, "end_point": {"row": 227, "column": 52}}, {"id": 893, "type": "identifier", "text": "start", "parent": 884, "children": [], "start_point": {"row": 227, "column": 53}, "end_point": {"row": 227, "column": 58}}, {"id": 894, "type": "if_statement", "text": "if(line.substr(0, 2) == \"//\") continue;", "parent": 703, "children": [895, 906], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 44}}, {"id": 895, "type": "parenthesized_expression", "text": "(line.substr(0, 2) == \"//\")", "parent": 894, "children": [896], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 34}}, {"id": 896, "type": "binary_expression", "text": "line.substr(0, 2) == \"//\"", "parent": 895, "children": [897, 904, 905], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 33}}, {"id": 897, "type": "call_expression", "text": "line.substr(0, 2)", "parent": 896, "children": [898, 901], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 25}}, {"id": 898, "type": "field_expression", "text": "line.substr", "parent": 897, "children": [899, 900], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 19}}, {"id": 899, "type": "identifier", "text": "line", "parent": 898, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 12}}, {"id": 900, "type": "field_identifier", "text": "substr", "parent": 898, "children": [], "start_point": {"row": 229, "column": 13}, "end_point": {"row": 229, "column": 19}}, {"id": 901, "type": "argument_list", "text": "(0, 2)", "parent": 897, "children": [902, 903], "start_point": {"row": 229, "column": 19}, "end_point": {"row": 229, "column": 25}}, {"id": 902, "type": "number_literal", "text": "0", "parent": 901, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 21}}, {"id": 903, "type": "number_literal", "text": "2", "parent": 901, "children": [], "start_point": {"row": 229, "column": 23}, "end_point": {"row": 229, "column": 24}}, {"id": 904, "type": "==", "text": "==", "parent": 896, "children": [], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 28}}, {"id": 905, "type": "string_literal", "text": "\"//\"", "parent": 896, "children": [], "start_point": {"row": 229, "column": 29}, "end_point": {"row": 229, "column": 33}}, {"id": 906, "type": "continue_statement", "text": "continue;", "parent": 894, "children": [907], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 44}}, {"id": 907, "type": "continue", "text": "continue", "parent": 906, "children": [], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 43}}, {"id": 908, "type": "if_statement", "text": "if(line[0] == '#') continue;", "parent": 703, "children": [909, 919], "start_point": {"row": 230, "column": 5}, "end_point": {"row": 230, "column": 33}}, {"id": 909, "type": "parenthesized_expression", "text": "(line[0] == '#')", "parent": 908, "children": [910], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 23}}, {"id": 910, "type": "binary_expression", "text": "line[0] == '#'", "parent": 909, "children": [911, 914, 915], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 22}}, {"id": 911, "type": "subscript_expression", "text": "line[0]", "parent": 910, "children": [912, 913], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 15}}, {"id": 912, "type": "identifier", "text": "line", "parent": 911, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 12}}, {"id": 913, "type": "number_literal", "text": "0", "parent": 911, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 14}}, {"id": 914, "type": "==", "text": "==", "parent": 910, "children": [], "start_point": {"row": 230, "column": 16}, "end_point": {"row": 230, "column": 18}}, {"id": 915, "type": "char_literal", "text": "'#'", "parent": 910, "children": [916, 917, 918], "start_point": {"row": 230, "column": 19}, "end_point": {"row": 230, "column": 22}}, {"id": 916, "type": "'", "text": "'", "parent": 915, "children": [], "start_point": {"row": 230, "column": 19}, "end_point": {"row": 230, "column": 20}}, {"id": 917, "type": "character", "text": "#", "parent": 915, "children": [], "start_point": {"row": 230, "column": 20}, "end_point": {"row": 230, "column": 21}}, {"id": 918, "type": "'", "text": "'", "parent": 915, "children": [], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 22}}, {"id": 919, "type": "continue_statement", "text": "continue;", "parent": 908, "children": [920], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 33}}, {"id": 920, "type": "continue", "text": "continue", "parent": 919, "children": [], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 32}}, {"id": 921, "type": "if_statement", "text": "if(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}", "parent": 703, "children": [922], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 242, "column": 6}}, {"id": 922, "type": "parenthesized_expression", "text": "(line == \"end\")", "parent": 921, "children": [923], "start_point": {"row": 232, "column": 7}, "end_point": {"row": 232, "column": 22}}, {"id": 923, "type": "binary_expression", "text": "line == \"end\"", "parent": 922, "children": [924, 925, 926], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 21}}, {"id": 924, "type": "identifier", "text": "line", "parent": 923, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 12}}, {"id": 925, "type": "==", "text": "==", "parent": 923, "children": [], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 15}}, {"id": 926, "type": "string_literal", "text": "\"end\"", "parent": 923, "children": [], "start_point": {"row": 232, "column": 16}, "end_point": {"row": 232, "column": 21}}, {"id": 927, "type": "if_statement", "text": "if(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}", "parent": 921, "children": [928], "start_point": {"row": 234, "column": 6}, "end_point": {"row": 237, "column": 7}}, {"id": 928, "type": "parenthesized_expression", "text": "(sec_open == false)", "parent": 927, "children": [929], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 27}}, {"id": 929, "type": "binary_expression", "text": "sec_open == false", "parent": 928, "children": [930, 931, 932], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 26}}, {"id": 930, "type": "identifier", "text": "sec_open", "parent": 929, "children": [], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 17}}, {"id": 931, "type": "==", "text": "==", "parent": 929, "children": [], "start_point": {"row": 234, "column": 18}, "end_point": {"row": 234, "column": 20}}, {"id": 932, "type": "false", "text": "false", "parent": 929, "children": [], "start_point": {"row": 234, "column": 21}, "end_point": {"row": 234, "column": 26}}, {"id": 933, "type": "return_statement", "text": "return NULL;", "parent": 927, "children": [934], "start_point": {"row": 236, "column": 7}, "end_point": {"row": 236, "column": 19}}, {"id": 934, "type": "null", "text": "NULL", "parent": 933, "children": [935], "start_point": {"row": 236, "column": 14}, "end_point": {"row": 236, "column": 18}}, {"id": 935, "type": "NULL", "text": "NULL", "parent": 934, "children": [], "start_point": {"row": 236, "column": 14}, "end_point": {"row": 236, "column": 18}}, {"id": 936, "type": "assignment_expression", "text": "sec_open = false", "parent": 921, "children": [937, 938, 939], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 22}}, {"id": 937, "type": "identifier", "text": "sec_open", "parent": 936, "children": [], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 14}}, {"id": 938, "type": "=", "text": "=", "parent": 936, "children": [], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 16}}, {"id": 939, "type": "false", "text": "false", "parent": 936, "children": [], "start_point": {"row": 238, "column": 17}, "end_point": {"row": 238, "column": 22}}, {"id": 940, "type": "assignment_expression", "text": "sec->RowCount = sec_index", "parent": 921, "children": [941, 944, 945], "start_point": {"row": 239, "column": 6}, "end_point": {"row": 239, "column": 31}}, {"id": 941, "type": "field_expression", "text": "sec->RowCount", "parent": 940, "children": [942, 943], "start_point": {"row": 239, "column": 6}, "end_point": {"row": 239, "column": 19}}, {"id": 942, "type": "identifier", "text": "sec", "parent": 941, "children": [], "start_point": {"row": 239, "column": 6}, "end_point": {"row": 239, "column": 9}}, {"id": 943, "type": "field_identifier", "text": "RowCount", "parent": 941, "children": [], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 19}}, {"id": 944, "type": "=", "text": "=", "parent": 940, "children": [], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 21}}, {"id": 945, "type": "identifier", "text": "sec_index", "parent": 940, "children": [], "start_point": {"row": 239, "column": 22}, "end_point": {"row": 239, "column": 31}}, {"id": 946, "type": "assignment_expression", "text": "tok->Sections[current_sec] = sec", "parent": 921, "children": [947, 952, 953], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 38}}, {"id": 947, "type": "subscript_expression", "text": "tok->Sections[current_sec]", "parent": 946, "children": [948, 951], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 32}}, {"id": 948, "type": "field_expression", "text": "tok->Sections", "parent": 947, "children": [949, 950], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 19}}, {"id": 949, "type": "identifier", "text": "tok", "parent": 948, "children": [], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 9}}, {"id": 950, "type": "field_identifier", "text": "Sections", "parent": 948, "children": [], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 19}}, {"id": 951, "type": "identifier", "text": "current_sec", "parent": 947, "children": [], "start_point": {"row": 240, "column": 20}, "end_point": {"row": 240, "column": 31}}, {"id": 952, "type": "=", "text": "=", "parent": 946, "children": [], "start_point": {"row": 240, "column": 33}, "end_point": {"row": 240, "column": 34}}, {"id": 953, "type": "identifier", "text": "sec", "parent": 946, "children": [], "start_point": {"row": 240, "column": 35}, "end_point": {"row": 240, "column": 38}}, {"id": 954, "type": "continue_statement", "text": "continue;", "parent": 921, "children": [955], "start_point": {"row": 241, "column": 6}, "end_point": {"row": 241, "column": 15}}, {"id": 955, "type": "continue", "text": "continue", "parent": 954, "children": [], "start_point": {"row": 241, "column": 6}, "end_point": {"row": 241, "column": 14}}, {"id": 956, "type": "if_statement", "text": "if(line == \"\") continue;", "parent": 703, "children": [957, 962], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 29}}, {"id": 957, "type": "parenthesized_expression", "text": "(line == \"\")", "parent": 956, "children": [958], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 19}}, {"id": 958, "type": "binary_expression", "text": "line == \"\"", "parent": 957, "children": [959, 960, 961], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 18}}, {"id": 959, "type": "identifier", "text": "line", "parent": 958, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 12}}, {"id": 960, "type": "==", "text": "==", "parent": 958, "children": [], "start_point": {"row": 244, "column": 13}, "end_point": {"row": 244, "column": 15}}, {"id": 961, "type": "string_literal", "text": "\"\"", "parent": 958, "children": [], "start_point": {"row": 244, "column": 16}, "end_point": {"row": 244, "column": 18}}, {"id": 962, "type": "continue_statement", "text": "continue;", "parent": 956, "children": [963], "start_point": {"row": 244, "column": 20}, "end_point": {"row": 244, "column": 29}}, {"id": 963, "type": "continue", "text": "continue", "parent": 962, "children": [], "start_point": {"row": 244, "column": 20}, "end_point": {"row": 244, "column": 28}}, {"id": 964, "type": "declaration", "text": "TokenizerRow* row = this->ParseLine(line);", "parent": 703, "children": [965, 966], "start_point": {"row": 246, "column": 5}, "end_point": {"row": 246, "column": 47}}, {"id": 965, "type": "type_identifier", "text": "TokenizerRow", "parent": 964, "children": [], "start_point": {"row": 246, "column": 5}, "end_point": {"row": 246, "column": 17}}, {"id": 966, "type": "init_declarator", "text": "* row = this->ParseLine(line)", "parent": 964, "children": [967, 970, 971], "start_point": {"row": 246, "column": 17}, "end_point": {"row": 246, "column": 46}}, {"id": 967, "type": "pointer_declarator", "text": "* row", "parent": 966, "children": [968, 969], "start_point": {"row": 246, "column": 17}, "end_point": {"row": 246, "column": 22}}, {"id": 968, "type": "*", "text": "*", "parent": 967, "children": [], "start_point": {"row": 246, "column": 17}, "end_point": {"row": 246, "column": 18}}, {"id": 969, "type": "identifier", "text": "row", "parent": 967, "children": [], "start_point": {"row": 246, "column": 19}, "end_point": {"row": 246, "column": 22}}, {"id": 970, "type": "=", "text": "=", "parent": 966, "children": [], "start_point": {"row": 246, "column": 23}, "end_point": {"row": 246, "column": 24}}, {"id": 971, "type": "call_expression", "text": "this->ParseLine(line)", "parent": 966, "children": [972, 975], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 46}}, {"id": 972, "type": "field_expression", "text": "this->ParseLine", "parent": 971, "children": [973, 974], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 40}}, {"id": 973, "type": "identifier", "text": "this", "parent": 972, "children": [], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 29}}, {"id": 974, "type": "field_identifier", "text": "ParseLine", "parent": 972, "children": [], "start_point": {"row": 246, "column": 31}, "end_point": {"row": 246, "column": 40}}, {"id": 975, "type": "argument_list", "text": "(line)", "parent": 971, "children": [976], "start_point": {"row": 246, "column": 40}, "end_point": {"row": 246, "column": 46}}, {"id": 976, "type": "identifier", "text": "line", "parent": 975, "children": [], "start_point": {"row": 246, "column": 41}, "end_point": {"row": 246, "column": 45}}, {"id": 977, "type": "if_statement", "text": "if(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "parent": 703, "children": [978], "start_point": {"row": 247, "column": 5}, "end_point": {"row": 257, "column": 6}}, {"id": 978, "type": "parenthesized_expression", "text": "(row->ColumnCount == 1)", "parent": 977, "children": [979], "start_point": {"row": 247, "column": 7}, "end_point": {"row": 247, "column": 30}}, {"id": 979, "type": "binary_expression", "text": "row->ColumnCount == 1", "parent": 978, "children": [980, 983, 984], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 29}}, {"id": 980, "type": "field_expression", "text": "row->ColumnCount", "parent": 979, "children": [981, 982], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 24}}, {"id": 981, "type": "identifier", "text": "row", "parent": 980, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 11}}, {"id": 982, "type": "field_identifier", "text": "ColumnCount", "parent": 980, "children": [], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 24}}, {"id": 983, "type": "==", "text": "==", "parent": 979, "children": [], "start_point": {"row": 247, "column": 25}, "end_point": {"row": 247, "column": 27}}, {"id": 984, "type": "number_literal", "text": "1", "parent": 979, "children": [], "start_point": {"row": 247, "column": 28}, "end_point": {"row": 247, "column": 29}}, {"id": 985, "type": "if_statement", "text": "if(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}", "parent": 977, "children": [986], "start_point": {"row": 249, "column": 6}, "end_point": {"row": 256, "column": 7}}, {"id": 986, "type": "parenthesized_expression", "text": "(sec_open == false)", "parent": 985, "children": [987], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 27}}, {"id": 987, "type": "binary_expression", "text": "sec_open == false", "parent": 986, "children": [988, 989, 990], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 26}}, {"id": 988, "type": "identifier", "text": "sec_open", "parent": 987, "children": [], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 17}}, {"id": 989, "type": "==", "text": "==", "parent": 987, "children": [], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 20}}, {"id": 990, "type": "false", "text": "false", "parent": 987, "children": [], "start_point": {"row": 249, "column": 21}, "end_point": {"row": 249, "column": 26}}, {"id": 991, "type": "assignment_expression", "text": "sec_index = 0", "parent": 985, "children": [992, 993, 994], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 20}}, {"id": 992, "type": "identifier", "text": "sec_index", "parent": 991, "children": [], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 16}}, {"id": 993, "type": "=", "text": "=", "parent": 991, "children": [], "start_point": {"row": 251, "column": 17}, "end_point": {"row": 251, "column": 18}}, {"id": 994, "type": "number_literal", "text": "0", "parent": 991, "children": [], "start_point": {"row": 251, "column": 19}, "end_point": {"row": 251, "column": 20}}, {"id": 995, "type": "assignment_expression", "text": "current_sec = row->GetInt(0, 0)", "parent": 985, "children": [996, 997, 998], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 38}}, {"id": 996, "type": "identifier", "text": "current_sec", "parent": 995, "children": [], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 18}}, {"id": 997, "type": "=", "text": "=", "parent": 995, "children": [], "start_point": {"row": 252, "column": 19}, "end_point": {"row": 252, "column": 20}}, {"id": 998, "type": "call_expression", "text": "row->GetInt(0, 0)", "parent": 995, "children": [999, 1002], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 38}}, {"id": 999, "type": "field_expression", "text": "row->GetInt", "parent": 998, "children": [1000, 1001], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 32}}, {"id": 1000, "type": "identifier", "text": "row", "parent": 999, "children": [], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 24}}, {"id": 1001, "type": "field_identifier", "text": "GetInt", "parent": 999, "children": [], "start_point": {"row": 252, "column": 26}, "end_point": {"row": 252, "column": 32}}, {"id": 1002, "type": "argument_list", "text": "(0, 0)", "parent": 998, "children": [1003, 1004], "start_point": {"row": 252, "column": 32}, "end_point": {"row": 252, "column": 38}}, {"id": 1003, "type": "number_literal", "text": "0", "parent": 1002, "children": [], "start_point": {"row": 252, "column": 33}, "end_point": {"row": 252, "column": 34}}, {"id": 1004, "type": "number_literal", "text": "0", "parent": 1002, "children": [], "start_point": {"row": 252, "column": 36}, "end_point": {"row": 252, "column": 37}}, {"id": 1005, "type": "assignment_expression", "text": "sec = new TokenizerSection()", "parent": 985, "children": [1006, 1007, 1008], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 35}}, {"id": 1006, "type": "identifier", "text": "sec", "parent": 1005, "children": [], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 10}}, {"id": 1007, "type": "=", "text": "=", "parent": 1005, "children": [], "start_point": {"row": 253, "column": 11}, "end_point": {"row": 253, "column": 12}}, {"id": 1008, "type": "call_expression", "text": "TokenizerSection()", "parent": 1005, "children": [1009, 1010], "start_point": {"row": 253, "column": 17}, "end_point": {"row": 253, "column": 35}}, {"id": 1009, "type": "identifier", "text": "TokenizerSection", "parent": 1008, "children": [], "start_point": {"row": 253, "column": 17}, "end_point": {"row": 253, "column": 33}}, {"id": 1010, "type": "argument_list", "text": "()", "parent": 1008, "children": [], "start_point": {"row": 253, "column": 33}, "end_point": {"row": 253, "column": 35}}, {"id": 1011, "type": "assignment_expression", "text": "sec_open = true", "parent": 985, "children": [1012, 1013, 1014], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 22}}, {"id": 1012, "type": "identifier", "text": "sec_open", "parent": 1011, "children": [], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 15}}, {"id": 1013, "type": "=", "text": "=", "parent": 1011, "children": [], "start_point": {"row": 254, "column": 16}, "end_point": {"row": 254, "column": 17}}, {"id": 1014, "type": "true", "text": "true", "parent": 1011, "children": [], "start_point": {"row": 254, "column": 18}, "end_point": {"row": 254, "column": 22}}, {"id": 1015, "type": "continue_statement", "text": "continue;", "parent": 985, "children": [1016], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 16}}, {"id": 1016, "type": "continue", "text": "continue", "parent": 1015, "children": [], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 15}}, {"id": 1017, "type": "assignment_expression", "text": "sec->Rows[sec_index++] = row", "parent": 703, "children": [1018, 1025, 1026], "start_point": {"row": 259, "column": 5}, "end_point": {"row": 259, "column": 33}}, {"id": 1018, "type": "subscript_expression", "text": "sec->Rows[sec_index++]", "parent": 1017, "children": [1019, 1022], "start_point": {"row": 259, "column": 5}, "end_point": {"row": 259, "column": 27}}, {"id": 1019, "type": "field_expression", "text": "sec->Rows", "parent": 1018, "children": [1020, 1021], "start_point": {"row": 259, "column": 5}, "end_point": {"row": 259, "column": 14}}, {"id": 1020, "type": "identifier", "text": "sec", "parent": 1019, "children": [], "start_point": {"row": 259, "column": 5}, "end_point": {"row": 259, "column": 8}}, {"id": 1021, "type": "field_identifier", "text": "Rows", "parent": 1019, "children": [], "start_point": {"row": 259, "column": 10}, "end_point": {"row": 259, "column": 14}}, {"id": 1022, "type": "update_expression", "text": "sec_index++", "parent": 1018, "children": [1023, 1024], "start_point": {"row": 259, "column": 15}, "end_point": {"row": 259, "column": 26}}, {"id": 1023, "type": "identifier", "text": "sec_index", "parent": 1022, "children": [], "start_point": {"row": 259, "column": 15}, "end_point": {"row": 259, "column": 24}}, {"id": 1024, "type": "++", "text": "++", "parent": 1022, "children": [], "start_point": {"row": 259, "column": 24}, "end_point": {"row": 259, "column": 26}}, {"id": 1025, "type": "=", "text": "=", "parent": 1017, "children": [], "start_point": {"row": 259, "column": 28}, "end_point": {"row": 259, "column": 29}}, {"id": 1026, "type": "identifier", "text": "row", "parent": 1017, "children": [], "start_point": {"row": 259, "column": 30}, "end_point": {"row": 259, "column": 33}}, {"id": 1027, "type": "else_clause", "text": "else\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}", "parent": 669, "children": [], "start_point": {"row": 264, "column": 3}, "end_point": {"row": 268, "column": 4}}, {"id": 1028, "type": "call_expression", "text": "f.close()", "parent": 1027, "children": [1029, 1032], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 13}}, {"id": 1029, "type": "field_expression", "text": "f.close", "parent": 1028, "children": [1030, 1031], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 11}}, {"id": 1030, "type": "identifier", "text": "f", "parent": 1029, "children": [], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 5}}, {"id": 1031, "type": "field_identifier", "text": "close", "parent": 1029, "children": [], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 11}}, {"id": 1032, "type": "argument_list", "text": "()", "parent": 1028, "children": [], "start_point": {"row": 266, "column": 11}, "end_point": {"row": 266, "column": 13}}, {"id": 1033, "type": "return_statement", "text": "return NULL;", "parent": 1027, "children": [1034], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 16}}, {"id": 1034, "type": "null", "text": "NULL", "parent": 1033, "children": [1035], "start_point": {"row": 267, "column": 11}, "end_point": {"row": 267, "column": 15}}, {"id": 1035, "type": "NULL", "text": "NULL", "parent": 1034, "children": [], "start_point": {"row": 267, "column": 11}, "end_point": {"row": 267, "column": 15}}, {"id": 1036, "type": "call_expression", "text": "f.close()", "parent": 662, "children": [1037, 1040], "start_point": {"row": 270, "column": 3}, "end_point": {"row": 270, "column": 12}}, {"id": 1037, "type": "field_expression", "text": "f.close", "parent": 1036, "children": [1038, 1039], "start_point": {"row": 270, "column": 3}, "end_point": {"row": 270, "column": 10}}, {"id": 1038, "type": "identifier", "text": "f", "parent": 1037, "children": [], "start_point": {"row": 270, "column": 3}, "end_point": {"row": 270, "column": 4}}, {"id": 1039, "type": "field_identifier", "text": "close", "parent": 1037, "children": [], "start_point": {"row": 270, "column": 5}, "end_point": {"row": 270, "column": 10}}, {"id": 1040, "type": "argument_list", "text": "()", "parent": 1036, "children": [], "start_point": {"row": 270, "column": 10}, "end_point": {"row": 270, "column": 12}}, {"id": 1041, "type": "return_statement", "text": "return tok;", "parent": 662, "children": [1042], "start_point": {"row": 272, "column": 3}, "end_point": {"row": 272, "column": 14}}, {"id": 1042, "type": "identifier", "text": "tok", "parent": 1041, "children": [], "start_point": {"row": 272, "column": 10}, "end_point": {"row": 272, "column": 13}}, {"id": 1043, "type": "else_clause", "text": "else\n\t\t{\n\t\t\treturn NULL;\n\t\t}", "parent": 662, "children": [], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 278, "column": 3}}, {"id": 1044, "type": "return_statement", "text": "return NULL;", "parent": 1043, "children": [1045], "start_point": {"row": 277, "column": 3}, "end_point": {"row": 277, "column": 15}}, {"id": 1045, "type": "null", "text": "NULL", "parent": 1044, "children": [1046], "start_point": {"row": 277, "column": 10}, "end_point": {"row": 277, "column": 14}}, {"id": 1046, "type": "NULL", "text": "NULL", "parent": 1045, "children": [], "start_point": {"row": 277, "column": 10}, "end_point": {"row": 277, "column": 14}}]}, "node_categories": {"declarations": {"functions": [26, 44, 99, 170, 230, 288, 305, 319, 323, 370, 389, 629, 633, 641, 646], "variables": [21, 38, 41, 47, 50, 94, 102, 105, 167, 173, 176, 227, 233, 236, 302, 326, 373, 378, 381, 392, 395, 401, 418, 424, 430, 440, 447, 636, 639, 644, 649, 652, 676, 685, 691, 697, 712, 717, 726, 772, 778, 784, 829, 964], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [29, 30, 34, 57, 61, 69, 70, 71, 78, 79, 82, 83, 84, 91, 112, 116, 124, 125, 126, 133, 134, 137, 138, 139, 144, 149, 150, 155, 160, 161, 162, 183, 187, 195, 196, 197, 204, 205, 208, 209, 210, 217, 220, 221, 222, 243, 247, 255, 256, 257, 264, 265, 268, 269, 270, 277, 280, 281, 282, 291, 292, 296, 308, 309, 313, 329, 330, 334, 343, 344, 345, 352, 353, 356, 357, 358, 367, 408, 413, 414, 437, 455, 458, 459, 463, 467, 470, 471, 472, 473, 482, 483, 498, 501, 502, 503, 520, 525, 526, 527, 536, 537, 552, 553, 554, 555, 564, 565, 574, 575, 580, 581, 584, 598, 602, 603, 608, 609, 612, 622, 659, 663, 664, 665, 670, 671, 672, 704, 705, 707, 708, 732, 735, 736, 740, 741, 745, 746, 750, 751, 755, 756, 762, 767, 768, 790, 793, 794, 798, 802, 803, 804, 805, 814, 815, 825, 834, 835, 836, 842, 846, 850, 851, 852, 853, 862, 863, 873, 878, 879, 884, 885, 886, 887, 895, 896, 897, 898, 909, 910, 911, 922, 923, 928, 929, 941, 947, 948, 957, 958, 971, 972, 978, 979, 980, 986, 987, 998, 999, 1008, 1018, 1019, 1022, 1028, 1029, 1036, 1037], "assignments": [66, 121, 192, 252, 340, 493, 511, 517, 544, 579, 589, 595, 607, 617, 621, 759, 875, 936, 940, 946, 991, 995, 1005, 1011, 1017], "loops": [446, 703, 783, 828], "conditionals": [22, 23, 25, 27, 31, 33, 35, 37, 40, 42, 45, 48, 49, 51, 52, 58, 60, 62, 65, 67, 72, 73, 74, 76, 77, 80, 85, 86, 89, 92, 93, 100, 103, 104, 106, 107, 113, 115, 117, 120, 122, 127, 128, 129, 131, 132, 135, 140, 141, 151, 152, 163, 164, 165, 171, 174, 175, 177, 178, 184, 186, 188, 191, 193, 198, 199, 200, 202, 203, 206, 211, 212, 215, 218, 223, 224, 225, 231, 234, 235, 238, 244, 246, 248, 251, 253, 258, 259, 260, 262, 263, 266, 271, 272, 275, 278, 283, 284, 285, 289, 293, 295, 297, 301, 304, 306, 310, 312, 314, 318, 320, 324, 327, 328, 331, 333, 335, 339, 341, 346, 347, 348, 350, 351, 354, 359, 360, 368, 369, 371, 377, 379, 380, 382, 383, 386, 390, 393, 394, 396, 398, 406, 415, 416, 421, 427, 431, 435, 438, 443, 448, 452, 456, 460, 461, 464, 466, 468, 469, 474, 475, 484, 485, 494, 497, 499, 500, 504, 505, 512, 518, 521, 522, 524, 528, 529, 535, 538, 545, 551, 556, 557, 566, 567, 573, 576, 582, 583, 585, 588, 590, 596, 599, 600, 601, 604, 610, 611, 613, 616, 618, 623, 624, 626, 628, 630, 634, 637, 638, 640, 642, 645, 647, 650, 651, 653, 657, 660, 662, 666, 667, 669, 673, 674, 677, 681, 688, 694, 700, 709, 710, 715, 722, 727, 729, 733, 737, 742, 743, 747, 752, 753, 757, 760, 769, 770, 775, 785, 787, 791, 795, 796, 799, 801, 806, 807, 816, 817, 826, 830, 832, 837, 838, 843, 847, 849, 854, 855, 864, 865, 876, 880, 881, 883, 888, 889, 893, 894, 899, 900, 908, 912, 921, 924, 927, 930, 937, 942, 943, 945, 949, 950, 951, 953, 956, 959, 965, 969, 973, 974, 976, 977, 981, 982, 985, 988, 992, 996, 1000, 1001, 1006, 1009, 1012, 1020, 1021, 1023, 1026, 1030, 1031, 1038, 1039, 1042], "returns": [88, 90, 143, 154, 214, 216, 274, 276, 362, 366, 541, 627, 933, 1033, 1041, 1044], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 55, 110, 181, 241, 400, 445, 454, 477, 487, 507, 531, 540, 559, 569, 578, 592, 606, 620, 690, 696, 716, 731, 738, 739, 748, 749, 758, 777, 782, 789, 809, 819, 841, 845, 857, 867, 902, 903, 905, 913, 915, 926, 961, 984, 994, 1003, 1004], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "TokenizerRow", "text_snippet": "class TokenizerRow\n{\npublic:\n\tmap<DWORD, string>\tColumns;\n\tint\tColumnCount;\n\n\tstring GetString(DWORD"}, {"node_id": 44, "universal_type": "function", "name": "Default", "text_snippet": "GetString(DWORD Column, string Default"}, {"node_id": 99, "universal_type": "function", "name": "Default", "text_snippet": "GetStringPtr(DWORD Column, string Default"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "GetInt(DWORD Column, DWORD Default"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "GetFloat(DWORD Column, double Default"}, {"node_id": 288, "universal_type": "function", "name": "TokenizerSection", "text_snippet": "class TokenizerSection\n{\npublic:\n\tmap<DWORD, TokenizerRow*>\tRows;\n\tint\t\t\t\t\t\t\tRowCount;\n}"}, {"node_id": 305, "universal_type": "function", "name": "TokenizerGroup", "text_snippet": "class TokenizerGroup\n{\npublic:\n\tmap<DWORD, TokenizerSection*>\tSections;\n\n\tTokenizerSection* GetSecti"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "TokenizerSection* GetSection(DWORD Index)\n\t{\n\t\tmap<DWORD, TokenizerSection*>::iterator it = this->Se"}, {"node_id": 323, "universal_type": "function", "name": "unknown", "text_snippet": "GetSection(DWORD Index)"}, {"node_id": 370, "universal_type": "function", "name": "Tokenizer", "text_snippet": "class Tokenizer\n{\nprivate:\n\tchar*\tm_pBuffer;\n\tDWORD\tm_pBufferSize;\n\tDWORD\tm_pBufferIndex;\n\npublic:\n\n"}, {"node_id": 389, "universal_type": "function", "name": "unknown", "text_snippet": "ParseLine(string line)"}, {"node_id": 629, "universal_type": "function", "name": "current_sec", "text_snippet": "TokenizerGroup* ParseFile(string file)\n\t{\n\n\t\tfstream f(file.c_str(), ios::in);\n\t\tTokenizerGroup* tok"}, {"node_id": 633, "universal_type": "function", "name": "unknown", "text_snippet": "ParseFile(string file)"}, {"node_id": 641, "universal_type": "function", "name": "unknown", "text_snippet": "f(file.c_str(), ios::in)"}, {"node_id": 646, "universal_type": "function", "name": "unknown", "text_snippet": "c_str()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <map>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <list>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <iostream>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <fstream>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <stdlib.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <map>\n#include <list>\n#include <iostream>\n#include <fstream>\n#include <string>\n#include <stdlib.h>\n\nusing namespace std;\n\n/*\n\tProgramado por WoLf\n*/\n\nclass TokenizerRow\n{\npublic:\n\tmap<DWORD, string>\tColumns;\n\tint\tColumnCount;\n\n\tstring GetString(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);\n\t\tif(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}\n\t\treturn it->second;\n\t}\n\n\tchar* GetStringPtr(DWORD Column, string Default = \"\")\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);\n\t\tif(it == this->Columns.end())\n\t\t{\n\t\t\treturn (char*)Default.c_str();\n\t\t}\n\t\treturn (char*)it->second.c_str();\n\t}\n\n\tint GetInt(DWORD Column, DWORD Default = -1)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);\n\t\tif(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}\n\t\treturn atoi(it->second.c_str());\n\t}\n\n\tdouble GetFloat(DWORD Column, double Default = 0.0f)\n\t{\n\t\tmap<DWORD, string>::iterator it = this->Columns.find(Column);\n\t\tif(it == this->Columns.end())\n\t\t{\n\t\t\treturn Default;\n\t\t}\n\t\treturn atof(it->second.c_str());\n\t}\n\n};\n\nclass TokenizerSection\n{\npublic:\n\tmap<DWORD, TokenizerRow*>\tRows;\n\tint\t\t\t\t\t\t\tRowCount;\n};\n\nclass TokenizerGroup\n{\npublic:\n\tmap<DWORD, TokenizerSection*>\tSections;\n\n\tTokenizerSection* GetSection(DWORD Index)\n\t{\n\t\tmap<DWORD, TokenizerSection*>::iterator it = this->Sections.find(Index);\n\t\tif(it == this->Sections.end())\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn it->second;\n\t\t}\n\t}\n\n};\n\nclass Tokenizer\n{\nprivate:\n\tchar*\tm_pBuffer;\n\tDWORD\tm_pBufferSize;\n\tDWORD\tm_pBufferIndex;\n\npublic:\n\n\tTokenizerRow* ParseLine(string line)\n\t{\n\n\t\tstring data = \"\";\n\n\t\tchar* dump = (char*)line.c_str();\n\t\t\n\t\tbool openstring = false;\n\t\tbool clearingspace = true;\n\n\t\tTokenizerRow* pRow = new TokenizerRow();\n\t\t\n\t\tint column = 0;\n\n\t\tfor(unsigned int i = 0; i < line.length(); i++)\n\t\t{\n\n\t\t\tif(clearingspace)\n\t\t\t{\n\t\t\t\tif(dump[i] == ' ' || dump[i] == '\\t')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclearingspace = false;\n\t\t\t}\n\n\t\t\tif(openstring)\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\topenstring = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdata += dump[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dump[i] == '\"')\n\t\t\t\t{\n\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t}\n\t\t\t\t\topenstring = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dump[i] == '\\t' || dump[i] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(data != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpRow->Columns[column++] = data;\n\t\t\t\t\t\t\tdata = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\tdata += dump[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif(data != \"\")\n\t\t{\n\t\t\tpRow->Columns[column++] = data;\n\t\t}\n\n\t\tdata = \"\";\n\n\t\tpRow->ColumnCount = column;\n\n\t\treturn pRow;\n\n\t}\n\n\tTokenizerGroup* ParseFile(string file)\n\t{\n\n\t\tfstream f(file.c_str(), ios::in);\n\t\tTokenizerGroup* tok = new TokenizerGroup();\n\n\t\tif(f.is_open())\n\t\t{\n\n\t\t\tif(f.good())\n\t\t\t{\n\n\t\t\t\tTokenizerSection* sec = NULL;\n\t\t\t\tint current_sec = 0;\n\t\t\t\tint sec_index = 0;\n\t\t\t\tbool sec_open = false;\n\n\t\t\t\twhile(!f.eof())\n\t\t\t\t{\n\n\t\t\t\t\tchar temp[4096];\n\t\t\t\t\tchar* dump = NULL;\n\t\t\t\t\tstring line = \"\";\n\n\t\t\t\t\tZeroMemory(&temp[0], 4096);\n\n\t\t\t\t\tf.getline(&temp[0], 4095);\n\t\t\t\t\tline.assign(&temp[0]);\n\n\t\t\t\t\tdump = (char*)line.c_str();\n\n\t\t\t\t\tint start = 0;\n\t\t\t\t\tint end = 0;\n\n\t\t\t\t\tfor(DWORD i = 0; i < line.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(DWORD i = line.length()-1; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dump[i] != ' ' && dump[i] != '\\t')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\n\t\t\t\t\tline = line.substr(start, line.length() - end - start);\t\n\n\t\t\t\t\tif(line.substr(0, 2) == \"//\") continue;\n\t\t\t\t\tif(line[0] == '#') continue;\n\n\t\t\t\t\tif(line == \"end\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn NULL; // falha de sintaxe\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsec_open = false;\n\t\t\t\t\t\tsec->RowCount = sec_index;\n\t\t\t\t\t\ttok->Sections[current_sec] = sec;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(line == \"\") continue;\n\n\t\t\t\t\tTokenizerRow* row = this->ParseLine(line);\n\t\t\t\t\tif(row->ColumnCount == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sec_open == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec_index = 0;\n\t\t\t\t\t\t\tcurrent_sec = row->GetInt(0, 0);\n\t\t\t\t\t\t\tsec = new TokenizerSection();\n\t\t\t\t\t\t\tsec_open = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsec->Rows[sec_index++] = row;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf.close();\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t\t\n\t\t\tf.close();\n\n\t\t\treturn tok;\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t}\n\n};"}
81,044
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_ #include <stdint.h> #include "base/memory/weak_ptr.h" #include "base/task/post_task.h" #include "base/values.h" #include "content/public/browser/web_ui_message_handler.h" // The handler class for SysInternals page operations. class SysInternalsMessageHandler : public content::WebUIMessageHandler { public: SysInternalsMessageHandler(); SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete; SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) = delete; ~SysInternalsMessageHandler() override; // content::WebUIMessageHandler methods: void RegisterMessages() override; private: // Handle the Javascript message |getSysInfo|. The message is sent to get // system information. void HandleGetSysInfo(const base::ListValue* args); // The callback function to handle the returning data. // // |result|: { // const: { // counterMax (Integer: The maximum value of all counters) // } // cpus (Array): [ CpuInfo... ] // memory: { // available (bytes) // total (bytes) // swapFree (bytes) // swapTotal (bytes) // pswpin (counter) // pswpout (counter) // zram: { // origDataSize (bytes) // comprDataSize (bytes) // memUsedTotal (bytes) // numReads (counter) // numWrites (counter) // } // } // // |CpuInfo|: { // kernel (counter) // user (counter) // idle (counter) // total (counter) // } // void ReplySysInfo(base::Value callback_id, base::Value result); base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this}; }; #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_
34.36
58
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n\n#include <stdint.h>\n\n#include "base/memory/weak_ptr.h"\n#include "base/task/post_task.h"\n#include "base/values.h"\n#include "content/public/browser/web_ui_message_handler.h"\n\n// The handler class for SysInternals page operations.\nclass SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;\n SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete;\n\n ~SysInternalsMessageHandler() override;\n\n // content::WebUIMessageHandler methods:\n void RegisterMessages() override;\n\n private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);\n\n // The callback function to handle the returning data.\n //\n // |result|: {\n // const: {\n // counterMax (Integer: The maximum value of all counters)\n // }\n // cpus (Array): [ CpuInfo... ]\n // memory: {\n // available (bytes)\n // total (bytes)\n // swapFree (bytes)\n // swapTotal (bytes)\n // pswpin (counter)\n // pswpout (counter)\n // zram: {\n // origDataSize (bytes)\n // comprDataSize (bytes)\n // memUsedTotal (bytes)\n // numReads (counter)\n // numWrites (counter)\n // }\n // }\n //\n // |CpuInfo|: {\n // kernel (counter)\n // user (counter)\n // idle (counter)\n // total (counter)\n // }\n //\n void ReplySysInfo(base::Value callback_id, base::Value result);\n\n base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n};\n\n#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n" (comment) "// Copyright 2017 The Chromium Authors. All rights reserved." (comment) "// Use of this source code is governed by a BSD-style license that can be" (comment) "// found in the LICENSE file." (preproc_ifdef) "#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n\n#include <stdint.h>\n\n#include "base/memory/weak_ptr.h"\n#include "base/task/post_task.h"\n#include "base/values.h"\n#include "content/public/browser/web_ui_message_handler.h"\n\n// The handler class for SysInternals page operations.\nclass SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;\n SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete;\n\n ~SysInternalsMessageHandler() override;\n\n // content::WebUIMessageHandler methods:\n void RegisterMessages() override;\n\n private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);\n\n // The callback function to handle the returning data.\n //\n // |result|: {\n // const: {\n // counterMax (Integer: The maximum value of all counters)\n // }\n // cpus (Array): [ CpuInfo... ]\n // memory: {\n // available (bytes)\n // total (bytes)\n // swapFree (bytes)\n // swapTotal (bytes)\n // pswpin (counter)\n // pswpout (counter)\n // zram: {\n // origDataSize (bytes)\n // comprDataSize (bytes)\n // memUsedTotal (bytes)\n // numReads (counter)\n // numWrites (counter)\n // }\n // }\n //\n // |CpuInfo|: {\n // kernel (counter)\n // user (counter)\n // idle (counter)\n // total (counter)\n // }\n //\n void ReplySysInfo(base::Value callback_id, base::Value result);\n\n base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_" (preproc_def) "#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n" (#define) "#define" (identifier) "CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include "base/memory/weak_ptr.h"\n" (#include) "#include" (string_literal) ""base/memory/weak_ptr.h"" (") """ (string_content) "base/memory/weak_ptr.h" (") """ (preproc_include) "#include "base/task/post_task.h"\n" (#include) "#include" (string_literal) ""base/task/post_task.h"" (") """ (string_content) "base/task/post_task.h" (") """ (preproc_include) "#include "base/values.h"\n" (#include) "#include" (string_literal) ""base/values.h"" (") """ (string_content) "base/values.h" (") """ (preproc_include) "#include "content/public/browser/web_ui_message_handler.h"\n" (#include) "#include" (string_literal) ""content/public/browser/web_ui_message_handler.h"" (") """ (string_content) "content/public/browser/web_ui_message_handler.h" (") """ (comment) "// The handler class for SysInternals page operations." (declaration) "class SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;" (type_identifier) "class" (init_declarator) "SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete" (identifier) "SysInternalsMessageHandler" (ERROR) ": public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&)" (:) ":" (identifier) "public" (identifier) "content" (:) ":" (:) ":" (identifier) "WebUIMessageHandler" ({) "{" (labeled_statement) "public:\n SysInternalsMessageHandler();" (statement_identifier) "public" (:) ":" (expression_statement) "SysInternalsMessageHandler();" (call_expression) "SysInternalsMessageHandler()" (identifier) "SysInternalsMessageHandler" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "SysInternalsMessageHandler(const SysInternalsMessageHandler&)" (identifier) "SysInternalsMessageHandler" (() "(" (type_descriptor) "const SysInternalsMessageHandler" (type_qualifier) "const" (const) "const" (type_identifier) "SysInternalsMessageHandler" (ERROR) "&" (&) "&" ()) ")" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete;" (binary_expression) "SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete" (identifier) "SysInternalsMessageHandler" (&) "&" (assignment_expression) "operator=(const SysInternalsMessageHandler&) =\n delete" (identifier) "operator" (=) "=" (cast_expression) "(const SysInternalsMessageHandler&) =\n delete" (() "(" (type_descriptor) "const SysInternalsMessageHandler" (type_qualifier) "const" (const) "const" (type_identifier) "SysInternalsMessageHandler" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "~SysInternalsMessageHandler() override;" (unary_expression) "~SysInternalsMessageHandler()" (~) "~" (call_expression) "SysInternalsMessageHandler()" (identifier) "SysInternalsMessageHandler" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (comment) "// content::WebUIMessageHandler methods:" (ERROR) "void RegisterMessages() override" (primitive_type) "void" (function_declarator) "RegisterMessages()" (identifier) "RegisterMessages" (parameter_list) "()" (() "(" ()) ")" (type_identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);" (statement_identifier) "private" (:) ":" (comment) "// Handle the Javascript message |getSysInfo|. The message is sent to get" (comment) "// system information." (declaration) "void HandleGetSysInfo(const base::ListValue* args);" (primitive_type) "void" (function_declarator) "HandleGetSysInfo(const base::ListValue* args)" (identifier) "HandleGetSysInfo" (parameter_list) "(const base::ListValue* args)" (() "(" (parameter_declaration) "const base::ListValue* args" (type_qualifier) "const" (const) "const" (type_identifier) "base" (ERROR) "::ListValue" (:) ":" (:) ":" (identifier) "ListValue" (pointer_declarator) "* args" (*) "*" (identifier) "args" ()) ")" (;) ";" (comment) "// The callback function to handle the returning data." (comment) "//" (comment) "// |result|: {" (comment) "// const: {" (comment) "// counterMax (Integer: The maximum value of all counters)" (comment) "// }" (comment) "// cpus (Array): [ CpuInfo... ]" (comment) "// memory: {" (comment) "// available (bytes)" (comment) "// total (bytes)" (comment) "// swapFree (bytes)" (comment) "// swapTotal (bytes)" (comment) "// pswpin (counter)" (comment) "// pswpout (counter)" (comment) "// zram: {" (comment) "// origDataSize (bytes)" (comment) "// comprDataSize (bytes)" (comment) "// memUsedTotal (bytes)" (comment) "// numReads (counter)" (comment) "// numWrites (counter)" (comment) "// }" (comment) "// }" (comment) "//" (comment) "// |CpuInfo|: {" (comment) "// kernel (counter)" (comment) "// user (counter)" (comment) "// idle (counter)" (comment) "// total (counter)" (comment) "// }" (comment) "//" (declaration) "void ReplySysInfo(base::Value callback_id, base::Value result);" (primitive_type) "void" (function_declarator) "ReplySysInfo(base::Value callback_id, base::Value result)" (identifier) "ReplySysInfo" (parameter_list) "(base::Value callback_id, base::Value result)" (() "(" (parameter_declaration) "base::Value callback_id" (type_identifier) "base" (ERROR) "::Value" (:) ":" (:) ":" (identifier) "Value" (identifier) "callback_id" (,) "," (parameter_declaration) "base::Value result" (type_identifier) "base" (ERROR) "::Value" (:) ":" (:) ":" (identifier) "Value" (identifier) "result" ()) ")" (;) ";" (labeled_statement) "base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n}" (statement_identifier) "base" (:) ":" (ERROR) ":WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_" (:) ":" (binary_expression) "WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_" (binary_expression) "WeakPtrFactory<SysInternalsMessageHandler" (identifier) "WeakPtrFactory" (<) "<" (identifier) "SysInternalsMessageHandler" (>) ">" (identifier) "weak_ptr_factory_" (compound_statement) "{this};\n}" ({) "{" (type_identifier) "this" (ERROR) "}" (}) "}" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_"
215
11
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.36, "nodes": 99, "errors": 0, "source_hash": "6a38e0f997c4d9980ffa479f7b55886a8c356138ac4f5f14d7868d9d5194948b", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n\n#include <stdint.h>\n\n#include \"base/memory/weak_ptr.h\"\n#include \"base/task/post_task.h\"\n#include \"base/values.h\"\n#include \"content/public/browser/web_ui_message_handler.h\"\n\n// The handler class for SysInternals page operations.\nclass SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;\n SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete;\n\n ~SysInternalsMessageHandler() override;\n\n // content::WebUIMessageHandler methods:\n void RegisterMessages() override;\n\n private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);\n\n // The callback function to handle the returning data.\n //\n // |result|: {\n // const: {\n // counterMax (Integer: The maximum value of all counters)\n // }\n // cpus (Array): [ CpuInfo... ]\n // memory: {\n // available (bytes)\n // total (bytes)\n // swapFree (bytes)\n // swapTotal (bytes)\n // pswpin (counter)\n // pswpout (counter)\n // zram: {\n // origDataSize (bytes)\n // comprDataSize (bytes)\n // memUsedTotal (bytes)\n // numReads (counter)\n // numWrites (counter)\n // }\n // }\n //\n // |CpuInfo|: {\n // kernel (counter)\n // user (counter)\n // idle (counter)\n // total (counter)\n // }\n //\n void ReplySysInfo(base::Value callback_id, base::Value result);\n\n base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 53, 59, 72, 87, 98], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 87}}, {"id": 3, "type": "preproc_def", "text": "#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 87}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"base/memory/weak_ptr.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"base/memory/weak_ptr.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 33}}, {"id": 12, "type": "preproc_include", "text": "#include \"base/task/post_task.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"base/task/post_task.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 32}}, {"id": 15, "type": "preproc_include", "text": "#include \"base/values.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"base/values.h\"", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 24}}, {"id": 18, "type": "preproc_include", "text": "#include \"content/public/browser/web_ui_message_handler.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"content/public/browser/web_ui_message_handler.h\"", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 58}}, {"id": 21, "type": "declaration", "text": "class SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;", "parent": 0, "children": [22], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 19, "column": 73}}, {"id": 22, "type": "init_declarator", "text": "SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete", "parent": 21, "children": [23, 24, 35], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 19, "column": 72}}, {"id": 23, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 22, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 32}}, {"id": 24, "type": "ERROR", "text": ": public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&)", "parent": 22, "children": [25, 26, 27, 31], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 19, "column": 63}}, {"id": 25, "type": "identifier", "text": "content", "parent": 24, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 49}}, {"id": 26, "type": "identifier", "text": "WebUIMessageHandler", "parent": 24, "children": [], "start_point": {"row": 15, "column": 51}, "end_point": {"row": 15, "column": 70}}, {"id": 27, "type": "labeled_statement", "text": "public:\n SysInternalsMessageHandler();", "parent": 24, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 17, "column": 31}}, {"id": 28, "type": "call_expression", "text": "SysInternalsMessageHandler()", "parent": 27, "children": [29, 30], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 30}}, {"id": 29, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 28, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 28}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 30}}, {"id": 31, "type": "macro_type_specifier", "text": "SysInternalsMessageHandler(const SysInternalsMessageHandler&)", "parent": 24, "children": [32, 33], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 63}}, {"id": 32, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 31, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 28}}, {"id": 33, "type": "type_descriptor", "text": "const SysInternalsMessageHandler", "parent": 31, "children": [34], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 61}}, {"id": 34, "type": "type_identifier", "text": "SysInternalsMessageHandler", "parent": 33, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 61}}, {"id": 35, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 19, "column": 64}, "end_point": {"row": 19, "column": 65}}, {"id": 36, "type": "binary_expression", "text": "SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete", "parent": 0, "children": [37, 38], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 21, "column": 12}}, {"id": 37, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 36, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 28}}, {"id": 38, "type": "assignment_expression", "text": "operator=(const SysInternalsMessageHandler&) =\n delete", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 21, "column": 12}}, {"id": 39, "type": "identifier", "text": "operator", "parent": 38, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 38}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 39}}, {"id": 41, "type": "cast_expression", "text": "(const SysInternalsMessageHandler&) =\n delete", "parent": 38, "children": [42, 44], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 21, "column": 12}}, {"id": 42, "type": "type_descriptor", "text": "const SysInternalsMessageHandler", "parent": 41, "children": [43], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 72}}, {"id": 43, "type": "type_identifier", "text": "SysInternalsMessageHandler", "parent": 42, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 72}}, {"id": 44, "type": "ERROR", "text": "=", "parent": 41, "children": [45], "start_point": {"row": 20, "column": 75}, "end_point": {"row": 20, "column": 76}}, {"id": 45, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 20, "column": 75}, "end_point": {"row": 20, "column": 76}}, {"id": 46, "type": "unary_expression", "text": "~SysInternalsMessageHandler()", "parent": 0, "children": [47, 48], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 31}}, {"id": 47, "type": "~", "text": "~", "parent": 46, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 3}}, {"id": 48, "type": "call_expression", "text": "SysInternalsMessageHandler()", "parent": 46, "children": [49, 50], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 31}}, {"id": 49, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 48, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 29}}, {"id": 50, "type": "argument_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 31}}, {"id": 51, "type": "ERROR", "text": "override", "parent": 0, "children": [52], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 40}}, {"id": 52, "type": "identifier", "text": "override", "parent": 51, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 40}}, {"id": 53, "type": "ERROR", "text": "void RegisterMessages() override", "parent": 0, "children": [54, 55, 58], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 34}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 55, "type": "function_declarator", "text": "RegisterMessages()", "parent": 53, "children": [56, 57], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 25}}, {"id": 56, "type": "identifier", "text": "RegisterMessages", "parent": 55, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 23}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 25}}, {"id": 58, "type": "type_identifier", "text": "override", "parent": 53, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 34}}, {"id": 59, "type": "labeled_statement", "text": "private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);", "parent": 0, "children": [60], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 31, "column": 53}}, {"id": 60, "type": "declaration", "text": "void HandleGetSysInfo(const base::ListValue* args);", "parent": 59, "children": [61, 62], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 53}}, {"id": 61, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 62, "type": "function_declarator", "text": "HandleGetSysInfo(const base::ListValue* args)", "parent": 60, "children": [63, 64], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 52}}, {"id": 63, "type": "identifier", "text": "HandleGetSysInfo", "parent": 62, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 23}}, {"id": 64, "type": "parameter_list", "text": "(const base::ListValue* args)", "parent": 62, "children": [65], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 52}}, {"id": 65, "type": "parameter_declaration", "text": "const base::ListValue* args", "parent": 64, "children": [66, 67, 69], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 51}}, {"id": 66, "type": "type_identifier", "text": "base", "parent": 65, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 34}}, {"id": 67, "type": "ERROR", "text": "::ListValue", "parent": 65, "children": [68], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 45}}, {"id": 68, "type": "identifier", "text": "ListValue", "parent": 67, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 45}}, {"id": 69, "type": "pointer_declarator", "text": "* args", "parent": 65, "children": [70, 71], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 51}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 46}}, {"id": 71, "type": "identifier", "text": "args", "parent": 69, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 51}}, {"id": 72, "type": "declaration", "text": "void ReplySysInfo(base::Value callback_id, base::Value result);", "parent": 0, "children": [73, 74], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 65}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 6}}, {"id": 74, "type": "function_declarator", "text": "ReplySysInfo(base::Value callback_id, base::Value result)", "parent": 72, "children": [75, 76], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 64}}, {"id": 75, "type": "identifier", "text": "ReplySysInfo", "parent": 74, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 19}}, {"id": 76, "type": "parameter_list", "text": "(base::Value callback_id, base::Value result)", "parent": 74, "children": [77, 82], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 64}}, {"id": 77, "type": "parameter_declaration", "text": "base::Value callback_id", "parent": 76, "children": [78, 79, 81], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 43}}, {"id": 78, "type": "type_identifier", "text": "base", "parent": 77, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 24}}, {"id": 79, "type": "ERROR", "text": "::Value", "parent": 77, "children": [80], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 31}}, {"id": 80, "type": "identifier", "text": "Value", "parent": 79, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 31}}, {"id": 81, "type": "identifier", "text": "callback_id", "parent": 77, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 43}}, {"id": 82, "type": "parameter_declaration", "text": "base::Value result", "parent": 76, "children": [83, 84, 86], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 63}}, {"id": 83, "type": "type_identifier", "text": "base", "parent": 82, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 49}}, {"id": 84, "type": "ERROR", "text": "::Value", "parent": 82, "children": [85], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 56}}, {"id": 85, "type": "identifier", "text": "Value", "parent": 84, "children": [], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 56}}, {"id": 86, "type": "identifier", "text": "result", "parent": 82, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 63}}, {"id": 87, "type": "labeled_statement", "text": "base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n}", "parent": 0, "children": [88, 89], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 66, "column": 1}}, {"id": 88, "type": "statement_identifier", "text": "base", "parent": 87, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 89, "type": "ERROR", "text": ":WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_", "parent": 87, "children": [90], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 68}}, {"id": 90, "type": "binary_expression", "text": "WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_", "parent": 89, "children": [91, 95, 96], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 68}}, {"id": 91, "type": "binary_expression", "text": "WeakPtrFactory<SysInternalsMessageHandler", "parent": 90, "children": [92, 93, 94], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 49}}, {"id": 92, "type": "identifier", "text": "WeakPtrFactory", "parent": 91, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 22}}, {"id": 93, "type": "<", "text": "<", "parent": 91, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 94, "type": "identifier", "text": "SysInternalsMessageHandler", "parent": 91, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 49}}, {"id": 95, "type": ">", "text": ">", "parent": 90, "children": [], "start_point": {"row": 65, "column": 49}, "end_point": {"row": 65, "column": 50}}, {"id": 96, "type": "identifier", "text": "weak_ptr_factory_", "parent": 90, "children": [], "start_point": {"row": 65, "column": 51}, "end_point": {"row": 65, "column": 68}}, {"id": 97, "type": "type_identifier", "text": "this", "parent": 87, "children": [], "start_point": {"row": 65, "column": 69}, "end_point": {"row": 65, "column": 73}}, {"id": 98, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}]}, "node_categories": {"declarations": {"functions": [55, 62, 74], "variables": [21, 60, 65, 72, 77, 82], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [28, 36, 41, 46, 48, 90, 91], "assignments": [38], "loops": [], "conditionals": [0, 1, 2, 5, 23, 25, 26, 29, 31, 32, 34, 37, 39, 43, 49, 52, 56, 58, 63, 66, 68, 71, 75, 78, 80, 81, 83, 85, 86, 88, 92, 94, 96, 97, 98], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "RegisterMessages()"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "HandleGetSysInfo(const base::ListValue* args)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "ReplySysInfo(base::Value callback_id, base::Value result)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"base/memory/weak_ptr.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"base/task/post_task.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"base/values.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"content/public/browser/web_ui_message_handler.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n\n#include <stdint.h>\n\n#include \"base/memory/weak_ptr.h\"\n#include \"base/task/post_task.h\"\n#include \"base/values.h\"\n#include \"content/public/browser/web_ui_message_handler.h\"\n\n// The handler class for SysInternals page operations.\nclass SysInternalsMessageHandler : public content::WebUIMessageHandler {\n public:\n SysInternalsMessageHandler();\n\n SysInternalsMessageHandler(const SysInternalsMessageHandler&) = delete;\n SysInternalsMessageHandler& operator=(const SysInternalsMessageHandler&) =\n delete;\n\n ~SysInternalsMessageHandler() override;\n\n // content::WebUIMessageHandler methods:\n void RegisterMessages() override;\n\n private:\n // Handle the Javascript message |getSysInfo|. The message is sent to get\n // system information.\n void HandleGetSysInfo(const base::ListValue* args);\n\n // The callback function to handle the returning data.\n //\n // |result|: {\n // const: {\n // counterMax (Integer: The maximum value of all counters)\n // }\n // cpus (Array): [ CpuInfo... ]\n // memory: {\n // available (bytes)\n // total (bytes)\n // swapFree (bytes)\n // swapTotal (bytes)\n // pswpin (counter)\n // pswpout (counter)\n // zram: {\n // origDataSize (bytes)\n // comprDataSize (bytes)\n // memUsedTotal (bytes)\n // numReads (counter)\n // numWrites (counter)\n // }\n // }\n //\n // |CpuInfo|: {\n // kernel (counter)\n // user (counter)\n // idle (counter)\n // total (counter)\n // }\n //\n void ReplySysInfo(base::Value callback_id, base::Value result);\n\n base::WeakPtrFactory<SysInternalsMessageHandler> weak_ptr_factory_{this};\n};\n\n#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n"}
81,045
c
#pragma once #include <iostream> #include "cocos2d.h" #include "BmobSdk.h" USING_NS_CC; class Gift : public BmobObject { public: Gift(); virtual ~Gift(); static void queryOneByGiftId(int giftId, const std::function<void(const void* data)>& onSuccessFunc, const std::function<void(int code, const void* data)>& onErrorFunc); static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array); CC_SYNTHESIZE(int, m_iGiftId, GiftId); CC_SYNTHESIZE(std::string, m_giftName, GiftName); CC_SYNTHESIZE(int, m_iCount, Count); };
29.33
18
(translation_unit) "#pragma once\n\n#include <iostream>\n#include "cocos2d.h"\n#include "BmobSdk.h"\n\nUSING_NS_CC;\n\nclass Gift : public BmobObject\n{\npublic:\n Gift();\n virtual ~Gift();\n\n static void queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)>& onErrorFunc);\n\n static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);\n\n CC_SYNTHESIZE(int, m_iGiftId, GiftId);\n CC_SYNTHESIZE(std::string, m_giftName, GiftName);\n CC_SYNTHESIZE(int, m_iCount, Count);\n\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include "cocos2d.h"\n" (#include) "#include" (string_literal) ""cocos2d.h"" (") """ (string_content) "cocos2d.h" (") """ (preproc_include) "#include "BmobSdk.h"\n" (#include) "#include" (string_literal) ""BmobSdk.h"" (") """ (string_content) "BmobSdk.h" (") """ (expression_statement) "USING_NS_CC;" (identifier) "USING_NS_CC" (;) ";" (function_definition) "class Gift : public BmobObject\n{\npublic:\n Gift();\n virtual ~Gift();\n\n static void queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)>& onErrorFunc);\n\n static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);\n\n CC_SYNTHESIZE(int, m_iGiftId, GiftId);\n CC_SYNTHESIZE(std::string, m_giftName, GiftName);\n CC_SYNTHESIZE(int, m_iCount, Count);\n\n}" (type_identifier) "class" (ERROR) "Gift : public" (identifier) "Gift" (:) ":" (identifier) "public" (identifier) "BmobObject" (compound_statement) "{\npublic:\n Gift();\n virtual ~Gift();\n\n static void queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)>& onErrorFunc);\n\n static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);\n\n CC_SYNTHESIZE(int, m_iGiftId, GiftId);\n CC_SYNTHESIZE(std::string, m_giftName, GiftName);\n CC_SYNTHESIZE(int, m_iCount, Count);\n\n}" ({) "{" (labeled_statement) "public:\n Gift();" (statement_identifier) "public" (:) ":" (expression_statement) "Gift();" (call_expression) "Gift()" (identifier) "Gift" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~Gift();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Gift()" (identifier) "Gift" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "static void queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)>& onErrorFunc)" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)>& onErrorFunc" (identifier) "queryOneByGiftId" (parameter_list) "(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::function<void(int code, const void* data)" (() "(" (ERROR) "int giftId,\n const std::function<" (parameter_declaration) "int giftId" (primitive_type) "int" (identifier) "giftId" (,) "," (parameter_declaration) "const std::function" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "function" (<) "<" (parameter_declaration) "void(const void* data)" (primitive_type) "void" (abstract_function_declarator) "(const void* data)" (parameter_list) "(const void* data)" (() "(" (parameter_declaration) "const void* data" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (ERROR) ">& onSuccessFunc" (>) ">" (&) "&" (identifier) "onSuccessFunc" (,) "," (parameter_declaration) "const std::function<void(int code" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::function<void(int" (:) ":" (:) ":" (identifier) "function" (<) "<" (primitive_type) "void" (() "(" (primitive_type) "int" (identifier) "code" (,) "," (parameter_declaration) "const void* data" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (ERROR) ">&" (>) ">" (&) "&" (identifier) "onErrorFunc" ()) ")" (expression_statement) ";" (;) ";" (declaration) "static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "parseJosnToArray(const char* const jsonString, Vector<Gift*>& array)" (identifier) "parseJosnToArray" (parameter_list) "(const char* const jsonString, Vector<Gift*>& array)" (() "(" (parameter_declaration) "const char* const jsonString" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* const jsonString" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "jsonString" (,) "," (parameter_declaration) "Vector<Gift*>& array" (type_identifier) "Vector" (ERROR) "<Gift*>&" (<) "<" (identifier) "Gift" (*) "*" (>) ">" (&) "&" (identifier) "array" ()) ")" (;) ";" (expression_statement) "CC_SYNTHESIZE(int, m_iGiftId, GiftId);" (call_expression) "CC_SYNTHESIZE(int, m_iGiftId, GiftId)" (identifier) "CC_SYNTHESIZE" (argument_list) "(int, m_iGiftId, GiftId)" (() "(" (identifier) "int" (,) "," (identifier) "m_iGiftId" (,) "," (identifier) "GiftId" ()) ")" (;) ";" (labeled_statement) "CC_SYNTHESIZE(std::string, m_giftName, GiftName);" (statement_identifier) "CC_SYNTHESIZE" (ERROR) "(std:" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string, m_giftName, GiftName);" (comma_expression) "string, m_giftName, GiftName" (identifier) "string" (,) "," (comma_expression) "m_giftName, GiftName" (identifier) "m_giftName" (,) "," (identifier) "GiftName" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "CC_SYNTHESIZE(int, m_iCount, Count);" (call_expression) "CC_SYNTHESIZE(int, m_iCount, Count)" (identifier) "CC_SYNTHESIZE" (argument_list) "(int, m_iCount, Count)" (() "(" (identifier) "int" (,) "," (identifier) "m_iCount" (,) "," (identifier) "Count" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
195
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.33, "nodes": 107, "errors": 0, "source_hash": "fae082b9179fcb36a65ebebfa98d3a2513354f48f092b4e329fd21178bfa4779", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <iostream>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<iostream>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"cocos2d.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"cocos2d.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"BmobSdk.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"BmobSdk.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "identifier", "text": "USING_NS_CC", "parent": null, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 11}}, {"id": 13, "type": "function_definition", "text": "class Gift : public BmobObject\n{\npublic:\n\tGift();\n\tvirtual ~Gift();\n\n\tstatic void queryOneByGiftId(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst std::function<void(int code, const void* data)>& onErrorFunc);\n\n\tstatic bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);\n\n\tCC_SYNTHESIZE(int, m_iGiftId, GiftId);\n\tCC_SYNTHESIZE(std::string, m_giftName, GiftName);\n\tCC_SYNTHESIZE(int, m_iCount, Count);\n\n}", "parent": null, "children": [14, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 14, "type": "ERROR", "text": "Gift : public", "parent": 13, "children": [15], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 19}}, {"id": 15, "type": "identifier", "text": "Gift", "parent": 14, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 10}}, {"id": 16, "type": "identifier", "text": "BmobObject", "parent": 13, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 30}}, {"id": 17, "type": "labeled_statement", "text": "public:\n\tGift();", "parent": 13, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 18, "type": "call_expression", "text": "Gift()", "parent": 17, "children": [19, 20], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 7}}, {"id": 19, "type": "identifier", "text": "Gift", "parent": 18, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 5}}, {"id": 20, "type": "argument_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 7}}, {"id": 21, "type": "declaration", "text": "virtual ~Gift();", "parent": 13, "children": [22, 23, 25], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 17}}, {"id": 22, "type": "type_identifier", "text": "virtual", "parent": 21, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 8}}, {"id": 23, "type": "ERROR", "text": "~", "parent": 21, "children": [24], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 24, "type": "~", "text": "~", "parent": 23, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 25, "type": "function_declarator", "text": "Gift()", "parent": 21, "children": [26, 27], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 16}}, {"id": 26, "type": "identifier", "text": "Gift", "parent": 25, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 27, "type": "parameter_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 16}}, {"id": 28, "type": "ERROR", "text": "static void queryOneByGiftId(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst std::function<void(int code, const void* data)>& onErrorFunc)", "parent": 13, "children": [29, 30], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 16, "column": 69}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 30, "type": "function_declarator", "text": "queryOneByGiftId(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst std::function<void(int code, const void* data)>& onErrorFunc", "parent": 28, "children": [31, 32, 64, 66], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 16, "column": 68}}, {"id": 31, "type": "identifier", "text": "queryOneByGiftId", "parent": 30, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 29}}, {"id": 32, "type": "parameter_list", "text": "(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst std::function<void(int code, const void* data)", "parent": 30, "children": [33, 40, 49, 52, 59], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 16, "column": 54}}, {"id": 33, "type": "ERROR", "text": "int giftId,\n\t\tconst std::function<", "parent": 32, "children": [34, 37, 39], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 15, "column": 22}}, {"id": 34, "type": "parameter_declaration", "text": "int giftId", "parent": 33, "children": [35, 36], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 40}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 33}}, {"id": 36, "type": "identifier", "text": "giftId", "parent": 34, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 40}}, {"id": 37, "type": "parameter_declaration", "text": "const std::function", "parent": 33, "children": [38], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 21}}, {"id": 38, "type": "type_identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 11}}, {"id": 39, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 40, "type": "parameter_declaration", "text": "void(const void* data)", "parent": 32, "children": [41, 42], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 44}}, {"id": 41, "type": "primitive_type", "text": "void", "parent": 40, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 26}}, {"id": 42, "type": "abstract_function_declarator", "text": "(const void* data)", "parent": 40, "children": [43], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 44}}, {"id": 43, "type": "parameter_list", "text": "(const void* data)", "parent": 42, "children": [44], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 44}}, {"id": 44, "type": "parameter_declaration", "text": "const void* data", "parent": 43, "children": [45, 46], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 43}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 37}}, {"id": 46, "type": "pointer_declarator", "text": "* data", "parent": 44, "children": [47, 48], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 43}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 38}}, {"id": 48, "type": "identifier", "text": "data", "parent": 46, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 43}}, {"id": 49, "type": "ERROR", "text": ">& onSuccessFunc", "parent": 32, "children": [50, 51], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 60}}, {"id": 50, "type": ">", "text": ">", "parent": 49, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 45}}, {"id": 51, "type": "identifier", "text": "onSuccessFunc", "parent": 49, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 60}}, {"id": 52, "type": "parameter_declaration", "text": "const std::function<void(int code", "parent": 32, "children": [53, 54, 58], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 35}}, {"id": 53, "type": "type_identifier", "text": "std", "parent": 52, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 11}}, {"id": 54, "type": "ERROR", "text": "::function<void(int", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 30}}, {"id": 55, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 30}}, {"id": 58, "type": "identifier", "text": "code", "parent": 52, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 35}}, {"id": 59, "type": "parameter_declaration", "text": "const void* data", "parent": 32, "children": [60, 61], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 53}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 47}}, {"id": 61, "type": "pointer_declarator", "text": "* data", "parent": 59, "children": [62, 63], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 53}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 48}}, {"id": 63, "type": "identifier", "text": "data", "parent": 61, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 53}}, {"id": 64, "type": "ERROR", "text": ">&", "parent": 30, "children": [65], "start_point": {"row": 16, "column": 54}, "end_point": {"row": 16, "column": 56}}, {"id": 65, "type": ">", "text": ">", "parent": 64, "children": [], "start_point": {"row": 16, "column": 54}, "end_point": {"row": 16, "column": 55}}, {"id": 66, "type": "identifier", "text": "onErrorFunc", "parent": 30, "children": [], "start_point": {"row": 16, "column": 57}, "end_point": {"row": 16, "column": 68}}, {"id": 67, "type": "declaration", "text": "static bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);", "parent": 13, "children": [68, 69], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 82}}, {"id": 68, "type": "primitive_type", "text": "bool", "parent": 67, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 69, "type": "function_declarator", "text": "parseJosnToArray(const char* const jsonString, Vector<Gift*>& array)", "parent": 67, "children": [70, 71], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 81}}, {"id": 70, "type": "identifier", "text": "parseJosnToArray", "parent": 69, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 29}}, {"id": 71, "type": "parameter_list", "text": "(const char* const jsonString, Vector<Gift*>& array)", "parent": 69, "children": [72, 77], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 81}}, {"id": 72, "type": "parameter_declaration", "text": "const char* const jsonString", "parent": 71, "children": [73, 74], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 58}}, {"id": 73, "type": "primitive_type", "text": "char", "parent": 72, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 40}}, {"id": 74, "type": "pointer_declarator", "text": "* const jsonString", "parent": 72, "children": [75, 76], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 58}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 41}}, {"id": 76, "type": "identifier", "text": "jsonString", "parent": 74, "children": [], "start_point": {"row": 18, "column": 48}, "end_point": {"row": 18, "column": 58}}, {"id": 77, "type": "parameter_declaration", "text": "Vector<Gift*>& array", "parent": 71, "children": [78, 79, 84], "start_point": {"row": 18, "column": 60}, "end_point": {"row": 18, "column": 80}}, {"id": 78, "type": "type_identifier", "text": "Vector", "parent": 77, "children": [], "start_point": {"row": 18, "column": 60}, "end_point": {"row": 18, "column": 66}}, {"id": 79, "type": "ERROR", "text": "<Gift*>&", "parent": 77, "children": [80, 81, 82, 83], "start_point": {"row": 18, "column": 66}, "end_point": {"row": 18, "column": 74}}, {"id": 80, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 18, "column": 66}, "end_point": {"row": 18, "column": 67}}, {"id": 81, "type": "identifier", "text": "Gift", "parent": 79, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 71}}, {"id": 82, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 18, "column": 71}, "end_point": {"row": 18, "column": 72}}, {"id": 83, "type": ">", "text": ">", "parent": 79, "children": [], "start_point": {"row": 18, "column": 72}, "end_point": {"row": 18, "column": 73}}, {"id": 84, "type": "identifier", "text": "array", "parent": 77, "children": [], "start_point": {"row": 18, "column": 75}, "end_point": {"row": 18, "column": 80}}, {"id": 85, "type": "call_expression", "text": "CC_SYNTHESIZE(int, m_iGiftId, GiftId)", "parent": 13, "children": [86, 87], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 38}}, {"id": 86, "type": "identifier", "text": "CC_SYNTHESIZE", "parent": 85, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 14}}, {"id": 87, "type": "argument_list", "text": "(int, m_iGiftId, GiftId)", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 38}}, {"id": 88, "type": "identifier", "text": "int", "parent": 87, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 18}}, {"id": 89, "type": "identifier", "text": "m_iGiftId", "parent": 87, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 29}}, {"id": 90, "type": "identifier", "text": "GiftId", "parent": 87, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 37}}, {"id": 91, "type": "labeled_statement", "text": "CC_SYNTHESIZE(std::string, m_giftName, GiftName);", "parent": 13, "children": [92, 93], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 50}}, {"id": 92, "type": "statement_identifier", "text": "CC_SYNTHESIZE", "parent": 91, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 14}}, {"id": 93, "type": "ERROR", "text": "(std:", "parent": 91, "children": [94], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 19}}, {"id": 94, "type": "type_descriptor", "text": "std", "parent": 93, "children": [95], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 18}}, {"id": 95, "type": "type_identifier", "text": "std", "parent": 94, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 18}}, {"id": 96, "type": "comma_expression", "text": "string, m_giftName, GiftName", "parent": 91, "children": [97, 98], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 48}}, {"id": 97, "type": "identifier", "text": "string", "parent": 96, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 26}}, {"id": 98, "type": "comma_expression", "text": "m_giftName, GiftName", "parent": 96, "children": [99, 100], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 48}}, {"id": 99, "type": "identifier", "text": "m_giftName", "parent": 98, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 38}}, {"id": 100, "type": "identifier", "text": "GiftName", "parent": 98, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 48}}, {"id": 101, "type": "call_expression", "text": "CC_SYNTHESIZE(int, m_iCount, Count)", "parent": 13, "children": [102, 103], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 36}}, {"id": 102, "type": "identifier", "text": "CC_SYNTHESIZE", "parent": 101, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 14}}, {"id": 103, "type": "argument_list", "text": "(int, m_iCount, Count)", "parent": 101, "children": [104, 105, 106], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 36}}, {"id": 104, "type": "identifier", "text": "int", "parent": 103, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 18}}, {"id": 105, "type": "identifier", "text": "m_iCount", "parent": 103, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 28}}, {"id": 106, "type": "identifier", "text": "Count", "parent": 103, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 35}}]}, "node_categories": {"declarations": {"functions": [13, 25, 30, 42, 69], "variables": [21, 34, 37, 40, 44, 52, 59, 67, 72, 77], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [18, 85, 96, 98, 101], "assignments": [], "loops": [], "conditionals": [12, 15, 16, 19, 22, 26, 31, 36, 38, 48, 51, 53, 58, 63, 66, 70, 76, 78, 81, 84, 86, 88, 89, 90, 92, 95, 97, 99, 100, 102, 104, 105, 106], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "Gift", "text_snippet": "class Gift : public BmobObject\n{\npublic:\n\tGift();\n\tvirtual ~Gift();\n\n\tstatic void queryOneByGiftId(i"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "Gift()"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "queryOneByGiftId(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst s"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "(const void* data)"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "parseJosnToArray(const char* const jsonString, Vector<Gift*>& array)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <iostream>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"cocos2d.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"BmobSdk.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <iostream>\n#include \"cocos2d.h\"\n#include \"BmobSdk.h\"\n\nUSING_NS_CC;\n\nclass Gift : public BmobObject\n{\npublic:\n\tGift();\n\tvirtual ~Gift();\n\n\tstatic void queryOneByGiftId(int giftId,\n\t\tconst std::function<void(const void* data)>& onSuccessFunc,\n\t\tconst std::function<void(int code, const void* data)>& onErrorFunc);\n\n\tstatic bool parseJosnToArray(const char* const jsonString, Vector<Gift*>& array);\n\n\tCC_SYNTHESIZE(int, m_iGiftId, GiftId);\n\tCC_SYNTHESIZE(std::string, m_giftName, GiftName);\n\tCC_SYNTHESIZE(int, m_iCount, Count);\n\n};\n"}
81,046
c
#include "geminc.h" #include "gemprm.h" #ifdef UNDERSCORE #define vwind vwind_ #define vad_colors vad_colors_ #define vad_line vad_line_ #define vad_color_init vad_color_init_ #define vad_rms_colors vad_rms_colors_ #define vad_garea vad_garea_ #define vad_imcbar vad_imcbar_ #define in_wind in_wind_ #define gsmode gsmode_ #define gsgmgn gsgmgn_ #endif #define MAX_X 2047.0 #define MIN_X -2048.0 #define MAX_PX 511. #define MIN_PX 0. float XMAX=MAX_X, XMIN=MIN_X; float radar_clat, radar_clon; int graphic_color=1; int line_color, line_type, line_width; /* * Default vad colors as specified by OFCM FMH No. 11 */ int vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6}; void vad_color_init () { int ier, bsize=LLMXLN, inum; char buf[LLMXLN], *cpos; FILE *fp; fp = cfl_tbop ( "gpvad.config", "unidata", &ier ); if (fp == NULL) return; cfl_trln ( fp, bsize, buf, &ier); while ( ier == 0 ) { if ( strncmp(buf,"COLORS",6) == 0) { cpos = strchr(buf, ':'); if ( cpos != NULL ) { cpos++; cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier); cfl_clos ( fp, &ier ); return; } else printf("Invalid color configuration line %s\n",buf); } cfl_trln ( fp, bsize, buf, &ier); } cfl_clos ( fp, &ier ); } void vad_colors ( int *icolor, int *ier) { *ier = 0; graphic_color = *icolor; } void vad_line ( int *icolor, int *itype, int *iwidth, int *ier) { *ier = 0; line_color = *icolor; line_type = *itype; line_width = *iwidth; } void vad_rms_colors ( int *NFLVL, int ifcolr[] ) { int i; for ( i = 0; i < *NFLVL; i++ ) ifcolr[i] = vadcols[i]; } int vad_setcol ( int ival) { int ier; if ( ( ival < 0 )||(ival > 15) ) { printf("unexpected VAD color index %d\n",ival); ival = 15; } gscolr ( &vadcols[ival], &ier); } char isub_garea[LLMXLN]; void vad_garea ( char *garea, int *lenstr, int *ier) { strncpy(isub_garea, garea, *lenstr); isub_garea[*lenstr] = '\0'; cst_lcuc ( isub_garea, isub_garea, ier ); return; } char image_imcbar[LLMXLN]; void vad_imcbar ( char *imcbar, int *lenstr, int *ier) { strncpy(image_imcbar, imcbar, *lenstr); image_imcbar[*lenstr] = '\0'; *ier = 0; return; } int read_int ( unsigned char *x ) { int ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3]; return (ival); } short read_short ( unsigned char *x ) { short ival = ( x[0] << 8 ) | x[1]; return (ival); } void vad_driver ( unsigned char *buf, int *ioff, int *iret) { int bflip, i, ij, ier; signed short *sbytes,*s1,*s2; int *ibytes; int ival; off_t k; int block_len, nlayers, ilevel; int block_offs[3]; int packet_code, pblen, poff; int icnt, boff; int product_message_code; int np, i1,i2,j1,j2, ixoff, iyoff; float X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2]; float xmin_sav, xmax_sav; int imark, imkhw, imkwid; float szmark; char sys_m[]="M", sys_n[]="N", *cstr; float rmargin[]={4.0, 4.0, 4.0, 2.0}; *iret = 0; /* ** Message header block */ product_message_code = (int)read_short(buf); switch (product_message_code) { case 48: i = 2; gsmode ( &i, &ier); /* set graph margins */ gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier ); XMAX = MAX_PX; XMIN = MIN_PX; break; default: XMAX = MAX_X; XMIN = MIN_X; } radar_clat = (float)read_int (buf + 20) / 1000.; radar_clon = (float)read_int (buf + 24) / 1000.; #ifdef DEBUG printf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN); k = 0; for(i=0;i<9;i++) { sbytes = (signed short *)(buf+k); printf("sbytes %d %d\n",i+1,(int)(*sbytes)); k = k + 2; } /* ** Product Description block */ for(i=0;i<51;i++) { sbytes = (signed short *)(buf+k); printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes)); k = k + 2; } #endif block_offs[0] = read_int ( buf + 108 ); block_offs[1] = read_int ( buf + 112 ); block_offs[2] = read_int ( buf + 116 ); for ( i = 0; i < 3; i++ ) if ( block_offs[i] != 0 ) { /*printf("look block_offs %d block1 %d block2 %d\n", i, (int)read_short(buf + (block_offs[i] * 2) + 0), (int)read_short(buf + (block_offs[i] * 2) + 2) );*/ switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) ) { case 1: decode_symbol ( buf, block_offs[i] ); break; case 2: xmin_sav = XMIN; xmax_sav = XMAX; XMIN = MIN_PX; XMAX = MAX_PX; decode_alpha_graphic ( buf + (block_offs[i] * 2) ); XMIN = xmin_sav; XMAX = xmax_sav; break; case 3: decode_tabular ( buf + (block_offs[i] * 2) ); break; default: printf("unknown block to decode %d\n", (int)read_short(buf + (block_offs[i] * 2) + 2) ); } } switch (product_message_code) { case 48: i = 1; gsmode (&i, &ier); break; /*default: printf("stay in map mode\n");*/ } }
22.15
207
(translation_unit) "#include "geminc.h"\n#include "gemprm.h"\n\n#ifdef UNDERSCORE\n#define vwind vwind_\n#define vad_colors vad_colors_\n#define vad_line vad_line_\n#define vad_color_init vad_color_init_\n#define vad_rms_colors vad_rms_colors_\n#define vad_garea vad_garea_\n#define vad_imcbar vad_imcbar_\n#define in_wind in_wind_\n#define gsmode gsmode_\n#define gsgmgn gsgmgn_\n#endif\n\n#define MAX_X 2047.0\n#define MIN_X -2048.0\n\n#define MAX_PX 511.\n#define MIN_PX 0.\n\nfloat XMAX=MAX_X, XMIN=MIN_X;\nfloat radar_clat, radar_clon;\nint graphic_color=1;\nint line_color, line_type, line_width;\n\n/*\n * Default vad colors as specified by OFCM FMH No. 11\n */ \n\nint vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6};\n\nvoid vad_color_init ()\n{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_tbop ( "gpvad.config", "unidata", &ier );\nif (fp == NULL) return;\n\ncfl_trln ( fp, bsize, buf, &ier);\nwhile ( ier == 0 )\n {\n if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }\n\ncfl_clos ( fp, &ier );\n\n}\n\nvoid vad_colors ( int *icolor, int *ier)\n{\n*ier = 0;\ngraphic_color = *icolor;\n}\n\nvoid vad_line ( int *icolor, int *itype, int *iwidth, int *ier)\n{\n*ier = 0;\nline_color = *icolor;\nline_type = *itype;\nline_width = *iwidth;\n}\n\nvoid vad_rms_colors ( int *NFLVL, int ifcolr[] )\n{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];\n}\n\nint vad_setcol ( int ival)\n{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf("unexpected VAD color index %d\n",ival);\n ival = 15;\n }\ngscolr ( &vadcols[ival], &ier);\n}\n\nchar isub_garea[LLMXLN];\n\nvoid vad_garea ( char *garea, int *lenstr, int *ier)\n{\nstrncpy(isub_garea, garea, *lenstr);\nisub_garea[*lenstr] = '\0';\ncst_lcuc ( isub_garea, isub_garea, ier );\nreturn;\n}\n\nchar image_imcbar[LLMXLN];\n\nvoid vad_imcbar ( char *imcbar, int *lenstr, int *ier)\n{\nstrncpy(image_imcbar, imcbar, *lenstr);\nimage_imcbar[*lenstr] = '\0';\n*ier = 0;\nreturn;\n}\n\nint read_int ( unsigned char *x )\n{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];\nreturn (ival);\n}\n\nshort read_short ( unsigned char *x )\n{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}\n\nvoid vad_driver ( unsigned char *buf, int *ioff, int *iret)\n{\nint bflip, i, ij, ier;\nsigned short *sbytes,*s1,*s2;\nint *ibytes;\nint ival;\noff_t k;\n\nint block_len, nlayers, ilevel;\nint block_offs[3];\nint packet_code, pblen, poff;\nint icnt, boff;\nint product_message_code;\n\nint np, i1,i2,j1,j2, ixoff, iyoff;\nfloat X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];\nfloat xmin_sav, xmax_sav;\nint imark, imkhw, imkwid;\nfloat szmark;\nchar sys_m[]="M", sys_n[]="N", *cstr;\nfloat rmargin[]={4.0, 4.0, 4.0, 2.0};\n\n\n*iret = 0;\n\n/*\n** Message header block\n */\nproduct_message_code = (int)read_short(buf);\nswitch (product_message_code)\n {\n case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;\n default:\n XMAX = MAX_X;\n XMIN = MIN_X;\n }\n\nradar_clat = (float)read_int (buf + 20) / 1000.;\nradar_clon = (float)read_int (buf + 24) / 1000.;\n\n#ifdef DEBUG\nprintf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif\n\nblock_offs[0] = read_int ( buf + 108 );\nblock_offs[1] = read_int ( buf + 112 );\nblock_offs[2] = read_int ( buf + 116 );\n\nfor ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }\n\n\nswitch (product_message_code)\n {\n case 48:\n i = 1;\n gsmode (&i, &ier);\n break;\n /*default:\n printf("stay in map mode\n");*/\n }\n\n\n}\n\n\n" (preproc_include) "#include "geminc.h"\n" (#include) "#include" (string_literal) ""geminc.h"" (") """ (string_content) "geminc.h" (") """ (preproc_include) "#include "gemprm.h"\n" (#include) "#include" (string_literal) ""gemprm.h"" (") """ (string_content) "gemprm.h" (") """ (preproc_ifdef) "#ifdef UNDERSCORE\n#define vwind vwind_\n#define vad_colors vad_colors_\n#define vad_line vad_line_\n#define vad_color_init vad_color_init_\n#define vad_rms_colors vad_rms_colors_\n#define vad_garea vad_garea_\n#define vad_imcbar vad_imcbar_\n#define in_wind in_wind_\n#define gsmode gsmode_\n#define gsgmgn gsgmgn_\n#endif" (#ifdef) "#ifdef" (identifier) "UNDERSCORE" (preproc_def) "#define vwind vwind_\n" (#define) "#define" (identifier) "vwind" (preproc_arg) "vwind_" (preproc_def) "#define vad_colors vad_colors_\n" (#define) "#define" (identifier) "vad_colors" (preproc_arg) "vad_colors_" (preproc_def) "#define vad_line vad_line_\n" (#define) "#define" (identifier) "vad_line" (preproc_arg) "vad_line_" (preproc_def) "#define vad_color_init vad_color_init_\n" (#define) "#define" (identifier) "vad_color_init" (preproc_arg) "vad_color_init_" (preproc_def) "#define vad_rms_colors vad_rms_colors_\n" (#define) "#define" (identifier) "vad_rms_colors" (preproc_arg) "vad_rms_colors_" (preproc_def) "#define vad_garea vad_garea_\n" (#define) "#define" (identifier) "vad_garea" (preproc_arg) "vad_garea_" (preproc_def) "#define vad_imcbar vad_imcbar_\n" (#define) "#define" (identifier) "vad_imcbar" (preproc_arg) "vad_imcbar_" (preproc_def) "#define in_wind in_wind_\n" (#define) "#define" (identifier) "in_wind" (preproc_arg) "in_wind_" (preproc_def) "#define gsmode gsmode_\n" (#define) "#define" (identifier) "gsmode" (preproc_arg) "gsmode_" (preproc_def) "#define gsgmgn gsgmgn_\n" (#define) "#define" (identifier) "gsgmgn" (preproc_arg) "gsgmgn_" (#endif) "#endif" (preproc_def) "#define MAX_X 2047.0\n" (#define) "#define" (identifier) "MAX_X" (preproc_arg) "2047.0" (preproc_def) "#define MIN_X -2048.0\n" (#define) "#define" (identifier) "MIN_X" (preproc_arg) "-2048.0" (preproc_def) "#define MAX_PX 511.\n" (#define) "#define" (identifier) "MAX_PX" (preproc_arg) "511." (preproc_def) "#define MIN_PX 0.\n" (#define) "#define" (identifier) "MIN_PX" (preproc_arg) "0." (declaration) "float XMAX=MAX_X, XMIN=MIN_X;" (primitive_type) "float" (init_declarator) "XMAX=MAX_X" (identifier) "XMAX" (=) "=" (identifier) "MAX_X" (,) "," (init_declarator) "XMIN=MIN_X" (identifier) "XMIN" (=) "=" (identifier) "MIN_X" (;) ";" (declaration) "float radar_clat, radar_clon;" (primitive_type) "float" (identifier) "radar_clat" (,) "," (identifier) "radar_clon" (;) ";" (declaration) "int graphic_color=1;" (primitive_type) "int" (init_declarator) "graphic_color=1" (identifier) "graphic_color" (=) "=" (number_literal) "1" (;) ";" (declaration) "int line_color, line_type, line_width;" (primitive_type) "int" (identifier) "line_color" (,) "," (identifier) "line_type" (,) "," (identifier) "line_width" (;) ";" (comment) "/*\n * Default vad colors as specified by OFCM FMH No. 11\n */" (declaration) "int vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6};" (primitive_type) "int" (init_declarator) "vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6}" (array_declarator) "vadcols[]" (identifier) "vadcols" ([) "[" (]) "]" (=) "=" (initializer_list) "{3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6}" ({) "{" (number_literal) "3" (,) "," (number_literal) "5" (,) "," (number_literal) "2" (,) "," (number_literal) "6" (,) "," (number_literal) "7" (,) "," (number_literal) "1" (,) "," (number_literal) "23" (,) "," (number_literal) "31" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "6" (}) "}" (;) ";" (function_definition) "void vad_color_init ()\n{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_tbop ( "gpvad.config", "unidata", &ier );\nif (fp == NULL) return;\n\ncfl_trln ( fp, bsize, buf, &ier);\nwhile ( ier == 0 )\n {\n if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }\n\ncfl_clos ( fp, &ier );\n\n}" (primitive_type) "void" (function_declarator) "vad_color_init ()" (identifier) "vad_color_init" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_tbop ( "gpvad.config", "unidata", &ier );\nif (fp == NULL) return;\n\ncfl_trln ( fp, bsize, buf, &ier);\nwhile ( ier == 0 )\n {\n if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }\n\ncfl_clos ( fp, &ier );\n\n}" ({) "{" (declaration) "int ier, bsize=LLMXLN, inum;" (primitive_type) "int" (identifier) "ier" (,) "," (init_declarator) "bsize=LLMXLN" (identifier) "bsize" (=) "=" (identifier) "LLMXLN" (,) "," (identifier) "inum" (;) ";" (declaration) "char buf[LLMXLN], *cpos;" (primitive_type) "char" (array_declarator) "buf[LLMXLN]" (identifier) "buf" ([) "[" (identifier) "LLMXLN" (]) "]" (,) "," (pointer_declarator) "*cpos" (*) "*" (identifier) "cpos" (;) ";" (declaration) "FILE *fp;" (type_identifier) "FILE" (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (;) ";" (expression_statement) "fp = cfl_tbop ( "gpvad.config", "unidata", &ier );" (assignment_expression) "fp = cfl_tbop ( "gpvad.config", "unidata", &ier )" (identifier) "fp" (=) "=" (call_expression) "cfl_tbop ( "gpvad.config", "unidata", &ier )" (identifier) "cfl_tbop" (argument_list) "( "gpvad.config", "unidata", &ier )" (() "(" (string_literal) ""gpvad.config"" (") """ (string_content) "gpvad.config" (") """ (,) "," (string_literal) ""unidata"" (") """ (string_content) "unidata" (") """ (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (if_statement) "if (fp == NULL) return;" (if) "if" (parenthesized_expression) "(fp == NULL)" (() "(" (binary_expression) "fp == NULL" (identifier) "fp" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "cfl_trln ( fp, bsize, buf, &ier);" (call_expression) "cfl_trln ( fp, bsize, buf, &ier)" (identifier) "cfl_trln" (argument_list) "( fp, bsize, buf, &ier)" (() "(" (identifier) "fp" (,) "," (identifier) "bsize" (,) "," (identifier) "buf" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (while_statement) "while ( ier == 0 )\n {\n if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }" (while) "while" (parenthesized_expression) "( ier == 0 )" (() "(" (binary_expression) "ier == 0" (identifier) "ier" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }" ({) "{" (if_statement) "if ( strncmp(buf,"COLORS",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }" (if) "if" (parenthesized_expression) "( strncmp(buf,"COLORS",6) == 0)" (() "(" (binary_expression) "strncmp(buf,"COLORS",6) == 0" (call_expression) "strncmp(buf,"COLORS",6)" (identifier) "strncmp" (argument_list) "(buf,"COLORS",6)" (() "(" (identifier) "buf" (,) "," (string_literal) ""COLORS"" (") """ (string_content) "COLORS" (") """ (,) "," (number_literal) "6" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);\n }" ({) "{" (expression_statement) "cpos = strchr(buf, ':');" (assignment_expression) "cpos = strchr(buf, ':')" (identifier) "cpos" (=) "=" (call_expression) "strchr(buf, ':')" (identifier) "strchr" (argument_list) "(buf, ':')" (() "(" (identifier) "buf" (,) "," (char_literal) "':'" (') "'" (character) ":" (') "'" ()) ")" (;) ";" (if_statement) "if ( cpos != NULL )\n {\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }\n else\n printf("Invalid color configuration line %s\n",buf);" (if) "if" (parenthesized_expression) "( cpos != NULL )" (() "(" (binary_expression) "cpos != NULL" (identifier) "cpos" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n cpos++;\n cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n cfl_clos ( fp, &ier );\n return;\n }" ({) "{" (expression_statement) "cpos++;" (update_expression) "cpos++" (identifier) "cpos" (++) "++" (;) ";" (expression_statement) "cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);" (call_expression) "cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier)" (identifier) "cst_ilst" (argument_list) "( cpos, ':', 1, 16, vadcols, &inum, &ier)" (() "(" (identifier) "cpos" (,) "," (char_literal) "':'" (') "'" (character) ":" (') "'" (,) "," (number_literal) "1" (,) "," (number_literal) "16" (,) "," (identifier) "vadcols" (,) "," (pointer_expression) "&inum" (&) "&" (identifier) "inum" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (expression_statement) "cfl_clos ( fp, &ier );" (call_expression) "cfl_clos ( fp, &ier )" (identifier) "cfl_clos" (argument_list) "( fp, &ier )" (() "(" (identifier) "fp" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (else_clause) "else\n printf("Invalid color configuration line %s\n",buf);" (else) "else" (expression_statement) "printf("Invalid color configuration line %s\n",buf);" (call_expression) "printf("Invalid color configuration line %s\n",buf)" (identifier) "printf" (argument_list) "("Invalid color configuration line %s\n",buf)" (() "(" (string_literal) ""Invalid color configuration line %s\n"" (") """ (string_content) "Invalid color configuration line %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "buf" ()) ")" (;) ";" (}) "}" (expression_statement) "cfl_trln ( fp, bsize, buf, &ier);" (call_expression) "cfl_trln ( fp, bsize, buf, &ier)" (identifier) "cfl_trln" (argument_list) "( fp, bsize, buf, &ier)" (() "(" (identifier) "fp" (,) "," (identifier) "bsize" (,) "," (identifier) "buf" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (}) "}" (expression_statement) "cfl_clos ( fp, &ier );" (call_expression) "cfl_clos ( fp, &ier )" (identifier) "cfl_clos" (argument_list) "( fp, &ier )" (() "(" (identifier) "fp" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (}) "}" (function_definition) "void vad_colors ( int *icolor, int *ier)\n{\n*ier = 0;\ngraphic_color = *icolor;\n}" (primitive_type) "void" (function_declarator) "vad_colors ( int *icolor, int *ier)" (identifier) "vad_colors" (parameter_list) "( int *icolor, int *ier)" (() "(" (parameter_declaration) "int *icolor" (primitive_type) "int" (pointer_declarator) "*icolor" (*) "*" (identifier) "icolor" (,) "," (parameter_declaration) "int *ier" (primitive_type) "int" (pointer_declarator) "*ier" (*) "*" (identifier) "ier" ()) ")" (compound_statement) "{\n*ier = 0;\ngraphic_color = *icolor;\n}" ({) "{" (expression_statement) "*ier = 0;" (assignment_expression) "*ier = 0" (pointer_expression) "*ier" (*) "*" (identifier) "ier" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "graphic_color = *icolor;" (assignment_expression) "graphic_color = *icolor" (identifier) "graphic_color" (=) "=" (pointer_expression) "*icolor" (*) "*" (identifier) "icolor" (;) ";" (}) "}" (function_definition) "void vad_line ( int *icolor, int *itype, int *iwidth, int *ier)\n{\n*ier = 0;\nline_color = *icolor;\nline_type = *itype;\nline_width = *iwidth;\n}" (primitive_type) "void" (function_declarator) "vad_line ( int *icolor, int *itype, int *iwidth, int *ier)" (identifier) "vad_line" (parameter_list) "( int *icolor, int *itype, int *iwidth, int *ier)" (() "(" (parameter_declaration) "int *icolor" (primitive_type) "int" (pointer_declarator) "*icolor" (*) "*" (identifier) "icolor" (,) "," (parameter_declaration) "int *itype" (primitive_type) "int" (pointer_declarator) "*itype" (*) "*" (identifier) "itype" (,) "," (parameter_declaration) "int *iwidth" (primitive_type) "int" (pointer_declarator) "*iwidth" (*) "*" (identifier) "iwidth" (,) "," (parameter_declaration) "int *ier" (primitive_type) "int" (pointer_declarator) "*ier" (*) "*" (identifier) "ier" ()) ")" (compound_statement) "{\n*ier = 0;\nline_color = *icolor;\nline_type = *itype;\nline_width = *iwidth;\n}" ({) "{" (expression_statement) "*ier = 0;" (assignment_expression) "*ier = 0" (pointer_expression) "*ier" (*) "*" (identifier) "ier" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "line_color = *icolor;" (assignment_expression) "line_color = *icolor" (identifier) "line_color" (=) "=" (pointer_expression) "*icolor" (*) "*" (identifier) "icolor" (;) ";" (expression_statement) "line_type = *itype;" (assignment_expression) "line_type = *itype" (identifier) "line_type" (=) "=" (pointer_expression) "*itype" (*) "*" (identifier) "itype" (;) ";" (expression_statement) "line_width = *iwidth;" (assignment_expression) "line_width = *iwidth" (identifier) "line_width" (=) "=" (pointer_expression) "*iwidth" (*) "*" (identifier) "iwidth" (;) ";" (}) "}" (function_definition) "void vad_rms_colors ( int *NFLVL, int ifcolr[] )\n{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];\n}" (primitive_type) "void" (function_declarator) "vad_rms_colors ( int *NFLVL, int ifcolr[] )" (identifier) "vad_rms_colors" (parameter_list) "( int *NFLVL, int ifcolr[] )" (() "(" (parameter_declaration) "int *NFLVL" (primitive_type) "int" (pointer_declarator) "*NFLVL" (*) "*" (identifier) "NFLVL" (,) "," (parameter_declaration) "int ifcolr[]" (primitive_type) "int" (array_declarator) "ifcolr[]" (identifier) "ifcolr" ([) "[" (]) "]" ()) ")" (compound_statement) "{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < *NFLVL" (identifier) "i" (<) "<" (pointer_expression) "*NFLVL" (*) "*" (identifier) "NFLVL" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "ifcolr[i] = vadcols[i];" (assignment_expression) "ifcolr[i] = vadcols[i]" (subscript_expression) "ifcolr[i]" (identifier) "ifcolr" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "vadcols[i]" (identifier) "vadcols" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (function_definition) "int vad_setcol ( int ival)\n{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf("unexpected VAD color index %d\n",ival);\n ival = 15;\n }\ngscolr ( &vadcols[ival], &ier);\n}" (primitive_type) "int" (function_declarator) "vad_setcol ( int ival)" (identifier) "vad_setcol" (parameter_list) "( int ival)" (() "(" (parameter_declaration) "int ival" (primitive_type) "int" (identifier) "ival" ()) ")" (compound_statement) "{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf("unexpected VAD color index %d\n",ival);\n ival = 15;\n }\ngscolr ( &vadcols[ival], &ier);\n}" ({) "{" (declaration) "int ier;" (primitive_type) "int" (identifier) "ier" (;) ";" (if_statement) "if ( ( ival < 0 )||(ival > 15) )\n {\n printf("unexpected VAD color index %d\n",ival);\n ival = 15;\n }" (if) "if" (parenthesized_expression) "( ( ival < 0 )||(ival > 15) )" (() "(" (binary_expression) "( ival < 0 )||(ival > 15)" (parenthesized_expression) "( ival < 0 )" (() "(" (binary_expression) "ival < 0" (identifier) "ival" (<) "<" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(ival > 15)" (() "(" (binary_expression) "ival > 15" (identifier) "ival" (>) ">" (number_literal) "15" ()) ")" ()) ")" (compound_statement) "{\n printf("unexpected VAD color index %d\n",ival);\n ival = 15;\n }" ({) "{" (expression_statement) "printf("unexpected VAD color index %d\n",ival);" (call_expression) "printf("unexpected VAD color index %d\n",ival)" (identifier) "printf" (argument_list) "("unexpected VAD color index %d\n",ival)" (() "(" (string_literal) ""unexpected VAD color index %d\n"" (") """ (string_content) "unexpected VAD color index %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "ival" ()) ")" (;) ";" (expression_statement) "ival = 15;" (assignment_expression) "ival = 15" (identifier) "ival" (=) "=" (number_literal) "15" (;) ";" (}) "}" (expression_statement) "gscolr ( &vadcols[ival], &ier);" (call_expression) "gscolr ( &vadcols[ival], &ier)" (identifier) "gscolr" (argument_list) "( &vadcols[ival], &ier)" (() "(" (pointer_expression) "&vadcols[ival]" (&) "&" (subscript_expression) "vadcols[ival]" (identifier) "vadcols" ([) "[" (identifier) "ival" (]) "]" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (}) "}" (declaration) "char isub_garea[LLMXLN];" (primitive_type) "char" (array_declarator) "isub_garea[LLMXLN]" (identifier) "isub_garea" ([) "[" (identifier) "LLMXLN" (]) "]" (;) ";" (function_definition) "void vad_garea ( char *garea, int *lenstr, int *ier)\n{\nstrncpy(isub_garea, garea, *lenstr);\nisub_garea[*lenstr] = '\0';\ncst_lcuc ( isub_garea, isub_garea, ier );\nreturn;\n}" (primitive_type) "void" (function_declarator) "vad_garea ( char *garea, int *lenstr, int *ier)" (identifier) "vad_garea" (parameter_list) "( char *garea, int *lenstr, int *ier)" (() "(" (parameter_declaration) "char *garea" (primitive_type) "char" (pointer_declarator) "*garea" (*) "*" (identifier) "garea" (,) "," (parameter_declaration) "int *lenstr" (primitive_type) "int" (pointer_declarator) "*lenstr" (*) "*" (identifier) "lenstr" (,) "," (parameter_declaration) "int *ier" (primitive_type) "int" (pointer_declarator) "*ier" (*) "*" (identifier) "ier" ()) ")" (compound_statement) "{\nstrncpy(isub_garea, garea, *lenstr);\nisub_garea[*lenstr] = '\0';\ncst_lcuc ( isub_garea, isub_garea, ier );\nreturn;\n}" ({) "{" (expression_statement) "strncpy(isub_garea, garea, *lenstr);" (call_expression) "strncpy(isub_garea, garea, *lenstr)" (identifier) "strncpy" (argument_list) "(isub_garea, garea, *lenstr)" (() "(" (identifier) "isub_garea" (,) "," (identifier) "garea" (,) "," (pointer_expression) "*lenstr" (*) "*" (identifier) "lenstr" ()) ")" (;) ";" (expression_statement) "isub_garea[*lenstr] = '\0';" (assignment_expression) "isub_garea[*lenstr] = '\0'" (subscript_expression) "isub_garea[*lenstr]" (identifier) "isub_garea" ([) "[" (pointer_expression) "*lenstr" (*) "*" (identifier) "lenstr" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "cst_lcuc ( isub_garea, isub_garea, ier );" (call_expression) "cst_lcuc ( isub_garea, isub_garea, ier )" (identifier) "cst_lcuc" (argument_list) "( isub_garea, isub_garea, ier )" (() "(" (identifier) "isub_garea" (,) "," (identifier) "isub_garea" (,) "," (identifier) "ier" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (declaration) "char image_imcbar[LLMXLN];" (primitive_type) "char" (array_declarator) "image_imcbar[LLMXLN]" (identifier) "image_imcbar" ([) "[" (identifier) "LLMXLN" (]) "]" (;) ";" (function_definition) "void vad_imcbar ( char *imcbar, int *lenstr, int *ier)\n{\nstrncpy(image_imcbar, imcbar, *lenstr);\nimage_imcbar[*lenstr] = '\0';\n*ier = 0;\nreturn;\n}" (primitive_type) "void" (function_declarator) "vad_imcbar ( char *imcbar, int *lenstr, int *ier)" (identifier) "vad_imcbar" (parameter_list) "( char *imcbar, int *lenstr, int *ier)" (() "(" (parameter_declaration) "char *imcbar" (primitive_type) "char" (pointer_declarator) "*imcbar" (*) "*" (identifier) "imcbar" (,) "," (parameter_declaration) "int *lenstr" (primitive_type) "int" (pointer_declarator) "*lenstr" (*) "*" (identifier) "lenstr" (,) "," (parameter_declaration) "int *ier" (primitive_type) "int" (pointer_declarator) "*ier" (*) "*" (identifier) "ier" ()) ")" (compound_statement) "{\nstrncpy(image_imcbar, imcbar, *lenstr);\nimage_imcbar[*lenstr] = '\0';\n*ier = 0;\nreturn;\n}" ({) "{" (expression_statement) "strncpy(image_imcbar, imcbar, *lenstr);" (call_expression) "strncpy(image_imcbar, imcbar, *lenstr)" (identifier) "strncpy" (argument_list) "(image_imcbar, imcbar, *lenstr)" (() "(" (identifier) "image_imcbar" (,) "," (identifier) "imcbar" (,) "," (pointer_expression) "*lenstr" (*) "*" (identifier) "lenstr" ()) ")" (;) ";" (expression_statement) "image_imcbar[*lenstr] = '\0';" (assignment_expression) "image_imcbar[*lenstr] = '\0'" (subscript_expression) "image_imcbar[*lenstr]" (identifier) "image_imcbar" ([) "[" (pointer_expression) "*lenstr" (*) "*" (identifier) "lenstr" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "*ier = 0;" (assignment_expression) "*ier = 0" (pointer_expression) "*ier" (*) "*" (identifier) "ier" (=) "=" (number_literal) "0" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (function_definition) "int read_int ( unsigned char *x )\n{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];\nreturn (ival);\n}" (primitive_type) "int" (function_declarator) "read_int ( unsigned char *x )" (identifier) "read_int" (parameter_list) "( unsigned char *x )" (() "(" (parameter_declaration) "unsigned char *x" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*x" (*) "*" (identifier) "x" ()) ")" (compound_statement) "{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];\nreturn (ival);\n}" ({) "{" (declaration) "int ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];" (primitive_type) "int" (init_declarator) "ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3]" (identifier) "ival" (=) "=" (binary_expression) "( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3]" (parenthesized_expression) "( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 )" (() "(" (binary_expression) "( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8" (parenthesized_expression) "( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] )" (() "(" (binary_expression) "( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2]" (parenthesized_expression) "( ( ( x[0] << 8 ) | x[1] ) << 8 )" (() "(" (binary_expression) "( ( x[0] << 8 ) | x[1] ) << 8" (parenthesized_expression) "( ( x[0] << 8 ) | x[1] )" (() "(" (binary_expression) "( x[0] << 8 ) | x[1]" (parenthesized_expression) "( x[0] << 8 )" (() "(" (binary_expression) "x[0] << 8" (subscript_expression) "x[0]" (identifier) "x" ([) "[" (number_literal) "0" (]) "]" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (subscript_expression) "x[1]" (identifier) "x" ([) "[" (number_literal) "1" (]) "]" ()) ")" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (subscript_expression) "x[2]" (identifier) "x" ([) "[" (number_literal) "2" (]) "]" ()) ")" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (subscript_expression) "x[3]" (identifier) "x" ([) "[" (number_literal) "3" (]) "]" (;) ";" (return_statement) "return (ival);" (return) "return" (parenthesized_expression) "(ival)" (() "(" (identifier) "ival" ()) ")" (;) ";" (}) "}" (function_definition) "short read_short ( unsigned char *x )\n{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}" (sized_type_specifier) "short" (short) "short" (function_declarator) "read_short ( unsigned char *x )" (identifier) "read_short" (parameter_list) "( unsigned char *x )" (() "(" (parameter_declaration) "unsigned char *x" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*x" (*) "*" (identifier) "x" ()) ")" (compound_statement) "{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}" ({) "{" (declaration) "short ival = ( x[0] << 8 ) | x[1];" (sized_type_specifier) "short" (short) "short" (init_declarator) "ival = ( x[0] << 8 ) | x[1]" (identifier) "ival" (=) "=" (binary_expression) "( x[0] << 8 ) | x[1]" (parenthesized_expression) "( x[0] << 8 )" (() "(" (binary_expression) "x[0] << 8" (subscript_expression) "x[0]" (identifier) "x" ([) "[" (number_literal) "0" (]) "]" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (subscript_expression) "x[1]" (identifier) "x" ([) "[" (number_literal) "1" (]) "]" (;) ";" (return_statement) "return (ival);" (return) "return" (parenthesized_expression) "(ival)" (() "(" (identifier) "ival" ()) ")" (;) ";" (}) "}" (function_definition) "void vad_driver ( unsigned char *buf, int *ioff, int *iret)\n{\nint bflip, i, ij, ier;\nsigned short *sbytes,*s1,*s2;\nint *ibytes;\nint ival;\noff_t k;\n\nint block_len, nlayers, ilevel;\nint block_offs[3];\nint packet_code, pblen, poff;\nint icnt, boff;\nint product_message_code;\n\nint np, i1,i2,j1,j2, ixoff, iyoff;\nfloat X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];\nfloat xmin_sav, xmax_sav;\nint imark, imkhw, imkwid;\nfloat szmark;\nchar sys_m[]="M", sys_n[]="N", *cstr;\nfloat rmargin[]={4.0, 4.0, 4.0, 2.0};\n\n\n*iret = 0;\n\n/*\n** Message header block\n */\nproduct_message_code = (int)read_short(buf);\nswitch (product_message_code)\n {\n case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;\n default:\n XMAX = MAX_X;\n XMIN = MIN_X;\n }\n\nradar_clat = (float)read_int (buf + 20) / 1000.;\nradar_clon = (float)read_int (buf + 24) / 1000.;\n\n#ifdef DEBUG\nprintf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif\n\nblock_offs[0] = read_int ( buf + 108 );\nblock_offs[1] = read_int ( buf + 112 );\nblock_offs[2] = read_int ( buf + 116 );\n\nfor ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }\n\n\nswitch (product_message_code)\n {\n case 48:\n i = 1;\n gsmode (&i, &ier);\n break;\n /*default:\n printf("stay in map mode\n");*/\n }\n\n\n}" (primitive_type) "void" (function_declarator) "vad_driver ( unsigned char *buf, int *ioff, int *iret)" (identifier) "vad_driver" (parameter_list) "( unsigned char *buf, int *ioff, int *iret)" (() "(" (parameter_declaration) "unsigned char *buf" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "int *ioff" (primitive_type) "int" (pointer_declarator) "*ioff" (*) "*" (identifier) "ioff" (,) "," (parameter_declaration) "int *iret" (primitive_type) "int" (pointer_declarator) "*iret" (*) "*" (identifier) "iret" ()) ")" (compound_statement) "{\nint bflip, i, ij, ier;\nsigned short *sbytes,*s1,*s2;\nint *ibytes;\nint ival;\noff_t k;\n\nint block_len, nlayers, ilevel;\nint block_offs[3];\nint packet_code, pblen, poff;\nint icnt, boff;\nint product_message_code;\n\nint np, i1,i2,j1,j2, ixoff, iyoff;\nfloat X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];\nfloat xmin_sav, xmax_sav;\nint imark, imkhw, imkwid;\nfloat szmark;\nchar sys_m[]="M", sys_n[]="N", *cstr;\nfloat rmargin[]={4.0, 4.0, 4.0, 2.0};\n\n\n*iret = 0;\n\n/*\n** Message header block\n */\nproduct_message_code = (int)read_short(buf);\nswitch (product_message_code)\n {\n case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;\n default:\n XMAX = MAX_X;\n XMIN = MIN_X;\n }\n\nradar_clat = (float)read_int (buf + 20) / 1000.;\nradar_clon = (float)read_int (buf + 24) / 1000.;\n\n#ifdef DEBUG\nprintf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif\n\nblock_offs[0] = read_int ( buf + 108 );\nblock_offs[1] = read_int ( buf + 112 );\nblock_offs[2] = read_int ( buf + 116 );\n\nfor ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }\n\n\nswitch (product_message_code)\n {\n case 48:\n i = 1;\n gsmode (&i, &ier);\n break;\n /*default:\n printf("stay in map mode\n");*/\n }\n\n\n}" ({) "{" (declaration) "int bflip, i, ij, ier;" (primitive_type) "int" (identifier) "bflip" (,) "," (identifier) "i" (,) "," (identifier) "ij" (,) "," (identifier) "ier" (;) ";" (declaration) "signed short *sbytes,*s1,*s2;" (sized_type_specifier) "signed short" (signed) "signed" (short) "short" (pointer_declarator) "*sbytes" (*) "*" (identifier) "sbytes" (,) "," (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (;) ";" (declaration) "int *ibytes;" (primitive_type) "int" (pointer_declarator) "*ibytes" (*) "*" (identifier) "ibytes" (;) ";" (declaration) "int ival;" (primitive_type) "int" (identifier) "ival" (;) ";" (declaration) "off_t k;" (type_identifier) "off_t" (identifier) "k" (;) ";" (declaration) "int block_len, nlayers, ilevel;" (primitive_type) "int" (identifier) "block_len" (,) "," (identifier) "nlayers" (,) "," (identifier) "ilevel" (;) ";" (declaration) "int block_offs[3];" (primitive_type) "int" (array_declarator) "block_offs[3]" (identifier) "block_offs" ([) "[" (number_literal) "3" (]) "]" (;) ";" (declaration) "int packet_code, pblen, poff;" (primitive_type) "int" (identifier) "packet_code" (,) "," (identifier) "pblen" (,) "," (identifier) "poff" (;) ";" (declaration) "int icnt, boff;" (primitive_type) "int" (identifier) "icnt" (,) "," (identifier) "boff" (;) ";" (declaration) "int product_message_code;" (primitive_type) "int" (identifier) "product_message_code" (;) ";" (declaration) "int np, i1,i2,j1,j2, ixoff, iyoff;" (primitive_type) "int" (identifier) "np" (,) "," (identifier) "i1" (,) "," (identifier) "i2" (,) "," (identifier) "j1" (,) "," (identifier) "j2" (,) "," (identifier) "ixoff" (,) "," (identifier) "iyoff" (;) ";" (declaration) "float X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];" (primitive_type) "float" (array_declarator) "X[2]" (identifier) "X" ([) "[" (number_literal) "2" (]) "]" (,) "," (array_declarator) "Y[2]" (identifier) "Y" ([) "[" (number_literal) "2" (]) "]" (,) "," (array_declarator) "Xv[2]" (identifier) "Xv" ([) "[" (number_literal) "2" (]) "]" (,) "," (array_declarator) "Yv[2]" (identifier) "Yv" ([) "[" (number_literal) "2" (]) "]" (,) "," (identifier) "spd" (,) "," (identifier) "drct" (,) "," (identifier) "rotat" (,) "," (array_declarator) "spcod[2]" (identifier) "spcod" ([) "[" (number_literal) "2" (]) "]" (;) ";" (declaration) "float xmin_sav, xmax_sav;" (primitive_type) "float" (identifier) "xmin_sav" (,) "," (identifier) "xmax_sav" (;) ";" (declaration) "int imark, imkhw, imkwid;" (primitive_type) "int" (identifier) "imark" (,) "," (identifier) "imkhw" (,) "," (identifier) "imkwid" (;) ";" (declaration) "float szmark;" (primitive_type) "float" (identifier) "szmark" (;) ";" (declaration) "char sys_m[]="M", sys_n[]="N", *cstr;" (primitive_type) "char" (init_declarator) "sys_m[]="M"" (array_declarator) "sys_m[]" (identifier) "sys_m" ([) "[" (]) "]" (=) "=" (string_literal) ""M"" (") """ (string_content) "M" (") """ (,) "," (init_declarator) "sys_n[]="N"" (array_declarator) "sys_n[]" (identifier) "sys_n" ([) "[" (]) "]" (=) "=" (string_literal) ""N"" (") """ (string_content) "N" (") """ (,) "," (pointer_declarator) "*cstr" (*) "*" (identifier) "cstr" (;) ";" (declaration) "float rmargin[]={4.0, 4.0, 4.0, 2.0};" (primitive_type) "float" (init_declarator) "rmargin[]={4.0, 4.0, 4.0, 2.0}" (array_declarator) "rmargin[]" (identifier) "rmargin" ([) "[" (]) "]" (=) "=" (initializer_list) "{4.0, 4.0, 4.0, 2.0}" ({) "{" (number_literal) "4.0" (,) "," (number_literal) "4.0" (,) "," (number_literal) "4.0" (,) "," (number_literal) "2.0" (}) "}" (;) ";" (expression_statement) "*iret = 0;" (assignment_expression) "*iret = 0" (pointer_expression) "*iret" (*) "*" (identifier) "iret" (=) "=" (number_literal) "0" (;) ";" (comment) "/*\n** Message header block\n */" (expression_statement) "product_message_code = (int)read_short(buf);" (assignment_expression) "product_message_code = (int)read_short(buf)" (identifier) "product_message_code" (=) "=" (cast_expression) "(int)read_short(buf)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "read_short(buf)" (identifier) "read_short" (argument_list) "(buf)" (() "(" (identifier) "buf" ()) ")" (;) ";" (switch_statement) "switch (product_message_code)\n {\n case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;\n default:\n XMAX = MAX_X;\n XMIN = MIN_X;\n }" (switch) "switch" (parenthesized_expression) "(product_message_code)" (() "(" (identifier) "product_message_code" ()) ")" (compound_statement) "{\n case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;\n default:\n XMAX = MAX_X;\n XMIN = MIN_X;\n }" ({) "{" (case_statement) "case 48:\n i = 2;\n gsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n XMAX = MAX_PX;\n XMIN = MIN_PX;\n break;" (case) "case" (number_literal) "48" (:) ":" (expression_statement) "i = 2;" (assignment_expression) "i = 2" (identifier) "i" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "gsmode ( &i, &ier);" (call_expression) "gsmode ( &i, &ier)" (identifier) "gsmode" (argument_list) "( &i, &ier)" (() "(" (pointer_expression) "&i" (&) "&" (identifier) "i" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (comment) "/* set graph margins */" (expression_statement) "gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );" (call_expression) "gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier )" (identifier) "gsgmgn" (argument_list) "( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier )" (() "(" (pointer_expression) "&rmargin[0]" (&) "&" (subscript_expression) "rmargin[0]" (identifier) "rmargin" ([) "[" (number_literal) "0" (]) "]" (,) "," (pointer_expression) "&rmargin[1]" (&) "&" (subscript_expression) "rmargin[1]" (identifier) "rmargin" ([) "[" (number_literal) "1" (]) "]" (,) "," (pointer_expression) "&rmargin[2]" (&) "&" (subscript_expression) "rmargin[2]" (identifier) "rmargin" ([) "[" (number_literal) "2" (]) "]" (,) "," (pointer_expression) "&rmargin[3]" (&) "&" (subscript_expression) "rmargin[3]" (identifier) "rmargin" ([) "[" (number_literal) "3" (]) "]" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (expression_statement) "XMAX = MAX_PX;" (assignment_expression) "XMAX = MAX_PX" (identifier) "XMAX" (=) "=" (identifier) "MAX_PX" (;) ";" (expression_statement) "XMIN = MIN_PX;" (assignment_expression) "XMIN = MIN_PX" (identifier) "XMIN" (=) "=" (identifier) "MIN_PX" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n XMAX = MAX_X;\n XMIN = MIN_X;" (default) "default" (:) ":" (expression_statement) "XMAX = MAX_X;" (assignment_expression) "XMAX = MAX_X" (identifier) "XMAX" (=) "=" (identifier) "MAX_X" (;) ";" (expression_statement) "XMIN = MIN_X;" (assignment_expression) "XMIN = MIN_X" (identifier) "XMIN" (=) "=" (identifier) "MIN_X" (;) ";" (}) "}" (expression_statement) "radar_clat = (float)read_int (buf + 20) / 1000.;" (assignment_expression) "radar_clat = (float)read_int (buf + 20) / 1000." (identifier) "radar_clat" (=) "=" (binary_expression) "(float)read_int (buf + 20) / 1000." (cast_expression) "(float)read_int (buf + 20)" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (call_expression) "read_int (buf + 20)" (identifier) "read_int" (argument_list) "(buf + 20)" (() "(" (binary_expression) "buf + 20" (identifier) "buf" (+) "+" (number_literal) "20" ()) ")" (/) "/" (number_literal) "1000." (;) ";" (expression_statement) "radar_clon = (float)read_int (buf + 24) / 1000.;" (assignment_expression) "radar_clon = (float)read_int (buf + 24) / 1000." (identifier) "radar_clon" (=) "=" (binary_expression) "(float)read_int (buf + 24) / 1000." (cast_expression) "(float)read_int (buf + 24)" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (call_expression) "read_int (buf + 24)" (identifier) "read_int" (argument_list) "(buf + 24)" (() "(" (binary_expression) "buf + 24" (identifier) "buf" (+) "+" (number_literal) "24" ()) ")" (/) "/" (number_literal) "1000." (;) ";" (preproc_ifdef) "#ifdef DEBUG\nprintf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG" (expression_statement) "printf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN);" (call_expression) "printf("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN)" (identifier) "printf" (argument_list) "("look messagecode %d %f %f\n",product_message_code,XMAX,XMIN)" (() "(" (string_literal) ""look messagecode %d %f %f\n"" (") """ (string_content) "look messagecode %d %f %f" (escape_sequence) "\n" (") """ (,) "," (identifier) "product_message_code" (,) "," (identifier) "XMAX" (,) "," (identifier) "XMIN" ()) ")" (;) ";" (expression_statement) "k = 0;" (assignment_expression) "k = 0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<9" (identifier) "i" (<) "<" (number_literal) "9" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d\n",i+1,(int)(*sbytes));\n k = k + 2;\n }" ({) "{" (expression_statement) "sbytes = (signed short *)(buf+k);" (assignment_expression) "sbytes = (signed short *)(buf+k)" (identifier) "sbytes" (=) "=" (cast_expression) "(signed short *)(buf+k)" (() "(" (type_descriptor) "signed short *" (sized_type_specifier) "signed short" (signed) "signed" (short) "short" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(buf+k)" (() "(" (binary_expression) "buf+k" (identifier) "buf" (+) "+" (identifier) "k" ()) ")" (;) ";" (expression_statement) "printf("sbytes %d %d\n",i+1,(int)(*sbytes));" (call_expression) "printf("sbytes %d %d\n",i+1,(int)(*sbytes))" (identifier) "printf" (argument_list) "("sbytes %d %d\n",i+1,(int)(*sbytes))" (() "(" (string_literal) ""sbytes %d %d\n"" (") """ (string_content) "sbytes %d %d" (escape_sequence) "\n" (") """ (,) "," (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (,) "," (cast_expression) "(int)(*sbytes)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(*sbytes)" (() "(" (pointer_expression) "*sbytes" (*) "*" (identifier) "sbytes" ()) ")" ()) ")" (;) ";" (expression_statement) "k = k + 2;" (assignment_expression) "k = k + 2" (identifier) "k" (=) "=" (binary_expression) "k + 2" (identifier) "k" (+) "+" (number_literal) "2" (;) ";" (}) "}" (comment) "/*\n** Product Description block\n */" (for_statement) "for(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<51" (identifier) "i" (<) "<" (number_literal) "51" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n sbytes = (signed short *)(buf+k);\n printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }" ({) "{" (expression_statement) "sbytes = (signed short *)(buf+k);" (assignment_expression) "sbytes = (signed short *)(buf+k)" (identifier) "sbytes" (=) "=" (cast_expression) "(signed short *)(buf+k)" (() "(" (type_descriptor) "signed short *" (sized_type_specifier) "signed short" (signed) "signed" (short) "short" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(buf+k)" (() "(" (binary_expression) "buf+k" (identifier) "buf" (+) "+" (identifier) "k" ()) ")" (;) ";" (expression_statement) "printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes));" (call_expression) "printf("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes))" (identifier) "printf" (argument_list) "("sbytes %d %d %d\n",i+10,(int)k,(int)(*sbytes))" (() "(" (string_literal) ""sbytes %d %d %d\n"" (") """ (string_content) "sbytes %d %d %d" (escape_sequence) "\n" (") """ (,) "," (binary_expression) "i+10" (identifier) "i" (+) "+" (number_literal) "10" (,) "," (cast_expression) "(int)k" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "k" (,) "," (cast_expression) "(int)(*sbytes)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(*sbytes)" (() "(" (pointer_expression) "*sbytes" (*) "*" (identifier) "sbytes" ()) ")" ()) ")" (;) ";" (expression_statement) "k = k + 2;" (assignment_expression) "k = k + 2" (identifier) "k" (=) "=" (binary_expression) "k + 2" (identifier) "k" (+) "+" (number_literal) "2" (;) ";" (}) "}" (#endif) "#endif" (expression_statement) "block_offs[0] = read_int ( buf + 108 );" (assignment_expression) "block_offs[0] = read_int ( buf + 108 )" (subscript_expression) "block_offs[0]" (identifier) "block_offs" ([) "[" (number_literal) "0" (]) "]" (=) "=" (call_expression) "read_int ( buf + 108 )" (identifier) "read_int" (argument_list) "( buf + 108 )" (() "(" (binary_expression) "buf + 108" (identifier) "buf" (+) "+" (number_literal) "108" ()) ")" (;) ";" (expression_statement) "block_offs[1] = read_int ( buf + 112 );" (assignment_expression) "block_offs[1] = read_int ( buf + 112 )" (subscript_expression) "block_offs[1]" (identifier) "block_offs" ([) "[" (number_literal) "1" (]) "]" (=) "=" (call_expression) "read_int ( buf + 112 )" (identifier) "read_int" (argument_list) "( buf + 112 )" (() "(" (binary_expression) "buf + 112" (identifier) "buf" (+) "+" (number_literal) "112" ()) ")" (;) ";" (expression_statement) "block_offs[2] = read_int ( buf + 116 );" (assignment_expression) "block_offs[2] = read_int ( buf + 116 )" (subscript_expression) "block_offs[2]" (identifier) "block_offs" ([) "[" (number_literal) "2" (]) "]" (=) "=" (call_expression) "read_int ( buf + 116 )" (identifier) "read_int" (argument_list) "( buf + 116 )" (() "(" (binary_expression) "buf + 116" (identifier) "buf" (+) "+" (number_literal) "116" ()) ")" (;) ";" (for_statement) "for ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 3" (identifier) "i" (<) "<" (number_literal) "3" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if ( block_offs[i] != 0 )\n {\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }" (if) "if" (parenthesized_expression) "( block_offs[i] != 0 )" (() "(" (binary_expression) "block_offs[i] != 0" (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n /*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }" ({) "{" (comment) "/*printf("look block_offs %d block1 %d block2 %d\n", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/" (switch_statement) "switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }" (switch) "switch" (parenthesized_expression) "( (int)read_short(buf + (block_offs[i] * 2) + 2) )" (() "(" (cast_expression) "(int)read_short(buf + (block_offs[i] * 2) + 2)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "read_short(buf + (block_offs[i] * 2) + 2)" (identifier) "read_short" (argument_list) "(buf + (block_offs[i] * 2) + 2)" (() "(" (binary_expression) "buf + (block_offs[i] * 2) + 2" (binary_expression) "buf + (block_offs[i] * 2)" (identifier) "buf" (+) "+" (parenthesized_expression) "(block_offs[i] * 2)" (() "(" (binary_expression) "block_offs[i] * 2" (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" (*) "*" (number_literal) "2" ()) ")" (+) "+" (number_literal) "2" ()) ")" ()) ")" (compound_statement) "{\n case 1:\n decode_symbol ( buf, block_offs[i] );\n break;\n case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;\n case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;\n default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );\n }" ({) "{" (case_statement) "case 1:\n decode_symbol ( buf, block_offs[i] );\n break;" (case) "case" (number_literal) "1" (:) ":" (expression_statement) "decode_symbol ( buf, block_offs[i] );" (call_expression) "decode_symbol ( buf, block_offs[i] )" (identifier) "decode_symbol" (argument_list) "( buf, block_offs[i] )" (() "(" (identifier) "buf" (,) "," (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 2:\n xmin_sav = XMIN; xmax_sav = XMAX;\n XMIN = MIN_PX; XMAX = MAX_PX;\n decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n XMIN = xmin_sav; XMAX = xmax_sav;\n break;" (case) "case" (number_literal) "2" (:) ":" (expression_statement) "xmin_sav = XMIN;" (assignment_expression) "xmin_sav = XMIN" (identifier) "xmin_sav" (=) "=" (identifier) "XMIN" (;) ";" (expression_statement) "xmax_sav = XMAX;" (assignment_expression) "xmax_sav = XMAX" (identifier) "xmax_sav" (=) "=" (identifier) "XMAX" (;) ";" (expression_statement) "XMIN = MIN_PX;" (assignment_expression) "XMIN = MIN_PX" (identifier) "XMIN" (=) "=" (identifier) "MIN_PX" (;) ";" (expression_statement) "XMAX = MAX_PX;" (assignment_expression) "XMAX = MAX_PX" (identifier) "XMAX" (=) "=" (identifier) "MAX_PX" (;) ";" (expression_statement) "decode_alpha_graphic ( buf + (block_offs[i] * 2) );" (call_expression) "decode_alpha_graphic ( buf + (block_offs[i] * 2) )" (identifier) "decode_alpha_graphic" (argument_list) "( buf + (block_offs[i] * 2) )" (() "(" (binary_expression) "buf + (block_offs[i] * 2)" (identifier) "buf" (+) "+" (parenthesized_expression) "(block_offs[i] * 2)" (() "(" (binary_expression) "block_offs[i] * 2" (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" (*) "*" (number_literal) "2" ()) ")" ()) ")" (;) ";" (expression_statement) "XMIN = xmin_sav;" (assignment_expression) "XMIN = xmin_sav" (identifier) "XMIN" (=) "=" (identifier) "xmin_sav" (;) ";" (expression_statement) "XMAX = xmax_sav;" (assignment_expression) "XMAX = xmax_sav" (identifier) "XMAX" (=) "=" (identifier) "xmax_sav" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 3:\n decode_tabular ( buf + (block_offs[i] * 2) );\n break;" (case) "case" (number_literal) "3" (:) ":" (expression_statement) "decode_tabular ( buf + (block_offs[i] * 2) );" (call_expression) "decode_tabular ( buf + (block_offs[i] * 2) )" (identifier) "decode_tabular" (argument_list) "( buf + (block_offs[i] * 2) )" (() "(" (binary_expression) "buf + (block_offs[i] * 2)" (identifier) "buf" (+) "+" (parenthesized_expression) "(block_offs[i] * 2)" (() "(" (binary_expression) "block_offs[i] * 2" (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" (*) "*" (number_literal) "2" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );" (default) "default" (:) ":" (expression_statement) "printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) );" (call_expression) "printf("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) )" (identifier) "printf" (argument_list) "("unknown block to decode %d\n",\n (int)read_short(buf + (block_offs[i] * 2) + 2) )" (() "(" (string_literal) ""unknown block to decode %d\n"" (") """ (string_content) "unknown block to decode %d" (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(int)read_short(buf + (block_offs[i] * 2) + 2)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "read_short(buf + (block_offs[i] * 2) + 2)" (identifier) "read_short" (argument_list) "(buf + (block_offs[i] * 2) + 2)" (() "(" (binary_expression) "buf + (block_offs[i] * 2) + 2" (binary_expression) "buf + (block_offs[i] * 2)" (identifier) "buf" (+) "+" (parenthesized_expression) "(block_offs[i] * 2)" (() "(" (binary_expression) "block_offs[i] * 2" (subscript_expression) "block_offs[i]" (identifier) "block_offs" ([) "[" (identifier) "i" (]) "]" (*) "*" (number_literal) "2" ()) ")" (+) "+" (number_literal) "2" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (switch_statement) "switch (product_message_code)\n {\n case 48:\n i = 1;\n gsmode (&i, &ier);\n break;\n /*default:\n printf("stay in map mode\n");*/\n }" (switch) "switch" (parenthesized_expression) "(product_message_code)" (() "(" (identifier) "product_message_code" ()) ")" (compound_statement) "{\n case 48:\n i = 1;\n gsmode (&i, &ier);\n break;\n /*default:\n printf("stay in map mode\n");*/\n }" ({) "{" (case_statement) "case 48:\n i = 1;\n gsmode (&i, &ier);\n break;" (case) "case" (number_literal) "48" (:) ":" (expression_statement) "i = 1;" (assignment_expression) "i = 1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "gsmode (&i, &ier);" (call_expression) "gsmode (&i, &ier)" (identifier) "gsmode" (argument_list) "(&i, &ier)" (() "(" (pointer_expression) "&i" (&) "&" (identifier) "i" (,) "," (pointer_expression) "&ier" (&) "&" (identifier) "ier" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (comment) "/*default:\n printf("stay in map mode\n");*/" (}) "}" (}) "}"
1,828
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 22.15, "nodes": 1152, "errors": 0, "source_hash": "fd70991aa4c351f25263235acd5d50547941df198e7cd64f931665fda2c02b47", "categorized_nodes": 760}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"geminc.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"geminc.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"gemprm.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"gemprm.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef UNDERSCORE\n#define vwind\tvwind_\n#define vad_colors\tvad_colors_\n#define vad_line\tvad_line_\n#define vad_color_init\tvad_color_init_\n#define vad_rms_colors\tvad_rms_colors_\n#define vad_garea\tvad_garea_\n#define vad_imcbar\tvad_imcbar_\n#define in_wind\tin_wind_\n#define gsmode gsmode_\n#define gsgmgn\tgsgmgn_\n#endif", "parent": null, "children": [7, 8, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "identifier", "text": "UNDERSCORE", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_def", "text": "#define vwind\tvwind_\n", "parent": 6, "children": [10, 11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "identifier", "text": "vwind", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 12, "type": "preproc_arg", "text": "vwind_", "parent": 9, "children": [], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 20}}, {"id": 13, "type": "preproc_def", "text": "#define vad_colors\tvad_colors_\n", "parent": 6, "children": [14, 15, 16], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 15, "type": "identifier", "text": "vad_colors", "parent": 13, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 16, "type": "preproc_arg", "text": "vad_colors_", "parent": 13, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 30}}, {"id": 17, "type": "preproc_def", "text": "#define vad_line\tvad_line_\n", "parent": 6, "children": [18, 19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 19, "type": "identifier", "text": "vad_line", "parent": 17, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 16}}, {"id": 20, "type": "preproc_arg", "text": "vad_line_", "parent": 17, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 26}}, {"id": 21, "type": "preproc_def", "text": "#define vad_color_init\tvad_color_init_\n", "parent": 6, "children": [22, 23, 24], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 23, "type": "identifier", "text": "vad_color_init", "parent": 21, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 22}}, {"id": 24, "type": "preproc_arg", "text": "vad_color_init_", "parent": 21, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 38}}, {"id": 25, "type": "preproc_def", "text": "#define vad_rms_colors\tvad_rms_colors_\n", "parent": 6, "children": [26, 27, 28], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 27, "type": "identifier", "text": "vad_rms_colors", "parent": 25, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 28, "type": "preproc_arg", "text": "vad_rms_colors_", "parent": 25, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 38}}, {"id": 29, "type": "preproc_def", "text": "#define vad_garea\tvad_garea_\n", "parent": 6, "children": [30, 31, 32], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 31, "type": "identifier", "text": "vad_garea", "parent": 29, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 17}}, {"id": 32, "type": "preproc_arg", "text": "vad_garea_", "parent": 29, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 28}}, {"id": 33, "type": "preproc_def", "text": "#define vad_imcbar\tvad_imcbar_\n", "parent": 6, "children": [34, 35, 36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 35, "type": "identifier", "text": "vad_imcbar", "parent": 33, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 36, "type": "preproc_arg", "text": "vad_imcbar_", "parent": 33, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 30}}, {"id": 37, "type": "preproc_def", "text": "#define in_wind\tin_wind_\n", "parent": 6, "children": [38, 39, 40], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 39, "type": "identifier", "text": "in_wind", "parent": 37, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 40, "type": "preproc_arg", "text": "in_wind_", "parent": 37, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 24}}, {"id": 41, "type": "preproc_def", "text": "#define gsmode gsmode_\n", "parent": 6, "children": [42, 43, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 43, "type": "identifier", "text": "gsmode", "parent": 41, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 14}}, {"id": 44, "type": "preproc_arg", "text": "gsmode_", "parent": 41, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 22}}, {"id": 45, "type": "preproc_def", "text": "#define gsgmgn\tgsgmgn_\n", "parent": 6, "children": [46, 47, 48], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 47, "type": "identifier", "text": "gsgmgn", "parent": 45, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 48, "type": "preproc_arg", "text": "gsgmgn_", "parent": 45, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 22}}, {"id": 49, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 50, "type": "preproc_def", "text": "#define MAX_X\t2047.0\n", "parent": null, "children": [51, 52, 53], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 52, "type": "identifier", "text": "MAX_X", "parent": 50, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 53, "type": "preproc_arg", "text": "2047.0", "parent": 50, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 20}}, {"id": 54, "type": "preproc_def", "text": "#define MIN_X\t-2048.0\n", "parent": null, "children": [55, 56, 57], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 56, "type": "identifier", "text": "MIN_X", "parent": 54, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 13}}, {"id": 57, "type": "preproc_arg", "text": "-2048.0", "parent": 54, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 21}}, {"id": 58, "type": "preproc_def", "text": "#define MAX_PX\t511.\n", "parent": null, "children": [59, 60, 61], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 60, "type": "identifier", "text": "MAX_PX", "parent": 58, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 61, "type": "preproc_arg", "text": "511.", "parent": 58, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 19}}, {"id": 62, "type": "preproc_def", "text": "#define MIN_PX 0.\n", "parent": null, "children": [63, 64, 65], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 64, "type": "identifier", "text": "MIN_PX", "parent": 62, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 14}}, {"id": 65, "type": "preproc_arg", "text": "0.", "parent": 62, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 18}}, {"id": 66, "type": "declaration", "text": "float\tXMAX=MAX_X, XMIN=MIN_X;", "parent": null, "children": [67, 68, 72], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 29}}, {"id": 67, "type": "primitive_type", "text": "float", "parent": 66, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 5}}, {"id": 68, "type": "init_declarator", "text": "XMAX=MAX_X", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 16}}, {"id": 69, "type": "identifier", "text": "XMAX", "parent": 68, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 10}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 71, "type": "identifier", "text": "MAX_X", "parent": 68, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 16}}, {"id": 72, "type": "init_declarator", "text": "XMIN=MIN_X", "parent": 66, "children": [73, 74, 75], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 28}}, {"id": 73, "type": "identifier", "text": "XMIN", "parent": 72, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 22}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 75, "type": "identifier", "text": "MIN_X", "parent": 72, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 28}}, {"id": 76, "type": "declaration", "text": "float\tradar_clat, radar_clon;", "parent": null, "children": [77, 78, 79], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 29}}, {"id": 77, "type": "primitive_type", "text": "float", "parent": 76, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 5}}, {"id": 78, "type": "identifier", "text": "radar_clat", "parent": 76, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 16}}, {"id": 79, "type": "identifier", "text": "radar_clon", "parent": 76, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 28}}, {"id": 80, "type": "declaration", "text": "int graphic_color=1;", "parent": null, "children": [81, 82], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 20}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 80, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 3}}, {"id": 82, "type": "init_declarator", "text": "graphic_color=1", "parent": 80, "children": [83, 84, 85], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 83, "type": "identifier", "text": "graphic_color", "parent": 82, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 17}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 85, "type": "number_literal", "text": "1", "parent": 82, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 86, "type": "declaration", "text": "int line_color, line_type, line_width;", "parent": null, "children": [87, 88, 89, 90], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 38}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 3}}, {"id": 88, "type": "identifier", "text": "line_color", "parent": 86, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 14}}, {"id": 89, "type": "identifier", "text": "line_type", "parent": 86, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 90, "type": "identifier", "text": "line_width", "parent": 86, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 37}}, {"id": 91, "type": "declaration", "text": "int vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6};", "parent": null, "children": [92, 93], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 65}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 3}}, {"id": 93, "type": "init_declarator", "text": "vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6}", "parent": 91, "children": [94, 96, 97], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 64}}, {"id": 94, "type": "array_declarator", "text": "vadcols[]", "parent": 93, "children": [95], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 95, "type": "identifier", "text": "vadcols", "parent": 94, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 96, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 97, "type": "initializer_list", "text": "{3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6}", "parent": 93, "children": [98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 64}}, {"id": 98, "type": "number_literal", "text": "3", "parent": 97, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 99, "type": "number_literal", "text": "5", "parent": 97, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 19}}, {"id": 100, "type": "number_literal", "text": "2", "parent": 97, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 22}}, {"id": 101, "type": "number_literal", "text": "6", "parent": 97, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 25}}, {"id": 102, "type": "number_literal", "text": "7", "parent": 97, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 28}}, {"id": 103, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 31}}, {"id": 104, "type": "number_literal", "text": "23", "parent": 97, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 35}}, {"id": 105, "type": "number_literal", "text": "31", "parent": 97, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 39}}, {"id": 106, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 42}}, {"id": 107, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 44}, "end_point": {"row": 31, "column": 45}}, {"id": 108, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 48}}, {"id": 109, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 50}, "end_point": {"row": 31, "column": 51}}, {"id": 110, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 111, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 56}, "end_point": {"row": 31, "column": 57}}, {"id": 112, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 60}}, {"id": 113, "type": "number_literal", "text": "6", "parent": 97, "children": [], "start_point": {"row": 31, "column": 62}, "end_point": {"row": 31, "column": 63}}, {"id": 114, "type": "function_definition", "text": "void vad_color_init ()\n{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_tbop ( \"gpvad.config\", \"unidata\", &ier );\nif (fp == NULL) return;\n\ncfl_trln ( fp, bsize, buf, &ier);\nwhile ( ier == 0 )\n {\n if ( strncmp(buf,\"COLORS\",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n\t cpos++;\n\t cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n\t cfl_clos ( fp, &ier );\n return;\n }\n else\n\t printf(\"Invalid color configuration line %s\\n\",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }\n\ncfl_clos ( fp, &ier );\n\n}", "parent": null, "children": [115, 116], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 4}}, {"id": 116, "type": "function_declarator", "text": "vad_color_init ()", "parent": 114, "children": [117, 118], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 22}}, {"id": 117, "type": "identifier", "text": "vad_color_init", "parent": 116, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 19}}, {"id": 118, "type": "parameter_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 22}}, {"id": 119, "type": "declaration", "text": "int ier, bsize=LLMXLN, inum;", "parent": 114, "children": [120, 121, 122, 126], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 28}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 3}}, {"id": 121, "type": "identifier", "text": "ier", "parent": 119, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 122, "type": "init_declarator", "text": "bsize=LLMXLN", "parent": 119, "children": [123, 124, 125], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 21}}, {"id": 123, "type": "identifier", "text": "bsize", "parent": 122, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 14}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 125, "type": "identifier", "text": "LLMXLN", "parent": 122, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 21}}, {"id": 126, "type": "identifier", "text": "inum", "parent": 119, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 27}}, {"id": 127, "type": "declaration", "text": "char buf[LLMXLN], *cpos;", "parent": 114, "children": [128, 129, 132], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 24}}, {"id": 128, "type": "primitive_type", "text": "char", "parent": 127, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 129, "type": "array_declarator", "text": "buf[LLMXLN]", "parent": 127, "children": [130, 131], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 16}}, {"id": 130, "type": "identifier", "text": "buf", "parent": 129, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 8}}, {"id": 131, "type": "identifier", "text": "LLMXLN", "parent": 129, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 15}}, {"id": 132, "type": "pointer_declarator", "text": "*cpos", "parent": 127, "children": [133, 134], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 23}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 19}}, {"id": 134, "type": "identifier", "text": "cpos", "parent": 132, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 23}}, {"id": 135, "type": "declaration", "text": "FILE *fp;", "parent": 114, "children": [136, 137], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 9}}, {"id": 136, "type": "type_identifier", "text": "FILE", "parent": 135, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 137, "type": "pointer_declarator", "text": "*fp", "parent": 135, "children": [138, 139], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 8}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 6}}, {"id": 139, "type": "identifier", "text": "fp", "parent": 137, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 8}}, {"id": 140, "type": "assignment_expression", "text": "fp = cfl_tbop ( \"gpvad.config\", \"unidata\", &ier )", "parent": 114, "children": [141, 142, 143], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 49}}, {"id": 141, "type": "identifier", "text": "fp", "parent": 140, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 2}}, {"id": 142, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 4}}, {"id": 143, "type": "call_expression", "text": "cfl_tbop ( \"gpvad.config\", \"unidata\", &ier )", "parent": 140, "children": [144, 145], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 49}}, {"id": 144, "type": "identifier", "text": "cfl_tbop", "parent": 143, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 13}}, {"id": 145, "type": "argument_list", "text": "( \"gpvad.config\", \"unidata\", &ier )", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 49}}, {"id": 146, "type": "string_literal", "text": "\"gpvad.config\"", "parent": 145, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 30}}, {"id": 147, "type": "string_literal", "text": "\"unidata\"", "parent": 145, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 41}}, {"id": 148, "type": "pointer_expression", "text": "&ier", "parent": 145, "children": [149], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 47}}, {"id": 149, "type": "identifier", "text": "ier", "parent": 148, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 47}}, {"id": 150, "type": "if_statement", "text": "if (fp == NULL) return;", "parent": 114, "children": [151, 157], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 23}}, {"id": 151, "type": "parenthesized_expression", "text": "(fp == NULL)", "parent": 150, "children": [152], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 15}}, {"id": 152, "type": "binary_expression", "text": "fp == NULL", "parent": 151, "children": [153, 154, 155], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 14}}, {"id": 153, "type": "identifier", "text": "fp", "parent": 152, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 6}}, {"id": 154, "type": "==", "text": "==", "parent": 152, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 9}}, {"id": 155, "type": "null", "text": "NULL", "parent": 152, "children": [156], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 14}}, {"id": 156, "type": "NULL", "text": "NULL", "parent": 155, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 14}}, {"id": 157, "type": "return_statement", "text": "return;", "parent": 150, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 23}}, {"id": 158, "type": "call_expression", "text": "cfl_trln ( fp, bsize, buf, &ier)", "parent": 114, "children": [159, 160], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 32}}, {"id": 159, "type": "identifier", "text": "cfl_trln", "parent": 158, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 160, "type": "argument_list", "text": "( fp, bsize, buf, &ier)", "parent": 158, "children": [161, 162, 163, 164], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 32}}, {"id": 161, "type": "identifier", "text": "fp", "parent": 160, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 13}}, {"id": 162, "type": "identifier", "text": "bsize", "parent": 160, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 20}}, {"id": 163, "type": "identifier", "text": "buf", "parent": 160, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 25}}, {"id": 164, "type": "pointer_expression", "text": "&ier", "parent": 160, "children": [165], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 31}}, {"id": 165, "type": "identifier", "text": "ier", "parent": 164, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 31}}, {"id": 166, "type": "while_statement", "text": "while ( ier == 0 )\n {\n if ( strncmp(buf,\"COLORS\",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n\t cpos++;\n\t cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n\t cfl_clos ( fp, &ier );\n return;\n }\n else\n\t printf(\"Invalid color configuration line %s\\n\",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }", "parent": 114, "children": [167], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 167, "type": "parenthesized_expression", "text": "( ier == 0 )", "parent": 166, "children": [168], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 18}}, {"id": 168, "type": "binary_expression", "text": "ier == 0", "parent": 167, "children": [169, 170, 171], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 169, "type": "identifier", "text": "ier", "parent": 168, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 11}}, {"id": 170, "type": "==", "text": "==", "parent": 168, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 14}}, {"id": 171, "type": "number_literal", "text": "0", "parent": 168, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 172, "type": "if_statement", "text": "if ( strncmp(buf,\"COLORS\",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n\t cpos++;\n\t cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n\t cfl_clos ( fp, &ier );\n return;\n }\n else\n\t printf(\"Invalid color configuration line %s\\n\",buf);\n }", "parent": 166, "children": [173], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 173, "type": "parenthesized_expression", "text": "( strncmp(buf,\"COLORS\",6) == 0)", "parent": 172, "children": [174], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 37}}, {"id": 174, "type": "binary_expression", "text": "strncmp(buf,\"COLORS\",6) == 0", "parent": 173, "children": [175, 181, 182], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 36}}, {"id": 175, "type": "call_expression", "text": "strncmp(buf,\"COLORS\",6)", "parent": 174, "children": [176, 177], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 31}}, {"id": 176, "type": "identifier", "text": "strncmp", "parent": 175, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 15}}, {"id": 177, "type": "argument_list", "text": "(buf,\"COLORS\",6)", "parent": 175, "children": [178, 179, 180], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 31}}, {"id": 178, "type": "identifier", "text": "buf", "parent": 177, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 19}}, {"id": 179, "type": "string_literal", "text": "\"COLORS\"", "parent": 177, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 28}}, {"id": 180, "type": "number_literal", "text": "6", "parent": 177, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 30}}, {"id": 181, "type": "==", "text": "==", "parent": 174, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 34}}, {"id": 182, "type": "number_literal", "text": "0", "parent": 174, "children": [], "start_point": {"row": 45, "column": 35}, "end_point": {"row": 45, "column": 36}}, {"id": 183, "type": "assignment_expression", "text": "cpos = strchr(buf, ':')", "parent": 172, "children": [184, 185, 186], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 29}}, {"id": 184, "type": "identifier", "text": "cpos", "parent": 183, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 10}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 186, "type": "call_expression", "text": "strchr(buf, ':')", "parent": 183, "children": [187, 188], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 29}}, {"id": 187, "type": "identifier", "text": "strchr", "parent": 186, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 19}}, {"id": 188, "type": "argument_list", "text": "(buf, ':')", "parent": 186, "children": [189, 190], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 29}}, {"id": 189, "type": "identifier", "text": "buf", "parent": 188, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 23}}, {"id": 190, "type": "char_literal", "text": "':'", "parent": 188, "children": [191, 192], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 28}}, {"id": 191, "type": "'", "text": "'", "parent": 190, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 26}}, {"id": 192, "type": "'", "text": "'", "parent": 190, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 28}}, {"id": 193, "type": "if_statement", "text": "if ( cpos != NULL )\n {\n\t cpos++;\n\t cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n\t cfl_clos ( fp, &ier );\n return;\n }\n else\n\t printf(\"Invalid color configuration line %s\\n\",buf);", "parent": 172, "children": [194, 224], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 56, "column": 54}}, {"id": 194, "type": "parenthesized_expression", "text": "( cpos != NULL )", "parent": 193, "children": [195], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 25}}, {"id": 195, "type": "binary_expression", "text": "cpos != NULL", "parent": 194, "children": [196, 197, 198], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 23}}, {"id": 196, "type": "identifier", "text": "cpos", "parent": 195, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 197, "type": "!=", "text": "!=", "parent": 195, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 18}}, {"id": 198, "type": "null", "text": "NULL", "parent": 195, "children": [199], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 23}}, {"id": 199, "type": "NULL", "text": "NULL", "parent": 198, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 23}}, {"id": 200, "type": "update_expression", "text": "cpos++", "parent": 193, "children": [201, 202], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 8}}, {"id": 201, "type": "identifier", "text": "cpos", "parent": 200, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 6}}, {"id": 202, "type": "++", "text": "++", "parent": 200, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 8}}, {"id": 203, "type": "call_expression", "text": "cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier)", "parent": 193, "children": [204, 205], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 52}}, {"id": 204, "type": "identifier", "text": "cst_ilst", "parent": 203, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 10}}, {"id": 205, "type": "argument_list", "text": "( cpos, ':', 1, 16, vadcols, &inum, &ier)", "parent": 203, "children": [206, 207, 210, 211, 212, 213, 215], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 52}}, {"id": 206, "type": "identifier", "text": "cpos", "parent": 205, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 17}}, {"id": 207, "type": "char_literal", "text": "':'", "parent": 205, "children": [208, 209], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 22}}, {"id": 208, "type": "'", "text": "'", "parent": 207, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 209, "type": "'", "text": "'", "parent": 207, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 22}}, {"id": 210, "type": "number_literal", "text": "1", "parent": 205, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 25}}, {"id": 211, "type": "number_literal", "text": "16", "parent": 205, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 29}}, {"id": 212, "type": "identifier", "text": "vadcols", "parent": 205, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 38}}, {"id": 213, "type": "pointer_expression", "text": "&inum", "parent": 205, "children": [214], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 45}}, {"id": 214, "type": "identifier", "text": "inum", "parent": 213, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 45}}, {"id": 215, "type": "pointer_expression", "text": "&ier", "parent": 205, "children": [216], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 51}}, {"id": 216, "type": "identifier", "text": "ier", "parent": 215, "children": [], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 51}}, {"id": 217, "type": "call_expression", "text": "cfl_clos ( fp, &ier )", "parent": 193, "children": [218, 219], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 23}}, {"id": 218, "type": "identifier", "text": "cfl_clos", "parent": 217, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 10}}, {"id": 219, "type": "argument_list", "text": "( fp, &ier )", "parent": 217, "children": [220, 221], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 23}}, {"id": 220, "type": "identifier", "text": "fp", "parent": 219, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 15}}, {"id": 221, "type": "pointer_expression", "text": "&ier", "parent": 219, "children": [222], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 21}}, {"id": 222, "type": "identifier", "text": "ier", "parent": 221, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 21}}, {"id": 223, "type": "return_statement", "text": "return;", "parent": 193, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 16}}, {"id": 224, "type": "else_clause", "text": "else\n\t printf(\"Invalid color configuration line %s\\n\",buf);", "parent": 193, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 56, "column": 54}}, {"id": 225, "type": "call_expression", "text": "printf(\"Invalid color configuration line %s\\n\",buf)", "parent": 224, "children": [226, 227], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 53}}, {"id": 226, "type": "identifier", "text": "printf", "parent": 225, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 8}}, {"id": 227, "type": "argument_list", "text": "(\"Invalid color configuration line %s\\n\",buf)", "parent": 225, "children": [228, 230], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 53}}, {"id": 228, "type": "string_literal", "text": "\"Invalid color configuration line %s\\n\"", "parent": 227, "children": [229], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 48}}, {"id": 229, "type": "escape_sequence", "text": "\\n", "parent": 228, "children": [], "start_point": {"row": 56, "column": 45}, "end_point": {"row": 56, "column": 47}}, {"id": 230, "type": "identifier", "text": "buf", "parent": 227, "children": [], "start_point": {"row": 56, "column": 49}, "end_point": {"row": 56, "column": 52}}, {"id": 231, "type": "call_expression", "text": "cfl_trln ( fp, bsize, buf, &ier)", "parent": 166, "children": [232, 233], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 35}}, {"id": 232, "type": "identifier", "text": "cfl_trln", "parent": 231, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 11}}, {"id": 233, "type": "argument_list", "text": "( fp, bsize, buf, &ier)", "parent": 231, "children": [234, 235, 236, 237], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 35}}, {"id": 234, "type": "identifier", "text": "fp", "parent": 233, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 16}}, {"id": 235, "type": "identifier", "text": "bsize", "parent": 233, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 23}}, {"id": 236, "type": "identifier", "text": "buf", "parent": 233, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 28}}, {"id": 237, "type": "pointer_expression", "text": "&ier", "parent": 233, "children": [238], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 34}}, {"id": 238, "type": "identifier", "text": "ier", "parent": 237, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 34}}, {"id": 239, "type": "call_expression", "text": "cfl_clos ( fp, &ier )", "parent": 114, "children": [240, 241], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 21}}, {"id": 240, "type": "identifier", "text": "cfl_clos", "parent": 239, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 8}}, {"id": 241, "type": "argument_list", "text": "( fp, &ier )", "parent": 239, "children": [242, 243], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 21}}, {"id": 242, "type": "identifier", "text": "fp", "parent": 241, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 13}}, {"id": 243, "type": "pointer_expression", "text": "&ier", "parent": 241, "children": [244], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 244, "type": "identifier", "text": "ier", "parent": 243, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 19}}, {"id": 245, "type": "function_definition", "text": "void vad_colors ( int *icolor, int *ier)\n{\n*ier = 0;\ngraphic_color = *icolor;\n}", "parent": null, "children": [246, 247], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 246, "type": "primitive_type", "text": "void", "parent": 245, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 4}}, {"id": 247, "type": "function_declarator", "text": "vad_colors ( int *icolor, int *ier)", "parent": 245, "children": [248, 249], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 40}}, {"id": 248, "type": "identifier", "text": "vad_colors", "parent": 247, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 15}}, {"id": 249, "type": "parameter_list", "text": "( int *icolor, int *ier)", "parent": 247, "children": [250, 255], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 40}}, {"id": 250, "type": "parameter_declaration", "text": "int *icolor", "parent": 249, "children": [251, 252], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 29}}, {"id": 251, "type": "primitive_type", "text": "int", "parent": 250, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 21}}, {"id": 252, "type": "pointer_declarator", "text": "*icolor", "parent": 250, "children": [253, 254], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 29}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 254, "type": "identifier", "text": "icolor", "parent": 252, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 29}}, {"id": 255, "type": "parameter_declaration", "text": "int *ier", "parent": 249, "children": [256, 257], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 39}}, {"id": 256, "type": "primitive_type", "text": "int", "parent": 255, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 34}}, {"id": 257, "type": "pointer_declarator", "text": "*ier", "parent": 255, "children": [258, 259], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 39}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 36}}, {"id": 259, "type": "identifier", "text": "ier", "parent": 257, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 39}}, {"id": 260, "type": "assignment_expression", "text": "*ier = 0", "parent": 245, "children": [261, 264, 265], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 261, "type": "pointer_expression", "text": "*ier", "parent": 260, "children": [262, 263], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 4}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 263, "type": "identifier", "text": "ier", "parent": 261, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 4}}, {"id": 264, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 6}}, {"id": 265, "type": "number_literal", "text": "0", "parent": 260, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 8}}, {"id": 266, "type": "assignment_expression", "text": "graphic_color = *icolor", "parent": 245, "children": [267, 268, 269], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 23}}, {"id": 267, "type": "identifier", "text": "graphic_color", "parent": 266, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 13}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 269, "type": "pointer_expression", "text": "*icolor", "parent": 266, "children": [270, 271], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 23}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 271, "type": "identifier", "text": "icolor", "parent": 269, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 23}}, {"id": 272, "type": "function_definition", "text": "void vad_line ( int *icolor, int *itype, int *iwidth, int *ier)\n{\n*ier = 0;\nline_color = *icolor;\nline_type = *itype;\nline_width = *iwidth;\n}", "parent": null, "children": [273, 274], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 273, "type": "primitive_type", "text": "void", "parent": 272, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 4}}, {"id": 274, "type": "function_declarator", "text": "vad_line ( int *icolor, int *itype, int *iwidth, int *ier)", "parent": 272, "children": [275, 276], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 63}}, {"id": 275, "type": "identifier", "text": "vad_line", "parent": 274, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 13}}, {"id": 276, "type": "parameter_list", "text": "( int *icolor, int *itype, int *iwidth, int *ier)", "parent": 274, "children": [277, 282, 287, 292], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 63}}, {"id": 277, "type": "parameter_declaration", "text": "int *icolor", "parent": 276, "children": [278, 279], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 27}}, {"id": 278, "type": "primitive_type", "text": "int", "parent": 277, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 19}}, {"id": 279, "type": "pointer_declarator", "text": "*icolor", "parent": 277, "children": [280, 281], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 27}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 21}}, {"id": 281, "type": "identifier", "text": "icolor", "parent": 279, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 27}}, {"id": 282, "type": "parameter_declaration", "text": "int *itype", "parent": 276, "children": [283, 284], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 39}}, {"id": 283, "type": "primitive_type", "text": "int", "parent": 282, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 32}}, {"id": 284, "type": "pointer_declarator", "text": "*itype", "parent": 282, "children": [285, 286], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 39}}, {"id": 285, "type": "*", "text": "*", "parent": 284, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 34}}, {"id": 286, "type": "identifier", "text": "itype", "parent": 284, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 39}}, {"id": 287, "type": "parameter_declaration", "text": "int *iwidth", "parent": 276, "children": [288, 289], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 52}}, {"id": 288, "type": "primitive_type", "text": "int", "parent": 287, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 44}}, {"id": 289, "type": "pointer_declarator", "text": "*iwidth", "parent": 287, "children": [290, 291], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 52}}, {"id": 290, "type": "*", "text": "*", "parent": 289, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 46}}, {"id": 291, "type": "identifier", "text": "iwidth", "parent": 289, "children": [], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 52}}, {"id": 292, "type": "parameter_declaration", "text": "int *ier", "parent": 276, "children": [293, 294], "start_point": {"row": 71, "column": 54}, "end_point": {"row": 71, "column": 62}}, {"id": 293, "type": "primitive_type", "text": "int", "parent": 292, "children": [], "start_point": {"row": 71, "column": 54}, "end_point": {"row": 71, "column": 57}}, {"id": 294, "type": "pointer_declarator", "text": "*ier", "parent": 292, "children": [295, 296], "start_point": {"row": 71, "column": 58}, "end_point": {"row": 71, "column": 62}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 71, "column": 58}, "end_point": {"row": 71, "column": 59}}, {"id": 296, "type": "identifier", "text": "ier", "parent": 294, "children": [], "start_point": {"row": 71, "column": 59}, "end_point": {"row": 71, "column": 62}}, {"id": 297, "type": "assignment_expression", "text": "*ier = 0", "parent": 272, "children": [298, 301, 302], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 298, "type": "pointer_expression", "text": "*ier", "parent": 297, "children": [299, 300], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 4}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 300, "type": "identifier", "text": "ier", "parent": 298, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 301, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 6}}, {"id": 302, "type": "number_literal", "text": "0", "parent": 297, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 8}}, {"id": 303, "type": "assignment_expression", "text": "line_color = *icolor", "parent": 272, "children": [304, 305, 306], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 20}}, {"id": 304, "type": "identifier", "text": "line_color", "parent": 303, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 10}}, {"id": 305, "type": "=", "text": "=", "parent": 303, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 12}}, {"id": 306, "type": "pointer_expression", "text": "*icolor", "parent": 303, "children": [307, 308], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 20}}, {"id": 307, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 308, "type": "identifier", "text": "icolor", "parent": 306, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 20}}, {"id": 309, "type": "assignment_expression", "text": "line_type = *itype", "parent": 272, "children": [310, 311, 312], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 18}}, {"id": 310, "type": "identifier", "text": "line_type", "parent": 309, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 9}}, {"id": 311, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 11}}, {"id": 312, "type": "pointer_expression", "text": "*itype", "parent": 309, "children": [313, 314], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 18}}, {"id": 313, "type": "*", "text": "*", "parent": 312, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 13}}, {"id": 314, "type": "identifier", "text": "itype", "parent": 312, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 18}}, {"id": 315, "type": "assignment_expression", "text": "line_width = *iwidth", "parent": 272, "children": [316, 317, 318], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 20}}, {"id": 316, "type": "identifier", "text": "line_width", "parent": 315, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 10}}, {"id": 317, "type": "=", "text": "=", "parent": 315, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 12}}, {"id": 318, "type": "pointer_expression", "text": "*iwidth", "parent": 315, "children": [319, 320], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 20}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 14}}, {"id": 320, "type": "identifier", "text": "iwidth", "parent": 318, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 20}}, {"id": 321, "type": "function_definition", "text": "void vad_rms_colors ( int *NFLVL, int ifcolr[] )\n{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];\n}", "parent": null, "children": [322, 323], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 322, "type": "primitive_type", "text": "void", "parent": 321, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 323, "type": "function_declarator", "text": "vad_rms_colors ( int *NFLVL, int ifcolr[] )", "parent": 321, "children": [324, 325], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 48}}, {"id": 324, "type": "identifier", "text": "vad_rms_colors", "parent": 323, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 19}}, {"id": 325, "type": "parameter_list", "text": "( int *NFLVL, int ifcolr[] )", "parent": 323, "children": [326, 331], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 48}}, {"id": 326, "type": "parameter_declaration", "text": "int *NFLVL", "parent": 325, "children": [327, 328], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 32}}, {"id": 327, "type": "primitive_type", "text": "int", "parent": 326, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 25}}, {"id": 328, "type": "pointer_declarator", "text": "*NFLVL", "parent": 326, "children": [329, 330], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 32}}, {"id": 329, "type": "*", "text": "*", "parent": 328, "children": [], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 27}}, {"id": 330, "type": "identifier", "text": "NFLVL", "parent": 328, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 32}}, {"id": 331, "type": "parameter_declaration", "text": "int ifcolr[]", "parent": 325, "children": [332, 333], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 46}}, {"id": 332, "type": "primitive_type", "text": "int", "parent": 331, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 37}}, {"id": 333, "type": "array_declarator", "text": "ifcolr[]", "parent": 331, "children": [334], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 46}}, {"id": 334, "type": "identifier", "text": "ifcolr", "parent": 333, "children": [], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 44}}, {"id": 335, "type": "declaration", "text": "int i;", "parent": 321, "children": [336, 337], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 6}}, {"id": 336, "type": "primitive_type", "text": "int", "parent": 335, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 3}}, {"id": 337, "type": "identifier", "text": "i", "parent": 335, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 338, "type": "for_statement", "text": "for ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];", "parent": 321, "children": [339, 343, 349], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 83, "column": 26}}, {"id": 339, "type": "assignment_expression", "text": "i = 0", "parent": 338, "children": [340, 341, 342], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 11}}, {"id": 340, "type": "identifier", "text": "i", "parent": 339, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 341, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 9}}, {"id": 342, "type": "number_literal", "text": "0", "parent": 339, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 343, "type": "binary_expression", "text": "i < *NFLVL", "parent": 338, "children": [344, 345, 346], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 23}}, {"id": 344, "type": "identifier", "text": "i", "parent": 343, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 14}}, {"id": 345, "type": "<", "text": "<", "parent": 343, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 16}}, {"id": 346, "type": "pointer_expression", "text": "*NFLVL", "parent": 343, "children": [347, 348], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 23}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 348, "type": "identifier", "text": "NFLVL", "parent": 346, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 23}}, {"id": 349, "type": "update_expression", "text": "i++", "parent": 338, "children": [350, 351], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 28}}, {"id": 350, "type": "identifier", "text": "i", "parent": 349, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 351, "type": "++", "text": "++", "parent": 349, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 28}}, {"id": 352, "type": "assignment_expression", "text": "ifcolr[i] = vadcols[i]", "parent": 338, "children": [353, 356, 357], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 25}}, {"id": 353, "type": "subscript_expression", "text": "ifcolr[i]", "parent": 352, "children": [354, 355], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 12}}, {"id": 354, "type": "identifier", "text": "ifcolr", "parent": 353, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 9}}, {"id": 355, "type": "identifier", "text": "i", "parent": 353, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 11}}, {"id": 356, "type": "=", "text": "=", "parent": 352, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 14}}, {"id": 357, "type": "subscript_expression", "text": "vadcols[i]", "parent": 352, "children": [358, 359], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 25}}, {"id": 358, "type": "identifier", "text": "vadcols", "parent": 357, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 22}}, {"id": 359, "type": "identifier", "text": "i", "parent": 357, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 24}}, {"id": 360, "type": "function_definition", "text": "int vad_setcol ( int ival)\n{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf(\"unexpected VAD color index %d\\n\",ival);\n ival = 15;\n }\ngscolr ( &vadcols[ival], &ier);\n}", "parent": null, "children": [361, 362], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 361, "type": "primitive_type", "text": "int", "parent": 360, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 3}}, {"id": 362, "type": "function_declarator", "text": "vad_setcol ( int ival)", "parent": 360, "children": [363, 364], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 26}}, {"id": 363, "type": "identifier", "text": "vad_setcol", "parent": 362, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 14}}, {"id": 364, "type": "parameter_list", "text": "( int ival)", "parent": 362, "children": [365], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 26}}, {"id": 365, "type": "parameter_declaration", "text": "int ival", "parent": 364, "children": [366, 367], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 25}}, {"id": 366, "type": "primitive_type", "text": "int", "parent": 365, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 20}}, {"id": 367, "type": "identifier", "text": "ival", "parent": 365, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 25}}, {"id": 368, "type": "declaration", "text": "int ier;", "parent": 360, "children": [369, 370], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 8}}, {"id": 369, "type": "primitive_type", "text": "int", "parent": 368, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 3}}, {"id": 370, "type": "identifier", "text": "ier", "parent": 368, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 7}}, {"id": 371, "type": "if_statement", "text": "if ( ( ival < 0 )||(ival > 15) )\n {\n printf(\"unexpected VAD color index %d\\n\",ival);\n ival = 15;\n }", "parent": 360, "children": [372], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 93, "column": 4}}, {"id": 372, "type": "parenthesized_expression", "text": "( ( ival < 0 )||(ival > 15) )", "parent": 371, "children": [373], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 32}}, {"id": 373, "type": "binary_expression", "text": "( ival < 0 )||(ival > 15)", "parent": 372, "children": [374, 379, 380], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 30}}, {"id": 374, "type": "parenthesized_expression", "text": "( ival < 0 )", "parent": 373, "children": [375], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 17}}, {"id": 375, "type": "binary_expression", "text": "ival < 0", "parent": 374, "children": [376, 377, 378], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 15}}, {"id": 376, "type": "identifier", "text": "ival", "parent": 375, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 11}}, {"id": 377, "type": "<", "text": "<", "parent": 375, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 13}}, {"id": 378, "type": "number_literal", "text": "0", "parent": 375, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 379, "type": "||", "text": "||", "parent": 373, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 19}}, {"id": 380, "type": "parenthesized_expression", "text": "(ival > 15)", "parent": 373, "children": [381], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 30}}, {"id": 381, "type": "binary_expression", "text": "ival > 15", "parent": 380, "children": [382, 383, 384], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 29}}, {"id": 382, "type": "identifier", "text": "ival", "parent": 381, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 24}}, {"id": 383, "type": ">", "text": ">", "parent": 381, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 26}}, {"id": 384, "type": "number_literal", "text": "15", "parent": 381, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 29}}, {"id": 385, "type": "call_expression", "text": "printf(\"unexpected VAD color index %d\\n\",ival)", "parent": 371, "children": [386, 387], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 49}}, {"id": 386, "type": "identifier", "text": "printf", "parent": 385, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 9}}, {"id": 387, "type": "argument_list", "text": "(\"unexpected VAD color index %d\\n\",ival)", "parent": 385, "children": [388, 390], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 49}}, {"id": 388, "type": "string_literal", "text": "\"unexpected VAD color index %d\\n\"", "parent": 387, "children": [389], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 43}}, {"id": 389, "type": "escape_sequence", "text": "\\n", "parent": 388, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 42}}, {"id": 390, "type": "identifier", "text": "ival", "parent": 387, "children": [], "start_point": {"row": 91, "column": 44}, "end_point": {"row": 91, "column": 48}}, {"id": 391, "type": "assignment_expression", "text": "ival = 15", "parent": 371, "children": [392, 393, 394], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 12}}, {"id": 392, "type": "identifier", "text": "ival", "parent": 391, "children": [], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 7}}, {"id": 393, "type": "=", "text": "=", "parent": 391, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 394, "type": "number_literal", "text": "15", "parent": 391, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 12}}, {"id": 395, "type": "call_expression", "text": "gscolr ( &vadcols[ival], &ier)", "parent": 360, "children": [396, 397], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 30}}, {"id": 396, "type": "identifier", "text": "gscolr", "parent": 395, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 6}}, {"id": 397, "type": "argument_list", "text": "( &vadcols[ival], &ier)", "parent": 395, "children": [398, 402], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 30}}, {"id": 398, "type": "pointer_expression", "text": "&vadcols[ival]", "parent": 397, "children": [399], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 23}}, {"id": 399, "type": "subscript_expression", "text": "vadcols[ival]", "parent": 398, "children": [400, 401], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 23}}, {"id": 400, "type": "identifier", "text": "vadcols", "parent": 399, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 17}}, {"id": 401, "type": "identifier", "text": "ival", "parent": 399, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 22}}, {"id": 402, "type": "pointer_expression", "text": "&ier", "parent": 397, "children": [403], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 29}}, {"id": 403, "type": "identifier", "text": "ier", "parent": 402, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 29}}, {"id": 404, "type": "declaration", "text": "char isub_garea[LLMXLN];", "parent": null, "children": [405, 406], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 24}}, {"id": 405, "type": "primitive_type", "text": "char", "parent": 404, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 4}}, {"id": 406, "type": "array_declarator", "text": "isub_garea[LLMXLN]", "parent": 404, "children": [407, 408], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 23}}, {"id": 407, "type": "identifier", "text": "isub_garea", "parent": 406, "children": [], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 15}}, {"id": 408, "type": "identifier", "text": "LLMXLN", "parent": 406, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 22}}, {"id": 409, "type": "function_definition", "text": "void vad_garea ( char *garea, int *lenstr, int *ier)\n{\nstrncpy(isub_garea, garea, *lenstr);\nisub_garea[*lenstr] = '\\0';\ncst_lcuc ( isub_garea, isub_garea, ier );\nreturn;\n}", "parent": null, "children": [410, 411], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 410, "type": "primitive_type", "text": "void", "parent": 409, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 4}}, {"id": 411, "type": "function_declarator", "text": "vad_garea ( char *garea, int *lenstr, int *ier)", "parent": 409, "children": [412, 413], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 52}}, {"id": 412, "type": "identifier", "text": "vad_garea", "parent": 411, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 14}}, {"id": 413, "type": "parameter_list", "text": "( char *garea, int *lenstr, int *ier)", "parent": 411, "children": [414, 419, 424], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 52}}, {"id": 414, "type": "parameter_declaration", "text": "char *garea", "parent": 413, "children": [415, 416], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 28}}, {"id": 415, "type": "primitive_type", "text": "char", "parent": 414, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 21}}, {"id": 416, "type": "pointer_declarator", "text": "*garea", "parent": 414, "children": [417, 418], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 28}}, {"id": 417, "type": "*", "text": "*", "parent": 416, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 23}}, {"id": 418, "type": "identifier", "text": "garea", "parent": 416, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 28}}, {"id": 419, "type": "parameter_declaration", "text": "int *lenstr", "parent": 413, "children": [420, 421], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 41}}, {"id": 420, "type": "primitive_type", "text": "int", "parent": 419, "children": [], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 33}}, {"id": 421, "type": "pointer_declarator", "text": "*lenstr", "parent": 419, "children": [422, 423], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 41}}, {"id": 422, "type": "*", "text": "*", "parent": 421, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 423, "type": "identifier", "text": "lenstr", "parent": 421, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 41}}, {"id": 424, "type": "parameter_declaration", "text": "int *ier", "parent": 413, "children": [425, 426], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 51}}, {"id": 425, "type": "primitive_type", "text": "int", "parent": 424, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 46}}, {"id": 426, "type": "pointer_declarator", "text": "*ier", "parent": 424, "children": [427, 428], "start_point": {"row": 99, "column": 47}, "end_point": {"row": 99, "column": 51}}, {"id": 427, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 99, "column": 47}, "end_point": {"row": 99, "column": 48}}, {"id": 428, "type": "identifier", "text": "ier", "parent": 426, "children": [], "start_point": {"row": 99, "column": 48}, "end_point": {"row": 99, "column": 51}}, {"id": 429, "type": "call_expression", "text": "strncpy(isub_garea, garea, *lenstr)", "parent": 409, "children": [430, 431], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 35}}, {"id": 430, "type": "identifier", "text": "strncpy", "parent": 429, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 431, "type": "argument_list", "text": "(isub_garea, garea, *lenstr)", "parent": 429, "children": [432, 433, 434], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 35}}, {"id": 432, "type": "identifier", "text": "isub_garea", "parent": 431, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 18}}, {"id": 433, "type": "identifier", "text": "garea", "parent": 431, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 25}}, {"id": 434, "type": "pointer_expression", "text": "*lenstr", "parent": 431, "children": [435, 436], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 34}}, {"id": 435, "type": "*", "text": "*", "parent": 434, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 28}}, {"id": 436, "type": "identifier", "text": "lenstr", "parent": 434, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 34}}, {"id": 437, "type": "assignment_expression", "text": "isub_garea[*lenstr] = '\\0'", "parent": 409, "children": [438, 443, 444], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 26}}, {"id": 438, "type": "subscript_expression", "text": "isub_garea[*lenstr]", "parent": 437, "children": [439, 440], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 19}}, {"id": 439, "type": "identifier", "text": "isub_garea", "parent": 438, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 10}}, {"id": 440, "type": "pointer_expression", "text": "*lenstr", "parent": 438, "children": [441, 442], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 18}}, {"id": 441, "type": "*", "text": "*", "parent": 440, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 12}}, {"id": 442, "type": "identifier", "text": "lenstr", "parent": 440, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 18}}, {"id": 443, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 444, "type": "char_literal", "text": "'\\0'", "parent": 437, "children": [445, 446, 447], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 26}}, {"id": 445, "type": "'", "text": "'", "parent": 444, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 23}}, {"id": 446, "type": "escape_sequence", "text": "\\0", "parent": 444, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 25}}, {"id": 447, "type": "'", "text": "'", "parent": 444, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 26}}, {"id": 448, "type": "call_expression", "text": "cst_lcuc ( isub_garea, isub_garea, ier )", "parent": 409, "children": [449, 450], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 40}}, {"id": 449, "type": "identifier", "text": "cst_lcuc", "parent": 448, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 8}}, {"id": 450, "type": "argument_list", "text": "( isub_garea, isub_garea, ier )", "parent": 448, "children": [451, 452, 453], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 40}}, {"id": 451, "type": "identifier", "text": "isub_garea", "parent": 450, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 21}}, {"id": 452, "type": "identifier", "text": "isub_garea", "parent": 450, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 33}}, {"id": 453, "type": "identifier", "text": "ier", "parent": 450, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 38}}, {"id": 454, "type": "return_statement", "text": "return;", "parent": 409, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 455, "type": "declaration", "text": "char image_imcbar[LLMXLN];", "parent": null, "children": [456, 457], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 26}}, {"id": 456, "type": "primitive_type", "text": "char", "parent": 455, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 4}}, {"id": 457, "type": "array_declarator", "text": "image_imcbar[LLMXLN]", "parent": 455, "children": [458, 459], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 25}}, {"id": 458, "type": "identifier", "text": "image_imcbar", "parent": 457, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 17}}, {"id": 459, "type": "identifier", "text": "LLMXLN", "parent": 457, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 24}}, {"id": 460, "type": "function_definition", "text": "void vad_imcbar ( char *imcbar, int *lenstr, int *ier)\n{\nstrncpy(image_imcbar, imcbar, *lenstr);\nimage_imcbar[*lenstr] = '\\0';\n*ier = 0;\nreturn;\n}", "parent": null, "children": [461, 462], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 461, "type": "primitive_type", "text": "void", "parent": 460, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 462, "type": "function_declarator", "text": "vad_imcbar ( char *imcbar, int *lenstr, int *ier)", "parent": 460, "children": [463, 464], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 54}}, {"id": 463, "type": "identifier", "text": "vad_imcbar", "parent": 462, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 15}}, {"id": 464, "type": "parameter_list", "text": "( char *imcbar, int *lenstr, int *ier)", "parent": 462, "children": [465, 470, 475], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 54}}, {"id": 465, "type": "parameter_declaration", "text": "char *imcbar", "parent": 464, "children": [466, 467], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 30}}, {"id": 466, "type": "primitive_type", "text": "char", "parent": 465, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 22}}, {"id": 467, "type": "pointer_declarator", "text": "*imcbar", "parent": 465, "children": [468, 469], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 30}}, {"id": 468, "type": "*", "text": "*", "parent": 467, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 24}}, {"id": 469, "type": "identifier", "text": "imcbar", "parent": 467, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 30}}, {"id": 470, "type": "parameter_declaration", "text": "int *lenstr", "parent": 464, "children": [471, 472], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 43}}, {"id": 471, "type": "primitive_type", "text": "int", "parent": 470, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 35}}, {"id": 472, "type": "pointer_declarator", "text": "*lenstr", "parent": 470, "children": [473, 474], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 43}}, {"id": 473, "type": "*", "text": "*", "parent": 472, "children": [], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 37}}, {"id": 474, "type": "identifier", "text": "lenstr", "parent": 472, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 43}}, {"id": 475, "type": "parameter_declaration", "text": "int *ier", "parent": 464, "children": [476, 477], "start_point": {"row": 109, "column": 45}, "end_point": {"row": 109, "column": 53}}, {"id": 476, "type": "primitive_type", "text": "int", "parent": 475, "children": [], "start_point": {"row": 109, "column": 45}, "end_point": {"row": 109, "column": 48}}, {"id": 477, "type": "pointer_declarator", "text": "*ier", "parent": 475, "children": [478, 479], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 53}}, {"id": 478, "type": "*", "text": "*", "parent": 477, "children": [], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 50}}, {"id": 479, "type": "identifier", "text": "ier", "parent": 477, "children": [], "start_point": {"row": 109, "column": 50}, "end_point": {"row": 109, "column": 53}}, {"id": 480, "type": "call_expression", "text": "strncpy(image_imcbar, imcbar, *lenstr)", "parent": 460, "children": [481, 482], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 38}}, {"id": 481, "type": "identifier", "text": "strncpy", "parent": 480, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 482, "type": "argument_list", "text": "(image_imcbar, imcbar, *lenstr)", "parent": 480, "children": [483, 484, 485], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 38}}, {"id": 483, "type": "identifier", "text": "image_imcbar", "parent": 482, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 20}}, {"id": 484, "type": "identifier", "text": "imcbar", "parent": 482, "children": [], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 28}}, {"id": 485, "type": "pointer_expression", "text": "*lenstr", "parent": 482, "children": [486, 487], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 37}}, {"id": 486, "type": "*", "text": "*", "parent": 485, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 31}}, {"id": 487, "type": "identifier", "text": "lenstr", "parent": 485, "children": [], "start_point": {"row": 111, "column": 31}, "end_point": {"row": 111, "column": 37}}, {"id": 488, "type": "assignment_expression", "text": "image_imcbar[*lenstr] = '\\0'", "parent": 460, "children": [489, 494, 495], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 28}}, {"id": 489, "type": "subscript_expression", "text": "image_imcbar[*lenstr]", "parent": 488, "children": [490, 491], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 21}}, {"id": 490, "type": "identifier", "text": "image_imcbar", "parent": 489, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 12}}, {"id": 491, "type": "pointer_expression", "text": "*lenstr", "parent": 489, "children": [492, 493], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 20}}, {"id": 492, "type": "*", "text": "*", "parent": 491, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 14}}, {"id": 493, "type": "identifier", "text": "lenstr", "parent": 491, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 20}}, {"id": 494, "type": "=", "text": "=", "parent": 488, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 23}}, {"id": 495, "type": "char_literal", "text": "'\\0'", "parent": 488, "children": [496, 497, 498], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 28}}, {"id": 496, "type": "'", "text": "'", "parent": 495, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 25}}, {"id": 497, "type": "escape_sequence", "text": "\\0", "parent": 495, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 27}}, {"id": 498, "type": "'", "text": "'", "parent": 495, "children": [], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 28}}, {"id": 499, "type": "assignment_expression", "text": "*ier = 0", "parent": 460, "children": [500, 503, 504], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 8}}, {"id": 500, "type": "pointer_expression", "text": "*ier", "parent": 499, "children": [501, 502], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 4}}, {"id": 501, "type": "*", "text": "*", "parent": 500, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 1}}, {"id": 502, "type": "identifier", "text": "ier", "parent": 500, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 4}}, {"id": 503, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 6}}, {"id": 504, "type": "number_literal", "text": "0", "parent": 499, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 8}}, {"id": 505, "type": "return_statement", "text": "return;", "parent": 460, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 7}}, {"id": 506, "type": "function_definition", "text": "int read_int ( unsigned char *x )\n{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];\nreturn (ival);\n}", "parent": null, "children": [507, 508], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 507, "type": "primitive_type", "text": "int", "parent": 506, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 3}}, {"id": 508, "type": "function_declarator", "text": "read_int ( unsigned char *x )", "parent": 506, "children": [509, 510], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 33}}, {"id": 509, "type": "identifier", "text": "read_int", "parent": 508, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 12}}, {"id": 510, "type": "parameter_list", "text": "( unsigned char *x )", "parent": 508, "children": [511], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 33}}, {"id": 511, "type": "parameter_declaration", "text": "unsigned char *x", "parent": 510, "children": [512, 515], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 31}}, {"id": 512, "type": "sized_type_specifier", "text": "unsigned char", "parent": 511, "children": [513, 514], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 28}}, {"id": 513, "type": "unsigned", "text": "unsigned", "parent": 512, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 23}}, {"id": 514, "type": "primitive_type", "text": "char", "parent": 512, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 28}}, {"id": 515, "type": "pointer_declarator", "text": "*x", "parent": 511, "children": [516, 517], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 31}}, {"id": 516, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 30}}, {"id": 517, "type": "identifier", "text": "x", "parent": 515, "children": [], "start_point": {"row": 117, "column": 30}, "end_point": {"row": 117, "column": 31}}, {"id": 518, "type": "declaration", "text": "int ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];", "parent": 506, "children": [519, 520], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 72}}, {"id": 519, "type": "primitive_type", "text": "int", "parent": 518, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 3}}, {"id": 520, "type": "init_declarator", "text": "ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3]", "parent": 518, "children": [521, 522, 523], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 71}}, {"id": 521, "type": "identifier", "text": "ival", "parent": 520, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 8}}, {"id": 522, "type": "=", "text": "=", "parent": 520, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 523, "type": "binary_expression", "text": "( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3]", "parent": 520, "children": [524, 549], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 71}}, {"id": 524, "type": "parenthesized_expression", "text": "( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 )", "parent": 523, "children": [525], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 64}}, {"id": 525, "type": "binary_expression", "text": "( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8", "parent": 524, "children": [526, 547, 548], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 62}}, {"id": 526, "type": "parenthesized_expression", "text": "( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] )", "parent": 525, "children": [527], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 57}}, {"id": 527, "type": "binary_expression", "text": "( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2]", "parent": 526, "children": [528, 544], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 55}}, {"id": 528, "type": "parenthesized_expression", "text": "( ( ( x[0] << 8 ) | x[1] ) << 8 )", "parent": 527, "children": [529], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 48}}, {"id": 529, "type": "binary_expression", "text": "( ( x[0] << 8 ) | x[1] ) << 8", "parent": 528, "children": [530, 542, 543], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 46}}, {"id": 530, "type": "parenthesized_expression", "text": "( ( x[0] << 8 ) | x[1] )", "parent": 529, "children": [531], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 41}}, {"id": 531, "type": "binary_expression", "text": "( x[0] << 8 ) | x[1]", "parent": 530, "children": [532, 539], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 39}}, {"id": 532, "type": "parenthesized_expression", "text": "( x[0] << 8 )", "parent": 531, "children": [533], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 32}}, {"id": 533, "type": "binary_expression", "text": "x[0] << 8", "parent": 532, "children": [534, 537, 538], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 30}}, {"id": 534, "type": "subscript_expression", "text": "x[0]", "parent": 533, "children": [535, 536], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 25}}, {"id": 535, "type": "identifier", "text": "x", "parent": 534, "children": [], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 22}}, {"id": 536, "type": "number_literal", "text": "0", "parent": 534, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 24}}, {"id": 537, "type": "<<", "text": "<<", "parent": 533, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 28}}, {"id": 538, "type": "number_literal", "text": "8", "parent": 533, "children": [], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 30}}, {"id": 539, "type": "subscript_expression", "text": "x[1]", "parent": 531, "children": [540, 541], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 39}}, {"id": 540, "type": "identifier", "text": "x", "parent": 539, "children": [], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 36}}, {"id": 541, "type": "number_literal", "text": "1", "parent": 539, "children": [], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 38}}, {"id": 542, "type": "<<", "text": "<<", "parent": 529, "children": [], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 44}}, {"id": 543, "type": "number_literal", "text": "8", "parent": 529, "children": [], "start_point": {"row": 119, "column": 45}, "end_point": {"row": 119, "column": 46}}, {"id": 544, "type": "subscript_expression", "text": "x[2]", "parent": 527, "children": [545, 546], "start_point": {"row": 119, "column": 51}, "end_point": {"row": 119, "column": 55}}, {"id": 545, "type": "identifier", "text": "x", "parent": 544, "children": [], "start_point": {"row": 119, "column": 51}, "end_point": {"row": 119, "column": 52}}, {"id": 546, "type": "number_literal", "text": "2", "parent": 544, "children": [], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 54}}, {"id": 547, "type": "<<", "text": "<<", "parent": 525, "children": [], "start_point": {"row": 119, "column": 58}, "end_point": {"row": 119, "column": 60}}, {"id": 548, "type": "number_literal", "text": "8", "parent": 525, "children": [], "start_point": {"row": 119, "column": 61}, "end_point": {"row": 119, "column": 62}}, {"id": 549, "type": "subscript_expression", "text": "x[3]", "parent": 523, "children": [550, 551], "start_point": {"row": 119, "column": 67}, "end_point": {"row": 119, "column": 71}}, {"id": 550, "type": "identifier", "text": "x", "parent": 549, "children": [], "start_point": {"row": 119, "column": 67}, "end_point": {"row": 119, "column": 68}}, {"id": 551, "type": "number_literal", "text": "3", "parent": 549, "children": [], "start_point": {"row": 119, "column": 69}, "end_point": {"row": 119, "column": 70}}, {"id": 552, "type": "return_statement", "text": "return (ival);", "parent": 506, "children": [553], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 14}}, {"id": 553, "type": "parenthesized_expression", "text": "(ival)", "parent": 552, "children": [554], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 13}}, {"id": 554, "type": "identifier", "text": "ival", "parent": 553, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 12}}, {"id": 555, "type": "function_definition", "text": "short read_short ( unsigned char *x )\n{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}", "parent": null, "children": [556, 558], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 127, "column": 1}}, {"id": 556, "type": "sized_type_specifier", "text": "short", "parent": 555, "children": [557], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 5}}, {"id": 557, "type": "short", "text": "short", "parent": 556, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 5}}, {"id": 558, "type": "function_declarator", "text": "read_short ( unsigned char *x )", "parent": 555, "children": [559, 560], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 37}}, {"id": 559, "type": "identifier", "text": "read_short", "parent": 558, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 16}}, {"id": 560, "type": "parameter_list", "text": "( unsigned char *x )", "parent": 558, "children": [561], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 37}}, {"id": 561, "type": "parameter_declaration", "text": "unsigned char *x", "parent": 560, "children": [562, 565], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 35}}, {"id": 562, "type": "sized_type_specifier", "text": "unsigned char", "parent": 561, "children": [563, 564], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 32}}, {"id": 563, "type": "unsigned", "text": "unsigned", "parent": 562, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 27}}, {"id": 564, "type": "primitive_type", "text": "char", "parent": 562, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 32}}, {"id": 565, "type": "pointer_declarator", "text": "*x", "parent": 561, "children": [566, 567], "start_point": {"row": 123, "column": 33}, "end_point": {"row": 123, "column": 35}}, {"id": 566, "type": "*", "text": "*", "parent": 565, "children": [], "start_point": {"row": 123, "column": 33}, "end_point": {"row": 123, "column": 34}}, {"id": 567, "type": "identifier", "text": "x", "parent": 565, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 35}}, {"id": 568, "type": "declaration", "text": "short ival = ( x[0] << 8 ) | x[1];", "parent": 555, "children": [569, 571], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 34}}, {"id": 569, "type": "sized_type_specifier", "text": "short", "parent": 568, "children": [570], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 5}}, {"id": 570, "type": "short", "text": "short", "parent": 569, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 5}}, {"id": 571, "type": "init_declarator", "text": "ival = ( x[0] << 8 ) | x[1]", "parent": 568, "children": [572, 573, 574], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 33}}, {"id": 572, "type": "identifier", "text": "ival", "parent": 571, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 10}}, {"id": 573, "type": "=", "text": "=", "parent": 571, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 12}}, {"id": 574, "type": "binary_expression", "text": "( x[0] << 8 ) | x[1]", "parent": 571, "children": [575, 582], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 33}}, {"id": 575, "type": "parenthesized_expression", "text": "( x[0] << 8 )", "parent": 574, "children": [576], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 26}}, {"id": 576, "type": "binary_expression", "text": "x[0] << 8", "parent": 575, "children": [577, 580, 581], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 24}}, {"id": 577, "type": "subscript_expression", "text": "x[0]", "parent": 576, "children": [578, 579], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 19}}, {"id": 578, "type": "identifier", "text": "x", "parent": 577, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 16}}, {"id": 579, "type": "number_literal", "text": "0", "parent": 577, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 18}}, {"id": 580, "type": "<<", "text": "<<", "parent": 576, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 22}}, {"id": 581, "type": "number_literal", "text": "8", "parent": 576, "children": [], "start_point": {"row": 125, "column": 23}, "end_point": {"row": 125, "column": 24}}, {"id": 582, "type": "subscript_expression", "text": "x[1]", "parent": 574, "children": [583, 584], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 33}}, {"id": 583, "type": "identifier", "text": "x", "parent": 582, "children": [], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 30}}, {"id": 584, "type": "number_literal", "text": "1", "parent": 582, "children": [], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 32}}, {"id": 585, "type": "return_statement", "text": "return (ival);", "parent": 555, "children": [586], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 14}}, {"id": 586, "type": "parenthesized_expression", "text": "(ival)", "parent": 585, "children": [587], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 587, "type": "identifier", "text": "ival", "parent": 586, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 12}}, {"id": 588, "type": "function_definition", "text": "void vad_driver ( unsigned char *buf, int *ioff, int *iret)\n{\nint bflip, i, ij, ier;\nsigned short *sbytes,*s1,*s2;\nint *ibytes;\nint ival;\noff_t k;\n\nint block_len, nlayers, ilevel;\nint block_offs[3];\nint packet_code, pblen, poff;\nint icnt, boff;\nint product_message_code;\n\nint np, i1,i2,j1,j2, ixoff, iyoff;\nfloat X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];\nfloat xmin_sav, xmax_sav;\nint imark, imkhw, imkwid;\nfloat szmark;\nchar sys_m[]=\"M\", sys_n[]=\"N\", *cstr;\nfloat rmargin[]={4.0, 4.0, 4.0, 2.0};\n\n\n*iret = 0;\n\n/*\n** Message header block\n */\nproduct_message_code = (int)read_short(buf);\nswitch (product_message_code)\n {\n case 48:\n i = 2;\n\tgsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n\tXMAX = MAX_PX;\n\tXMIN = MIN_PX;\n\tbreak;\n default:\n\tXMAX = MAX_X;\n\tXMIN = MIN_X;\n }\n\nradar_clat = (float)read_int (buf + 20) / 1000.;\nradar_clon = (float)read_int (buf + 24) / 1000.;\n\n#ifdef DEBUG\nprintf(\"look messagecode %d %f %f\\n\",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d\\n\",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif\n\nblock_offs[0] = read_int ( buf + 108 );\nblock_offs[1] = read_int ( buf + 112 );\nblock_offs[2] = read_int ( buf + 116 );\n\nfor ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf(\"look block_offs %d block1 %d block2 %d\\n\", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n\t case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;\n\t case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;\n\t case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;\n\t default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }\n\n\nswitch (product_message_code)\n {\n case 48:\n\t i = 1;\n\t gsmode (&i, &ier);\n\t break;\n /*default:\n\t printf(\"stay in map mode\\n\");*/\n }\n\n\n}", "parent": null, "children": [589, 590], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 238, "column": 1}}, {"id": 589, "type": "primitive_type", "text": "void", "parent": 588, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 4}}, {"id": 590, "type": "function_declarator", "text": "vad_driver ( unsigned char *buf, int *ioff, int *iret)", "parent": 588, "children": [591, 592], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 59}}, {"id": 591, "type": "identifier", "text": "vad_driver", "parent": 590, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 15}}, {"id": 592, "type": "parameter_list", "text": "( unsigned char *buf, int *ioff, int *iret)", "parent": 590, "children": [593, 600, 605], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 59}}, {"id": 593, "type": "parameter_declaration", "text": "unsigned char *buf", "parent": 592, "children": [594, 597], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 36}}, {"id": 594, "type": "sized_type_specifier", "text": "unsigned char", "parent": 593, "children": [595, 596], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 31}}, {"id": 595, "type": "unsigned", "text": "unsigned", "parent": 594, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 26}}, {"id": 596, "type": "primitive_type", "text": "char", "parent": 594, "children": [], "start_point": {"row": 129, "column": 27}, "end_point": {"row": 129, "column": 31}}, {"id": 597, "type": "pointer_declarator", "text": "*buf", "parent": 593, "children": [598, 599], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 36}}, {"id": 598, "type": "*", "text": "*", "parent": 597, "children": [], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 33}}, {"id": 599, "type": "identifier", "text": "buf", "parent": 597, "children": [], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 36}}, {"id": 600, "type": "parameter_declaration", "text": "int *ioff", "parent": 592, "children": [601, 602], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 47}}, {"id": 601, "type": "primitive_type", "text": "int", "parent": 600, "children": [], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 41}}, {"id": 602, "type": "pointer_declarator", "text": "*ioff", "parent": 600, "children": [603, 604], "start_point": {"row": 129, "column": 42}, "end_point": {"row": 129, "column": 47}}, {"id": 603, "type": "*", "text": "*", "parent": 602, "children": [], "start_point": {"row": 129, "column": 42}, "end_point": {"row": 129, "column": 43}}, {"id": 604, "type": "identifier", "text": "ioff", "parent": 602, "children": [], "start_point": {"row": 129, "column": 43}, "end_point": {"row": 129, "column": 47}}, {"id": 605, "type": "parameter_declaration", "text": "int *iret", "parent": 592, "children": [606, 607], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 58}}, {"id": 606, "type": "primitive_type", "text": "int", "parent": 605, "children": [], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 52}}, {"id": 607, "type": "pointer_declarator", "text": "*iret", "parent": 605, "children": [608, 609], "start_point": {"row": 129, "column": 53}, "end_point": {"row": 129, "column": 58}}, {"id": 608, "type": "*", "text": "*", "parent": 607, "children": [], "start_point": {"row": 129, "column": 53}, "end_point": {"row": 129, "column": 54}}, {"id": 609, "type": "identifier", "text": "iret", "parent": 607, "children": [], "start_point": {"row": 129, "column": 54}, "end_point": {"row": 129, "column": 58}}, {"id": 610, "type": "declaration", "text": "int bflip, i, ij, ier;", "parent": 588, "children": [611, 612, 613, 614, 615], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 22}}, {"id": 611, "type": "primitive_type", "text": "int", "parent": 610, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 3}}, {"id": 612, "type": "identifier", "text": "bflip", "parent": 610, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 9}}, {"id": 613, "type": "identifier", "text": "i", "parent": 610, "children": [], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 12}}, {"id": 614, "type": "identifier", "text": "ij", "parent": 610, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 16}}, {"id": 615, "type": "identifier", "text": "ier", "parent": 610, "children": [], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 21}}, {"id": 616, "type": "declaration", "text": "signed short *sbytes,*s1,*s2;", "parent": 588, "children": [617, 620, 623, 626], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 29}}, {"id": 617, "type": "sized_type_specifier", "text": "signed short", "parent": 616, "children": [618, 619], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 12}}, {"id": 618, "type": "signed", "text": "signed", "parent": 617, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 6}}, {"id": 619, "type": "short", "text": "short", "parent": 617, "children": [], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 12}}, {"id": 620, "type": "pointer_declarator", "text": "*sbytes", "parent": 616, "children": [621, 622], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 20}}, {"id": 621, "type": "*", "text": "*", "parent": 620, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 14}}, {"id": 622, "type": "identifier", "text": "sbytes", "parent": 620, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 20}}, {"id": 623, "type": "pointer_declarator", "text": "*s1", "parent": 616, "children": [624, 625], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 24}}, {"id": 624, "type": "*", "text": "*", "parent": 623, "children": [], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 22}}, {"id": 625, "type": "identifier", "text": "s1", "parent": 623, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 24}}, {"id": 626, "type": "pointer_declarator", "text": "*s2", "parent": 616, "children": [627, 628], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 28}}, {"id": 627, "type": "*", "text": "*", "parent": 626, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 26}}, {"id": 628, "type": "identifier", "text": "s2", "parent": 626, "children": [], "start_point": {"row": 132, "column": 26}, "end_point": {"row": 132, "column": 28}}, {"id": 629, "type": "declaration", "text": "int *ibytes;", "parent": 588, "children": [630, 631], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 12}}, {"id": 630, "type": "primitive_type", "text": "int", "parent": 629, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 3}}, {"id": 631, "type": "pointer_declarator", "text": "*ibytes", "parent": 629, "children": [632, 633], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 11}}, {"id": 632, "type": "*", "text": "*", "parent": 631, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 5}}, {"id": 633, "type": "identifier", "text": "ibytes", "parent": 631, "children": [], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 11}}, {"id": 634, "type": "declaration", "text": "int ival;", "parent": 588, "children": [635, 636], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 9}}, {"id": 635, "type": "primitive_type", "text": "int", "parent": 634, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 3}}, {"id": 636, "type": "identifier", "text": "ival", "parent": 634, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 8}}, {"id": 637, "type": "declaration", "text": "off_t k;", "parent": 588, "children": [638, 639], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 8}}, {"id": 638, "type": "type_identifier", "text": "off_t", "parent": 637, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 5}}, {"id": 639, "type": "identifier", "text": "k", "parent": 637, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 7}}, {"id": 640, "type": "declaration", "text": "int block_len, nlayers, ilevel;", "parent": 588, "children": [641, 642, 643, 644], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 31}}, {"id": 641, "type": "primitive_type", "text": "int", "parent": 640, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 3}}, {"id": 642, "type": "identifier", "text": "block_len", "parent": 640, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 13}}, {"id": 643, "type": "identifier", "text": "nlayers", "parent": 640, "children": [], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 22}}, {"id": 644, "type": "identifier", "text": "ilevel", "parent": 640, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 30}}, {"id": 645, "type": "declaration", "text": "int block_offs[3];", "parent": 588, "children": [646, 647], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 18}}, {"id": 646, "type": "primitive_type", "text": "int", "parent": 645, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 3}}, {"id": 647, "type": "array_declarator", "text": "block_offs[3]", "parent": 645, "children": [648, 649], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 17}}, {"id": 648, "type": "identifier", "text": "block_offs", "parent": 647, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 14}}, {"id": 649, "type": "number_literal", "text": "3", "parent": 647, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 16}}, {"id": 650, "type": "declaration", "text": "int packet_code, pblen, poff;", "parent": 588, "children": [651, 652, 653, 654], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 29}}, {"id": 651, "type": "primitive_type", "text": "int", "parent": 650, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 3}}, {"id": 652, "type": "identifier", "text": "packet_code", "parent": 650, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 15}}, {"id": 653, "type": "identifier", "text": "pblen", "parent": 650, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 22}}, {"id": 654, "type": "identifier", "text": "poff", "parent": 650, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 28}}, {"id": 655, "type": "declaration", "text": "int icnt, boff;", "parent": 588, "children": [656, 657, 658], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 15}}, {"id": 656, "type": "primitive_type", "text": "int", "parent": 655, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 3}}, {"id": 657, "type": "identifier", "text": "icnt", "parent": 655, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 8}}, {"id": 658, "type": "identifier", "text": "boff", "parent": 655, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 14}}, {"id": 659, "type": "declaration", "text": "int product_message_code;", "parent": 588, "children": [660, 661], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 25}}, {"id": 660, "type": "primitive_type", "text": "int", "parent": 659, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 3}}, {"id": 661, "type": "identifier", "text": "product_message_code", "parent": 659, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 24}}, {"id": 662, "type": "declaration", "text": "int np, i1,i2,j1,j2, ixoff, iyoff;", "parent": 588, "children": [663, 664, 665, 666, 667, 668, 669, 670], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 34}}, {"id": 663, "type": "primitive_type", "text": "int", "parent": 662, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 3}}, {"id": 664, "type": "identifier", "text": "np", "parent": 662, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 6}}, {"id": 665, "type": "identifier", "text": "i1", "parent": 662, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 10}}, {"id": 666, "type": "identifier", "text": "i2", "parent": 662, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 13}}, {"id": 667, "type": "identifier", "text": "j1", "parent": 662, "children": [], "start_point": {"row": 143, "column": 14}, "end_point": {"row": 143, "column": 16}}, {"id": 668, "type": "identifier", "text": "j2", "parent": 662, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 19}}, {"id": 669, "type": "identifier", "text": "ixoff", "parent": 662, "children": [], "start_point": {"row": 143, "column": 21}, "end_point": {"row": 143, "column": 26}}, {"id": 670, "type": "identifier", "text": "iyoff", "parent": 662, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 33}}, {"id": 671, "type": "declaration", "text": "float X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];", "parent": 588, "children": [672, 673, 676, 679, 682, 685, 686, 687, 688], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 59}}, {"id": 672, "type": "primitive_type", "text": "float", "parent": 671, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 5}}, {"id": 673, "type": "array_declarator", "text": "X[2]", "parent": 671, "children": [674, 675], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 10}}, {"id": 674, "type": "identifier", "text": "X", "parent": 673, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 7}}, {"id": 675, "type": "number_literal", "text": "2", "parent": 673, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 9}}, {"id": 676, "type": "array_declarator", "text": "Y[2]", "parent": 671, "children": [677, 678], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 16}}, {"id": 677, "type": "identifier", "text": "Y", "parent": 676, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 678, "type": "number_literal", "text": "2", "parent": 676, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 679, "type": "array_declarator", "text": "Xv[2]", "parent": 671, "children": [680, 681], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 23}}, {"id": 680, "type": "identifier", "text": "Xv", "parent": 679, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 20}}, {"id": 681, "type": "number_literal", "text": "2", "parent": 679, "children": [], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 22}}, {"id": 682, "type": "array_declarator", "text": "Yv[2]", "parent": 671, "children": [683, 684], "start_point": {"row": 144, "column": 25}, "end_point": {"row": 144, "column": 30}}, {"id": 683, "type": "identifier", "text": "Yv", "parent": 682, "children": [], "start_point": {"row": 144, "column": 25}, "end_point": {"row": 144, "column": 27}}, {"id": 684, "type": "number_literal", "text": "2", "parent": 682, "children": [], "start_point": {"row": 144, "column": 28}, "end_point": {"row": 144, "column": 29}}, {"id": 685, "type": "identifier", "text": "spd", "parent": 671, "children": [], "start_point": {"row": 144, "column": 32}, "end_point": {"row": 144, "column": 35}}, {"id": 686, "type": "identifier", "text": "drct", "parent": 671, "children": [], "start_point": {"row": 144, "column": 37}, "end_point": {"row": 144, "column": 41}}, {"id": 687, "type": "identifier", "text": "rotat", "parent": 671, "children": [], "start_point": {"row": 144, "column": 43}, "end_point": {"row": 144, "column": 48}}, {"id": 688, "type": "array_declarator", "text": "spcod[2]", "parent": 671, "children": [689, 690], "start_point": {"row": 144, "column": 50}, "end_point": {"row": 144, "column": 58}}, {"id": 689, "type": "identifier", "text": "spcod", "parent": 688, "children": [], "start_point": {"row": 144, "column": 50}, "end_point": {"row": 144, "column": 55}}, {"id": 690, "type": "number_literal", "text": "2", "parent": 688, "children": [], "start_point": {"row": 144, "column": 56}, "end_point": {"row": 144, "column": 57}}, {"id": 691, "type": "declaration", "text": "float xmin_sav, xmax_sav;", "parent": 588, "children": [692, 693, 694], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 25}}, {"id": 692, "type": "primitive_type", "text": "float", "parent": 691, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 5}}, {"id": 693, "type": "identifier", "text": "xmin_sav", "parent": 691, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 14}}, {"id": 694, "type": "identifier", "text": "xmax_sav", "parent": 691, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 24}}, {"id": 695, "type": "declaration", "text": "int imark, imkhw, imkwid;", "parent": 588, "children": [696, 697, 698, 699], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 25}}, {"id": 696, "type": "primitive_type", "text": "int", "parent": 695, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 3}}, {"id": 697, "type": "identifier", "text": "imark", "parent": 695, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 9}}, {"id": 698, "type": "identifier", "text": "imkhw", "parent": 695, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 16}}, {"id": 699, "type": "identifier", "text": "imkwid", "parent": 695, "children": [], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 24}}, {"id": 700, "type": "declaration", "text": "float szmark;", "parent": 588, "children": [701, 702], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 13}}, {"id": 701, "type": "primitive_type", "text": "float", "parent": 700, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 5}}, {"id": 702, "type": "identifier", "text": "szmark", "parent": 700, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 12}}, {"id": 703, "type": "declaration", "text": "char sys_m[]=\"M\", sys_n[]=\"N\", *cstr;", "parent": 588, "children": [704, 705, 710, 715], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 37}}, {"id": 704, "type": "primitive_type", "text": "char", "parent": 703, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 4}}, {"id": 705, "type": "init_declarator", "text": "sys_m[]=\"M\"", "parent": 703, "children": [706, 708, 709], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 16}}, {"id": 706, "type": "array_declarator", "text": "sys_m[]", "parent": 705, "children": [707], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 12}}, {"id": 707, "type": "identifier", "text": "sys_m", "parent": 706, "children": [], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 10}}, {"id": 708, "type": "=", "text": "=", "parent": 705, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 13}}, {"id": 709, "type": "string_literal", "text": "\"M\"", "parent": 705, "children": [], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 16}}, {"id": 710, "type": "init_declarator", "text": "sys_n[]=\"N\"", "parent": 703, "children": [711, 713, 714], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 29}}, {"id": 711, "type": "array_declarator", "text": "sys_n[]", "parent": 710, "children": [712], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 25}}, {"id": 712, "type": "identifier", "text": "sys_n", "parent": 711, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 23}}, {"id": 713, "type": "=", "text": "=", "parent": 710, "children": [], "start_point": {"row": 148, "column": 25}, "end_point": {"row": 148, "column": 26}}, {"id": 714, "type": "string_literal", "text": "\"N\"", "parent": 710, "children": [], "start_point": {"row": 148, "column": 26}, "end_point": {"row": 148, "column": 29}}, {"id": 715, "type": "pointer_declarator", "text": "*cstr", "parent": 703, "children": [716, 717], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 36}}, {"id": 716, "type": "*", "text": "*", "parent": 715, "children": [], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 32}}, {"id": 717, "type": "identifier", "text": "cstr", "parent": 715, "children": [], "start_point": {"row": 148, "column": 32}, "end_point": {"row": 148, "column": 36}}, {"id": 718, "type": "declaration", "text": "float rmargin[]={4.0, 4.0, 4.0, 2.0};", "parent": 588, "children": [719, 720], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 37}}, {"id": 719, "type": "primitive_type", "text": "float", "parent": 718, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 5}}, {"id": 720, "type": "init_declarator", "text": "rmargin[]={4.0, 4.0, 4.0, 2.0}", "parent": 718, "children": [721, 723, 724], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 36}}, {"id": 721, "type": "array_declarator", "text": "rmargin[]", "parent": 720, "children": [722], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 15}}, {"id": 722, "type": "identifier", "text": "rmargin", "parent": 721, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 13}}, {"id": 723, "type": "=", "text": "=", "parent": 720, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 16}}, {"id": 724, "type": "initializer_list", "text": "{4.0, 4.0, 4.0, 2.0}", "parent": 720, "children": [725, 726, 727, 728], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 36}}, {"id": 725, "type": "number_literal", "text": "4.0", "parent": 724, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 20}}, {"id": 726, "type": "number_literal", "text": "4.0", "parent": 724, "children": [], "start_point": {"row": 149, "column": 22}, "end_point": {"row": 149, "column": 25}}, {"id": 727, "type": "number_literal", "text": "4.0", "parent": 724, "children": [], "start_point": {"row": 149, "column": 27}, "end_point": {"row": 149, "column": 30}}, {"id": 728, "type": "number_literal", "text": "2.0", "parent": 724, "children": [], "start_point": {"row": 149, "column": 32}, "end_point": {"row": 149, "column": 35}}, {"id": 729, "type": "assignment_expression", "text": "*iret = 0", "parent": 588, "children": [730, 733, 734], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 9}}, {"id": 730, "type": "pointer_expression", "text": "*iret", "parent": 729, "children": [731, 732], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 5}}, {"id": 731, "type": "*", "text": "*", "parent": 730, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 1}}, {"id": 732, "type": "identifier", "text": "iret", "parent": 730, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 5}}, {"id": 733, "type": "=", "text": "=", "parent": 729, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 7}}, {"id": 734, "type": "number_literal", "text": "0", "parent": 729, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 9}}, {"id": 735, "type": "assignment_expression", "text": "product_message_code = (int)read_short(buf)", "parent": 588, "children": [736, 737, 738], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 43}}, {"id": 736, "type": "identifier", "text": "product_message_code", "parent": 735, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 20}}, {"id": 737, "type": "=", "text": "=", "parent": 735, "children": [], "start_point": {"row": 157, "column": 21}, "end_point": {"row": 157, "column": 22}}, {"id": 738, "type": "cast_expression", "text": "(int)read_short(buf)", "parent": 735, "children": [739, 741], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 43}}, {"id": 739, "type": "type_descriptor", "text": "int", "parent": 738, "children": [740], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 27}}, {"id": 740, "type": "primitive_type", "text": "int", "parent": 739, "children": [], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 27}}, {"id": 741, "type": "call_expression", "text": "read_short(buf)", "parent": 738, "children": [742, 743], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 43}}, {"id": 742, "type": "identifier", "text": "read_short", "parent": 741, "children": [], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 38}}, {"id": 743, "type": "argument_list", "text": "(buf)", "parent": 741, "children": [744], "start_point": {"row": 157, "column": 38}, "end_point": {"row": 157, "column": 43}}, {"id": 744, "type": "identifier", "text": "buf", "parent": 743, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 42}}, {"id": 745, "type": "switch_statement", "text": "switch (product_message_code)\n {\n case 48:\n i = 2;\n\tgsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n\tXMAX = MAX_PX;\n\tXMIN = MIN_PX;\n\tbreak;\n default:\n\tXMAX = MAX_X;\n\tXMIN = MIN_X;\n }", "parent": 588, "children": [746, 747], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 171, "column": 4}}, {"id": 746, "type": "switch", "text": "switch", "parent": 745, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 6}}, {"id": 747, "type": "parenthesized_expression", "text": "(product_message_code)", "parent": 745, "children": [748], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 29}}, {"id": 748, "type": "identifier", "text": "product_message_code", "parent": 747, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 28}}, {"id": 749, "type": "case_statement", "text": "case 48:\n i = 2;\n\tgsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n\tXMAX = MAX_PX;\n\tXMIN = MIN_PX;\n\tbreak;", "parent": 745, "children": [750, 751, 792], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 167, "column": 7}}, {"id": 750, "type": "case", "text": "case", "parent": 749, "children": [], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 7}}, {"id": 751, "type": "number_literal", "text": "48", "parent": 749, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 10}}, {"id": 752, "type": "assignment_expression", "text": "i = 2", "parent": 749, "children": [753, 754, 755], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 13}}, {"id": 753, "type": "identifier", "text": "i", "parent": 752, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 9}}, {"id": 754, "type": "=", "text": "=", "parent": 752, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 755, "type": "number_literal", "text": "2", "parent": 752, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 13}}, {"id": 756, "type": "call_expression", "text": "gsmode ( &i, &ier)", "parent": 749, "children": [757, 758], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 19}}, {"id": 757, "type": "identifier", "text": "gsmode", "parent": 756, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 7}}, {"id": 758, "type": "argument_list", "text": "( &i, &ier)", "parent": 756, "children": [759, 761], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 19}}, {"id": 759, "type": "pointer_expression", "text": "&i", "parent": 758, "children": [760], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 12}}, {"id": 760, "type": "identifier", "text": "i", "parent": 759, "children": [], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 12}}, {"id": 761, "type": "pointer_expression", "text": "&ier", "parent": 758, "children": [762], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 18}}, {"id": 762, "type": "identifier", "text": "ier", "parent": 761, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 18}}, {"id": 763, "type": "call_expression", "text": "gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier )", "parent": 749, "children": [764, 765], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 75}}, {"id": 764, "type": "identifier", "text": "gsgmgn", "parent": 763, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 14}}, {"id": 765, "type": "argument_list", "text": "( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier )", "parent": 763, "children": [766, 770, 774, 778, 782], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 75}}, {"id": 766, "type": "pointer_expression", "text": "&rmargin[0]", "parent": 765, "children": [767], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 28}}, {"id": 767, "type": "subscript_expression", "text": "rmargin[0]", "parent": 766, "children": [768, 769], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 28}}, {"id": 768, "type": "identifier", "text": "rmargin", "parent": 767, "children": [], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 25}}, {"id": 769, "type": "number_literal", "text": "0", "parent": 767, "children": [], "start_point": {"row": 164, "column": 26}, "end_point": {"row": 164, "column": 27}}, {"id": 770, "type": "pointer_expression", "text": "&rmargin[1]", "parent": 765, "children": [771], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 41}}, {"id": 771, "type": "subscript_expression", "text": "rmargin[1]", "parent": 770, "children": [772, 773], "start_point": {"row": 164, "column": 31}, "end_point": {"row": 164, "column": 41}}, {"id": 772, "type": "identifier", "text": "rmargin", "parent": 771, "children": [], "start_point": {"row": 164, "column": 31}, "end_point": {"row": 164, "column": 38}}, {"id": 773, "type": "number_literal", "text": "1", "parent": 771, "children": [], "start_point": {"row": 164, "column": 39}, "end_point": {"row": 164, "column": 40}}, {"id": 774, "type": "pointer_expression", "text": "&rmargin[2]", "parent": 765, "children": [775], "start_point": {"row": 164, "column": 43}, "end_point": {"row": 164, "column": 54}}, {"id": 775, "type": "subscript_expression", "text": "rmargin[2]", "parent": 774, "children": [776, 777], "start_point": {"row": 164, "column": 44}, "end_point": {"row": 164, "column": 54}}, {"id": 776, "type": "identifier", "text": "rmargin", "parent": 775, "children": [], "start_point": {"row": 164, "column": 44}, "end_point": {"row": 164, "column": 51}}, {"id": 777, "type": "number_literal", "text": "2", "parent": 775, "children": [], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 53}}, {"id": 778, "type": "pointer_expression", "text": "&rmargin[3]", "parent": 765, "children": [779], "start_point": {"row": 164, "column": 56}, "end_point": {"row": 164, "column": 67}}, {"id": 779, "type": "subscript_expression", "text": "rmargin[3]", "parent": 778, "children": [780, 781], "start_point": {"row": 164, "column": 57}, "end_point": {"row": 164, "column": 67}}, {"id": 780, "type": "identifier", "text": "rmargin", "parent": 779, "children": [], "start_point": {"row": 164, "column": 57}, "end_point": {"row": 164, "column": 64}}, {"id": 781, "type": "number_literal", "text": "3", "parent": 779, "children": [], "start_point": {"row": 164, "column": 65}, "end_point": {"row": 164, "column": 66}}, {"id": 782, "type": "pointer_expression", "text": "&ier", "parent": 765, "children": [783], "start_point": {"row": 164, "column": 69}, "end_point": {"row": 164, "column": 73}}, {"id": 783, "type": "identifier", "text": "ier", "parent": 782, "children": [], "start_point": {"row": 164, "column": 70}, "end_point": {"row": 164, "column": 73}}, {"id": 784, "type": "assignment_expression", "text": "XMAX = MAX_PX", "parent": 749, "children": [785, 786, 787], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 14}}, {"id": 785, "type": "identifier", "text": "XMAX", "parent": 784, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 5}}, {"id": 786, "type": "=", "text": "=", "parent": 784, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 7}}, {"id": 787, "type": "identifier", "text": "MAX_PX", "parent": 784, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 14}}, {"id": 788, "type": "assignment_expression", "text": "XMIN = MIN_PX", "parent": 749, "children": [789, 790, 791], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 14}}, {"id": 789, "type": "identifier", "text": "XMIN", "parent": 788, "children": [], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 5}}, {"id": 790, "type": "=", "text": "=", "parent": 788, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 7}}, {"id": 791, "type": "identifier", "text": "MIN_PX", "parent": 788, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 14}}, {"id": 792, "type": "break_statement", "text": "break;", "parent": 749, "children": [793], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 7}}, {"id": 793, "type": "break", "text": "break", "parent": 792, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 6}}, {"id": 794, "type": "case_statement", "text": "default:\n\tXMAX = MAX_X;\n\tXMIN = MIN_X;", "parent": 745, "children": [795], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 170, "column": 14}}, {"id": 795, "type": "default", "text": "default", "parent": 794, "children": [], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 168, "column": 10}}, {"id": 796, "type": "assignment_expression", "text": "XMAX = MAX_X", "parent": 794, "children": [797, 798, 799], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 13}}, {"id": 797, "type": "identifier", "text": "XMAX", "parent": 796, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 5}}, {"id": 798, "type": "=", "text": "=", "parent": 796, "children": [], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 7}}, {"id": 799, "type": "identifier", "text": "MAX_X", "parent": 796, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 13}}, {"id": 800, "type": "assignment_expression", "text": "XMIN = MIN_X", "parent": 794, "children": [801, 802, 803], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 13}}, {"id": 801, "type": "identifier", "text": "XMIN", "parent": 800, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 5}}, {"id": 802, "type": "=", "text": "=", "parent": 800, "children": [], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 7}}, {"id": 803, "type": "identifier", "text": "MIN_X", "parent": 800, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 13}}, {"id": 804, "type": "assignment_expression", "text": "radar_clat = (float)read_int (buf + 20) / 1000.", "parent": 588, "children": [805, 806, 807], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 47}}, {"id": 805, "type": "identifier", "text": "radar_clat", "parent": 804, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 10}}, {"id": 806, "type": "=", "text": "=", "parent": 804, "children": [], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 12}}, {"id": 807, "type": "binary_expression", "text": "(float)read_int (buf + 20) / 1000.", "parent": 804, "children": [808, 818, 819], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 47}}, {"id": 808, "type": "cast_expression", "text": "(float)read_int (buf + 20)", "parent": 807, "children": [809, 811], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 39}}, {"id": 809, "type": "type_descriptor", "text": "float", "parent": 808, "children": [810], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 19}}, {"id": 810, "type": "primitive_type", "text": "float", "parent": 809, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 19}}, {"id": 811, "type": "call_expression", "text": "read_int (buf + 20)", "parent": 808, "children": [812, 813], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 39}}, {"id": 812, "type": "identifier", "text": "read_int", "parent": 811, "children": [], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 28}}, {"id": 813, "type": "argument_list", "text": "(buf + 20)", "parent": 811, "children": [814], "start_point": {"row": 173, "column": 29}, "end_point": {"row": 173, "column": 39}}, {"id": 814, "type": "binary_expression", "text": "buf + 20", "parent": 813, "children": [815, 816, 817], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 38}}, {"id": 815, "type": "identifier", "text": "buf", "parent": 814, "children": [], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 33}}, {"id": 816, "type": "+", "text": "+", "parent": 814, "children": [], "start_point": {"row": 173, "column": 34}, "end_point": {"row": 173, "column": 35}}, {"id": 817, "type": "number_literal", "text": "20", "parent": 814, "children": [], "start_point": {"row": 173, "column": 36}, "end_point": {"row": 173, "column": 38}}, {"id": 818, "type": "/", "text": "/", "parent": 807, "children": [], "start_point": {"row": 173, "column": 40}, "end_point": {"row": 173, "column": 41}}, {"id": 819, "type": "number_literal", "text": "1000.", "parent": 807, "children": [], "start_point": {"row": 173, "column": 42}, "end_point": {"row": 173, "column": 47}}, {"id": 820, "type": "assignment_expression", "text": "radar_clon = (float)read_int (buf + 24) / 1000.", "parent": 588, "children": [821, 822, 823], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 47}}, {"id": 821, "type": "identifier", "text": "radar_clon", "parent": 820, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 10}}, {"id": 822, "type": "=", "text": "=", "parent": 820, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 12}}, {"id": 823, "type": "binary_expression", "text": "(float)read_int (buf + 24) / 1000.", "parent": 820, "children": [824, 834, 835], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 47}}, {"id": 824, "type": "cast_expression", "text": "(float)read_int (buf + 24)", "parent": 823, "children": [825, 827], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 39}}, {"id": 825, "type": "type_descriptor", "text": "float", "parent": 824, "children": [826], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 19}}, {"id": 826, "type": "primitive_type", "text": "float", "parent": 825, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 19}}, {"id": 827, "type": "call_expression", "text": "read_int (buf + 24)", "parent": 824, "children": [828, 829], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 39}}, {"id": 828, "type": "identifier", "text": "read_int", "parent": 827, "children": [], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 28}}, {"id": 829, "type": "argument_list", "text": "(buf + 24)", "parent": 827, "children": [830], "start_point": {"row": 174, "column": 29}, "end_point": {"row": 174, "column": 39}}, {"id": 830, "type": "binary_expression", "text": "buf + 24", "parent": 829, "children": [831, 832, 833], "start_point": {"row": 174, "column": 30}, "end_point": {"row": 174, "column": 38}}, {"id": 831, "type": "identifier", "text": "buf", "parent": 830, "children": [], "start_point": {"row": 174, "column": 30}, "end_point": {"row": 174, "column": 33}}, {"id": 832, "type": "+", "text": "+", "parent": 830, "children": [], "start_point": {"row": 174, "column": 34}, "end_point": {"row": 174, "column": 35}}, {"id": 833, "type": "number_literal", "text": "24", "parent": 830, "children": [], "start_point": {"row": 174, "column": 36}, "end_point": {"row": 174, "column": 38}}, {"id": 834, "type": "/", "text": "/", "parent": 823, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 41}}, {"id": 835, "type": "number_literal", "text": "1000.", "parent": 823, "children": [], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 47}}, {"id": 836, "type": "preproc_ifdef", "text": "#ifdef DEBUG\nprintf(\"look messagecode %d %f %f\\n\",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d\\n\",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif", "parent": 588, "children": [837, 838, 851, 901, 955], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 837, "type": "#ifdef", "text": "#ifdef", "parent": 836, "children": [], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 176, "column": 6}}, {"id": 838, "type": "identifier", "text": "DEBUG", "parent": 836, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 12}}, {"id": 839, "type": "call_expression", "text": "printf(\"look messagecode %d %f %f\\n\",product_message_code,XMAX,XMIN)", "parent": 836, "children": [840, 841], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 68}}, {"id": 840, "type": "identifier", "text": "printf", "parent": 839, "children": [], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 6}}, {"id": 841, "type": "argument_list", "text": "(\"look messagecode %d %f %f\\n\",product_message_code,XMAX,XMIN)", "parent": 839, "children": [842, 844, 845, 846], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 68}}, {"id": 842, "type": "string_literal", "text": "\"look messagecode %d %f %f\\n\"", "parent": 841, "children": [843], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 36}}, {"id": 843, "type": "escape_sequence", "text": "\\n", "parent": 842, "children": [], "start_point": {"row": 177, "column": 33}, "end_point": {"row": 177, "column": 35}}, {"id": 844, "type": "identifier", "text": "product_message_code", "parent": 841, "children": [], "start_point": {"row": 177, "column": 37}, "end_point": {"row": 177, "column": 57}}, {"id": 845, "type": "identifier", "text": "XMAX", "parent": 841, "children": [], "start_point": {"row": 177, "column": 58}, "end_point": {"row": 177, "column": 62}}, {"id": 846, "type": "identifier", "text": "XMIN", "parent": 841, "children": [], "start_point": {"row": 177, "column": 63}, "end_point": {"row": 177, "column": 67}}, {"id": 847, "type": "assignment_expression", "text": "k = 0", "parent": 836, "children": [848, 849, 850], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 5}}, {"id": 848, "type": "identifier", "text": "k", "parent": 847, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 1}}, {"id": 849, "type": "=", "text": "=", "parent": 847, "children": [], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 3}}, {"id": 850, "type": "number_literal", "text": "0", "parent": 847, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 5}}, {"id": 851, "type": "for_statement", "text": "for(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d\\n\",i+1,(int)(*sbytes));\n k = k + 2;\n }", "parent": 836, "children": [852, 856, 860], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 184, "column": 4}}, {"id": 852, "type": "assignment_expression", "text": "i=0", "parent": 851, "children": [853, 854, 855], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 7}}, {"id": 853, "type": "identifier", "text": "i", "parent": 852, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 5}}, {"id": 854, "type": "=", "text": "=", "parent": 852, "children": [], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 6}}, {"id": 855, "type": "number_literal", "text": "0", "parent": 852, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 7}}, {"id": 856, "type": "binary_expression", "text": "i<9", "parent": 851, "children": [857, 858, 859], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 11}}, {"id": 857, "type": "identifier", "text": "i", "parent": 856, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 9}}, {"id": 858, "type": "<", "text": "<", "parent": 856, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 10}}, {"id": 859, "type": "number_literal", "text": "9", "parent": 856, "children": [], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 11}}, {"id": 860, "type": "update_expression", "text": "i++", "parent": 851, "children": [861, 862], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 15}}, {"id": 861, "type": "identifier", "text": "i", "parent": 860, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 13}}, {"id": 862, "type": "++", "text": "++", "parent": 860, "children": [], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 15}}, {"id": 863, "type": "assignment_expression", "text": "sbytes = (signed short *)(buf+k)", "parent": 851, "children": [864, 865, 866], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 35}}, {"id": 864, "type": "identifier", "text": "sbytes", "parent": 863, "children": [], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 9}}, {"id": 865, "type": "=", "text": "=", "parent": 863, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 11}}, {"id": 866, "type": "cast_expression", "text": "(signed short *)(buf+k)", "parent": 863, "children": [867, 873], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 35}}, {"id": 867, "type": "type_descriptor", "text": "signed short *", "parent": 866, "children": [868, 871], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 27}}, {"id": 868, "type": "sized_type_specifier", "text": "signed short", "parent": 867, "children": [869, 870], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 25}}, {"id": 869, "type": "signed", "text": "signed", "parent": 868, "children": [], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 19}}, {"id": 870, "type": "short", "text": "short", "parent": 868, "children": [], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 25}}, {"id": 871, "type": "abstract_pointer_declarator", "text": "*", "parent": 867, "children": [872], "start_point": {"row": 181, "column": 26}, "end_point": {"row": 181, "column": 27}}, {"id": 872, "type": "*", "text": "*", "parent": 871, "children": [], "start_point": {"row": 181, "column": 26}, "end_point": {"row": 181, "column": 27}}, {"id": 873, "type": "parenthesized_expression", "text": "(buf+k)", "parent": 866, "children": [874], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 35}}, {"id": 874, "type": "binary_expression", "text": "buf+k", "parent": 873, "children": [875, 876, 877], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 34}}, {"id": 875, "type": "identifier", "text": "buf", "parent": 874, "children": [], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 32}}, {"id": 876, "type": "+", "text": "+", "parent": 874, "children": [], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 181, "column": 33}}, {"id": 877, "type": "identifier", "text": "k", "parent": 874, "children": [], "start_point": {"row": 181, "column": 33}, "end_point": {"row": 181, "column": 34}}, {"id": 878, "type": "call_expression", "text": "printf(\"sbytes %d %d\\n\",i+1,(int)(*sbytes))", "parent": 851, "children": [879, 880], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 46}}, {"id": 879, "type": "identifier", "text": "printf", "parent": 878, "children": [], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 9}}, {"id": 880, "type": "argument_list", "text": "(\"sbytes %d %d\\n\",i+1,(int)(*sbytes))", "parent": 878, "children": [881, 883, 887], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 46}}, {"id": 881, "type": "string_literal", "text": "\"sbytes %d %d\\n\"", "parent": 880, "children": [882], "start_point": {"row": 182, "column": 10}, "end_point": {"row": 182, "column": 26}}, {"id": 882, "type": "escape_sequence", "text": "\\n", "parent": 881, "children": [], "start_point": {"row": 182, "column": 23}, "end_point": {"row": 182, "column": 25}}, {"id": 883, "type": "binary_expression", "text": "i+1", "parent": 880, "children": [884, 885, 886], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 30}}, {"id": 884, "type": "identifier", "text": "i", "parent": 883, "children": [], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 28}}, {"id": 885, "type": "+", "text": "+", "parent": 883, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 29}}, {"id": 886, "type": "number_literal", "text": "1", "parent": 883, "children": [], "start_point": {"row": 182, "column": 29}, "end_point": {"row": 182, "column": 30}}, {"id": 887, "type": "cast_expression", "text": "(int)(*sbytes)", "parent": 880, "children": [888, 890], "start_point": {"row": 182, "column": 31}, "end_point": {"row": 182, "column": 45}}, {"id": 888, "type": "type_descriptor", "text": "int", "parent": 887, "children": [889], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 35}}, {"id": 889, "type": "primitive_type", "text": "int", "parent": 888, "children": [], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 35}}, {"id": 890, "type": "parenthesized_expression", "text": "(*sbytes)", "parent": 887, "children": [891], "start_point": {"row": 182, "column": 36}, "end_point": {"row": 182, "column": 45}}, {"id": 891, "type": "pointer_expression", "text": "*sbytes", "parent": 890, "children": [892, 893], "start_point": {"row": 182, "column": 37}, "end_point": {"row": 182, "column": 44}}, {"id": 892, "type": "*", "text": "*", "parent": 891, "children": [], "start_point": {"row": 182, "column": 37}, "end_point": {"row": 182, "column": 38}}, {"id": 893, "type": "identifier", "text": "sbytes", "parent": 891, "children": [], "start_point": {"row": 182, "column": 38}, "end_point": {"row": 182, "column": 44}}, {"id": 894, "type": "assignment_expression", "text": "k = k + 2", "parent": 851, "children": [895, 896, 897], "start_point": {"row": 183, "column": 3}, "end_point": {"row": 183, "column": 12}}, {"id": 895, "type": "identifier", "text": "k", "parent": 894, "children": [], "start_point": {"row": 183, "column": 3}, "end_point": {"row": 183, "column": 4}}, {"id": 896, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 6}}, {"id": 897, "type": "binary_expression", "text": "k + 2", "parent": 894, "children": [898, 899, 900], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 12}}, {"id": 898, "type": "identifier", "text": "k", "parent": 897, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 8}}, {"id": 899, "type": "+", "text": "+", "parent": 897, "children": [], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 10}}, {"id": 900, "type": "number_literal", "text": "2", "parent": 897, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 12}}, {"id": 901, "type": "for_statement", "text": "for(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }", "parent": 836, "children": [902, 906, 910], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 193, "column": 4}}, {"id": 902, "type": "assignment_expression", "text": "i=0", "parent": 901, "children": [903, 904, 905], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 7}}, {"id": 903, "type": "identifier", "text": "i", "parent": 902, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 904, "type": "=", "text": "=", "parent": 902, "children": [], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 6}}, {"id": 905, "type": "number_literal", "text": "0", "parent": 902, "children": [], "start_point": {"row": 188, "column": 6}, "end_point": {"row": 188, "column": 7}}, {"id": 906, "type": "binary_expression", "text": "i<51", "parent": 901, "children": [907, 908, 909], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 12}}, {"id": 907, "type": "identifier", "text": "i", "parent": 906, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 9}}, {"id": 908, "type": "<", "text": "<", "parent": 906, "children": [], "start_point": {"row": 188, "column": 9}, "end_point": {"row": 188, "column": 10}}, {"id": 909, "type": "number_literal", "text": "51", "parent": 906, "children": [], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 12}}, {"id": 910, "type": "update_expression", "text": "i++", "parent": 901, "children": [911, 912], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 16}}, {"id": 911, "type": "identifier", "text": "i", "parent": 910, "children": [], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 14}}, {"id": 912, "type": "++", "text": "++", "parent": 910, "children": [], "start_point": {"row": 188, "column": 14}, "end_point": {"row": 188, "column": 16}}, {"id": 913, "type": "assignment_expression", "text": "sbytes = (signed short *)(buf+k)", "parent": 901, "children": [914, 915, 916], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 35}}, {"id": 914, "type": "identifier", "text": "sbytes", "parent": 913, "children": [], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 9}}, {"id": 915, "type": "=", "text": "=", "parent": 913, "children": [], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 11}}, {"id": 916, "type": "cast_expression", "text": "(signed short *)(buf+k)", "parent": 913, "children": [917, 923], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 35}}, {"id": 917, "type": "type_descriptor", "text": "signed short *", "parent": 916, "children": [918, 921], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 27}}, {"id": 918, "type": "sized_type_specifier", "text": "signed short", "parent": 917, "children": [919, 920], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 25}}, {"id": 919, "type": "signed", "text": "signed", "parent": 918, "children": [], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 19}}, {"id": 920, "type": "short", "text": "short", "parent": 918, "children": [], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 25}}, {"id": 921, "type": "abstract_pointer_declarator", "text": "*", "parent": 917, "children": [922], "start_point": {"row": 190, "column": 26}, "end_point": {"row": 190, "column": 27}}, {"id": 922, "type": "*", "text": "*", "parent": 921, "children": [], "start_point": {"row": 190, "column": 26}, "end_point": {"row": 190, "column": 27}}, {"id": 923, "type": "parenthesized_expression", "text": "(buf+k)", "parent": 916, "children": [924], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 35}}, {"id": 924, "type": "binary_expression", "text": "buf+k", "parent": 923, "children": [925, 926, 927], "start_point": {"row": 190, "column": 29}, "end_point": {"row": 190, "column": 34}}, {"id": 925, "type": "identifier", "text": "buf", "parent": 924, "children": [], "start_point": {"row": 190, "column": 29}, "end_point": {"row": 190, "column": 32}}, {"id": 926, "type": "+", "text": "+", "parent": 924, "children": [], "start_point": {"row": 190, "column": 32}, "end_point": {"row": 190, "column": 33}}, {"id": 927, "type": "identifier", "text": "k", "parent": 924, "children": [], "start_point": {"row": 190, "column": 33}, "end_point": {"row": 190, "column": 34}}, {"id": 928, "type": "call_expression", "text": "printf(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes))", "parent": 901, "children": [929, 930], "start_point": {"row": 191, "column": 3}, "end_point": {"row": 191, "column": 57}}, {"id": 929, "type": "identifier", "text": "printf", "parent": 928, "children": [], "start_point": {"row": 191, "column": 3}, "end_point": {"row": 191, "column": 9}}, {"id": 930, "type": "argument_list", "text": "(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes))", "parent": 928, "children": [931, 933, 937, 941], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 57}}, {"id": 931, "type": "string_literal", "text": "\"sbytes %d %d %d\\n\"", "parent": 930, "children": [932], "start_point": {"row": 191, "column": 10}, "end_point": {"row": 191, "column": 29}}, {"id": 932, "type": "escape_sequence", "text": "\\n", "parent": 931, "children": [], "start_point": {"row": 191, "column": 26}, "end_point": {"row": 191, "column": 28}}, {"id": 933, "type": "binary_expression", "text": "i+10", "parent": 930, "children": [934, 935, 936], "start_point": {"row": 191, "column": 30}, "end_point": {"row": 191, "column": 34}}, {"id": 934, "type": "identifier", "text": "i", "parent": 933, "children": [], "start_point": {"row": 191, "column": 30}, "end_point": {"row": 191, "column": 31}}, {"id": 935, "type": "+", "text": "+", "parent": 933, "children": [], "start_point": {"row": 191, "column": 31}, "end_point": {"row": 191, "column": 32}}, {"id": 936, "type": "number_literal", "text": "10", "parent": 933, "children": [], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 34}}, {"id": 937, "type": "cast_expression", "text": "(int)k", "parent": 930, "children": [938, 940], "start_point": {"row": 191, "column": 35}, "end_point": {"row": 191, "column": 41}}, {"id": 938, "type": "type_descriptor", "text": "int", "parent": 937, "children": [939], "start_point": {"row": 191, "column": 36}, "end_point": {"row": 191, "column": 39}}, {"id": 939, "type": "primitive_type", "text": "int", "parent": 938, "children": [], "start_point": {"row": 191, "column": 36}, "end_point": {"row": 191, "column": 39}}, {"id": 940, "type": "identifier", "text": "k", "parent": 937, "children": [], "start_point": {"row": 191, "column": 40}, "end_point": {"row": 191, "column": 41}}, {"id": 941, "type": "cast_expression", "text": "(int)(*sbytes)", "parent": 930, "children": [942, 944], "start_point": {"row": 191, "column": 42}, "end_point": {"row": 191, "column": 56}}, {"id": 942, "type": "type_descriptor", "text": "int", "parent": 941, "children": [943], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 46}}, {"id": 943, "type": "primitive_type", "text": "int", "parent": 942, "children": [], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 46}}, {"id": 944, "type": "parenthesized_expression", "text": "(*sbytes)", "parent": 941, "children": [945], "start_point": {"row": 191, "column": 47}, "end_point": {"row": 191, "column": 56}}, {"id": 945, "type": "pointer_expression", "text": "*sbytes", "parent": 944, "children": [946, 947], "start_point": {"row": 191, "column": 48}, "end_point": {"row": 191, "column": 55}}, {"id": 946, "type": "*", "text": "*", "parent": 945, "children": [], "start_point": {"row": 191, "column": 48}, "end_point": {"row": 191, "column": 49}}, {"id": 947, "type": "identifier", "text": "sbytes", "parent": 945, "children": [], "start_point": {"row": 191, "column": 49}, "end_point": {"row": 191, "column": 55}}, {"id": 948, "type": "assignment_expression", "text": "k = k + 2", "parent": 901, "children": [949, 950, 951], "start_point": {"row": 192, "column": 3}, "end_point": {"row": 192, "column": 12}}, {"id": 949, "type": "identifier", "text": "k", "parent": 948, "children": [], "start_point": {"row": 192, "column": 3}, "end_point": {"row": 192, "column": 4}}, {"id": 950, "type": "=", "text": "=", "parent": 948, "children": [], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 6}}, {"id": 951, "type": "binary_expression", "text": "k + 2", "parent": 948, "children": [952, 953, 954], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 12}}, {"id": 952, "type": "identifier", "text": "k", "parent": 951, "children": [], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 8}}, {"id": 953, "type": "+", "text": "+", "parent": 951, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 10}}, {"id": 954, "type": "number_literal", "text": "2", "parent": 951, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 12}}, {"id": 955, "type": "#endif", "text": "#endif", "parent": 836, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 956, "type": "assignment_expression", "text": "block_offs[0] = read_int ( buf + 108 )", "parent": 588, "children": [957, 960, 961], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 38}}, {"id": 957, "type": "subscript_expression", "text": "block_offs[0]", "parent": 956, "children": [958, 959], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 13}}, {"id": 958, "type": "identifier", "text": "block_offs", "parent": 957, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 10}}, {"id": 959, "type": "number_literal", "text": "0", "parent": 957, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 12}}, {"id": 960, "type": "=", "text": "=", "parent": 956, "children": [], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 196, "column": 15}}, {"id": 961, "type": "call_expression", "text": "read_int ( buf + 108 )", "parent": 956, "children": [962, 963], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 38}}, {"id": 962, "type": "identifier", "text": "read_int", "parent": 961, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 24}}, {"id": 963, "type": "argument_list", "text": "( buf + 108 )", "parent": 961, "children": [964], "start_point": {"row": 196, "column": 25}, "end_point": {"row": 196, "column": 38}}, {"id": 964, "type": "binary_expression", "text": "buf + 108", "parent": 963, "children": [965, 966, 967], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 36}}, {"id": 965, "type": "identifier", "text": "buf", "parent": 964, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 30}}, {"id": 966, "type": "+", "text": "+", "parent": 964, "children": [], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 32}}, {"id": 967, "type": "number_literal", "text": "108", "parent": 964, "children": [], "start_point": {"row": 196, "column": 33}, "end_point": {"row": 196, "column": 36}}, {"id": 968, "type": "assignment_expression", "text": "block_offs[1] = read_int ( buf + 112 )", "parent": 588, "children": [969, 972, 973], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 38}}, {"id": 969, "type": "subscript_expression", "text": "block_offs[1]", "parent": 968, "children": [970, 971], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 13}}, {"id": 970, "type": "identifier", "text": "block_offs", "parent": 969, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 10}}, {"id": 971, "type": "number_literal", "text": "1", "parent": 969, "children": [], "start_point": {"row": 197, "column": 11}, "end_point": {"row": 197, "column": 12}}, {"id": 972, "type": "=", "text": "=", "parent": 968, "children": [], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 15}}, {"id": 973, "type": "call_expression", "text": "read_int ( buf + 112 )", "parent": 968, "children": [974, 975], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 38}}, {"id": 974, "type": "identifier", "text": "read_int", "parent": 973, "children": [], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 24}}, {"id": 975, "type": "argument_list", "text": "( buf + 112 )", "parent": 973, "children": [976], "start_point": {"row": 197, "column": 25}, "end_point": {"row": 197, "column": 38}}, {"id": 976, "type": "binary_expression", "text": "buf + 112", "parent": 975, "children": [977, 978, 979], "start_point": {"row": 197, "column": 27}, "end_point": {"row": 197, "column": 36}}, {"id": 977, "type": "identifier", "text": "buf", "parent": 976, "children": [], "start_point": {"row": 197, "column": 27}, "end_point": {"row": 197, "column": 30}}, {"id": 978, "type": "+", "text": "+", "parent": 976, "children": [], "start_point": {"row": 197, "column": 31}, "end_point": {"row": 197, "column": 32}}, {"id": 979, "type": "number_literal", "text": "112", "parent": 976, "children": [], "start_point": {"row": 197, "column": 33}, "end_point": {"row": 197, "column": 36}}, {"id": 980, "type": "assignment_expression", "text": "block_offs[2] = read_int ( buf + 116 )", "parent": 588, "children": [981, 984, 985], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 38}}, {"id": 981, "type": "subscript_expression", "text": "block_offs[2]", "parent": 980, "children": [982, 983], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 13}}, {"id": 982, "type": "identifier", "text": "block_offs", "parent": 981, "children": [], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 10}}, {"id": 983, "type": "number_literal", "text": "2", "parent": 981, "children": [], "start_point": {"row": 198, "column": 11}, "end_point": {"row": 198, "column": 12}}, {"id": 984, "type": "=", "text": "=", "parent": 980, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 15}}, {"id": 985, "type": "call_expression", "text": "read_int ( buf + 116 )", "parent": 980, "children": [986, 987], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 38}}, {"id": 986, "type": "identifier", "text": "read_int", "parent": 985, "children": [], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 24}}, {"id": 987, "type": "argument_list", "text": "( buf + 116 )", "parent": 985, "children": [988], "start_point": {"row": 198, "column": 25}, "end_point": {"row": 198, "column": 38}}, {"id": 988, "type": "binary_expression", "text": "buf + 116", "parent": 987, "children": [989, 990, 991], "start_point": {"row": 198, "column": 27}, "end_point": {"row": 198, "column": 36}}, {"id": 989, "type": "identifier", "text": "buf", "parent": 988, "children": [], "start_point": {"row": 198, "column": 27}, "end_point": {"row": 198, "column": 30}}, {"id": 990, "type": "+", "text": "+", "parent": 988, "children": [], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 32}}, {"id": 991, "type": "number_literal", "text": "116", "parent": 988, "children": [], "start_point": {"row": 198, "column": 33}, "end_point": {"row": 198, "column": 36}}, {"id": 992, "type": "for_statement", "text": "for ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf(\"look block_offs %d block1 %d block2 %d\\n\", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n\t case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;\n\t case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;\n\t case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;\n\t default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }", "parent": 588, "children": [993, 997, 1001, 1004], "start_point": {"row": 200, "column": 0}, "end_point": {"row": 224, "column": 7}}, {"id": 993, "type": "assignment_expression", "text": "i = 0", "parent": 992, "children": [994, 995, 996], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 11}}, {"id": 994, "type": "identifier", "text": "i", "parent": 993, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 7}}, {"id": 995, "type": "=", "text": "=", "parent": 993, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 9}}, {"id": 996, "type": "number_literal", "text": "0", "parent": 993, "children": [], "start_point": {"row": 200, "column": 10}, "end_point": {"row": 200, "column": 11}}, {"id": 997, "type": "binary_expression", "text": "i < 3", "parent": 992, "children": [998, 999, 1000], "start_point": {"row": 200, "column": 13}, "end_point": {"row": 200, "column": 18}}, {"id": 998, "type": "identifier", "text": "i", "parent": 997, "children": [], "start_point": {"row": 200, "column": 13}, "end_point": {"row": 200, "column": 14}}, {"id": 999, "type": "<", "text": "<", "parent": 997, "children": [], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 16}}, {"id": 1000, "type": "number_literal", "text": "3", "parent": 997, "children": [], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 18}}, {"id": 1001, "type": "update_expression", "text": "i++", "parent": 992, "children": [1002, 1003], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 23}}, {"id": 1002, "type": "identifier", "text": "i", "parent": 1001, "children": [], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 21}}, {"id": 1003, "type": "++", "text": "++", "parent": 1001, "children": [], "start_point": {"row": 200, "column": 21}, "end_point": {"row": 200, "column": 23}}, {"id": 1004, "type": "if_statement", "text": "if ( block_offs[i] != 0 )\n {\n /*printf(\"look block_offs %d block1 %d block2 %d\\n\", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n\t case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;\n\t case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;\n\t case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;\n\t default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }", "parent": 992, "children": [1005], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 224, "column": 7}}, {"id": 1005, "type": "parenthesized_expression", "text": "( block_offs[i] != 0 )", "parent": 1004, "children": [1006], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 28}}, {"id": 1006, "type": "binary_expression", "text": "block_offs[i] != 0", "parent": 1005, "children": [1007, 1010, 1011], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 26}}, {"id": 1007, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1006, "children": [1008, 1009], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 21}}, {"id": 1008, "type": "identifier", "text": "block_offs", "parent": 1007, "children": [], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 18}}, {"id": 1009, "type": "identifier", "text": "i", "parent": 1007, "children": [], "start_point": {"row": 201, "column": 19}, "end_point": {"row": 201, "column": 20}}, {"id": 1010, "type": "!=", "text": "!=", "parent": 1006, "children": [], "start_point": {"row": 201, "column": 22}, "end_point": {"row": 201, "column": 24}}, {"id": 1011, "type": "number_literal", "text": "0", "parent": 1006, "children": [], "start_point": {"row": 201, "column": 25}, "end_point": {"row": 201, "column": 26}}, {"id": 1012, "type": "switch_statement", "text": "switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n\t case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;\n\t case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;\n\t case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;\n\t default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );\n }", "parent": 1004, "children": [1013, 1014], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 223, "column": 10}}, {"id": 1013, "type": "switch", "text": "switch", "parent": 1012, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 12}}, {"id": 1014, "type": "parenthesized_expression", "text": "( (int)read_short(buf + (block_offs[i] * 2) + 2) )", "parent": 1012, "children": [1015], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 63}}, {"id": 1015, "type": "cast_expression", "text": "(int)read_short(buf + (block_offs[i] * 2) + 2)", "parent": 1014, "children": [1016, 1018], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 61}}, {"id": 1016, "type": "type_descriptor", "text": "int", "parent": 1015, "children": [1017], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 19}}, {"id": 1017, "type": "primitive_type", "text": "int", "parent": 1016, "children": [], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 19}}, {"id": 1018, "type": "call_expression", "text": "read_short(buf + (block_offs[i] * 2) + 2)", "parent": 1015, "children": [1019, 1020], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 61}}, {"id": 1019, "type": "identifier", "text": "read_short", "parent": 1018, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 30}}, {"id": 1020, "type": "argument_list", "text": "(buf + (block_offs[i] * 2) + 2)", "parent": 1018, "children": [1021], "start_point": {"row": 206, "column": 30}, "end_point": {"row": 206, "column": 61}}, {"id": 1021, "type": "binary_expression", "text": "buf + (block_offs[i] * 2) + 2", "parent": 1020, "children": [1022, 1032, 1033], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 60}}, {"id": 1022, "type": "binary_expression", "text": "buf + (block_offs[i] * 2)", "parent": 1021, "children": [1023, 1024, 1025], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 56}}, {"id": 1023, "type": "identifier", "text": "buf", "parent": 1022, "children": [], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 34}}, {"id": 1024, "type": "+", "text": "+", "parent": 1022, "children": [], "start_point": {"row": 206, "column": 35}, "end_point": {"row": 206, "column": 36}}, {"id": 1025, "type": "parenthesized_expression", "text": "(block_offs[i] * 2)", "parent": 1022, "children": [1026], "start_point": {"row": 206, "column": 37}, "end_point": {"row": 206, "column": 56}}, {"id": 1026, "type": "binary_expression", "text": "block_offs[i] * 2", "parent": 1025, "children": [1027, 1030, 1031], "start_point": {"row": 206, "column": 38}, "end_point": {"row": 206, "column": 55}}, {"id": 1027, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1026, "children": [1028, 1029], "start_point": {"row": 206, "column": 38}, "end_point": {"row": 206, "column": 51}}, {"id": 1028, "type": "identifier", "text": "block_offs", "parent": 1027, "children": [], "start_point": {"row": 206, "column": 38}, "end_point": {"row": 206, "column": 48}}, {"id": 1029, "type": "identifier", "text": "i", "parent": 1027, "children": [], "start_point": {"row": 206, "column": 49}, "end_point": {"row": 206, "column": 50}}, {"id": 1030, "type": "*", "text": "*", "parent": 1026, "children": [], "start_point": {"row": 206, "column": 52}, "end_point": {"row": 206, "column": 53}}, {"id": 1031, "type": "number_literal", "text": "2", "parent": 1026, "children": [], "start_point": {"row": 206, "column": 54}, "end_point": {"row": 206, "column": 55}}, {"id": 1032, "type": "+", "text": "+", "parent": 1021, "children": [], "start_point": {"row": 206, "column": 57}, "end_point": {"row": 206, "column": 58}}, {"id": 1033, "type": "number_literal", "text": "2", "parent": 1021, "children": [], "start_point": {"row": 206, "column": 59}, "end_point": {"row": 206, "column": 60}}, {"id": 1034, "type": "case_statement", "text": "case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;", "parent": 1012, "children": [1035, 1036, 1044], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 210, "column": 8}}, {"id": 1035, "type": "case", "text": "case", "parent": 1034, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 6}}, {"id": 1036, "type": "number_literal", "text": "1", "parent": 1034, "children": [], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 8}}, {"id": 1037, "type": "call_expression", "text": "decode_symbol ( buf, block_offs[i] )", "parent": 1034, "children": [1038, 1039], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 45}}, {"id": 1038, "type": "identifier", "text": "decode_symbol", "parent": 1037, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 22}}, {"id": 1039, "type": "argument_list", "text": "( buf, block_offs[i] )", "parent": 1037, "children": [1040, 1041], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 45}}, {"id": 1040, "type": "identifier", "text": "buf", "parent": 1039, "children": [], "start_point": {"row": 209, "column": 25}, "end_point": {"row": 209, "column": 28}}, {"id": 1041, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 209, "column": 30}, "end_point": {"row": 209, "column": 43}}, {"id": 1042, "type": "identifier", "text": "block_offs", "parent": 1041, "children": [], "start_point": {"row": 209, "column": 30}, "end_point": {"row": 209, "column": 40}}, {"id": 1043, "type": "identifier", "text": "i", "parent": 1041, "children": [], "start_point": {"row": 209, "column": 41}, "end_point": {"row": 209, "column": 42}}, {"id": 1044, "type": "break_statement", "text": "break;", "parent": 1034, "children": [1045], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 8}}, {"id": 1045, "type": "break", "text": "break", "parent": 1044, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 7}}, {"id": 1046, "type": "case_statement", "text": "case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;", "parent": 1012, "children": [1047, 1048, 1086], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 216, "column": 8}}, {"id": 1047, "type": "case", "text": "case", "parent": 1046, "children": [], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 6}}, {"id": 1048, "type": "number_literal", "text": "2", "parent": 1046, "children": [], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 8}}, {"id": 1049, "type": "assignment_expression", "text": "xmin_sav = XMIN", "parent": 1046, "children": [1050, 1051, 1052], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 17}}, {"id": 1050, "type": "identifier", "text": "xmin_sav", "parent": 1049, "children": [], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 10}}, {"id": 1051, "type": "=", "text": "=", "parent": 1049, "children": [], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 12}}, {"id": 1052, "type": "identifier", "text": "XMIN", "parent": 1049, "children": [], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 212, "column": 17}}, {"id": 1053, "type": "assignment_expression", "text": "xmax_sav = XMAX", "parent": 1046, "children": [1054, 1055, 1056], "start_point": {"row": 212, "column": 19}, "end_point": {"row": 212, "column": 34}}, {"id": 1054, "type": "identifier", "text": "xmax_sav", "parent": 1053, "children": [], "start_point": {"row": 212, "column": 19}, "end_point": {"row": 212, "column": 27}}, {"id": 1055, "type": "=", "text": "=", "parent": 1053, "children": [], "start_point": {"row": 212, "column": 28}, "end_point": {"row": 212, "column": 29}}, {"id": 1056, "type": "identifier", "text": "XMAX", "parent": 1053, "children": [], "start_point": {"row": 212, "column": 30}, "end_point": {"row": 212, "column": 34}}, {"id": 1057, "type": "assignment_expression", "text": "XMIN = MIN_PX", "parent": 1046, "children": [1058, 1059, 1060], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 15}}, {"id": 1058, "type": "identifier", "text": "XMIN", "parent": 1057, "children": [], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 6}}, {"id": 1059, "type": "=", "text": "=", "parent": 1057, "children": [], "start_point": {"row": 213, "column": 7}, "end_point": {"row": 213, "column": 8}}, {"id": 1060, "type": "identifier", "text": "MIN_PX", "parent": 1057, "children": [], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 213, "column": 15}}, {"id": 1061, "type": "assignment_expression", "text": "XMAX = MAX_PX", "parent": 1046, "children": [1062, 1063, 1064], "start_point": {"row": 213, "column": 17}, "end_point": {"row": 213, "column": 30}}, {"id": 1062, "type": "identifier", "text": "XMAX", "parent": 1061, "children": [], "start_point": {"row": 213, "column": 17}, "end_point": {"row": 213, "column": 21}}, {"id": 1063, "type": "=", "text": "=", "parent": 1061, "children": [], "start_point": {"row": 213, "column": 22}, "end_point": {"row": 213, "column": 23}}, {"id": 1064, "type": "identifier", "text": "MAX_PX", "parent": 1061, "children": [], "start_point": {"row": 213, "column": 24}, "end_point": {"row": 213, "column": 30}}, {"id": 1065, "type": "call_expression", "text": "decode_alpha_graphic ( buf + (block_offs[i] * 2) )", "parent": 1046, "children": [1066, 1067], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 59}}, {"id": 1066, "type": "identifier", "text": "decode_alpha_graphic", "parent": 1065, "children": [], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 29}}, {"id": 1067, "type": "argument_list", "text": "( buf + (block_offs[i] * 2) )", "parent": 1065, "children": [1068], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 59}}, {"id": 1068, "type": "binary_expression", "text": "buf + (block_offs[i] * 2)", "parent": 1067, "children": [1069, 1070, 1071], "start_point": {"row": 214, "column": 32}, "end_point": {"row": 214, "column": 57}}, {"id": 1069, "type": "identifier", "text": "buf", "parent": 1068, "children": [], "start_point": {"row": 214, "column": 32}, "end_point": {"row": 214, "column": 35}}, {"id": 1070, "type": "+", "text": "+", "parent": 1068, "children": [], "start_point": {"row": 214, "column": 36}, "end_point": {"row": 214, "column": 37}}, {"id": 1071, "type": "parenthesized_expression", "text": "(block_offs[i] * 2)", "parent": 1068, "children": [1072], "start_point": {"row": 214, "column": 38}, "end_point": {"row": 214, "column": 57}}, {"id": 1072, "type": "binary_expression", "text": "block_offs[i] * 2", "parent": 1071, "children": [1073, 1076, 1077], "start_point": {"row": 214, "column": 39}, "end_point": {"row": 214, "column": 56}}, {"id": 1073, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1072, "children": [1074, 1075], "start_point": {"row": 214, "column": 39}, "end_point": {"row": 214, "column": 52}}, {"id": 1074, "type": "identifier", "text": "block_offs", "parent": 1073, "children": [], "start_point": {"row": 214, "column": 39}, "end_point": {"row": 214, "column": 49}}, {"id": 1075, "type": "identifier", "text": "i", "parent": 1073, "children": [], "start_point": {"row": 214, "column": 50}, "end_point": {"row": 214, "column": 51}}, {"id": 1076, "type": "*", "text": "*", "parent": 1072, "children": [], "start_point": {"row": 214, "column": 53}, "end_point": {"row": 214, "column": 54}}, {"id": 1077, "type": "number_literal", "text": "2", "parent": 1072, "children": [], "start_point": {"row": 214, "column": 55}, "end_point": {"row": 214, "column": 56}}, {"id": 1078, "type": "assignment_expression", "text": "XMIN = xmin_sav", "parent": 1046, "children": [1079, 1080, 1081], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 17}}, {"id": 1079, "type": "identifier", "text": "XMIN", "parent": 1078, "children": [], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 6}}, {"id": 1080, "type": "=", "text": "=", "parent": 1078, "children": [], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 8}}, {"id": 1081, "type": "identifier", "text": "xmin_sav", "parent": 1078, "children": [], "start_point": {"row": 215, "column": 9}, "end_point": {"row": 215, "column": 17}}, {"id": 1082, "type": "assignment_expression", "text": "XMAX = xmax_sav", "parent": 1046, "children": [1083, 1084, 1085], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 34}}, {"id": 1083, "type": "identifier", "text": "XMAX", "parent": 1082, "children": [], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 23}}, {"id": 1084, "type": "=", "text": "=", "parent": 1082, "children": [], "start_point": {"row": 215, "column": 24}, "end_point": {"row": 215, "column": 25}}, {"id": 1085, "type": "identifier", "text": "xmax_sav", "parent": 1082, "children": [], "start_point": {"row": 215, "column": 26}, "end_point": {"row": 215, "column": 34}}, {"id": 1086, "type": "break_statement", "text": "break;", "parent": 1046, "children": [1087], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 8}}, {"id": 1087, "type": "break", "text": "break", "parent": 1086, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 7}}, {"id": 1088, "type": "case_statement", "text": "case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;", "parent": 1012, "children": [1089, 1090, 1104], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 219, "column": 8}}, {"id": 1089, "type": "case", "text": "case", "parent": 1088, "children": [], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 6}}, {"id": 1090, "type": "number_literal", "text": "3", "parent": 1088, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 8}}, {"id": 1091, "type": "call_expression", "text": "decode_tabular ( buf + (block_offs[i] * 2) )", "parent": 1088, "children": [1092, 1093], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 53}}, {"id": 1092, "type": "identifier", "text": "decode_tabular", "parent": 1091, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 23}}, {"id": 1093, "type": "argument_list", "text": "( buf + (block_offs[i] * 2) )", "parent": 1091, "children": [1094], "start_point": {"row": 218, "column": 24}, "end_point": {"row": 218, "column": 53}}, {"id": 1094, "type": "binary_expression", "text": "buf + (block_offs[i] * 2)", "parent": 1093, "children": [1095, 1096, 1097], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 51}}, {"id": 1095, "type": "identifier", "text": "buf", "parent": 1094, "children": [], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 29}}, {"id": 1096, "type": "+", "text": "+", "parent": 1094, "children": [], "start_point": {"row": 218, "column": 30}, "end_point": {"row": 218, "column": 31}}, {"id": 1097, "type": "parenthesized_expression", "text": "(block_offs[i] * 2)", "parent": 1094, "children": [1098], "start_point": {"row": 218, "column": 32}, "end_point": {"row": 218, "column": 51}}, {"id": 1098, "type": "binary_expression", "text": "block_offs[i] * 2", "parent": 1097, "children": [1099, 1102, 1103], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 50}}, {"id": 1099, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1098, "children": [1100, 1101], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 46}}, {"id": 1100, "type": "identifier", "text": "block_offs", "parent": 1099, "children": [], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 43}}, {"id": 1101, "type": "identifier", "text": "i", "parent": 1099, "children": [], "start_point": {"row": 218, "column": 44}, "end_point": {"row": 218, "column": 45}}, {"id": 1102, "type": "*", "text": "*", "parent": 1098, "children": [], "start_point": {"row": 218, "column": 47}, "end_point": {"row": 218, "column": 48}}, {"id": 1103, "type": "number_literal", "text": "2", "parent": 1098, "children": [], "start_point": {"row": 218, "column": 49}, "end_point": {"row": 218, "column": 50}}, {"id": 1104, "type": "break_statement", "text": "break;", "parent": 1088, "children": [1105], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 8}}, {"id": 1105, "type": "break", "text": "break", "parent": 1104, "children": [], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 7}}, {"id": 1106, "type": "case_statement", "text": "default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );", "parent": 1012, "children": [1107], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 222, "column": 52}}, {"id": 1107, "type": "default", "text": "default", "parent": 1106, "children": [], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 9}}, {"id": 1108, "type": "call_expression", "text": "printf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) )", "parent": 1106, "children": [1109, 1110], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 222, "column": 51}}, {"id": 1109, "type": "identifier", "text": "printf", "parent": 1108, "children": [], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 8}}, {"id": 1110, "type": "argument_list", "text": "(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) )", "parent": 1108, "children": [1111, 1113], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 222, "column": 51}}, {"id": 1111, "type": "string_literal", "text": "\"unknown block to decode %d\\n\"", "parent": 1110, "children": [1112], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 39}}, {"id": 1112, "type": "escape_sequence", "text": "\\n", "parent": 1111, "children": [], "start_point": {"row": 221, "column": 36}, "end_point": {"row": 221, "column": 38}}, {"id": 1113, "type": "cast_expression", "text": "(int)read_short(buf + (block_offs[i] * 2) + 2)", "parent": 1110, "children": [1114, 1116], "start_point": {"row": 222, "column": 3}, "end_point": {"row": 222, "column": 49}}, {"id": 1114, "type": "type_descriptor", "text": "int", "parent": 1113, "children": [1115], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 7}}, {"id": 1115, "type": "primitive_type", "text": "int", "parent": 1114, "children": [], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 7}}, {"id": 1116, "type": "call_expression", "text": "read_short(buf + (block_offs[i] * 2) + 2)", "parent": 1113, "children": [1117, 1118], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 49}}, {"id": 1117, "type": "identifier", "text": "read_short", "parent": 1116, "children": [], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 18}}, {"id": 1118, "type": "argument_list", "text": "(buf + (block_offs[i] * 2) + 2)", "parent": 1116, "children": [1119], "start_point": {"row": 222, "column": 18}, "end_point": {"row": 222, "column": 49}}, {"id": 1119, "type": "binary_expression", "text": "buf + (block_offs[i] * 2) + 2", "parent": 1118, "children": [1120, 1130, 1131], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 48}}, {"id": 1120, "type": "binary_expression", "text": "buf + (block_offs[i] * 2)", "parent": 1119, "children": [1121, 1122, 1123], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 44}}, {"id": 1121, "type": "identifier", "text": "buf", "parent": 1120, "children": [], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 22}}, {"id": 1122, "type": "+", "text": "+", "parent": 1120, "children": [], "start_point": {"row": 222, "column": 23}, "end_point": {"row": 222, "column": 24}}, {"id": 1123, "type": "parenthesized_expression", "text": "(block_offs[i] * 2)", "parent": 1120, "children": [1124], "start_point": {"row": 222, "column": 25}, "end_point": {"row": 222, "column": 44}}, {"id": 1124, "type": "binary_expression", "text": "block_offs[i] * 2", "parent": 1123, "children": [1125, 1128, 1129], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 43}}, {"id": 1125, "type": "subscript_expression", "text": "block_offs[i]", "parent": 1124, "children": [1126, 1127], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 39}}, {"id": 1126, "type": "identifier", "text": "block_offs", "parent": 1125, "children": [], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 36}}, {"id": 1127, "type": "identifier", "text": "i", "parent": 1125, "children": [], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 38}}, {"id": 1128, "type": "*", "text": "*", "parent": 1124, "children": [], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 41}}, {"id": 1129, "type": "number_literal", "text": "2", "parent": 1124, "children": [], "start_point": {"row": 222, "column": 42}, "end_point": {"row": 222, "column": 43}}, {"id": 1130, "type": "+", "text": "+", "parent": 1119, "children": [], "start_point": {"row": 222, "column": 45}, "end_point": {"row": 222, "column": 46}}, {"id": 1131, "type": "number_literal", "text": "2", "parent": 1119, "children": [], "start_point": {"row": 222, "column": 47}, "end_point": {"row": 222, "column": 48}}, {"id": 1132, "type": "switch_statement", "text": "switch (product_message_code)\n {\n case 48:\n\t i = 1;\n\t gsmode (&i, &ier);\n\t break;\n /*default:\n\t printf(\"stay in map mode\\n\");*/\n }", "parent": 588, "children": [1133, 1134], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 235, "column": 4}}, {"id": 1133, "type": "switch", "text": "switch", "parent": 1132, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 6}}, {"id": 1134, "type": "parenthesized_expression", "text": "(product_message_code)", "parent": 1132, "children": [1135], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 29}}, {"id": 1135, "type": "identifier", "text": "product_message_code", "parent": 1134, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 28}}, {"id": 1136, "type": "case_statement", "text": "case 48:\n\t i = 1;\n\t gsmode (&i, &ier);\n\t break;", "parent": 1132, "children": [1137, 1138, 1150], "start_point": {"row": 229, "column": 3}, "end_point": {"row": 232, "column": 10}}, {"id": 1137, "type": "case", "text": "case", "parent": 1136, "children": [], "start_point": {"row": 229, "column": 3}, "end_point": {"row": 229, "column": 7}}, {"id": 1138, "type": "number_literal", "text": "48", "parent": 1136, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 10}}, {"id": 1139, "type": "assignment_expression", "text": "i = 1", "parent": 1136, "children": [1140, 1141, 1142], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 9}}, {"id": 1140, "type": "identifier", "text": "i", "parent": 1139, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 5}}, {"id": 1141, "type": "=", "text": "=", "parent": 1139, "children": [], "start_point": {"row": 230, "column": 6}, "end_point": {"row": 230, "column": 7}}, {"id": 1142, "type": "number_literal", "text": "1", "parent": 1139, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 9}}, {"id": 1143, "type": "call_expression", "text": "gsmode (&i, &ier)", "parent": 1136, "children": [1144, 1145], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 21}}, {"id": 1144, "type": "identifier", "text": "gsmode", "parent": 1143, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 10}}, {"id": 1145, "type": "argument_list", "text": "(&i, &ier)", "parent": 1143, "children": [1146, 1148], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 21}}, {"id": 1146, "type": "pointer_expression", "text": "&i", "parent": 1145, "children": [1147], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 14}}, {"id": 1147, "type": "identifier", "text": "i", "parent": 1146, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 14}}, {"id": 1148, "type": "pointer_expression", "text": "&ier", "parent": 1145, "children": [1149], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 20}}, {"id": 1149, "type": "identifier", "text": "ier", "parent": 1148, "children": [], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 20}}, {"id": 1150, "type": "break_statement", "text": "break;", "parent": 1136, "children": [1151], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 10}}, {"id": 1151, "type": "break", "text": "break", "parent": 1150, "children": [], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 9}}]}, "node_categories": {"declarations": {"functions": [114, 116, 245, 247, 272, 274, 321, 323, 360, 362, 409, 411, 460, 462, 506, 508, 555, 558, 588, 590], "variables": [66, 76, 80, 86, 91, 119, 127, 135, 250, 255, 277, 282, 287, 292, 326, 331, 335, 365, 368, 404, 414, 419, 424, 455, 465, 470, 475, 511, 518, 561, 568, 593, 600, 605, 610, 616, 629, 634, 637, 640, 645, 650, 655, 659, 662, 671, 691, 695, 700, 703, 718], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [143, 148, 151, 152, 158, 164, 167, 168, 173, 174, 175, 186, 194, 195, 200, 203, 213, 215, 217, 221, 225, 231, 237, 239, 243, 261, 269, 298, 306, 312, 318, 343, 346, 349, 353, 357, 372, 373, 374, 375, 380, 381, 385, 395, 398, 399, 402, 429, 434, 438, 440, 448, 480, 485, 489, 491, 500, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 539, 544, 549, 553, 574, 575, 576, 577, 582, 586, 730, 738, 741, 747, 756, 759, 761, 763, 766, 767, 770, 771, 774, 775, 778, 779, 782, 807, 808, 811, 814, 823, 824, 827, 830, 839, 856, 860, 866, 873, 874, 878, 883, 887, 890, 891, 897, 906, 910, 916, 923, 924, 928, 933, 937, 941, 944, 945, 951, 957, 961, 964, 969, 973, 976, 981, 985, 988, 997, 1001, 1005, 1006, 1007, 1014, 1015, 1018, 1021, 1022, 1025, 1026, 1027, 1037, 1041, 1065, 1068, 1071, 1072, 1073, 1091, 1094, 1097, 1098, 1099, 1108, 1113, 1116, 1119, 1120, 1123, 1124, 1125, 1134, 1143, 1146, 1148], "assignments": [140, 183, 260, 266, 297, 303, 309, 315, 339, 352, 391, 437, 488, 499, 729, 735, 752, 784, 788, 796, 800, 804, 820, 847, 852, 863, 894, 902, 913, 948, 956, 968, 980, 993, 1049, 1053, 1057, 1061, 1078, 1082, 1139], "loops": [166, 338, 851, 901, 992], "conditionals": [6, 7, 8, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 49, 52, 56, 60, 64, 69, 71, 73, 75, 78, 79, 83, 88, 89, 90, 95, 117, 121, 123, 125, 126, 130, 131, 134, 136, 139, 141, 144, 149, 150, 153, 159, 161, 162, 163, 165, 169, 172, 176, 178, 184, 187, 189, 193, 196, 201, 204, 206, 212, 214, 216, 218, 220, 222, 226, 230, 232, 234, 235, 236, 238, 240, 242, 244, 248, 254, 259, 263, 267, 271, 275, 281, 286, 291, 296, 300, 304, 308, 310, 314, 316, 320, 324, 330, 334, 337, 340, 344, 348, 350, 354, 355, 358, 359, 363, 367, 370, 371, 376, 382, 386, 390, 392, 396, 400, 401, 403, 407, 408, 412, 418, 423, 428, 430, 432, 433, 436, 439, 442, 449, 451, 452, 453, 458, 459, 463, 469, 474, 479, 481, 483, 484, 487, 490, 493, 502, 509, 512, 517, 521, 535, 540, 545, 550, 554, 556, 559, 562, 567, 569, 572, 578, 583, 587, 591, 594, 599, 604, 609, 612, 613, 614, 615, 617, 622, 625, 628, 633, 636, 638, 639, 642, 643, 644, 648, 652, 653, 654, 657, 658, 661, 664, 665, 666, 667, 668, 669, 670, 674, 677, 680, 683, 685, 686, 687, 689, 693, 694, 697, 698, 699, 702, 707, 712, 717, 722, 732, 736, 742, 744, 745, 746, 748, 749, 750, 753, 757, 760, 762, 764, 768, 772, 776, 780, 783, 785, 787, 789, 791, 794, 797, 799, 801, 803, 805, 812, 815, 821, 828, 831, 836, 837, 838, 840, 844, 845, 846, 848, 853, 857, 861, 864, 868, 875, 877, 879, 884, 893, 895, 898, 903, 907, 911, 914, 918, 925, 927, 929, 934, 940, 947, 949, 952, 955, 958, 962, 965, 970, 974, 977, 982, 986, 989, 994, 998, 1002, 1004, 1008, 1009, 1012, 1013, 1019, 1023, 1028, 1029, 1034, 1035, 1038, 1040, 1042, 1043, 1046, 1047, 1050, 1052, 1054, 1056, 1058, 1060, 1062, 1064, 1066, 1069, 1074, 1075, 1079, 1081, 1083, 1085, 1088, 1089, 1092, 1095, 1100, 1101, 1106, 1109, 1117, 1121, 1126, 1127, 1132, 1133, 1135, 1136, 1137, 1140, 1144, 1147, 1149], "returns": [157, 223, 454, 505, 552, 585], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 85, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 146, 147, 171, 179, 180, 182, 190, 207, 210, 211, 228, 265, 302, 342, 378, 384, 388, 394, 444, 495, 504, 536, 538, 541, 543, 546, 548, 551, 579, 581, 584, 649, 675, 678, 681, 684, 690, 709, 714, 725, 726, 727, 728, 734, 751, 755, 769, 773, 777, 781, 817, 819, 833, 835, 842, 850, 855, 859, 881, 886, 900, 905, 909, 931, 936, 954, 959, 967, 971, 979, 983, 991, 996, 1000, 1011, 1031, 1033, 1036, 1048, 1077, 1090, 1103, 1111, 1129, 1131, 1138, 1142], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 114, "universal_type": "function", "name": "vad_color_init", "text_snippet": "void vad_color_init ()\n{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_t"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "vad_color_init ()"}, {"node_id": 245, "universal_type": "function", "name": "vad_colors", "text_snippet": "void vad_colors ( int *icolor, int *ier)\n{\n*ier = 0;\ngraphic_color = *icolor;\n}"}, {"node_id": 247, "universal_type": "function", "name": "*icolor,", "text_snippet": "vad_colors ( int *icolor, int *ier)"}, {"node_id": 272, "universal_type": "function", "name": "vad_line", "text_snippet": "void vad_line ( int *icolor, int *itype, int *iwidth, int *ier)\n{\n*ier = 0;\nline_color = *icolor;\nli"}, {"node_id": 274, "universal_type": "function", "name": "*icolor,", "text_snippet": "vad_line ( int *icolor, int *itype, int *iwidth, int *ier)"}, {"node_id": 321, "universal_type": "function", "name": "vad_rms_colors", "text_snippet": "void vad_rms_colors ( int *NFLVL, int ifcolr[] )\n{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i"}, {"node_id": 323, "universal_type": "function", "name": "*NFLVL,", "text_snippet": "vad_rms_colors ( int *NFLVL, int ifcolr[] )"}, {"node_id": 360, "universal_type": "function", "name": "vad_setcol", "text_snippet": "int vad_setcol ( int ival)\n{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf(\"unexpected VA"}, {"node_id": 362, "universal_type": "function", "name": "ival)", "text_snippet": "vad_setcol ( int ival)"}, {"node_id": 409, "universal_type": "function", "name": "vad_garea", "text_snippet": "void vad_garea ( char *garea, int *lenstr, int *ier)\n{\nstrncpy(isub_garea, garea, *lenstr);\nisub_gar"}, {"node_id": 411, "universal_type": "function", "name": "*lenstr,", "text_snippet": "vad_garea ( char *garea, int *lenstr, int *ier)"}, {"node_id": 460, "universal_type": "function", "name": "vad_imcbar", "text_snippet": "void vad_imcbar ( char *imcbar, int *lenstr, int *ier)\n{\nstrncpy(image_imcbar, imcbar, *lenstr);\nima"}, {"node_id": 462, "universal_type": "function", "name": "*lenstr,", "text_snippet": "vad_imcbar ( char *imcbar, int *lenstr, int *ier)"}, {"node_id": 506, "universal_type": "function", "name": "read_int", "text_snippet": "int read_int ( unsigned char *x )\n{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 )"}, {"node_id": 508, "universal_type": "function", "name": "unknown", "text_snippet": "read_int ( unsigned char *x )"}, {"node_id": 555, "universal_type": "function", "name": "unknown", "text_snippet": "short read_short ( unsigned char *x )\n{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}"}, {"node_id": 558, "universal_type": "function", "name": "unknown", "text_snippet": "read_short ( unsigned char *x )"}, {"node_id": 588, "universal_type": "function", "name": "vad_driver", "text_snippet": "void vad_driver ( unsigned char *buf, int *ioff, int *iret)\n{\nint bflip, i, ij, ier;\nsigned short *s"}, {"node_id": 590, "universal_type": "function", "name": "*ioff,", "text_snippet": "vad_driver ( unsigned char *buf, int *ioff, int *iret)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"geminc.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"gemprm.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include \"geminc.h\"\n#include \"gemprm.h\"\n\n#ifdef UNDERSCORE\n#define vwind\tvwind_\n#define vad_colors\tvad_colors_\n#define vad_line\tvad_line_\n#define vad_color_init\tvad_color_init_\n#define vad_rms_colors\tvad_rms_colors_\n#define vad_garea\tvad_garea_\n#define vad_imcbar\tvad_imcbar_\n#define in_wind\tin_wind_\n#define gsmode gsmode_\n#define gsgmgn\tgsgmgn_\n#endif\n\n#define MAX_X\t2047.0\n#define MIN_X\t-2048.0\n\n#define MAX_PX\t511.\n#define MIN_PX 0.\n\nfloat\tXMAX=MAX_X, XMIN=MIN_X;\nfloat\tradar_clat, radar_clon;\nint graphic_color=1;\nint line_color, line_type, line_width;\n\n/*\n * Default vad colors as specified by OFCM FMH No. 11\n */ \n\nint vadcols[]={3, 5, 2, 6, 7, 1, 23, 31, 1, 1, 1, 1, 1, 1, 1, 6};\n\nvoid vad_color_init ()\n{\nint ier, bsize=LLMXLN, inum;\nchar buf[LLMXLN], *cpos;\nFILE *fp;\n\nfp = cfl_tbop ( \"gpvad.config\", \"unidata\", &ier );\nif (fp == NULL) return;\n\ncfl_trln ( fp, bsize, buf, &ier);\nwhile ( ier == 0 )\n {\n if ( strncmp(buf,\"COLORS\",6) == 0)\n {\n cpos = strchr(buf, ':');\n if ( cpos != NULL )\n {\n\t cpos++;\n\t cst_ilst ( cpos, ':', 1, 16, vadcols, &inum, &ier);\n\t cfl_clos ( fp, &ier );\n return;\n }\n else\n\t printf(\"Invalid color configuration line %s\\n\",buf);\n }\n cfl_trln ( fp, bsize, buf, &ier);\n }\n\ncfl_clos ( fp, &ier );\n\n}\n\nvoid vad_colors ( int *icolor, int *ier)\n{\n*ier = 0;\ngraphic_color = *icolor;\n}\n\nvoid vad_line ( int *icolor, int *itype, int *iwidth, int *ier)\n{\n*ier = 0;\nline_color = *icolor;\nline_type = *itype;\nline_width = *iwidth;\n}\n\nvoid vad_rms_colors ( int *NFLVL, int ifcolr[] )\n{\nint i;\nfor ( i = 0; i < *NFLVL; i++ )\n ifcolr[i] = vadcols[i];\n}\n\nint vad_setcol ( int ival)\n{\nint ier;\nif ( ( ival < 0 )||(ival > 15) )\n {\n printf(\"unexpected VAD color index %d\\n\",ival);\n ival = 15;\n }\ngscolr ( &vadcols[ival], &ier);\n}\n\nchar isub_garea[LLMXLN];\n\nvoid vad_garea ( char *garea, int *lenstr, int *ier)\n{\nstrncpy(isub_garea, garea, *lenstr);\nisub_garea[*lenstr] = '\\0';\ncst_lcuc ( isub_garea, isub_garea, ier );\nreturn;\n}\n\nchar image_imcbar[LLMXLN];\n\nvoid vad_imcbar ( char *imcbar, int *lenstr, int *ier)\n{\nstrncpy(image_imcbar, imcbar, *lenstr);\nimage_imcbar[*lenstr] = '\\0';\n*ier = 0;\nreturn;\n}\n\nint read_int ( unsigned char *x )\n{\nint ival = ( ( ( ( ( x[0] << 8 ) | x[1] ) << 8 ) | x[2] ) << 8 ) | x[3];\nreturn (ival);\n}\n\nshort read_short ( unsigned char *x )\n{\nshort ival = ( x[0] << 8 ) | x[1];\nreturn (ival);\n}\n\nvoid vad_driver ( unsigned char *buf, int *ioff, int *iret)\n{\nint bflip, i, ij, ier;\nsigned short *sbytes,*s1,*s2;\nint *ibytes;\nint ival;\noff_t k;\n\nint block_len, nlayers, ilevel;\nint block_offs[3];\nint packet_code, pblen, poff;\nint icnt, boff;\nint product_message_code;\n\nint np, i1,i2,j1,j2, ixoff, iyoff;\nfloat X[2], Y[2], Xv[2], Yv[2], spd, drct, rotat, spcod[2];\nfloat xmin_sav, xmax_sav;\nint imark, imkhw, imkwid;\nfloat szmark;\nchar sys_m[]=\"M\", sys_n[]=\"N\", *cstr;\nfloat rmargin[]={4.0, 4.0, 4.0, 2.0};\n\n\n*iret = 0;\n\n/*\n** Message header block\n */\nproduct_message_code = (int)read_short(buf);\nswitch (product_message_code)\n {\n case 48:\n i = 2;\n\tgsmode ( &i, &ier);\n /* set graph margins */\n gsgmgn ( &rmargin[0], &rmargin[1], &rmargin[2], &rmargin[3], &ier );\n\tXMAX = MAX_PX;\n\tXMIN = MIN_PX;\n\tbreak;\n default:\n\tXMAX = MAX_X;\n\tXMIN = MIN_X;\n }\n\nradar_clat = (float)read_int (buf + 20) / 1000.;\nradar_clon = (float)read_int (buf + 24) / 1000.;\n\n#ifdef DEBUG\nprintf(\"look messagecode %d %f %f\\n\",product_message_code,XMAX,XMIN);\nk = 0;\nfor(i=0;i<9;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d\\n\",i+1,(int)(*sbytes));\n k = k + 2;\n }\n/*\n** Product Description block\n */\nfor(i=0;i<51;i++)\n {\n sbytes = (signed short *)(buf+k);\n printf(\"sbytes %d %d %d\\n\",i+10,(int)k,(int)(*sbytes));\n k = k + 2;\n }\n#endif\n\nblock_offs[0] = read_int ( buf + 108 );\nblock_offs[1] = read_int ( buf + 112 );\nblock_offs[2] = read_int ( buf + 116 );\n\nfor ( i = 0; i < 3; i++ )\n if ( block_offs[i] != 0 )\n {\n /*printf(\"look block_offs %d block1 %d block2 %d\\n\", i,\n (int)read_short(buf + (block_offs[i] * 2) + 0),\n (int)read_short(buf + (block_offs[i] * 2) + 2) );*/\n switch ( (int)read_short(buf + (block_offs[i] * 2) + 2) )\n {\n\t case 1:\n\t decode_symbol ( buf, block_offs[i] );\n\t\tbreak;\n\t case 2:\n\t\txmin_sav = XMIN; xmax_sav = XMAX;\n\t\tXMIN = MIN_PX; XMAX = MAX_PX;\n\t decode_alpha_graphic ( buf + (block_offs[i] * 2) );\n\t\tXMIN = xmin_sav; XMAX = xmax_sav;\n\t\tbreak;\n\t case 3:\n\t decode_tabular ( buf + (block_offs[i] * 2) );\n\t\tbreak;\n\t default:\n\t\tprintf(\"unknown block to decode %d\\n\",\n\t\t\t(int)read_short(buf + (block_offs[i] * 2) + 2) );\n }\n }\n\n\nswitch (product_message_code)\n {\n case 48:\n\t i = 1;\n\t gsmode (&i, &ier);\n\t break;\n /*default:\n\t printf(\"stay in map mode\\n\");*/\n }\n\n\n}\n\n\n"}
81,047
c
// Copyright 2019 Google Inc. All Rights Reserved. #ifndef FIREBASE_LOG_H #define FIREBASE_LOG_H #include "firebase/firebase/log.h" #endif // FIREBASE_LOG_H
30.6
5
(translation_unit) "// Copyright 2019 Google Inc. All Rights Reserved.\n\n#ifndef FIREBASE_LOG_H\n#define FIREBASE_LOG_H\n\n#include "firebase/firebase/log.h"\n\n#endif // FIREBASE_LOG_H\n\n" (comment) "// Copyright 2019 Google Inc. All Rights Reserved." (preproc_ifdef) "#ifndef FIREBASE_LOG_H\n#define FIREBASE_LOG_H\n\n#include "firebase/firebase/log.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "FIREBASE_LOG_H" (preproc_def) "#define FIREBASE_LOG_H\n" (#define) "#define" (identifier) "FIREBASE_LOG_H" (preproc_include) "#include "firebase/firebase/log.h"\n" (#include) "#include" (string_literal) ""firebase/firebase/log.h"" (") """ (string_content) "firebase/firebase/log.h" (") """ (#endif) "#endif" (comment) "// FIREBASE_LOG_H"
16
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.6, "nodes": 10, "errors": 0, "source_hash": "09cfb0011a59c7f8ff362ced3069a22912bef45487f9b6b429e90c02bb136da8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FIREBASE_LOG_H\n#define FIREBASE_LOG_H\n\n#include \"firebase/firebase/log.h\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "identifier", "text": "FIREBASE_LOG_H", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define FIREBASE_LOG_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 5, "type": "identifier", "text": "FIREBASE_LOG_H", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"firebase/firebase/log.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"firebase/firebase/log.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 34}}, {"id": 9, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"firebase/firebase/log.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// Copyright 2019 Google Inc. All Rights Reserved.\n\n#ifndef FIREBASE_LOG_H\n#define FIREBASE_LOG_H\n\n#include \"firebase/firebase/log.h\"\n\n#endif // FIREBASE_LOG_H\n\n"}
81,048
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <SpriteKit/SKAction.h> // Not exported @interface SKRotate : SKAction { struct SKCRotate *_mycaction; } + (id)rotateToX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4; + (id)rotateByX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4; + (id)rotateToY:(double)arg1 duration:(double)arg2; + (id)rotateByY:(double)arg1 duration:(double)arg2; + (id)rotateToX:(double)arg1 duration:(double)arg2; + (id)rotateByX:(double)arg1 duration:(double)arg2; + (id)rotateToAngle:(double)arg1 duration:(double)arg2 shortestUnitArc:(BOOL)arg3; + (id)rotateToAngle:(double)arg1 duration:(double)arg2; + (id)rotateByAngle:(double)arg1 duration:(double)arg2; - (id)reversedAction; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)init; @end
36.08
26
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <SpriteKit/SKAction.h>\n\n// Not exported\n@interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}\n\n+ (id)rotateToX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4;\n+ (id)rotateByX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4;\n+ (id)rotateToY:(double)arg1 duration:(double)arg2;\n+ (id)rotateByY:(double)arg1 duration:(double)arg2;\n+ (id)rotateToX:(double)arg1 duration:(double)arg2;\n+ (id)rotateByX:(double)arg1 duration:(double)arg2;\n+ (id)rotateToAngle:(double)arg1 duration:(double)arg2 shortestUnitArc:(BOOL)arg3;\n+ (id)rotateToAngle:(double)arg1 duration:(double)arg2;\n+ (id)rotateByAngle:(double)arg1 duration:(double)arg2;\n- (id)reversedAction;\n- (id)copyWithZone:(struct _NSZone *)arg1;\n- (void)encodeWithCoder:(id)arg1;\n- (id)initWithCoder:(id)arg1;\n- (id)init;\n\n@end\n\n" (comment) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */" (preproc_call) "#import <SpriteKit/SKAction.h>\n" (preproc_directive) "#import" (preproc_arg) "<SpriteKit/SKAction.h>" (comment) "// Not exported" (ERROR) "@" (ERROR) "@" (function_definition) "interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}" (type_identifier) "interface" (identifier) "SKRotate" (ERROR) ": SKAction" (:) ":" (identifier) "SKAction" (compound_statement) "{\n struct SKCRotate *_mycaction;\n}" ({) "{" (declaration) "struct SKCRotate *_mycaction;" (struct_specifier) "struct SKCRotate" (struct) "struct" (type_identifier) "SKCRotate" (pointer_declarator) "*_mycaction" (*) "*" (identifier) "_mycaction" (;) ";" (}) "}" (ERROR) "+ (id)rotateToX:(double)arg1 y:(" (unary_expression) "+ (id)rotateToX" (+) "+" (cast_expression) "(id)rotateToX" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateToX" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "y" (:) ":" (() "(" (declaration) "double)arg2" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) "" (labeled_statement) "z:(double)arg3" (statement_identifier) "z" (:) ":" (expression_statement) "(double)arg3" (cast_expression) "(double)arg3" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg3" (;) "" (labeled_statement) "duration:(double)arg4;" (statement_identifier) "duration" (:) ":" (expression_statement) "(double)arg4;" (cast_expression) "(double)arg4" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg4" (;) ";" (ERROR) "+ (id)rotateByX:(double)arg1 y:(" (unary_expression) "+ (id)rotateByX" (+) "+" (cast_expression) "(id)rotateByX" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateByX" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "y" (:) ":" (() "(" (declaration) "double)arg2" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) "" (labeled_statement) "z:(double)arg3" (statement_identifier) "z" (:) ":" (expression_statement) "(double)arg3" (cast_expression) "(double)arg3" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg3" (;) "" (labeled_statement) "duration:(double)arg4;" (statement_identifier) "duration" (:) ":" (expression_statement) "(double)arg4;" (cast_expression) "(double)arg4" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg4" (;) ";" (ERROR) "+ (id)rotateToY:(double)arg1 duration:(" (unary_expression) "+ (id)rotateToY" (+) "+" (cast_expression) "(id)rotateToY" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateToY" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "+ (id)rotateByY:(double)arg1 duration:(" (unary_expression) "+ (id)rotateByY" (+) "+" (cast_expression) "(id)rotateByY" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateByY" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "+ (id)rotateToX:(double)arg1 duration:(" (unary_expression) "+ (id)rotateToX" (+) "+" (cast_expression) "(id)rotateToX" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateToX" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "+ (id)rotateByX:(double)arg1 duration:(" (unary_expression) "+ (id)rotateByX" (+) "+" (cast_expression) "(id)rotateByX" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateByX" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "+ (id)rotateToAngle:(double)arg1 duration:(" (unary_expression) "+ (id)rotateToAngle" (+) "+" (cast_expression) "(id)rotateToAngle" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateToAngle" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) "" (labeled_statement) "shortestUnitArc:(BOOL)arg3;" (statement_identifier) "shortestUnitArc" (:) ":" (expression_statement) "(BOOL)arg3;" (cast_expression) "(BOOL)arg3" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "arg3" (;) ";" (ERROR) "+ (id)rotateToAngle:(double)arg1 duration:(" (unary_expression) "+ (id)rotateToAngle" (+) "+" (cast_expression) "(id)rotateToAngle" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateToAngle" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "+ (id)rotateByAngle:(double)arg1 duration:(" (unary_expression) "+ (id)rotateByAngle" (+) "+" (cast_expression) "(id)rotateByAngle" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "rotateByAngle" (:) ":" (() "(" (primitive_type) "double" ()) ")" (type_identifier) "arg1" (identifier) "duration" (:) ":" (() "(" (declaration) "double)arg2;" (primitive_type) "double" (ERROR) ")" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (id)reversedAction;" (unary_expression) "- (id)reversedAction" (-) "-" (cast_expression) "(id)reversedAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "reversedAction" (;) ";" (ERROR) "- (id)copyWithZone:(" (unary_expression) "- (id)copyWithZone" (-) "-" (cast_expression) "(id)copyWithZone" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "copyWithZone" (:) ":" (() "(" (declaration) "struct _NSZone *)arg1;" (struct_specifier) "struct _NSZone" (struct) "struct" (type_identifier) "_NSZone" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)encodeWithCoder:(id)arg1;" (unary_expression) "- (void)encodeWithCoder" (-) "-" (cast_expression) "(void)encodeWithCoder" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "encodeWithCoder" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)initWithCoder:(id)arg1;" (unary_expression) "- (id)initWithCoder" (-) "-" (cast_expression) "(id)initWithCoder" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithCoder" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
365
27
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.08, "nodes": 210, "errors": 0, "source_hash": "45469f67c3629dd9a6fab2ed81691f67b3426670822fa0868d5d65890e67afb5", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <SpriteKit/SKAction.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<SpriteKit/SKAction.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 30}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 7, "type": "identifier", "text": "SKRotate", "parent": 5, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 19}}, {"id": 8, "type": "ERROR", "text": ": SKAction", "parent": 5, "children": [9], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 30}}, {"id": 9, "type": "identifier", "text": "SKAction", "parent": 8, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 30}}, {"id": 10, "type": "declaration", "text": "struct SKCRotate *_mycaction;", "parent": 5, "children": [11, 14], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 33}}, {"id": 11, "type": "struct_specifier", "text": "struct SKCRotate", "parent": 10, "children": [12, 13], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 20}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 13, "type": "type_identifier", "text": "SKCRotate", "parent": 11, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 20}}, {"id": 14, "type": "pointer_declarator", "text": "*_mycaction", "parent": 10, "children": [15, 16], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 32}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 22}}, {"id": 16, "type": "identifier", "text": "_mycaction", "parent": 14, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 32}}, {"id": 17, "type": "ERROR", "text": "+ (id)rotateToX:(double)arg1 y:(", "parent": null, "children": [18, 24, 25, 26], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 18, "type": "unary_expression", "text": "+ (id)rotateToX", "parent": 17, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 15}}, {"id": 19, "type": "+", "text": "+", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "cast_expression", "text": "(id)rotateToX", "parent": 18, "children": [21, 23], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 21, "type": "type_descriptor", "text": "id", "parent": 20, "children": [22], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 22, "type": "type_identifier", "text": "id", "parent": 21, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 23, "type": "identifier", "text": "rotateToX", "parent": 20, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 15}}, {"id": 24, "type": "primitive_type", "text": "double", "parent": 17, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 23}}, {"id": 25, "type": "type_identifier", "text": "arg1", "parent": 17, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 28}}, {"id": 26, "type": "identifier", "text": "y", "parent": 17, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 30}}, {"id": 27, "type": "declaration", "text": "double)arg2", "parent": null, "children": [28, 29], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 43}}, {"id": 28, "type": "primitive_type", "text": "double", "parent": 27, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 38}}, {"id": 29, "type": "identifier", "text": "arg2", "parent": 27, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 43}}, {"id": 30, "type": "labeled_statement", "text": "z:(double)arg3", "parent": null, "children": [31], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 58}}, {"id": 31, "type": "statement_identifier", "text": "z", "parent": 30, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 45}}, {"id": 32, "type": "cast_expression", "text": "(double)arg3", "parent": 30, "children": [33, 35], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 58}}, {"id": 33, "type": "type_descriptor", "text": "double", "parent": 32, "children": [34], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 53}}, {"id": 34, "type": "primitive_type", "text": "double", "parent": 33, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 53}}, {"id": 35, "type": "identifier", "text": "arg3", "parent": 32, "children": [], "start_point": {"row": 14, "column": 54}, "end_point": {"row": 14, "column": 58}}, {"id": 36, "type": "labeled_statement", "text": "duration:(double)arg4;", "parent": null, "children": [37], "start_point": {"row": 14, "column": 59}, "end_point": {"row": 14, "column": 81}}, {"id": 37, "type": "statement_identifier", "text": "duration", "parent": 36, "children": [], "start_point": {"row": 14, "column": 59}, "end_point": {"row": 14, "column": 67}}, {"id": 38, "type": "cast_expression", "text": "(double)arg4", "parent": 36, "children": [39, 41], "start_point": {"row": 14, "column": 68}, "end_point": {"row": 14, "column": 80}}, {"id": 39, "type": "type_descriptor", "text": "double", "parent": 38, "children": [40], "start_point": {"row": 14, "column": 69}, "end_point": {"row": 14, "column": 75}}, {"id": 40, "type": "primitive_type", "text": "double", "parent": 39, "children": [], "start_point": {"row": 14, "column": 69}, "end_point": {"row": 14, "column": 75}}, {"id": 41, "type": "identifier", "text": "arg4", "parent": 38, "children": [], "start_point": {"row": 14, "column": 76}, "end_point": {"row": 14, "column": 80}}, {"id": 42, "type": "ERROR", "text": "+ (id)rotateByX:(double)arg1 y:(", "parent": null, "children": [43, 49, 50, 51], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 32}}, {"id": 43, "type": "unary_expression", "text": "+ (id)rotateByX", "parent": 42, "children": [44, 45], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 15}}, {"id": 44, "type": "+", "text": "+", "parent": 43, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 45, "type": "cast_expression", "text": "(id)rotateByX", "parent": 43, "children": [46, 48], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 15}}, {"id": 46, "type": "type_descriptor", "text": "id", "parent": 45, "children": [47], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 47, "type": "type_identifier", "text": "id", "parent": 46, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 48, "type": "identifier", "text": "rotateByX", "parent": 45, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 15}}, {"id": 49, "type": "primitive_type", "text": "double", "parent": 42, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 50, "type": "type_identifier", "text": "arg1", "parent": 42, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 28}}, {"id": 51, "type": "identifier", "text": "y", "parent": 42, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 30}}, {"id": 52, "type": "declaration", "text": "double)arg2", "parent": null, "children": [53, 54], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 43}}, {"id": 53, "type": "primitive_type", "text": "double", "parent": 52, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 38}}, {"id": 54, "type": "identifier", "text": "arg2", "parent": 52, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 43}}, {"id": 55, "type": "labeled_statement", "text": "z:(double)arg3", "parent": null, "children": [56], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 58}}, {"id": 56, "type": "statement_identifier", "text": "z", "parent": 55, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 45}}, {"id": 57, "type": "cast_expression", "text": "(double)arg3", "parent": 55, "children": [58, 60], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 58}}, {"id": 58, "type": "type_descriptor", "text": "double", "parent": 57, "children": [59], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 53}}, {"id": 59, "type": "primitive_type", "text": "double", "parent": 58, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 53}}, {"id": 60, "type": "identifier", "text": "arg3", "parent": 57, "children": [], "start_point": {"row": 15, "column": 54}, "end_point": {"row": 15, "column": 58}}, {"id": 61, "type": "labeled_statement", "text": "duration:(double)arg4;", "parent": null, "children": [62], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 81}}, {"id": 62, "type": "statement_identifier", "text": "duration", "parent": 61, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 67}}, {"id": 63, "type": "cast_expression", "text": "(double)arg4", "parent": 61, "children": [64, 66], "start_point": {"row": 15, "column": 68}, "end_point": {"row": 15, "column": 80}}, {"id": 64, "type": "type_descriptor", "text": "double", "parent": 63, "children": [65], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 75}}, {"id": 65, "type": "primitive_type", "text": "double", "parent": 64, "children": [], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 75}}, {"id": 66, "type": "identifier", "text": "arg4", "parent": 63, "children": [], "start_point": {"row": 15, "column": 76}, "end_point": {"row": 15, "column": 80}}, {"id": 67, "type": "ERROR", "text": "+ (id)rotateToY:(double)arg1 duration:(", "parent": null, "children": [68, 74, 75, 76], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 39}}, {"id": 68, "type": "unary_expression", "text": "+ (id)rotateToY", "parent": 67, "children": [69, 70], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 15}}, {"id": 69, "type": "+", "text": "+", "parent": 68, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 70, "type": "cast_expression", "text": "(id)rotateToY", "parent": 68, "children": [71, 73], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 15}}, {"id": 71, "type": "type_descriptor", "text": "id", "parent": 70, "children": [72], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 72, "type": "type_identifier", "text": "id", "parent": 71, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 73, "type": "identifier", "text": "rotateToY", "parent": 70, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 15}}, {"id": 74, "type": "primitive_type", "text": "double", "parent": 67, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 23}}, {"id": 75, "type": "type_identifier", "text": "arg1", "parent": 67, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 28}}, {"id": 76, "type": "identifier", "text": "duration", "parent": 67, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 37}}, {"id": 77, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [78, 79], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 51}}, {"id": 78, "type": "primitive_type", "text": "double", "parent": 77, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 45}}, {"id": 79, "type": "identifier", "text": "arg2", "parent": 77, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 50}}, {"id": 80, "type": "ERROR", "text": "+ (id)rotateByY:(double)arg1 duration:(", "parent": null, "children": [81, 87, 88, 89], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 39}}, {"id": 81, "type": "unary_expression", "text": "+ (id)rotateByY", "parent": 80, "children": [82, 83], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 15}}, {"id": 82, "type": "+", "text": "+", "parent": 81, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 83, "type": "cast_expression", "text": "(id)rotateByY", "parent": 81, "children": [84, 86], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 15}}, {"id": 84, "type": "type_descriptor", "text": "id", "parent": 83, "children": [85], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 85, "type": "type_identifier", "text": "id", "parent": 84, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 86, "type": "identifier", "text": "rotateByY", "parent": 83, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 15}}, {"id": 87, "type": "primitive_type", "text": "double", "parent": 80, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 23}}, {"id": 88, "type": "type_identifier", "text": "arg1", "parent": 80, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 28}}, {"id": 89, "type": "identifier", "text": "duration", "parent": 80, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 37}}, {"id": 90, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [91, 92], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 51}}, {"id": 91, "type": "primitive_type", "text": "double", "parent": 90, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 45}}, {"id": 92, "type": "identifier", "text": "arg2", "parent": 90, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 50}}, {"id": 93, "type": "ERROR", "text": "+ (id)rotateToX:(double)arg1 duration:(", "parent": null, "children": [94, 100, 101, 102], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 39}}, {"id": 94, "type": "unary_expression", "text": "+ (id)rotateToX", "parent": 93, "children": [95, 96], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 15}}, {"id": 95, "type": "+", "text": "+", "parent": 94, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "(id)rotateToX", "parent": 94, "children": [97, 99], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 15}}, {"id": 97, "type": "type_descriptor", "text": "id", "parent": 96, "children": [98], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 98, "type": "type_identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 99, "type": "identifier", "text": "rotateToX", "parent": 96, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 15}}, {"id": 100, "type": "primitive_type", "text": "double", "parent": 93, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 23}}, {"id": 101, "type": "type_identifier", "text": "arg1", "parent": 93, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 28}}, {"id": 102, "type": "identifier", "text": "duration", "parent": 93, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 37}}, {"id": 103, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [104, 105], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 51}}, {"id": 104, "type": "primitive_type", "text": "double", "parent": 103, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 45}}, {"id": 105, "type": "identifier", "text": "arg2", "parent": 103, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 50}}, {"id": 106, "type": "ERROR", "text": "+ (id)rotateByX:(double)arg1 duration:(", "parent": null, "children": [107, 113, 114, 115], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 39}}, {"id": 107, "type": "unary_expression", "text": "+ (id)rotateByX", "parent": 106, "children": [108, 109], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 15}}, {"id": 108, "type": "+", "text": "+", "parent": 107, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 109, "type": "cast_expression", "text": "(id)rotateByX", "parent": 107, "children": [110, 112], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 15}}, {"id": 110, "type": "type_descriptor", "text": "id", "parent": 109, "children": [111], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 111, "type": "type_identifier", "text": "id", "parent": 110, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 112, "type": "identifier", "text": "rotateByX", "parent": 109, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 15}}, {"id": 113, "type": "primitive_type", "text": "double", "parent": 106, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 23}}, {"id": 114, "type": "type_identifier", "text": "arg1", "parent": 106, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 28}}, {"id": 115, "type": "identifier", "text": "duration", "parent": 106, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 37}}, {"id": 116, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [117, 118], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 51}}, {"id": 117, "type": "primitive_type", "text": "double", "parent": 116, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 45}}, {"id": 118, "type": "identifier", "text": "arg2", "parent": 116, "children": [], "start_point": {"row": 19, "column": 46}, "end_point": {"row": 19, "column": 50}}, {"id": 119, "type": "ERROR", "text": "+ (id)rotateToAngle:(double)arg1 duration:(", "parent": null, "children": [120, 126, 127, 128], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 43}}, {"id": 120, "type": "unary_expression", "text": "+ (id)rotateToAngle", "parent": 119, "children": [121, 122], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 19}}, {"id": 121, "type": "+", "text": "+", "parent": 120, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 122, "type": "cast_expression", "text": "(id)rotateToAngle", "parent": 120, "children": [123, 125], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 19}}, {"id": 123, "type": "type_descriptor", "text": "id", "parent": 122, "children": [124], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 5}}, {"id": 124, "type": "type_identifier", "text": "id", "parent": 123, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 5}}, {"id": 125, "type": "identifier", "text": "rotateToAngle", "parent": 122, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 19}}, {"id": 126, "type": "primitive_type", "text": "double", "parent": 119, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 27}}, {"id": 127, "type": "type_identifier", "text": "arg1", "parent": 119, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 32}}, {"id": 128, "type": "identifier", "text": "duration", "parent": 119, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 41}}, {"id": 129, "type": "declaration", "text": "double)arg2", "parent": null, "children": [130, 131], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 54}}, {"id": 130, "type": "primitive_type", "text": "double", "parent": 129, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 49}}, {"id": 131, "type": "identifier", "text": "arg2", "parent": 129, "children": [], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 54}}, {"id": 132, "type": "labeled_statement", "text": "shortestUnitArc:(BOOL)arg3;", "parent": null, "children": [133], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 82}}, {"id": 133, "type": "statement_identifier", "text": "shortestUnitArc", "parent": 132, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 70}}, {"id": 134, "type": "cast_expression", "text": "(BOOL)arg3", "parent": 132, "children": [135, 137], "start_point": {"row": 20, "column": 71}, "end_point": {"row": 20, "column": 81}}, {"id": 135, "type": "type_descriptor", "text": "BOOL", "parent": 134, "children": [136], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 76}}, {"id": 136, "type": "type_identifier", "text": "BOOL", "parent": 135, "children": [], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 76}}, {"id": 137, "type": "identifier", "text": "arg3", "parent": 134, "children": [], "start_point": {"row": 20, "column": 77}, "end_point": {"row": 20, "column": 81}}, {"id": 138, "type": "ERROR", "text": "+ (id)rotateToAngle:(double)arg1 duration:(", "parent": null, "children": [139, 145, 146, 147], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 43}}, {"id": 139, "type": "unary_expression", "text": "+ (id)rotateToAngle", "parent": 138, "children": [140, 141], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 19}}, {"id": 140, "type": "+", "text": "+", "parent": 139, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 141, "type": "cast_expression", "text": "(id)rotateToAngle", "parent": 139, "children": [142, 144], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 19}}, {"id": 142, "type": "type_descriptor", "text": "id", "parent": 141, "children": [143], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 143, "type": "type_identifier", "text": "id", "parent": 142, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 144, "type": "identifier", "text": "rotateToAngle", "parent": 141, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 19}}, {"id": 145, "type": "primitive_type", "text": "double", "parent": 138, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 27}}, {"id": 146, "type": "type_identifier", "text": "arg1", "parent": 138, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 32}}, {"id": 147, "type": "identifier", "text": "duration", "parent": 138, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 41}}, {"id": 148, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [149, 150], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 55}}, {"id": 149, "type": "primitive_type", "text": "double", "parent": 148, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 49}}, {"id": 150, "type": "identifier", "text": "arg2", "parent": 148, "children": [], "start_point": {"row": 21, "column": 50}, "end_point": {"row": 21, "column": 54}}, {"id": 151, "type": "ERROR", "text": "+ (id)rotateByAngle:(double)arg1 duration:(", "parent": null, "children": [152, 158, 159, 160], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 43}}, {"id": 152, "type": "unary_expression", "text": "+ (id)rotateByAngle", "parent": 151, "children": [153, 154], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 19}}, {"id": 153, "type": "+", "text": "+", "parent": 152, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 154, "type": "cast_expression", "text": "(id)rotateByAngle", "parent": 152, "children": [155, 157], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 19}}, {"id": 155, "type": "type_descriptor", "text": "id", "parent": 154, "children": [156], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 156, "type": "type_identifier", "text": "id", "parent": 155, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 157, "type": "identifier", "text": "rotateByAngle", "parent": 154, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 19}}, {"id": 158, "type": "primitive_type", "text": "double", "parent": 151, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 27}}, {"id": 159, "type": "type_identifier", "text": "arg1", "parent": 151, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 32}}, {"id": 160, "type": "identifier", "text": "duration", "parent": 151, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 41}}, {"id": 161, "type": "declaration", "text": "double)arg2;", "parent": null, "children": [162, 163], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 55}}, {"id": 162, "type": "primitive_type", "text": "double", "parent": 161, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 49}}, {"id": 163, "type": "identifier", "text": "arg2", "parent": 161, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 54}}, {"id": 164, "type": "unary_expression", "text": "- (id)reversedAction", "parent": null, "children": [165, 166], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 20}}, {"id": 165, "type": "-", "text": "-", "parent": 164, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 166, "type": "cast_expression", "text": "(id)reversedAction", "parent": 164, "children": [167, 169], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 20}}, {"id": 167, "type": "type_descriptor", "text": "id", "parent": 166, "children": [168], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 168, "type": "type_identifier", "text": "id", "parent": 167, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 169, "type": "identifier", "text": "reversedAction", "parent": 166, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 20}}, {"id": 170, "type": "ERROR", "text": "- (id)copyWithZone:(", "parent": null, "children": [171], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 20}}, {"id": 171, "type": "unary_expression", "text": "- (id)copyWithZone", "parent": 170, "children": [172, 173], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 18}}, {"id": 172, "type": "-", "text": "-", "parent": 171, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 173, "type": "cast_expression", "text": "(id)copyWithZone", "parent": 171, "children": [174, 176], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 18}}, {"id": 174, "type": "type_descriptor", "text": "id", "parent": 173, "children": [175], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 175, "type": "type_identifier", "text": "id", "parent": 174, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 176, "type": "identifier", "text": "copyWithZone", "parent": 173, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 18}}, {"id": 177, "type": "declaration", "text": "struct _NSZone *)arg1;", "parent": null, "children": [178, 181], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 42}}, {"id": 178, "type": "struct_specifier", "text": "struct _NSZone", "parent": 177, "children": [179, 180], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 34}}, {"id": 179, "type": "struct", "text": "struct", "parent": 178, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 26}}, {"id": 180, "type": "type_identifier", "text": "_NSZone", "parent": 178, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 34}}, {"id": 181, "type": "pointer_declarator", "text": "*)arg1", "parent": 177, "children": [182, 183], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 41}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 36}}, {"id": 183, "type": "identifier", "text": "arg1", "parent": 181, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 41}}, {"id": 184, "type": "unary_expression", "text": "- (void)encodeWithCoder", "parent": null, "children": [185, 186], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 23}}, {"id": 185, "type": "-", "text": "-", "parent": 184, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 186, "type": "cast_expression", "text": "(void)encodeWithCoder", "parent": 184, "children": [187, 189], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 23}}, {"id": 187, "type": "type_descriptor", "text": "void", "parent": 186, "children": [188], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 189, "type": "identifier", "text": "encodeWithCoder", "parent": 186, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 23}}, {"id": 190, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [191, 192], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 32}}, {"id": 191, "type": "identifier", "text": "id", "parent": 190, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 27}}, {"id": 192, "type": "identifier", "text": "arg1", "parent": 190, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 193, "type": "unary_expression", "text": "- (id)initWithCoder", "parent": null, "children": [194, 195], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 19}}, {"id": 194, "type": "-", "text": "-", "parent": 193, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 195, "type": "cast_expression", "text": "(id)initWithCoder", "parent": 193, "children": [196, 198], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 19}}, {"id": 196, "type": "type_descriptor", "text": "id", "parent": 195, "children": [197], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 197, "type": "type_identifier", "text": "id", "parent": 196, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 198, "type": "identifier", "text": "initWithCoder", "parent": 195, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 19}}, {"id": 199, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [200, 201], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 28}}, {"id": 200, "type": "identifier", "text": "id", "parent": 199, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 23}}, {"id": 201, "type": "identifier", "text": "arg1", "parent": 199, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 28}}, {"id": 202, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [203, 204], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 10}}, {"id": 203, "type": "-", "text": "-", "parent": 202, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 204, "type": "cast_expression", "text": "(id)init", "parent": 202, "children": [205, 207], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 10}}, {"id": 205, "type": "type_descriptor", "text": "id", "parent": 204, "children": [206], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 206, "type": "type_identifier", "text": "id", "parent": 205, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 207, "type": "identifier", "text": "init", "parent": 204, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 10}}, {"id": 208, "type": "ERROR", "text": "@", "parent": null, "children": [209], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 209, "type": "ERROR", "text": "@", "parent": 208, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 27, 52, 77, 90, 103, 116, 129, 148, 161, 177], "classes": [11, 12, 178, 179], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [18, 20, 32, 38, 43, 45, 57, 63, 68, 70, 81, 83, 94, 96, 107, 109, 120, 122, 134, 139, 141, 152, 154, 164, 166, 171, 173, 184, 186, 193, 195, 202, 204], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 13, 16, 22, 23, 25, 26, 29, 31, 35, 37, 41, 47, 48, 50, 51, 54, 56, 60, 62, 66, 72, 73, 75, 76, 79, 85, 86, 88, 89, 92, 98, 99, 101, 102, 105, 111, 112, 114, 115, 118, 124, 125, 127, 128, 131, 133, 136, 137, 143, 144, 146, 147, 150, 156, 157, 159, 160, 163, 168, 169, 175, 176, 180, 183, 189, 191, 192, 197, 198, 200, 201, 206, 207], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "SKRotate", "text_snippet": "interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "SKCRotate", "text_snippet": "struct SKCRotate"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 178, "universal_type": "class", "name": "_NSZone", "text_snippet": "struct _NSZone"}, {"node_id": 179, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <SpriteKit/SKAction.h>\n\n// Not exported\n@interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}\n\n+ (id)rotateToX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4;\n+ (id)rotateByX:(double)arg1 y:(double)arg2 z:(double)arg3 duration:(double)arg4;\n+ (id)rotateToY:(double)arg1 duration:(double)arg2;\n+ (id)rotateByY:(double)arg1 duration:(double)arg2;\n+ (id)rotateToX:(double)arg1 duration:(double)arg2;\n+ (id)rotateByX:(double)arg1 duration:(double)arg2;\n+ (id)rotateToAngle:(double)arg1 duration:(double)arg2 shortestUnitArc:(BOOL)arg3;\n+ (id)rotateToAngle:(double)arg1 duration:(double)arg2;\n+ (id)rotateByAngle:(double)arg1 duration:(double)arg2;\n- (id)reversedAction;\n- (id)copyWithZone:(struct _NSZone *)arg1;\n- (void)encodeWithCoder:(id)arg1;\n- (id)initWithCoder:(id)arg1;\n- (id)init;\n\n@end\n\n"}
81,049
c
/* * whip6: Warsaw High-performance IPv6. * * Copyright (c) 2012-2017 <NAME> * All rights reserved. * * This file is distributed under the terms in the attached LICENSE * files. */ #define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <poll.h> #include <assert.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <termios.h> #include <syslog.h> #include <pcap/pcap.h> #include "iomux.h" #include "CoreRadioSniffer.h" #define MAX_PACKET_SIZE (1500 + sizeof(sniffer_header_t)) // Sometimes valgrind is distributed with an older-version headers // for libpcap, which do not have this link type defined. #define LINKTYPE_IEEE802_15_4_NOFCS 230 static int iomux_fd; static pcap_dumper_t* pcap_dumper; static pcap_t* pcap; static uint32_t last_timestamp_32khz; static uint32_t timestamp_overflows; static int wait_until_can_read_fd(int fd, int timeout_sec) { struct pollfd pfd; pfd.fd = fd; pfd.events = POLLIN; if (poll(&pfd, 1, timeout_sec * 1000) < 0) return -1; if (pfd.revents & (POLLERR|POLLHUP)) return -1; if (pfd.revents & POLLIN) return 1; return 0; } static ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) { struct pcap_pkthdr pkthdr; uint64_t timestamp_32khz = packet->header.timestamp_32khz; uint64_t timestamp_usec; if (len < sizeof(sniffer_packet_t)) { fprintf(stderr, "invalid iomux packet: %ld bytes\n", len); errno = EINVAL; return -1; } if (timestamp_32khz < last_timestamp_32khz) { timestamp_overflows++; } last_timestamp_32khz = timestamp_32khz; timestamp_32khz += ((uint64_t)timestamp_overflows) << 32; timestamp_usec = timestamp_32khz * 1000000ULL / 32768; pkthdr.ts.tv_sec = timestamp_usec / 1000000; pkthdr.ts.tv_usec = timestamp_usec % 1000000; pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t); pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data); if (pcap_dump_flush(pcap_dumper) != 0) { syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)", pcap_geterr(pcap)); exit(1); } fflush(stdout); return len; } static void main_loop(void) { char buf[MAX_PACKET_SIZE]; for (;;) { size_t size = MAX_PACKET_SIZE; uint8_t channel; switch (wait_until_can_read_fd(iomux_fd, 1)) { case -1: syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno)); return; case 0: break; case 1: if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) { syslog(LOG_WARNING, "iomux_read_packet: %s", strerror(errno)); return; } if (channel != IOMUX_SNIFFER_CHANNEL) break; if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size) != size) { syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s", strerror(errno)); return; } break; default: assert(0); } continue; } } static int open_iomux(const char* filename) { struct termios termios; iomux_fd = open(filename, O_RDWR); if (iomux_fd < 0) return iomux_fd; if (tcgetattr(iomux_fd, &termios) < 0) { syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno)); } else { cfmakeraw(&termios); cfsetspeed(&termios, B115200); if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) { syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno)); } } return 0; } int main(int argc, char** argv) { const char* iomux_filename; int open_iomux_error_logged = 0; if (argc != 2) { fprintf(stderr, "usage: %s iomux_device\n", argv[0]); fprintf(stderr, "\n"); fprintf(stderr, "The program captures packets received by a device\n"); fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n"); fprintf(stderr, "dumps the data to stdout in libpcap format.\n"); fprintf(stderr, "\n"); fprintf(stderr, "To see the data live, do something like this:\n"); fprintf(stderr, "\n"); fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]); fprintf(stderr, "\n"); return 1; } iomux_filename = argv[1]; pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1); pcap_dumper = pcap_dump_fopen(pcap, stdout); if (pcap_dumper == NULL) { pcap_perror(pcap, "pcap_dump_fopen"); return 1; } openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON); syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename); for (;;) { if (open_iomux(iomux_filename) == 0) { syslog(LOG_INFO, "opened IOMUX device"); open_iomux_error_logged = 0; main_loop(); close(iomux_fd); } else if (!open_iomux_error_logged) { open_iomux_error_logged = 1; syslog(LOG_WARNING, "open_iomux: %s", strerror(errno)); } sleep(1); } }
32.59
157
(translation_unit) "/*\n * whip6: Warsaw High-performance IPv6.\n *\n * Copyright (c) 2012-2017 <NAME>\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE \n * files.\n */\n\n#define _BSD_SOURCE\n#include <stdio.h>\n#include <stdlib.h>\n#include <poll.h>\n#include <assert.h>\n#include <errno.h>\n#include <string.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <termios.h>\n#include <syslog.h>\n#include <pcap/pcap.h>\n\n#include "iomux.h"\n#include "CoreRadioSniffer.h"\n\n#define MAX_PACKET_SIZE (1500 + sizeof(sniffer_header_t))\n\n// Sometimes valgrind is distributed with an older-version headers\n// for libpcap, which do not have this link type defined.\n#define LINKTYPE_IEEE802_15_4_NOFCS 230\n\nstatic int iomux_fd;\nstatic pcap_dumper_t* pcap_dumper;\nstatic pcap_t* pcap;\nstatic uint32_t last_timestamp_32khz;\nstatic uint32_t timestamp_overflows;\n\nstatic int wait_until_can_read_fd(int fd, int timeout_sec) {\n struct pollfd pfd;\n pfd.fd = fd;\n pfd.events = POLLIN;\n if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;\n if (pfd.revents & (POLLERR|POLLHUP))\n return -1;\n if (pfd.revents & POLLIN)\n return 1;\n return 0;\n}\n\nstatic ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) {\n struct pcap_pkthdr pkthdr;\n uint64_t timestamp_32khz = packet->header.timestamp_32khz;\n uint64_t timestamp_usec;\n\n if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);\n errno = EINVAL;\n return -1;\n }\n\n if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }\n last_timestamp_32khz = timestamp_32khz;\n\n timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;\n timestamp_usec = timestamp_32khz * 1000000ULL / 32768;\n\n pkthdr.ts.tv_sec = timestamp_usec / 1000000;\n pkthdr.ts.tv_usec = timestamp_usec % 1000000;\n pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);\n pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);\n if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));\n exit(1);\n }\n fflush(stdout);\n return len;\n}\n\nstatic void main_loop(void) {\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }\n}\n\nstatic int open_iomux(const char* filename) {\n struct termios termios;\n iomux_fd = open(filename, O_RDWR);\n if (iomux_fd < 0)\n return iomux_fd;\n if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }\n return 0;\n}\n\nint main(int argc, char** argv) {\n const char* iomux_filename;\n int open_iomux_error_logged = 0;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s iomux_device\n", argv[0]);\n fprintf(stderr, "\n");\n fprintf(stderr, "The program captures packets received by a device\n");\n fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");\n fprintf(stderr, "dumps the data to stdout in libpcap format.\n");\n fprintf(stderr, "\n");\n fprintf(stderr, "To see the data live, do something like this:\n");\n fprintf(stderr, "\n");\n fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);\n fprintf(stderr, "\n");\n return 1;\n }\n iomux_filename = argv[1];\n\n pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);\n pcap_dumper = pcap_dump_fopen(pcap, stdout);\n if (pcap_dumper == NULL) {\n pcap_perror(pcap, "pcap_dump_fopen");\n return 1;\n }\n\n openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);\n syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename);\n\n for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }\n sleep(1);\n }\n}\n" (comment) "/*\n * whip6: Warsaw High-performance IPv6.\n *\n * Copyright (c) 2012-2017 <NAME>\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE \n * files.\n */" (preproc_def) "#define _BSD_SOURCE\n" (#define) "#define" (identifier) "_BSD_SOURCE" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <poll.h>\n" (#include) "#include" (system_lib_string) "<poll.h>" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <termios.h>\n" (#include) "#include" (system_lib_string) "<termios.h>" (preproc_include) "#include <syslog.h>\n" (#include) "#include" (system_lib_string) "<syslog.h>" (preproc_include) "#include <pcap/pcap.h>\n" (#include) "#include" (system_lib_string) "<pcap/pcap.h>" (preproc_include) "#include "iomux.h"\n" (#include) "#include" (string_literal) ""iomux.h"" (") """ (string_content) "iomux.h" (") """ (preproc_include) "#include "CoreRadioSniffer.h"\n" (#include) "#include" (string_literal) ""CoreRadioSniffer.h"" (") """ (string_content) "CoreRadioSniffer.h" (") """ (preproc_def) "#define MAX_PACKET_SIZE (1500 + sizeof(sniffer_header_t))\n" (#define) "#define" (identifier) "MAX_PACKET_SIZE" (preproc_arg) "(1500 + sizeof(sniffer_header_t))" (comment) "// Sometimes valgrind is distributed with an older-version headers" (comment) "// for libpcap, which do not have this link type defined." (preproc_def) "#define LINKTYPE_IEEE802_15_4_NOFCS 230\n" (#define) "#define" (identifier) "LINKTYPE_IEEE802_15_4_NOFCS" (preproc_arg) "230" (declaration) "static int iomux_fd;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "iomux_fd" (;) ";" (declaration) "static pcap_dumper_t* pcap_dumper;" (storage_class_specifier) "static" (static) "static" (type_identifier) "pcap_dumper_t" (pointer_declarator) "* pcap_dumper" (*) "*" (identifier) "pcap_dumper" (;) ";" (declaration) "static pcap_t* pcap;" (storage_class_specifier) "static" (static) "static" (type_identifier) "pcap_t" (pointer_declarator) "* pcap" (*) "*" (identifier) "pcap" (;) ";" (declaration) "static uint32_t last_timestamp_32khz;" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint32_t" (identifier) "last_timestamp_32khz" (;) ";" (declaration) "static uint32_t timestamp_overflows;" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint32_t" (identifier) "timestamp_overflows" (;) ";" (function_definition) "static int wait_until_can_read_fd(int fd, int timeout_sec) {\n struct pollfd pfd;\n pfd.fd = fd;\n pfd.events = POLLIN;\n if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;\n if (pfd.revents & (POLLERR|POLLHUP))\n return -1;\n if (pfd.revents & POLLIN)\n return 1;\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "wait_until_can_read_fd(int fd, int timeout_sec)" (identifier) "wait_until_can_read_fd" (parameter_list) "(int fd, int timeout_sec)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "int timeout_sec" (primitive_type) "int" (identifier) "timeout_sec" ()) ")" (compound_statement) "{\n struct pollfd pfd;\n pfd.fd = fd;\n pfd.events = POLLIN;\n if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;\n if (pfd.revents & (POLLERR|POLLHUP))\n return -1;\n if (pfd.revents & POLLIN)\n return 1;\n return 0;\n}" ({) "{" (declaration) "struct pollfd pfd;" (struct_specifier) "struct pollfd" (struct) "struct" (type_identifier) "pollfd" (identifier) "pfd" (;) ";" (expression_statement) "pfd.fd = fd;" (assignment_expression) "pfd.fd = fd" (field_expression) "pfd.fd" (identifier) "pfd" (.) "." (field_identifier) "fd" (=) "=" (identifier) "fd" (;) ";" (expression_statement) "pfd.events = POLLIN;" (assignment_expression) "pfd.events = POLLIN" (field_expression) "pfd.events" (identifier) "pfd" (.) "." (field_identifier) "events" (=) "=" (identifier) "POLLIN" (;) ";" (if_statement) "if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;" (if) "if" (parenthesized_expression) "(poll(&pfd, 1, timeout_sec * 1000) < 0)" (() "(" (binary_expression) "poll(&pfd, 1, timeout_sec * 1000) < 0" (call_expression) "poll(&pfd, 1, timeout_sec * 1000)" (identifier) "poll" (argument_list) "(&pfd, 1, timeout_sec * 1000)" (() "(" (pointer_expression) "&pfd" (&) "&" (identifier) "pfd" (,) "," (number_literal) "1" (,) "," (binary_expression) "timeout_sec * 1000" (identifier) "timeout_sec" (*) "*" (number_literal) "1000" ()) ")" (<) "<" (number_literal) "0" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if (pfd.revents & (POLLERR|POLLHUP))\n return -1;" (if) "if" (parenthesized_expression) "(pfd.revents & (POLLERR|POLLHUP))" (() "(" (binary_expression) "pfd.revents & (POLLERR|POLLHUP)" (field_expression) "pfd.revents" (identifier) "pfd" (.) "." (field_identifier) "revents" (&) "&" (parenthesized_expression) "(POLLERR|POLLHUP)" (() "(" (binary_expression) "POLLERR|POLLHUP" (identifier) "POLLERR" (|) "|" (identifier) "POLLHUP" ()) ")" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if (pfd.revents & POLLIN)\n return 1;" (if) "if" (parenthesized_expression) "(pfd.revents & POLLIN)" (() "(" (binary_expression) "pfd.revents & POLLIN" (field_expression) "pfd.revents" (identifier) "pfd" (.) "." (field_identifier) "revents" (&) "&" (identifier) "POLLIN" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) {\n struct pcap_pkthdr pkthdr;\n uint64_t timestamp_32khz = packet->header.timestamp_32khz;\n uint64_t timestamp_usec;\n\n if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);\n errno = EINVAL;\n return -1;\n }\n\n if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }\n last_timestamp_32khz = timestamp_32khz;\n\n timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;\n timestamp_usec = timestamp_32khz * 1000000ULL / 32768;\n\n pkthdr.ts.tv_sec = timestamp_usec / 1000000;\n pkthdr.ts.tv_usec = timestamp_usec % 1000000;\n pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);\n pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);\n if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));\n exit(1);\n }\n fflush(stdout);\n return len;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "ssize_t" (function_declarator) "pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len)" (identifier) "pcap_write_ipv6_packet" (parameter_list) "(sniffer_packet_t* packet, size_t len)" (() "(" (parameter_declaration) "sniffer_packet_t* packet" (type_identifier) "sniffer_packet_t" (pointer_declarator) "* packet" (*) "*" (identifier) "packet" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n struct pcap_pkthdr pkthdr;\n uint64_t timestamp_32khz = packet->header.timestamp_32khz;\n uint64_t timestamp_usec;\n\n if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);\n errno = EINVAL;\n return -1;\n }\n\n if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }\n last_timestamp_32khz = timestamp_32khz;\n\n timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;\n timestamp_usec = timestamp_32khz * 1000000ULL / 32768;\n\n pkthdr.ts.tv_sec = timestamp_usec / 1000000;\n pkthdr.ts.tv_usec = timestamp_usec % 1000000;\n pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);\n pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);\n if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));\n exit(1);\n }\n fflush(stdout);\n return len;\n}" ({) "{" (declaration) "struct pcap_pkthdr pkthdr;" (struct_specifier) "struct pcap_pkthdr" (struct) "struct" (type_identifier) "pcap_pkthdr" (identifier) "pkthdr" (;) ";" (declaration) "uint64_t timestamp_32khz = packet->header.timestamp_32khz;" (primitive_type) "uint64_t" (init_declarator) "timestamp_32khz = packet->header.timestamp_32khz" (identifier) "timestamp_32khz" (=) "=" (field_expression) "packet->header.timestamp_32khz" (field_expression) "packet->header" (identifier) "packet" (->) "->" (field_identifier) "header" (.) "." (field_identifier) "timestamp_32khz" (;) ";" (declaration) "uint64_t timestamp_usec;" (primitive_type) "uint64_t" (identifier) "timestamp_usec" (;) ";" (if_statement) "if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);\n errno = EINVAL;\n return -1;\n }" (if) "if" (parenthesized_expression) "(len < sizeof(sniffer_packet_t))" (() "(" (binary_expression) "len < sizeof(sniffer_packet_t)" (identifier) "len" (<) "<" (sizeof_expression) "sizeof(sniffer_packet_t)" (sizeof) "sizeof" (parenthesized_expression) "(sniffer_packet_t)" (() "(" (identifier) "sniffer_packet_t" ()) ")" ()) ")" (compound_statement) "{\n fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);\n errno = EINVAL;\n return -1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "invalid iomux packet: %ld bytes\n", len);" (call_expression) "fprintf(stderr, "invalid iomux packet: %ld bytes\n", len)" (identifier) "fprintf" (argument_list) "(stderr, "invalid iomux packet: %ld bytes\n", len)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""invalid iomux packet: %ld bytes\n"" (") """ (string_content) "invalid iomux packet: %ld bytes" (escape_sequence) "\n" (") """ (,) "," (identifier) "len" ()) ")" (;) ";" (expression_statement) "errno = EINVAL;" (assignment_expression) "errno = EINVAL" (identifier) "errno" (=) "=" (identifier) "EINVAL" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (if_statement) "if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }" (if) "if" (parenthesized_expression) "(timestamp_32khz < last_timestamp_32khz)" (() "(" (binary_expression) "timestamp_32khz < last_timestamp_32khz" (identifier) "timestamp_32khz" (<) "<" (identifier) "last_timestamp_32khz" ()) ")" (compound_statement) "{\n timestamp_overflows++;\n }" ({) "{" (expression_statement) "timestamp_overflows++;" (update_expression) "timestamp_overflows++" (identifier) "timestamp_overflows" (++) "++" (;) ";" (}) "}" (expression_statement) "last_timestamp_32khz = timestamp_32khz;" (assignment_expression) "last_timestamp_32khz = timestamp_32khz" (identifier) "last_timestamp_32khz" (=) "=" (identifier) "timestamp_32khz" (;) ";" (expression_statement) "timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;" (assignment_expression) "timestamp_32khz += ((uint64_t)timestamp_overflows) << 32" (identifier) "timestamp_32khz" (+=) "+=" (binary_expression) "((uint64_t)timestamp_overflows) << 32" (parenthesized_expression) "((uint64_t)timestamp_overflows)" (() "(" (cast_expression) "(uint64_t)timestamp_overflows" (() "(" (type_descriptor) "uint64_t" (primitive_type) "uint64_t" ()) ")" (identifier) "timestamp_overflows" ()) ")" (<<) "<<" (number_literal) "32" (;) ";" (expression_statement) "timestamp_usec = timestamp_32khz * 1000000ULL / 32768;" (assignment_expression) "timestamp_usec = timestamp_32khz * 1000000ULL / 32768" (identifier) "timestamp_usec" (=) "=" (binary_expression) "timestamp_32khz * 1000000ULL / 32768" (binary_expression) "timestamp_32khz * 1000000ULL" (identifier) "timestamp_32khz" (*) "*" (number_literal) "1000000ULL" (/) "/" (number_literal) "32768" (;) ";" (expression_statement) "pkthdr.ts.tv_sec = timestamp_usec / 1000000;" (assignment_expression) "pkthdr.ts.tv_sec = timestamp_usec / 1000000" (field_expression) "pkthdr.ts.tv_sec" (field_expression) "pkthdr.ts" (identifier) "pkthdr" (.) "." (field_identifier) "ts" (.) "." (field_identifier) "tv_sec" (=) "=" (binary_expression) "timestamp_usec / 1000000" (identifier) "timestamp_usec" (/) "/" (number_literal) "1000000" (;) ";" (expression_statement) "pkthdr.ts.tv_usec = timestamp_usec % 1000000;" (assignment_expression) "pkthdr.ts.tv_usec = timestamp_usec % 1000000" (field_expression) "pkthdr.ts.tv_usec" (field_expression) "pkthdr.ts" (identifier) "pkthdr" (.) "." (field_identifier) "ts" (.) "." (field_identifier) "tv_usec" (=) "=" (binary_expression) "timestamp_usec % 1000000" (identifier) "timestamp_usec" (%) "%" (number_literal) "1000000" (;) ";" (expression_statement) "pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);" (assignment_expression) "pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t)" (field_expression) "pkthdr.caplen" (identifier) "pkthdr" (.) "." (field_identifier) "caplen" (=) "=" (assignment_expression) "pkthdr.len = len - sizeof(sniffer_header_t)" (field_expression) "pkthdr.len" (identifier) "pkthdr" (.) "." (field_identifier) "len" (=) "=" (binary_expression) "len - sizeof(sniffer_header_t)" (identifier) "len" (-) "-" (sizeof_expression) "sizeof(sniffer_header_t)" (sizeof) "sizeof" (parenthesized_expression) "(sniffer_header_t)" (() "(" (identifier) "sniffer_header_t" ()) ")" (;) ";" (expression_statement) "pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);" (call_expression) "pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data)" (identifier) "pcap_dump" (argument_list) "((u_char*)pcap_dumper, &pkthdr, packet->data)" (() "(" (cast_expression) "(u_char*)pcap_dumper" (() "(" (type_descriptor) "u_char*" (type_identifier) "u_char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "pcap_dumper" (,) "," (pointer_expression) "&pkthdr" (&) "&" (identifier) "pkthdr" (,) "," (field_expression) "packet->data" (identifier) "packet" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (if_statement) "if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));\n exit(1);\n }" (if) "if" (parenthesized_expression) "(pcap_dump_flush(pcap_dumper) != 0)" (() "(" (binary_expression) "pcap_dump_flush(pcap_dumper) != 0" (call_expression) "pcap_dump_flush(pcap_dumper)" (identifier) "pcap_dump_flush" (argument_list) "(pcap_dumper)" (() "(" (identifier) "pcap_dumper" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));\n exit(1);\n }" ({) "{" (expression_statement) "syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap));" (call_expression) "syslog(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap))" (identifier) "syslog" (argument_list) "(LOG_ERR, "pcap_dump_flush: %s (terminating)",\n pcap_geterr(pcap))" (() "(" (identifier) "LOG_ERR" (,) "," (string_literal) ""pcap_dump_flush: %s (terminating)"" (") """ (string_content) "pcap_dump_flush: %s (terminating)" (") """ (,) "," (call_expression) "pcap_geterr(pcap)" (identifier) "pcap_geterr" (argument_list) "(pcap)" (() "(" (identifier) "pcap" ()) ")" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "fflush(stdout);" (call_expression) "fflush(stdout)" (identifier) "fflush" (argument_list) "(stdout)" (() "(" (identifier) "stdout" ()) ")" (;) ";" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (}) "}" (function_definition) "static void main_loop(void) {\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "main_loop(void)" (identifier) "main_loop" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }\n}" ({) "{" (declaration) "char buf[MAX_PACKET_SIZE];" (primitive_type) "char" (array_declarator) "buf[MAX_PACKET_SIZE]" (identifier) "buf" ([) "[" (identifier) "MAX_PACKET_SIZE" (]) "]" (;) ";" (for_statement) "for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }" ({) "{" (declaration) "size_t size = MAX_PACKET_SIZE;" (primitive_type) "size_t" (init_declarator) "size = MAX_PACKET_SIZE" (identifier) "size" (=) "=" (identifier) "MAX_PACKET_SIZE" (;) ";" (declaration) "uint8_t channel;" (primitive_type) "uint8_t" (identifier) "channel" (;) ";" (switch_statement) "switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }" (switch) "switch" (parenthesized_expression) "(wait_until_can_read_fd(iomux_fd, 1))" (() "(" (call_expression) "wait_until_can_read_fd(iomux_fd, 1)" (identifier) "wait_until_can_read_fd" (argument_list) "(iomux_fd, 1)" (() "(" (identifier) "iomux_fd" (,) "," (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }" ({) "{" (case_statement) "case -1:\n syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));\n return;" (case) "case" (number_literal) "-1" (:) ":" (expression_statement) "syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno));" (call_expression) "syslog(LOG_WARNING, "poll(iomux): %s", strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "poll(iomux): %s", strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""poll(iomux): %s"" (") """ (string_content) "poll(iomux): %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (case_statement) "case 0:\n break;" (case) "case" (number_literal) "0" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }\n break;" (case) "case" (number_literal) "1" (:) ":" (if_statement) "if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }" (if) "if" (parenthesized_expression) "(iomux_read_packet(iomux_fd, buf, &size, &channel) < 0)" (() "(" (binary_expression) "iomux_read_packet(iomux_fd, buf, &size, &channel) < 0" (call_expression) "iomux_read_packet(iomux_fd, buf, &size, &channel)" (identifier) "iomux_read_packet" (argument_list) "(iomux_fd, buf, &size, &channel)" (() "(" (identifier) "iomux_fd" (,) "," (identifier) "buf" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" (,) "," (pointer_expression) "&channel" (&) "&" (identifier) "channel" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));\n return;\n }" ({) "{" (expression_statement) "syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno));" (call_expression) "syslog(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "iomux_read_packet: %s",\n strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""iomux_read_packet: %s"" (") """ (string_content) "iomux_read_packet: %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (if_statement) "if (channel != IOMUX_SNIFFER_CHANNEL)\n break;" (if) "if" (parenthesized_expression) "(channel != IOMUX_SNIFFER_CHANNEL)" (() "(" (binary_expression) "channel != IOMUX_SNIFFER_CHANNEL" (identifier) "channel" (!=) "!=" (identifier) "IOMUX_SNIFFER_CHANNEL" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (if_statement) "if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }" (if) "if" (parenthesized_expression) "(pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size)" (() "(" (binary_expression) "pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size" (call_expression) "pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)" (identifier) "pcap_write_ipv6_packet" (argument_list) "((sniffer_packet_t*)buf, size)" (() "(" (cast_expression) "(sniffer_packet_t*)buf" (() "(" (type_descriptor) "sniffer_packet_t*" (type_identifier) "sniffer_packet_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (,) "," (identifier) "size" ()) ")" (!=) "!=" (identifier) "size" ()) ")" (compound_statement) "{\n syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));\n return;\n }" ({) "{" (expression_statement) "syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno));" (call_expression) "syslog(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "pcap_write_ipv6_packet: %s",\n strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""pcap_write_ipv6_packet: %s"" (") """ (string_content) "pcap_write_ipv6_packet: %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n assert(0);" (default) "default" (:) ":" (expression_statement) "assert(0);" (call_expression) "assert(0)" (identifier) "assert" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (}) "}" (function_definition) "static int open_iomux(const char* filename) {\n struct termios termios;\n iomux_fd = open(filename, O_RDWR);\n if (iomux_fd < 0)\n return iomux_fd;\n if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "open_iomux(const char* filename)" (identifier) "open_iomux" (parameter_list) "(const char* filename)" (() "(" (parameter_declaration) "const char* filename" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* filename" (*) "*" (identifier) "filename" ()) ")" (compound_statement) "{\n struct termios termios;\n iomux_fd = open(filename, O_RDWR);\n if (iomux_fd < 0)\n return iomux_fd;\n if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }\n return 0;\n}" ({) "{" (declaration) "struct termios termios;" (struct_specifier) "struct termios" (struct) "struct" (type_identifier) "termios" (identifier) "termios" (;) ";" (expression_statement) "iomux_fd = open(filename, O_RDWR);" (assignment_expression) "iomux_fd = open(filename, O_RDWR)" (identifier) "iomux_fd" (=) "=" (call_expression) "open(filename, O_RDWR)" (identifier) "open" (argument_list) "(filename, O_RDWR)" (() "(" (identifier) "filename" (,) "," (identifier) "O_RDWR" ()) ")" (;) ";" (if_statement) "if (iomux_fd < 0)\n return iomux_fd;" (if) "if" (parenthesized_expression) "(iomux_fd < 0)" (() "(" (binary_expression) "iomux_fd < 0" (identifier) "iomux_fd" (<) "<" (number_literal) "0" ()) ")" (return_statement) "return iomux_fd;" (return) "return" (identifier) "iomux_fd" (;) ";" (if_statement) "if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }" (if) "if" (parenthesized_expression) "(tcgetattr(iomux_fd, &termios) < 0)" (() "(" (binary_expression) "tcgetattr(iomux_fd, &termios) < 0" (call_expression) "tcgetattr(iomux_fd, &termios)" (identifier) "tcgetattr" (argument_list) "(iomux_fd, &termios)" (() "(" (identifier) "iomux_fd" (,) "," (pointer_expression) "&termios" (&) "&" (identifier) "termios" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));\n }" ({) "{" (expression_statement) "syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno));" (call_expression) "syslog(LOG_WARNING, "tcgetattr: %s", strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "tcgetattr: %s", strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""tcgetattr: %s"" (") """ (string_content) "tcgetattr: %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }" (else) "else" (compound_statement) "{\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }\n }" ({) "{" (expression_statement) "cfmakeraw(&termios);" (call_expression) "cfmakeraw(&termios)" (identifier) "cfmakeraw" (argument_list) "(&termios)" (() "(" (pointer_expression) "&termios" (&) "&" (identifier) "termios" ()) ")" (;) ";" (expression_statement) "cfsetspeed(&termios, B115200);" (call_expression) "cfsetspeed(&termios, B115200)" (identifier) "cfsetspeed" (argument_list) "(&termios, B115200)" (() "(" (pointer_expression) "&termios" (&) "&" (identifier) "termios" (,) "," (identifier) "B115200" ()) ")" (;) ";" (if_statement) "if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }" (if) "if" (parenthesized_expression) "(tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0)" (() "(" (binary_expression) "tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0" (call_expression) "tcsetattr(iomux_fd, TCSAFLUSH, &termios)" (identifier) "tcsetattr" (argument_list) "(iomux_fd, TCSAFLUSH, &termios)" (() "(" (identifier) "iomux_fd" (,) "," (identifier) "TCSAFLUSH" (,) "," (pointer_expression) "&termios" (&) "&" (identifier) "termios" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));\n }" ({) "{" (expression_statement) "syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno));" (call_expression) "syslog(LOG_WARNING, "tcsetattr: %s", strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "tcsetattr: %s", strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""tcsetattr: %s"" (") """ (string_content) "tcsetattr: %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int main(int argc, char** argv) {\n const char* iomux_filename;\n int open_iomux_error_logged = 0;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s iomux_device\n", argv[0]);\n fprintf(stderr, "\n");\n fprintf(stderr, "The program captures packets received by a device\n");\n fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");\n fprintf(stderr, "dumps the data to stdout in libpcap format.\n");\n fprintf(stderr, "\n");\n fprintf(stderr, "To see the data live, do something like this:\n");\n fprintf(stderr, "\n");\n fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);\n fprintf(stderr, "\n");\n return 1;\n }\n iomux_filename = argv[1];\n\n pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);\n pcap_dumper = pcap_dump_fopen(pcap, stdout);\n if (pcap_dumper == NULL) {\n pcap_perror(pcap, "pcap_dump_fopen");\n return 1;\n }\n\n openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);\n syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename);\n\n for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }\n sleep(1);\n }\n}" (primitive_type) "int" (function_declarator) "main(int argc, char** argv)" (identifier) "main" (parameter_list) "(int argc, char** argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char** argv" (primitive_type) "char" (pointer_declarator) "** argv" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n const char* iomux_filename;\n int open_iomux_error_logged = 0;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s iomux_device\n", argv[0]);\n fprintf(stderr, "\n");\n fprintf(stderr, "The program captures packets received by a device\n");\n fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");\n fprintf(stderr, "dumps the data to stdout in libpcap format.\n");\n fprintf(stderr, "\n");\n fprintf(stderr, "To see the data live, do something like this:\n");\n fprintf(stderr, "\n");\n fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);\n fprintf(stderr, "\n");\n return 1;\n }\n iomux_filename = argv[1];\n\n pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);\n pcap_dumper = pcap_dump_fopen(pcap, stdout);\n if (pcap_dumper == NULL) {\n pcap_perror(pcap, "pcap_dump_fopen");\n return 1;\n }\n\n openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);\n syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename);\n\n for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }\n sleep(1);\n }\n}" ({) "{" (declaration) "const char* iomux_filename;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* iomux_filename" (*) "*" (identifier) "iomux_filename" (;) ";" (declaration) "int open_iomux_error_logged = 0;" (primitive_type) "int" (init_declarator) "open_iomux_error_logged = 0" (identifier) "open_iomux_error_logged" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (argc != 2) {\n fprintf(stderr, "usage: %s iomux_device\n", argv[0]);\n fprintf(stderr, "\n");\n fprintf(stderr, "The program captures packets received by a device\n");\n fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");\n fprintf(stderr, "dumps the data to stdout in libpcap format.\n");\n fprintf(stderr, "\n");\n fprintf(stderr, "To see the data live, do something like this:\n");\n fprintf(stderr, "\n");\n fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);\n fprintf(stderr, "\n");\n return 1;\n }" (if) "if" (parenthesized_expression) "(argc != 2)" (() "(" (binary_expression) "argc != 2" (identifier) "argc" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf(stderr, "usage: %s iomux_device\n", argv[0]);\n fprintf(stderr, "\n");\n fprintf(stderr, "The program captures packets received by a device\n");\n fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");\n fprintf(stderr, "dumps the data to stdout in libpcap format.\n");\n fprintf(stderr, "\n");\n fprintf(stderr, "To see the data live, do something like this:\n");\n fprintf(stderr, "\n");\n fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);\n fprintf(stderr, "\n");\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "usage: %s iomux_device\n", argv[0]);" (call_expression) "fprintf(stderr, "usage: %s iomux_device\n", argv[0])" (identifier) "fprintf" (argument_list) "(stderr, "usage: %s iomux_device\n", argv[0])" (() "(" (identifier) "stderr" (,) "," (string_literal) ""usage: %s iomux_device\n"" (") """ (string_content) "usage: %s iomux_device" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "\n");" (call_expression) "fprintf(stderr, "\n")" (identifier) "fprintf" (argument_list) "(stderr, "\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "The program captures packets received by a device\n");" (call_expression) "fprintf(stderr, "The program captures packets received by a device\n")" (identifier) "fprintf" (argument_list) "(stderr, "The program captures packets received by a device\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""The program captures packets received by a device\n"" (") """ (string_content) "The program captures packets received by a device" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n");" (call_expression) "fprintf(stderr, "with CoreRadioSniffer appliction programmed and\n")" (identifier) "fprintf" (argument_list) "(stderr, "with CoreRadioSniffer appliction programmed and\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""with CoreRadioSniffer appliction programmed and\n"" (") """ (string_content) "with CoreRadioSniffer appliction programmed and" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "dumps the data to stdout in libpcap format.\n");" (call_expression) "fprintf(stderr, "dumps the data to stdout in libpcap format.\n")" (identifier) "fprintf" (argument_list) "(stderr, "dumps the data to stdout in libpcap format.\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""dumps the data to stdout in libpcap format.\n"" (") """ (string_content) "dumps the data to stdout in libpcap format." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "\n");" (call_expression) "fprintf(stderr, "\n")" (identifier) "fprintf" (argument_list) "(stderr, "\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "To see the data live, do something like this:\n");" (call_expression) "fprintf(stderr, "To see the data live, do something like this:\n")" (identifier) "fprintf" (argument_list) "(stderr, "To see the data live, do something like this:\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""To see the data live, do something like this:\n"" (") """ (string_content) "To see the data live, do something like this:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "\n");" (call_expression) "fprintf(stderr, "\n")" (identifier) "fprintf" (argument_list) "(stderr, "\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0]);" (call_expression) "fprintf(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0])" (identifier) "fprintf" (argument_list) "(stderr, " # %s /dev/ttyACM0 | wireshark -k -i -\n", argv[0])" (() "(" (identifier) "stderr" (,) "," (string_literal) "" # %s /dev/ttyACM0 | wireshark -k -i -\n"" (") """ (string_content) " # %s /dev/ttyACM0 | wireshark -k -i -" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "\n");" (call_expression) "fprintf(stderr, "\n")" (identifier) "fprintf" (argument_list) "(stderr, "\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "iomux_filename = argv[1];" (assignment_expression) "iomux_filename = argv[1]" (identifier) "iomux_filename" (=) "=" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);" (assignment_expression) "pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1)" (identifier) "pcap" (=) "=" (call_expression) "pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1)" (identifier) "pcap_open_dead" (argument_list) "(DLT_IEEE802_15_4_NOFCS, -1)" (() "(" (identifier) "DLT_IEEE802_15_4_NOFCS" (,) "," (number_literal) "-1" ()) ")" (;) ";" (expression_statement) "pcap_dumper = pcap_dump_fopen(pcap, stdout);" (assignment_expression) "pcap_dumper = pcap_dump_fopen(pcap, stdout)" (identifier) "pcap_dumper" (=) "=" (call_expression) "pcap_dump_fopen(pcap, stdout)" (identifier) "pcap_dump_fopen" (argument_list) "(pcap, stdout)" (() "(" (identifier) "pcap" (,) "," (identifier) "stdout" ()) ")" (;) ";" (if_statement) "if (pcap_dumper == NULL) {\n pcap_perror(pcap, "pcap_dump_fopen");\n return 1;\n }" (if) "if" (parenthesized_expression) "(pcap_dumper == NULL)" (() "(" (binary_expression) "pcap_dumper == NULL" (identifier) "pcap_dumper" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n pcap_perror(pcap, "pcap_dump_fopen");\n return 1;\n }" ({) "{" (expression_statement) "pcap_perror(pcap, "pcap_dump_fopen");" (call_expression) "pcap_perror(pcap, "pcap_dump_fopen")" (identifier) "pcap_perror" (argument_list) "(pcap, "pcap_dump_fopen")" (() "(" (identifier) "pcap" (,) "," (string_literal) ""pcap_dump_fopen"" (") """ (string_content) "pcap_dump_fopen" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);" (call_expression) "openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON)" (identifier) "openlog" (argument_list) "(PROJECT_NAME, LOG_PERROR, LOG_DAEMON)" (() "(" (identifier) "PROJECT_NAME" (,) "," (identifier) "LOG_PERROR" (,) "," (identifier) "LOG_DAEMON" ()) ")" (;) ";" (expression_statement) "syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename);" (call_expression) "syslog(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename)" (identifier) "syslog" (argument_list) "(LOG_INFO, PROJECT_NAME " [%s] starting", iomux_filename)" (() "(" (identifier) "LOG_INFO" (,) "," (concatenated_string) "PROJECT_NAME " [%s] starting"" (identifier) "PROJECT_NAME" (string_literal) "" [%s] starting"" (") """ (string_content) " [%s] starting" (") """ (,) "," (identifier) "iomux_filename" ()) ")" (;) ";" (for_statement) "for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }\n sleep(1);\n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }\n sleep(1);\n }" ({) "{" (if_statement) "if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }" (if) "if" (parenthesized_expression) "(open_iomux(iomux_filename) == 0)" (() "(" (binary_expression) "open_iomux(iomux_filename) == 0" (call_expression) "open_iomux(iomux_filename)" (identifier) "open_iomux" (argument_list) "(iomux_filename)" (() "(" (identifier) "iomux_filename" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n syslog(LOG_INFO, "opened IOMUX device");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n }" ({) "{" (expression_statement) "syslog(LOG_INFO, "opened IOMUX device");" (call_expression) "syslog(LOG_INFO, "opened IOMUX device")" (identifier) "syslog" (argument_list) "(LOG_INFO, "opened IOMUX device")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""opened IOMUX device"" (") """ (string_content) "opened IOMUX device" (") """ ()) ")" (;) ";" (expression_statement) "open_iomux_error_logged = 0;" (assignment_expression) "open_iomux_error_logged = 0" (identifier) "open_iomux_error_logged" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "main_loop();" (call_expression) "main_loop()" (identifier) "main_loop" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "close(iomux_fd);" (call_expression) "close(iomux_fd)" (identifier) "close" (argument_list) "(iomux_fd)" (() "(" (identifier) "iomux_fd" ()) ")" (;) ";" (}) "}" (else_clause) "else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }" (else) "else" (if_statement) "if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }" (if) "if" (parenthesized_expression) "(!open_iomux_error_logged)" (() "(" (unary_expression) "!open_iomux_error_logged" (!) "!" (identifier) "open_iomux_error_logged" ()) ")" (compound_statement) "{\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));\n }" ({) "{" (expression_statement) "open_iomux_error_logged = 1;" (assignment_expression) "open_iomux_error_logged = 1" (identifier) "open_iomux_error_logged" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "syslog(LOG_WARNING, "open_iomux: %s", strerror(errno));" (call_expression) "syslog(LOG_WARNING, "open_iomux: %s", strerror(errno))" (identifier) "syslog" (argument_list) "(LOG_WARNING, "open_iomux: %s", strerror(errno))" (() "(" (identifier) "LOG_WARNING" (,) "," (string_literal) ""open_iomux: %s"" (") """ (string_content) "open_iomux: %s" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "sleep(1);" (call_expression) "sleep(1)" (identifier) "sleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (}) "}"
1,271
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 32.59, "nodes": 706, "errors": 0, "source_hash": "4ebc73adca3a2013b1577daad8f9dd5a8df30fba93f7023aeff34566f5604ae2", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _BSD_SOURCE\n", "parent": null, "children": [1, 2], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 2, "type": "identifier", "text": "_BSD_SOURCE", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <poll.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<poll.h>", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<assert.h>", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<errno.h>", "parent": 15, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 18}}, {"id": 18, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<string.h>", "parent": 18, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<unistd.h>", "parent": 21, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 19}}, {"id": 24, "type": "preproc_include", "text": "#include <fcntl.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 24, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include <termios.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<termios.h>", "parent": 27, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 20}}, {"id": 30, "type": "preproc_include", "text": "#include <syslog.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<syslog.h>", "parent": 30, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 33, "type": "preproc_include", "text": "#include <pcap/pcap.h>\n", "parent": null, "children": [34, 35], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<pcap/pcap.h>", "parent": 33, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 22}}, {"id": 36, "type": "preproc_include", "text": "#include \"iomux.h\"\n", "parent": null, "children": [37, 38], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"iomux.h\"", "parent": 36, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 39, "type": "preproc_include", "text": "#include \"CoreRadioSniffer.h\"\n", "parent": null, "children": [40, 41], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"CoreRadioSniffer.h\"", "parent": 39, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 29}}, {"id": 42, "type": "preproc_def", "text": "#define MAX_PACKET_SIZE (1500 + sizeof(sniffer_header_t))\n", "parent": null, "children": [43, 44, 45], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 44, "type": "identifier", "text": "MAX_PACKET_SIZE", "parent": 42, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 23}}, {"id": 45, "type": "preproc_arg", "text": "(1500 + sizeof(sniffer_header_t))", "parent": 42, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 57}}, {"id": 46, "type": "preproc_def", "text": "#define LINKTYPE_IEEE802_15_4_NOFCS 230\n", "parent": null, "children": [47, 48, 49], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 48, "type": "identifier", "text": "LINKTYPE_IEEE802_15_4_NOFCS", "parent": 46, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 35}}, {"id": 49, "type": "preproc_arg", "text": "230", "parent": 46, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 49}}, {"id": 50, "type": "declaration", "text": "static int iomux_fd;", "parent": null, "children": [51, 52], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 20}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 52, "type": "identifier", "text": "iomux_fd", "parent": 50, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 19}}, {"id": 53, "type": "declaration", "text": "static pcap_dumper_t* pcap_dumper;", "parent": null, "children": [54, 55], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 34}}, {"id": 54, "type": "type_identifier", "text": "pcap_dumper_t", "parent": 53, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 20}}, {"id": 55, "type": "pointer_declarator", "text": "* pcap_dumper", "parent": 53, "children": [56, 57], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 33}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 21}}, {"id": 57, "type": "identifier", "text": "pcap_dumper", "parent": 55, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 33}}, {"id": 58, "type": "declaration", "text": "static pcap_t* pcap;", "parent": null, "children": [59, 60], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 20}}, {"id": 59, "type": "type_identifier", "text": "pcap_t", "parent": 58, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 13}}, {"id": 60, "type": "pointer_declarator", "text": "* pcap", "parent": 58, "children": [61, 62], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 19}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 62, "type": "identifier", "text": "pcap", "parent": 60, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 19}}, {"id": 63, "type": "declaration", "text": "static uint32_t last_timestamp_32khz;", "parent": null, "children": [64, 65], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 37}}, {"id": 64, "type": "primitive_type", "text": "uint32_t", "parent": 63, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 15}}, {"id": 65, "type": "identifier", "text": "last_timestamp_32khz", "parent": 63, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 36}}, {"id": 66, "type": "declaration", "text": "static uint32_t timestamp_overflows;", "parent": null, "children": [67, 68], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 36}}, {"id": 67, "type": "primitive_type", "text": "uint32_t", "parent": 66, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 15}}, {"id": 68, "type": "identifier", "text": "timestamp_overflows", "parent": 66, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 35}}, {"id": 69, "type": "function_definition", "text": "static int wait_until_can_read_fd(int fd, int timeout_sec) {\n struct pollfd pfd;\n pfd.fd = fd;\n pfd.events = POLLIN;\n if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;\n if (pfd.revents & (POLLERR|POLLHUP))\n return -1;\n if (pfd.revents & POLLIN)\n return 1;\n return 0;\n}", "parent": null, "children": [70, 71], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 10}}, {"id": 71, "type": "function_declarator", "text": "wait_until_can_read_fd(int fd, int timeout_sec)", "parent": 69, "children": [72, 73], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 58}}, {"id": 72, "type": "identifier", "text": "wait_until_can_read_fd", "parent": 71, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 33}}, {"id": 73, "type": "parameter_list", "text": "(int fd, int timeout_sec)", "parent": 71, "children": [74, 77], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 58}}, {"id": 74, "type": "parameter_declaration", "text": "int fd", "parent": 73, "children": [75, 76], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 40}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 37}}, {"id": 76, "type": "identifier", "text": "fd", "parent": 74, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 40}}, {"id": 77, "type": "parameter_declaration", "text": "int timeout_sec", "parent": 73, "children": [78, 79], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 57}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 45}}, {"id": 79, "type": "identifier", "text": "timeout_sec", "parent": 77, "children": [], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 57}}, {"id": 80, "type": "declaration", "text": "struct pollfd pfd;", "parent": 69, "children": [81, 84], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 22}}, {"id": 81, "type": "struct_specifier", "text": "struct pollfd", "parent": 80, "children": [82, 83], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 17}}, {"id": 82, "type": "struct", "text": "struct", "parent": 81, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 83, "type": "type_identifier", "text": "pollfd", "parent": 81, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 17}}, {"id": 84, "type": "identifier", "text": "pfd", "parent": 80, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 21}}, {"id": 85, "type": "assignment_expression", "text": "pfd.fd = fd", "parent": 69, "children": [86, 89, 90], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 15}}, {"id": 86, "type": "field_expression", "text": "pfd.fd", "parent": 85, "children": [87, 88], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 87, "type": "identifier", "text": "pfd", "parent": 86, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 88, "type": "field_identifier", "text": "fd", "parent": 86, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 10}}, {"id": 89, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 12}}, {"id": 90, "type": "identifier", "text": "fd", "parent": 85, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 15}}, {"id": 91, "type": "assignment_expression", "text": "pfd.events = POLLIN", "parent": 69, "children": [92, 95, 96], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 23}}, {"id": 92, "type": "field_expression", "text": "pfd.events", "parent": 91, "children": [93, 94], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 14}}, {"id": 93, "type": "identifier", "text": "pfd", "parent": 92, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 94, "type": "field_identifier", "text": "events", "parent": 92, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 95, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 96, "type": "identifier", "text": "POLLIN", "parent": 91, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 23}}, {"id": 97, "type": "if_statement", "text": "if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;", "parent": 69, "children": [98, 112], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 43, "column": 18}}, {"id": 98, "type": "parenthesized_expression", "text": "(poll(&pfd, 1, timeout_sec * 1000) < 0)", "parent": 97, "children": [99], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 46}}, {"id": 99, "type": "binary_expression", "text": "poll(&pfd, 1, timeout_sec * 1000) < 0", "parent": 98, "children": [100, 110, 111], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 45}}, {"id": 100, "type": "call_expression", "text": "poll(&pfd, 1, timeout_sec * 1000)", "parent": 99, "children": [101, 102], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 41}}, {"id": 101, "type": "identifier", "text": "poll", "parent": 100, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 102, "type": "argument_list", "text": "(&pfd, 1, timeout_sec * 1000)", "parent": 100, "children": [103, 105, 106], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 41}}, {"id": 103, "type": "pointer_expression", "text": "&pfd", "parent": 102, "children": [104], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 17}}, {"id": 104, "type": "identifier", "text": "pfd", "parent": 103, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 17}}, {"id": 105, "type": "number_literal", "text": "1", "parent": 102, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 20}}, {"id": 106, "type": "binary_expression", "text": "timeout_sec * 1000", "parent": 102, "children": [107, 108, 109], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 40}}, {"id": 107, "type": "identifier", "text": "timeout_sec", "parent": 106, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 33}}, {"id": 108, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 35}}, {"id": 109, "type": "number_literal", "text": "1000", "parent": 106, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 40}}, {"id": 110, "type": "<", "text": "<", "parent": 99, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 43}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 45}}, {"id": 112, "type": "return_statement", "text": "return -1;", "parent": 97, "children": [113], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 18}}, {"id": 113, "type": "number_literal", "text": "-1", "parent": 112, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 17}}, {"id": 114, "type": "if_statement", "text": "if (pfd.revents & (POLLERR|POLLHUP))\n return -1;", "parent": 69, "children": [115, 124], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 45, "column": 18}}, {"id": 115, "type": "parenthesized_expression", "text": "(pfd.revents & (POLLERR|POLLHUP))", "parent": 114, "children": [116], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 40}}, {"id": 116, "type": "binary_expression", "text": "pfd.revents & (POLLERR|POLLHUP)", "parent": 115, "children": [117, 120], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 39}}, {"id": 117, "type": "field_expression", "text": "pfd.revents", "parent": 116, "children": [118, 119], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 19}}, {"id": 118, "type": "identifier", "text": "pfd", "parent": 117, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 11}}, {"id": 119, "type": "field_identifier", "text": "revents", "parent": 117, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 19}}, {"id": 120, "type": "parenthesized_expression", "text": "(POLLERR|POLLHUP)", "parent": 116, "children": [121], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 39}}, {"id": 121, "type": "binary_expression", "text": "POLLERR|POLLHUP", "parent": 120, "children": [122, 123], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 38}}, {"id": 122, "type": "identifier", "text": "POLLERR", "parent": 121, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 30}}, {"id": 123, "type": "identifier", "text": "POLLHUP", "parent": 121, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 38}}, {"id": 124, "type": "return_statement", "text": "return -1;", "parent": 114, "children": [125], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 18}}, {"id": 125, "type": "number_literal", "text": "-1", "parent": 124, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 17}}, {"id": 126, "type": "if_statement", "text": "if (pfd.revents & POLLIN)\n return 1;", "parent": 69, "children": [127, 133], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 17}}, {"id": 127, "type": "parenthesized_expression", "text": "(pfd.revents & POLLIN)", "parent": 126, "children": [128], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 29}}, {"id": 128, "type": "binary_expression", "text": "pfd.revents & POLLIN", "parent": 127, "children": [129, 132], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 28}}, {"id": 129, "type": "field_expression", "text": "pfd.revents", "parent": 128, "children": [130, 131], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 19}}, {"id": 130, "type": "identifier", "text": "pfd", "parent": 129, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 11}}, {"id": 131, "type": "field_identifier", "text": "revents", "parent": 129, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 19}}, {"id": 132, "type": "identifier", "text": "POLLIN", "parent": 128, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 28}}, {"id": 133, "type": "return_statement", "text": "return 1;", "parent": 126, "children": [134], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 17}}, {"id": 134, "type": "number_literal", "text": "1", "parent": 133, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 135, "type": "return_statement", "text": "return 0;", "parent": 69, "children": [136], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 13}}, {"id": 136, "type": "number_literal", "text": "0", "parent": 135, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 137, "type": "function_definition", "text": "static ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) {\n struct pcap_pkthdr pkthdr;\n uint64_t timestamp_32khz = packet->header.timestamp_32khz;\n uint64_t timestamp_usec;\n\n if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, \"invalid iomux packet: %ld bytes\\n\", len);\n errno = EINVAL;\n return -1;\n }\n\n if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }\n last_timestamp_32khz = timestamp_32khz;\n\n timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;\n timestamp_usec = timestamp_32khz * 1000000ULL / 32768;\n\n pkthdr.ts.tv_sec = timestamp_usec / 1000000;\n pkthdr.ts.tv_usec = timestamp_usec % 1000000;\n pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);\n pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);\n if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, \"pcap_dump_flush: %s (terminating)\",\n pcap_geterr(pcap));\n exit(1);\n }\n fflush(stdout);\n return len;\n}", "parent": null, "children": [138, 139], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 138, "type": "primitive_type", "text": "ssize_t", "parent": 137, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 14}}, {"id": 139, "type": "function_declarator", "text": "pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len)", "parent": 137, "children": [140, 141], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 75}}, {"id": 140, "type": "identifier", "text": "pcap_write_ipv6_packet", "parent": 139, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 37}}, {"id": 141, "type": "parameter_list", "text": "(sniffer_packet_t* packet, size_t len)", "parent": 139, "children": [142, 147], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 75}}, {"id": 142, "type": "parameter_declaration", "text": "sniffer_packet_t* packet", "parent": 141, "children": [143, 144], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 62}}, {"id": 143, "type": "type_identifier", "text": "sniffer_packet_t", "parent": 142, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 54}}, {"id": 144, "type": "pointer_declarator", "text": "* packet", "parent": 142, "children": [145, 146], "start_point": {"row": 51, "column": 54}, "end_point": {"row": 51, "column": 62}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 51, "column": 54}, "end_point": {"row": 51, "column": 55}}, {"id": 146, "type": "identifier", "text": "packet", "parent": 144, "children": [], "start_point": {"row": 51, "column": 56}, "end_point": {"row": 51, "column": 62}}, {"id": 147, "type": "parameter_declaration", "text": "size_t len", "parent": 141, "children": [148, 149], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 74}}, {"id": 148, "type": "primitive_type", "text": "size_t", "parent": 147, "children": [], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 70}}, {"id": 149, "type": "identifier", "text": "len", "parent": 147, "children": [], "start_point": {"row": 51, "column": 71}, "end_point": {"row": 51, "column": 74}}, {"id": 150, "type": "declaration", "text": "struct pcap_pkthdr pkthdr;", "parent": 137, "children": [151, 154], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 30}}, {"id": 151, "type": "struct_specifier", "text": "struct pcap_pkthdr", "parent": 150, "children": [152, 153], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 22}}, {"id": 152, "type": "struct", "text": "struct", "parent": 151, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 153, "type": "type_identifier", "text": "pcap_pkthdr", "parent": 151, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 22}}, {"id": 154, "type": "identifier", "text": "pkthdr", "parent": 150, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 29}}, {"id": 155, "type": "declaration", "text": "uint64_t timestamp_32khz = packet->header.timestamp_32khz;", "parent": 137, "children": [156, 157], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 62}}, {"id": 156, "type": "primitive_type", "text": "uint64_t", "parent": 155, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 12}}, {"id": 157, "type": "init_declarator", "text": "timestamp_32khz = packet->header.timestamp_32khz", "parent": 155, "children": [158, 159, 160], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 61}}, {"id": 158, "type": "identifier", "text": "timestamp_32khz", "parent": 157, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 28}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 160, "type": "field_expression", "text": "packet->header.timestamp_32khz", "parent": 157, "children": [161, 164], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 61}}, {"id": 161, "type": "field_expression", "text": "packet->header", "parent": 160, "children": [162, 163], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 45}}, {"id": 162, "type": "identifier", "text": "packet", "parent": 161, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 37}}, {"id": 163, "type": "field_identifier", "text": "header", "parent": 161, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 45}}, {"id": 164, "type": "field_identifier", "text": "timestamp_32khz", "parent": 160, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 61}}, {"id": 165, "type": "declaration", "text": "uint64_t timestamp_usec;", "parent": 137, "children": [166, 167], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 28}}, {"id": 166, "type": "primitive_type", "text": "uint64_t", "parent": 165, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 12}}, {"id": 167, "type": "identifier", "text": "timestamp_usec", "parent": 165, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 27}}, {"id": 168, "type": "if_statement", "text": "if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, \"invalid iomux packet: %ld bytes\\n\", len);\n errno = EINVAL;\n return -1;\n }", "parent": 137, "children": [169], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 169, "type": "parenthesized_expression", "text": "(len < sizeof(sniffer_packet_t))", "parent": 168, "children": [170], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 39}}, {"id": 170, "type": "binary_expression", "text": "len < sizeof(sniffer_packet_t)", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 38}}, {"id": 171, "type": "identifier", "text": "len", "parent": 170, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 11}}, {"id": 172, "type": "<", "text": "<", "parent": 170, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 173, "type": "sizeof_expression", "text": "sizeof(sniffer_packet_t)", "parent": 170, "children": [174], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 38}}, {"id": 174, "type": "parenthesized_expression", "text": "(sniffer_packet_t)", "parent": 173, "children": [175], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 38}}, {"id": 175, "type": "identifier", "text": "sniffer_packet_t", "parent": 174, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 37}}, {"id": 176, "type": "call_expression", "text": "fprintf(stderr, \"invalid iomux packet: %ld bytes\\n\", len)", "parent": 168, "children": [177, 178], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 65}}, {"id": 177, "type": "identifier", "text": "fprintf", "parent": 176, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 15}}, {"id": 178, "type": "argument_list", "text": "(stderr, \"invalid iomux packet: %ld bytes\\n\", len)", "parent": 176, "children": [179, 180, 182], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 65}}, {"id": 179, "type": "identifier", "text": "stderr", "parent": 178, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 22}}, {"id": 180, "type": "string_literal", "text": "\"invalid iomux packet: %ld bytes\\n\"", "parent": 178, "children": [181], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 59}}, {"id": 181, "type": "escape_sequence", "text": "\\n", "parent": 180, "children": [], "start_point": {"row": 57, "column": 56}, "end_point": {"row": 57, "column": 58}}, {"id": 182, "type": "identifier", "text": "len", "parent": 178, "children": [], "start_point": {"row": 57, "column": 61}, "end_point": {"row": 57, "column": 64}}, {"id": 183, "type": "assignment_expression", "text": "errno = EINVAL", "parent": 168, "children": [184, 185, 186], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 22}}, {"id": 184, "type": "identifier", "text": "errno", "parent": 183, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 13}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 15}}, {"id": 186, "type": "identifier", "text": "EINVAL", "parent": 183, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 22}}, {"id": 187, "type": "return_statement", "text": "return -1;", "parent": 168, "children": [188], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 188, "type": "number_literal", "text": "-1", "parent": 187, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 17}}, {"id": 189, "type": "if_statement", "text": "if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }", "parent": 137, "children": [190], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 64, "column": 5}}, {"id": 190, "type": "parenthesized_expression", "text": "(timestamp_32khz < last_timestamp_32khz)", "parent": 189, "children": [191], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 47}}, {"id": 191, "type": "binary_expression", "text": "timestamp_32khz < last_timestamp_32khz", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 46}}, {"id": 192, "type": "identifier", "text": "timestamp_32khz", "parent": 191, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 23}}, {"id": 193, "type": "<", "text": "<", "parent": 191, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 25}}, {"id": 194, "type": "identifier", "text": "last_timestamp_32khz", "parent": 191, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 46}}, {"id": 195, "type": "update_expression", "text": "timestamp_overflows++", "parent": 189, "children": [196, 197], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 29}}, {"id": 196, "type": "identifier", "text": "timestamp_overflows", "parent": 195, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 27}}, {"id": 197, "type": "++", "text": "++", "parent": 195, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 29}}, {"id": 198, "type": "assignment_expression", "text": "last_timestamp_32khz = timestamp_32khz", "parent": 137, "children": [199, 200, 201], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 42}}, {"id": 199, "type": "identifier", "text": "last_timestamp_32khz", "parent": 198, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 24}}, {"id": 200, "type": "=", "text": "=", "parent": 198, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 26}}, {"id": 201, "type": "identifier", "text": "timestamp_32khz", "parent": 198, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 42}}, {"id": 202, "type": "assignment_expression", "text": "timestamp_32khz += ((uint64_t)timestamp_overflows) << 32", "parent": 137, "children": [203, 204, 205], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 60}}, {"id": 203, "type": "identifier", "text": "timestamp_32khz", "parent": 202, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 19}}, {"id": 204, "type": "+=", "text": "+=", "parent": 202, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 22}}, {"id": 205, "type": "binary_expression", "text": "((uint64_t)timestamp_overflows) << 32", "parent": 202, "children": [206, 211, 212], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 60}}, {"id": 206, "type": "parenthesized_expression", "text": "((uint64_t)timestamp_overflows)", "parent": 205, "children": [207], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 54}}, {"id": 207, "type": "cast_expression", "text": "(uint64_t)timestamp_overflows", "parent": 206, "children": [208, 210], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 53}}, {"id": 208, "type": "type_descriptor", "text": "uint64_t", "parent": 207, "children": [209], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 33}}, {"id": 209, "type": "primitive_type", "text": "uint64_t", "parent": 208, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 33}}, {"id": 210, "type": "identifier", "text": "timestamp_overflows", "parent": 207, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 53}}, {"id": 211, "type": "<<", "text": "<<", "parent": 205, "children": [], "start_point": {"row": 67, "column": 55}, "end_point": {"row": 67, "column": 57}}, {"id": 212, "type": "number_literal", "text": "32", "parent": 205, "children": [], "start_point": {"row": 67, "column": 58}, "end_point": {"row": 67, "column": 60}}, {"id": 213, "type": "assignment_expression", "text": "timestamp_usec = timestamp_32khz * 1000000ULL / 32768", "parent": 137, "children": [214, 215, 216], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 57}}, {"id": 214, "type": "identifier", "text": "timestamp_usec", "parent": 213, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 18}}, {"id": 215, "type": "=", "text": "=", "parent": 213, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 20}}, {"id": 216, "type": "binary_expression", "text": "timestamp_32khz * 1000000ULL / 32768", "parent": 213, "children": [217, 221, 222], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 57}}, {"id": 217, "type": "binary_expression", "text": "timestamp_32khz * 1000000ULL", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 49}}, {"id": 218, "type": "identifier", "text": "timestamp_32khz", "parent": 217, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 36}}, {"id": 219, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 38}}, {"id": 220, "type": "number_literal", "text": "1000000ULL", "parent": 217, "children": [], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 49}}, {"id": 221, "type": "/", "text": "/", "parent": 216, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 51}}, {"id": 222, "type": "number_literal", "text": "32768", "parent": 216, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 57}}, {"id": 223, "type": "assignment_expression", "text": "pkthdr.ts.tv_sec = timestamp_usec / 1000000", "parent": 137, "children": [224, 229, 230], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 47}}, {"id": 224, "type": "field_expression", "text": "pkthdr.ts.tv_sec", "parent": 223, "children": [225, 228], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 20}}, {"id": 225, "type": "field_expression", "text": "pkthdr.ts", "parent": 224, "children": [226, 227], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 13}}, {"id": 226, "type": "identifier", "text": "pkthdr", "parent": 225, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 227, "type": "field_identifier", "text": "ts", "parent": 225, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 13}}, {"id": 228, "type": "field_identifier", "text": "tv_sec", "parent": 224, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 20}}, {"id": 229, "type": "=", "text": "=", "parent": 223, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 230, "type": "binary_expression", "text": "timestamp_usec / 1000000", "parent": 223, "children": [231, 232, 233], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 47}}, {"id": 231, "type": "identifier", "text": "timestamp_usec", "parent": 230, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 37}}, {"id": 232, "type": "/", "text": "/", "parent": 230, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 39}}, {"id": 233, "type": "number_literal", "text": "1000000", "parent": 230, "children": [], "start_point": {"row": 70, "column": 40}, "end_point": {"row": 70, "column": 47}}, {"id": 234, "type": "assignment_expression", "text": "pkthdr.ts.tv_usec = timestamp_usec % 1000000", "parent": 137, "children": [235, 240, 241], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 48}}, {"id": 235, "type": "field_expression", "text": "pkthdr.ts.tv_usec", "parent": 234, "children": [236, 239], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 21}}, {"id": 236, "type": "field_expression", "text": "pkthdr.ts", "parent": 235, "children": [237, 238], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 13}}, {"id": 237, "type": "identifier", "text": "pkthdr", "parent": 236, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 10}}, {"id": 238, "type": "field_identifier", "text": "ts", "parent": 236, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 13}}, {"id": 239, "type": "field_identifier", "text": "tv_usec", "parent": 235, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 21}}, {"id": 240, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 241, "type": "binary_expression", "text": "timestamp_usec % 1000000", "parent": 234, "children": [242, 243, 244], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 48}}, {"id": 242, "type": "identifier", "text": "timestamp_usec", "parent": 241, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 38}}, {"id": 243, "type": "%", "text": "%", "parent": 241, "children": [], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 40}}, {"id": 244, "type": "number_literal", "text": "1000000", "parent": 241, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 48}}, {"id": 245, "type": "assignment_expression", "text": "pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t)", "parent": 137, "children": [246, 249, 250], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 63}}, {"id": 246, "type": "field_expression", "text": "pkthdr.caplen", "parent": 245, "children": [247, 248], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 17}}, {"id": 247, "type": "identifier", "text": "pkthdr", "parent": 246, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 10}}, {"id": 248, "type": "field_identifier", "text": "caplen", "parent": 246, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 17}}, {"id": 249, "type": "=", "text": "=", "parent": 245, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 19}}, {"id": 250, "type": "assignment_expression", "text": "pkthdr.len = len - sizeof(sniffer_header_t)", "parent": 245, "children": [251, 254, 255], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 63}}, {"id": 251, "type": "field_expression", "text": "pkthdr.len", "parent": 250, "children": [252, 253], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 30}}, {"id": 252, "type": "identifier", "text": "pkthdr", "parent": 251, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 26}}, {"id": 253, "type": "field_identifier", "text": "len", "parent": 251, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 30}}, {"id": 254, "type": "=", "text": "=", "parent": 250, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 32}}, {"id": 255, "type": "binary_expression", "text": "len - sizeof(sniffer_header_t)", "parent": 250, "children": [256, 257, 258], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 63}}, {"id": 256, "type": "identifier", "text": "len", "parent": 255, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 36}}, {"id": 257, "type": "-", "text": "-", "parent": 255, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 38}}, {"id": 258, "type": "sizeof_expression", "text": "sizeof(sniffer_header_t)", "parent": 255, "children": [259], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 63}}, {"id": 259, "type": "parenthesized_expression", "text": "(sniffer_header_t)", "parent": 258, "children": [260], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 63}}, {"id": 260, "type": "identifier", "text": "sniffer_header_t", "parent": 259, "children": [], "start_point": {"row": 72, "column": 46}, "end_point": {"row": 72, "column": 62}}, {"id": 261, "type": "call_expression", "text": "pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data)", "parent": 137, "children": [262, 263], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 58}}, {"id": 262, "type": "identifier", "text": "pcap_dump", "parent": 261, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 13}}, {"id": 263, "type": "argument_list", "text": "((u_char*)pcap_dumper, &pkthdr, packet->data)", "parent": 261, "children": [264, 270, 272], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 58}}, {"id": 264, "type": "cast_expression", "text": "(u_char*)pcap_dumper", "parent": 263, "children": [265, 269], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 34}}, {"id": 265, "type": "type_descriptor", "text": "u_char*", "parent": 264, "children": [266, 267], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 22}}, {"id": 266, "type": "type_identifier", "text": "u_char", "parent": 265, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 21}}, {"id": 267, "type": "abstract_pointer_declarator", "text": "*", "parent": 265, "children": [268], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 22}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 22}}, {"id": 269, "type": "identifier", "text": "pcap_dumper", "parent": 264, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 34}}, {"id": 270, "type": "pointer_expression", "text": "&pkthdr", "parent": 263, "children": [271], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 73, "column": 43}}, {"id": 271, "type": "identifier", "text": "pkthdr", "parent": 270, "children": [], "start_point": {"row": 73, "column": 37}, "end_point": {"row": 73, "column": 43}}, {"id": 272, "type": "field_expression", "text": "packet->data", "parent": 263, "children": [273, 274], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 57}}, {"id": 273, "type": "identifier", "text": "packet", "parent": 272, "children": [], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 51}}, {"id": 274, "type": "field_identifier", "text": "data", "parent": 272, "children": [], "start_point": {"row": 73, "column": 53}, "end_point": {"row": 73, "column": 57}}, {"id": 275, "type": "if_statement", "text": "if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, \"pcap_dump_flush: %s (terminating)\",\n pcap_geterr(pcap));\n exit(1);\n }", "parent": 137, "children": [276], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 78, "column": 5}}, {"id": 276, "type": "parenthesized_expression", "text": "(pcap_dump_flush(pcap_dumper) != 0)", "parent": 275, "children": [277], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 42}}, {"id": 277, "type": "binary_expression", "text": "pcap_dump_flush(pcap_dumper) != 0", "parent": 276, "children": [278, 282, 283], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 41}}, {"id": 278, "type": "call_expression", "text": "pcap_dump_flush(pcap_dumper)", "parent": 277, "children": [279, 280], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 36}}, {"id": 279, "type": "identifier", "text": "pcap_dump_flush", "parent": 278, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 23}}, {"id": 280, "type": "argument_list", "text": "(pcap_dumper)", "parent": 278, "children": [281], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 36}}, {"id": 281, "type": "identifier", "text": "pcap_dumper", "parent": 280, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 35}}, {"id": 282, "type": "!=", "text": "!=", "parent": 277, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 39}}, {"id": 283, "type": "number_literal", "text": "0", "parent": 277, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 41}}, {"id": 284, "type": "call_expression", "text": "syslog(LOG_ERR, \"pcap_dump_flush: %s (terminating)\",\n pcap_geterr(pcap))", "parent": 275, "children": [285, 286], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 76, "column": 34}}, {"id": 285, "type": "identifier", "text": "syslog", "parent": 284, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 14}}, {"id": 286, "type": "argument_list", "text": "(LOG_ERR, \"pcap_dump_flush: %s (terminating)\",\n pcap_geterr(pcap))", "parent": 284, "children": [287, 288, 289], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 76, "column": 34}}, {"id": 287, "type": "identifier", "text": "LOG_ERR", "parent": 286, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 22}}, {"id": 288, "type": "string_literal", "text": "\"pcap_dump_flush: %s (terminating)\"", "parent": 286, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 59}}, {"id": 289, "type": "call_expression", "text": "pcap_geterr(pcap)", "parent": 286, "children": [290, 291], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 33}}, {"id": 290, "type": "identifier", "text": "pcap_geterr", "parent": 289, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 27}}, {"id": 291, "type": "argument_list", "text": "(pcap)", "parent": 289, "children": [292], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 33}}, {"id": 292, "type": "identifier", "text": "pcap", "parent": 291, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 32}}, {"id": 293, "type": "call_expression", "text": "exit(1)", "parent": 275, "children": [294, 295], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 15}}, {"id": 294, "type": "identifier", "text": "exit", "parent": 293, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 12}}, {"id": 295, "type": "argument_list", "text": "(1)", "parent": 293, "children": [296], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 15}}, {"id": 296, "type": "number_literal", "text": "1", "parent": 295, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 14}}, {"id": 297, "type": "call_expression", "text": "fflush(stdout)", "parent": 137, "children": [298, 299], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 18}}, {"id": 298, "type": "identifier", "text": "fflush", "parent": 297, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 10}}, {"id": 299, "type": "argument_list", "text": "(stdout)", "parent": 297, "children": [300], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 18}}, {"id": 300, "type": "identifier", "text": "stdout", "parent": 299, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 17}}, {"id": 301, "type": "return_statement", "text": "return len;", "parent": 137, "children": [302], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 15}}, {"id": 302, "type": "identifier", "text": "len", "parent": 301, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 14}}, {"id": 303, "type": "function_definition", "text": "static void main_loop(void) {\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }\n}", "parent": null, "children": [304, 305], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 304, "type": "primitive_type", "text": "void", "parent": 303, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 11}}, {"id": 305, "type": "function_declarator", "text": "main_loop(void)", "parent": 303, "children": [306, 307], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 27}}, {"id": 306, "type": "identifier", "text": "main_loop", "parent": 305, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 21}}, {"id": 307, "type": "parameter_list", "text": "(void)", "parent": 305, "children": [308], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 27}}, {"id": 308, "type": "parameter_declaration", "text": "void", "parent": 307, "children": [309], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 26}}, {"id": 309, "type": "primitive_type", "text": "void", "parent": 308, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 26}}, {"id": 310, "type": "declaration", "text": "char buf[MAX_PACKET_SIZE];", "parent": 303, "children": [311, 312], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 30}}, {"id": 311, "type": "primitive_type", "text": "char", "parent": 310, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 312, "type": "array_declarator", "text": "buf[MAX_PACKET_SIZE]", "parent": 310, "children": [313, 314], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 29}}, {"id": 313, "type": "identifier", "text": "buf", "parent": 312, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 12}}, {"id": 314, "type": "identifier", "text": "MAX_PACKET_SIZE", "parent": 312, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 28}}, {"id": 315, "type": "for_statement", "text": "for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }", "parent": 303, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 113, "column": 5}}, {"id": 316, "type": "declaration", "text": "size_t size = MAX_PACKET_SIZE;", "parent": 315, "children": [317, 318], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 38}}, {"id": 317, "type": "primitive_type", "text": "size_t", "parent": 316, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 14}}, {"id": 318, "type": "init_declarator", "text": "size = MAX_PACKET_SIZE", "parent": 316, "children": [319, 320, 321], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 37}}, {"id": 319, "type": "identifier", "text": "size", "parent": 318, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 19}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 21}}, {"id": 321, "type": "identifier", "text": "MAX_PACKET_SIZE", "parent": 318, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 37}}, {"id": 322, "type": "declaration", "text": "uint8_t channel;", "parent": 315, "children": [323, 324], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 24}}, {"id": 323, "type": "primitive_type", "text": "uint8_t", "parent": 322, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 15}}, {"id": 324, "type": "identifier", "text": "channel", "parent": 322, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 23}}, {"id": 325, "type": "switch_statement", "text": "switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }", "parent": 315, "children": [326, 327], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 111, "column": 9}}, {"id": 326, "type": "switch", "text": "switch", "parent": 325, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 14}}, {"id": 327, "type": "parenthesized_expression", "text": "(wait_until_can_read_fd(iomux_fd, 1))", "parent": 325, "children": [328], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 52}}, {"id": 328, "type": "call_expression", "text": "wait_until_can_read_fd(iomux_fd, 1)", "parent": 327, "children": [329, 330], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 51}}, {"id": 329, "type": "identifier", "text": "wait_until_can_read_fd", "parent": 328, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 38}}, {"id": 330, "type": "argument_list", "text": "(iomux_fd, 1)", "parent": 328, "children": [331, 332], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 51}}, {"id": 331, "type": "identifier", "text": "iomux_fd", "parent": 330, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 47}}, {"id": 332, "type": "number_literal", "text": "1", "parent": 330, "children": [], "start_point": {"row": 88, "column": 49}, "end_point": {"row": 88, "column": 50}}, {"id": 333, "type": "case_statement", "text": "case -1:\n syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno));\n return;", "parent": 325, "children": [334, 335, 345], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 91, "column": 23}}, {"id": 334, "type": "case", "text": "case", "parent": 333, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 16}}, {"id": 335, "type": "number_literal", "text": "-1", "parent": 333, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 19}}, {"id": 336, "type": "call_expression", "text": "syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno))", "parent": 333, "children": [337, 338], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 71}}, {"id": 337, "type": "identifier", "text": "syslog", "parent": 336, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 22}}, {"id": 338, "type": "argument_list", "text": "(LOG_WARNING, \"poll(iomux): %s\", strerror(errno))", "parent": 336, "children": [339, 340, 341], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 71}}, {"id": 339, "type": "identifier", "text": "LOG_WARNING", "parent": 338, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 34}}, {"id": 340, "type": "string_literal", "text": "\"poll(iomux): %s\"", "parent": 338, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 53}}, {"id": 341, "type": "call_expression", "text": "strerror(errno)", "parent": 338, "children": [342, 343], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 70}}, {"id": 342, "type": "identifier", "text": "strerror", "parent": 341, "children": [], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 63}}, {"id": 343, "type": "argument_list", "text": "(errno)", "parent": 341, "children": [344], "start_point": {"row": 90, "column": 63}, "end_point": {"row": 90, "column": 70}}, {"id": 344, "type": "identifier", "text": "errno", "parent": 343, "children": [], "start_point": {"row": 90, "column": 64}, "end_point": {"row": 90, "column": 69}}, {"id": 345, "type": "return_statement", "text": "return;", "parent": 333, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 23}}, {"id": 346, "type": "case_statement", "text": "case 0:\n break;", "parent": 325, "children": [347, 348, 349], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 93, "column": 22}}, {"id": 347, "type": "case", "text": "case", "parent": 346, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 348, "type": "number_literal", "text": "0", "parent": 346, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 18}}, {"id": 349, "type": "break_statement", "text": "break;", "parent": 346, "children": [350], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 22}}, {"id": 350, "type": "break", "text": "break", "parent": 349, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 21}}, {"id": 351, "type": "case_statement", "text": "case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }\n break;", "parent": 325, "children": [352, 353, 354, 378, 386, 411], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 108, "column": 22}}, {"id": 352, "type": "case", "text": "case", "parent": 351, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 16}}, {"id": 353, "type": "number_literal", "text": "1", "parent": 351, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 18}}, {"id": 354, "type": "if_statement", "text": "if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }", "parent": 351, "children": [355], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 355, "type": "parenthesized_expression", "text": "(iomux_read_packet(iomux_fd, buf, &size, &channel) < 0)", "parent": 354, "children": [356], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 74}}, {"id": 356, "type": "binary_expression", "text": "iomux_read_packet(iomux_fd, buf, &size, &channel) < 0", "parent": 355, "children": [357, 366, 367], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 73}}, {"id": 357, "type": "call_expression", "text": "iomux_read_packet(iomux_fd, buf, &size, &channel)", "parent": 356, "children": [358, 359], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 69}}, {"id": 358, "type": "identifier", "text": "iomux_read_packet", "parent": 357, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 37}}, {"id": 359, "type": "argument_list", "text": "(iomux_fd, buf, &size, &channel)", "parent": 357, "children": [360, 361, 362, 364], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 69}}, {"id": 360, "type": "identifier", "text": "iomux_fd", "parent": 359, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 46}}, {"id": 361, "type": "identifier", "text": "buf", "parent": 359, "children": [], "start_point": {"row": 95, "column": 48}, "end_point": {"row": 95, "column": 51}}, {"id": 362, "type": "pointer_expression", "text": "&size", "parent": 359, "children": [363], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 58}}, {"id": 363, "type": "identifier", "text": "size", "parent": 362, "children": [], "start_point": {"row": 95, "column": 54}, "end_point": {"row": 95, "column": 58}}, {"id": 364, "type": "pointer_expression", "text": "&channel", "parent": 359, "children": [365], "start_point": {"row": 95, "column": 60}, "end_point": {"row": 95, "column": 68}}, {"id": 365, "type": "identifier", "text": "channel", "parent": 364, "children": [], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 68}}, {"id": 366, "type": "<", "text": "<", "parent": 356, "children": [], "start_point": {"row": 95, "column": 70}, "end_point": {"row": 95, "column": 71}}, {"id": 367, "type": "number_literal", "text": "0", "parent": 356, "children": [], "start_point": {"row": 95, "column": 72}, "end_point": {"row": 95, "column": 73}}, {"id": 368, "type": "call_expression", "text": "syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno))", "parent": 354, "children": [369, 370], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 97, "column": 44}}, {"id": 369, "type": "identifier", "text": "syslog", "parent": 368, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 26}}, {"id": 370, "type": "argument_list", "text": "(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno))", "parent": 368, "children": [371, 372, 373], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 97, "column": 44}}, {"id": 371, "type": "identifier", "text": "LOG_WARNING", "parent": 370, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 38}}, {"id": 372, "type": "string_literal", "text": "\"iomux_read_packet: %s\"", "parent": 370, "children": [], "start_point": {"row": 96, "column": 40}, "end_point": {"row": 96, "column": 63}}, {"id": 373, "type": "call_expression", "text": "strerror(errno)", "parent": 370, "children": [374, 375], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 43}}, {"id": 374, "type": "identifier", "text": "strerror", "parent": 373, "children": [], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 36}}, {"id": 375, "type": "argument_list", "text": "(errno)", "parent": 373, "children": [376], "start_point": {"row": 97, "column": 36}, "end_point": {"row": 97, "column": 43}}, {"id": 376, "type": "identifier", "text": "errno", "parent": 375, "children": [], "start_point": {"row": 97, "column": 37}, "end_point": {"row": 97, "column": 42}}, {"id": 377, "type": "return_statement", "text": "return;", "parent": 354, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 27}}, {"id": 378, "type": "if_statement", "text": "if (channel != IOMUX_SNIFFER_CHANNEL)\n break;", "parent": 351, "children": [379, 384], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 101, "column": 26}}, {"id": 379, "type": "parenthesized_expression", "text": "(channel != IOMUX_SNIFFER_CHANNEL)", "parent": 378, "children": [380], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 53}}, {"id": 380, "type": "binary_expression", "text": "channel != IOMUX_SNIFFER_CHANNEL", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 52}}, {"id": 381, "type": "identifier", "text": "channel", "parent": 380, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 27}}, {"id": 382, "type": "!=", "text": "!=", "parent": 380, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 30}}, {"id": 383, "type": "identifier", "text": "IOMUX_SNIFFER_CHANNEL", "parent": 380, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 52}}, {"id": 384, "type": "break_statement", "text": "break;", "parent": 378, "children": [385], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 26}}, {"id": 385, "type": "break", "text": "break", "parent": 384, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 25}}, {"id": 386, "type": "if_statement", "text": "if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }", "parent": 351, "children": [387], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 107, "column": 17}}, {"id": 387, "type": "parenthesized_expression", "text": "(pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size)", "parent": 386, "children": [388], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 103, "column": 32}}, {"id": 388, "type": "binary_expression", "text": "pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size", "parent": 387, "children": [389, 399, 400], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 103, "column": 31}}, {"id": 389, "type": "call_expression", "text": "pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)", "parent": 388, "children": [390, 391], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 72}}, {"id": 390, "type": "identifier", "text": "pcap_write_ipv6_packet", "parent": 389, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 42}}, {"id": 391, "type": "argument_list", "text": "((sniffer_packet_t*)buf, size)", "parent": 389, "children": [392, 398], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 72}}, {"id": 392, "type": "cast_expression", "text": "(sniffer_packet_t*)buf", "parent": 391, "children": [393, 397], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 65}}, {"id": 393, "type": "type_descriptor", "text": "sniffer_packet_t*", "parent": 392, "children": [394, 395], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 61}}, {"id": 394, "type": "type_identifier", "text": "sniffer_packet_t", "parent": 393, "children": [], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 60}}, {"id": 395, "type": "abstract_pointer_declarator", "text": "*", "parent": 393, "children": [396], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 61}}, {"id": 396, "type": "*", "text": "*", "parent": 395, "children": [], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 61}}, {"id": 397, "type": "identifier", "text": "buf", "parent": 392, "children": [], "start_point": {"row": 102, "column": 62}, "end_point": {"row": 102, "column": 65}}, {"id": 398, "type": "identifier", "text": "size", "parent": 391, "children": [], "start_point": {"row": 102, "column": 67}, "end_point": {"row": 102, "column": 71}}, {"id": 399, "type": "!=", "text": "!=", "parent": 388, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 26}}, {"id": 400, "type": "identifier", "text": "size", "parent": 388, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 31}}, {"id": 401, "type": "call_expression", "text": "syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno))", "parent": 386, "children": [402, 403], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 105, "column": 44}}, {"id": 402, "type": "identifier", "text": "syslog", "parent": 401, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 26}}, {"id": 403, "type": "argument_list", "text": "(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno))", "parent": 401, "children": [404, 405, 406], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 105, "column": 44}}, {"id": 404, "type": "identifier", "text": "LOG_WARNING", "parent": 403, "children": [], "start_point": {"row": 104, "column": 27}, "end_point": {"row": 104, "column": 38}}, {"id": 405, "type": "string_literal", "text": "\"pcap_write_ipv6_packet: %s\"", "parent": 403, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 68}}, {"id": 406, "type": "call_expression", "text": "strerror(errno)", "parent": 403, "children": [407, 408], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 43}}, {"id": 407, "type": "identifier", "text": "strerror", "parent": 406, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 36}}, {"id": 408, "type": "argument_list", "text": "(errno)", "parent": 406, "children": [409], "start_point": {"row": 105, "column": 36}, "end_point": {"row": 105, "column": 43}}, {"id": 409, "type": "identifier", "text": "errno", "parent": 408, "children": [], "start_point": {"row": 105, "column": 37}, "end_point": {"row": 105, "column": 42}}, {"id": 410, "type": "return_statement", "text": "return;", "parent": 386, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 27}}, {"id": 411, "type": "break_statement", "text": "break;", "parent": 351, "children": [412], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 22}}, {"id": 412, "type": "break", "text": "break", "parent": 411, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 21}}, {"id": 413, "type": "case_statement", "text": "default:\n assert(0);", "parent": 325, "children": [414], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 110, "column": 26}}, {"id": 414, "type": "default", "text": "default", "parent": 413, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 19}}, {"id": 415, "type": "call_expression", "text": "assert(0)", "parent": 413, "children": [416, 417], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 25}}, {"id": 416, "type": "identifier", "text": "assert", "parent": 415, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 22}}, {"id": 417, "type": "argument_list", "text": "(0)", "parent": 415, "children": [418], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 25}}, {"id": 418, "type": "number_literal", "text": "0", "parent": 417, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 24}}, {"id": 419, "type": "continue_statement", "text": "continue;", "parent": 315, "children": [420], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 17}}, {"id": 420, "type": "continue", "text": "continue", "parent": 419, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 16}}, {"id": 421, "type": "function_definition", "text": "static int open_iomux(const char* filename) {\n struct termios termios;\n iomux_fd = open(filename, O_RDWR);\n if (iomux_fd < 0)\n return iomux_fd;\n if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, \"tcgetattr: %s\", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno));\n }\n }\n return 0;\n}", "parent": null, "children": [422, 423], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 131, "column": 1}}, {"id": 422, "type": "primitive_type", "text": "int", "parent": 421, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 10}}, {"id": 423, "type": "function_declarator", "text": "open_iomux(const char* filename)", "parent": 421, "children": [424, 425], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 43}}, {"id": 424, "type": "identifier", "text": "open_iomux", "parent": 423, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 21}}, {"id": 425, "type": "parameter_list", "text": "(const char* filename)", "parent": 423, "children": [426], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 43}}, {"id": 426, "type": "parameter_declaration", "text": "const char* filename", "parent": 425, "children": [427, 428], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 42}}, {"id": 427, "type": "primitive_type", "text": "char", "parent": 426, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 32}}, {"id": 428, "type": "pointer_declarator", "text": "* filename", "parent": 426, "children": [429, 430], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 42}}, {"id": 429, "type": "*", "text": "*", "parent": 428, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 33}}, {"id": 430, "type": "identifier", "text": "filename", "parent": 428, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 42}}, {"id": 431, "type": "declaration", "text": "struct termios termios;", "parent": 421, "children": [432, 435], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 27}}, {"id": 432, "type": "struct_specifier", "text": "struct termios", "parent": 431, "children": [433, 434], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 18}}, {"id": 433, "type": "struct", "text": "struct", "parent": 432, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 10}}, {"id": 434, "type": "type_identifier", "text": "termios", "parent": 432, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 18}}, {"id": 435, "type": "identifier", "text": "termios", "parent": 431, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 26}}, {"id": 436, "type": "assignment_expression", "text": "iomux_fd = open(filename, O_RDWR)", "parent": 421, "children": [437, 438, 439], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 37}}, {"id": 437, "type": "identifier", "text": "iomux_fd", "parent": 436, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 12}}, {"id": 438, "type": "=", "text": "=", "parent": 436, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 14}}, {"id": 439, "type": "call_expression", "text": "open(filename, O_RDWR)", "parent": 436, "children": [440, 441], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 37}}, {"id": 440, "type": "identifier", "text": "open", "parent": 439, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 19}}, {"id": 441, "type": "argument_list", "text": "(filename, O_RDWR)", "parent": 439, "children": [442, 443], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 37}}, {"id": 442, "type": "identifier", "text": "filename", "parent": 441, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 28}}, {"id": 443, "type": "identifier", "text": "O_RDWR", "parent": 441, "children": [], "start_point": {"row": 118, "column": 30}, "end_point": {"row": 118, "column": 36}}, {"id": 444, "type": "if_statement", "text": "if (iomux_fd < 0)\n return iomux_fd;", "parent": 421, "children": [445, 450], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 120, "column": 24}}, {"id": 445, "type": "parenthesized_expression", "text": "(iomux_fd < 0)", "parent": 444, "children": [446], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 21}}, {"id": 446, "type": "binary_expression", "text": "iomux_fd < 0", "parent": 445, "children": [447, 448, 449], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 20}}, {"id": 447, "type": "identifier", "text": "iomux_fd", "parent": 446, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 16}}, {"id": 448, "type": "<", "text": "<", "parent": 446, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 18}}, {"id": 449, "type": "number_literal", "text": "0", "parent": 446, "children": [], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 20}}, {"id": 450, "type": "return_statement", "text": "return iomux_fd;", "parent": 444, "children": [451], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 24}}, {"id": 451, "type": "identifier", "text": "iomux_fd", "parent": 450, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 23}}, {"id": 452, "type": "if_statement", "text": "if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, \"tcgetattr: %s\", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno));\n }\n }", "parent": 421, "children": [453, 472], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 129, "column": 5}}, {"id": 453, "type": "parenthesized_expression", "text": "(tcgetattr(iomux_fd, &termios) < 0)", "parent": 452, "children": [454], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 42}}, {"id": 454, "type": "binary_expression", "text": "tcgetattr(iomux_fd, &termios) < 0", "parent": 453, "children": [455, 461, 462], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 41}}, {"id": 455, "type": "call_expression", "text": "tcgetattr(iomux_fd, &termios)", "parent": 454, "children": [456, 457], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 37}}, {"id": 456, "type": "identifier", "text": "tcgetattr", "parent": 455, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 17}}, {"id": 457, "type": "argument_list", "text": "(iomux_fd, &termios)", "parent": 455, "children": [458, 459], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 37}}, {"id": 458, "type": "identifier", "text": "iomux_fd", "parent": 457, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 26}}, {"id": 459, "type": "pointer_expression", "text": "&termios", "parent": 457, "children": [460], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 36}}, {"id": 460, "type": "identifier", "text": "termios", "parent": 459, "children": [], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 121, "column": 36}}, {"id": 461, "type": "<", "text": "<", "parent": 454, "children": [], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 39}}, {"id": 462, "type": "number_literal", "text": "0", "parent": 454, "children": [], "start_point": {"row": 121, "column": 40}, "end_point": {"row": 121, "column": 41}}, {"id": 463, "type": "call_expression", "text": "syslog(LOG_WARNING, \"tcgetattr: %s\", strerror(errno))", "parent": 452, "children": [464, 465], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 61}}, {"id": 464, "type": "identifier", "text": "syslog", "parent": 463, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 14}}, {"id": 465, "type": "argument_list", "text": "(LOG_WARNING, \"tcgetattr: %s\", strerror(errno))", "parent": 463, "children": [466, 467, 468], "start_point": {"row": 122, "column": 14}, "end_point": {"row": 122, "column": 61}}, {"id": 466, "type": "identifier", "text": "LOG_WARNING", "parent": 465, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 26}}, {"id": 467, "type": "string_literal", "text": "\"tcgetattr: %s\"", "parent": 465, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 43}}, {"id": 468, "type": "call_expression", "text": "strerror(errno)", "parent": 465, "children": [469, 470], "start_point": {"row": 122, "column": 45}, "end_point": {"row": 122, "column": 60}}, {"id": 469, "type": "identifier", "text": "strerror", "parent": 468, "children": [], "start_point": {"row": 122, "column": 45}, "end_point": {"row": 122, "column": 53}}, {"id": 470, "type": "argument_list", "text": "(errno)", "parent": 468, "children": [471], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 60}}, {"id": 471, "type": "identifier", "text": "errno", "parent": 470, "children": [], "start_point": {"row": 122, "column": 54}, "end_point": {"row": 122, "column": 59}}, {"id": 472, "type": "else_clause", "text": "else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno));\n }\n }", "parent": 452, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 129, "column": 5}}, {"id": 473, "type": "call_expression", "text": "cfmakeraw(&termios)", "parent": 472, "children": [474, 475], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 27}}, {"id": 474, "type": "identifier", "text": "cfmakeraw", "parent": 473, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 17}}, {"id": 475, "type": "argument_list", "text": "(&termios)", "parent": 473, "children": [476], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 27}}, {"id": 476, "type": "pointer_expression", "text": "&termios", "parent": 475, "children": [477], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 26}}, {"id": 477, "type": "identifier", "text": "termios", "parent": 476, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 26}}, {"id": 478, "type": "call_expression", "text": "cfsetspeed(&termios, B115200)", "parent": 472, "children": [479, 480], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 37}}, {"id": 479, "type": "identifier", "text": "cfsetspeed", "parent": 478, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 18}}, {"id": 480, "type": "argument_list", "text": "(&termios, B115200)", "parent": 478, "children": [481, 483], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 37}}, {"id": 481, "type": "pointer_expression", "text": "&termios", "parent": 480, "children": [482], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 27}}, {"id": 482, "type": "identifier", "text": "termios", "parent": 481, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 27}}, {"id": 483, "type": "identifier", "text": "B115200", "parent": 480, "children": [], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 36}}, {"id": 484, "type": "if_statement", "text": "if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno));\n }", "parent": 472, "children": [485], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 128, "column": 9}}, {"id": 485, "type": "parenthesized_expression", "text": "(tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0)", "parent": 484, "children": [486], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 57}}, {"id": 486, "type": "binary_expression", "text": "tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0", "parent": 485, "children": [487, 494, 495], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 56}}, {"id": 487, "type": "call_expression", "text": "tcsetattr(iomux_fd, TCSAFLUSH, &termios)", "parent": 486, "children": [488, 489], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 52}}, {"id": 488, "type": "identifier", "text": "tcsetattr", "parent": 487, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 21}}, {"id": 489, "type": "argument_list", "text": "(iomux_fd, TCSAFLUSH, &termios)", "parent": 487, "children": [490, 491, 492], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 52}}, {"id": 490, "type": "identifier", "text": "iomux_fd", "parent": 489, "children": [], "start_point": {"row": 126, "column": 22}, "end_point": {"row": 126, "column": 30}}, {"id": 491, "type": "identifier", "text": "TCSAFLUSH", "parent": 489, "children": [], "start_point": {"row": 126, "column": 32}, "end_point": {"row": 126, "column": 41}}, {"id": 492, "type": "pointer_expression", "text": "&termios", "parent": 489, "children": [493], "start_point": {"row": 126, "column": 43}, "end_point": {"row": 126, "column": 51}}, {"id": 493, "type": "identifier", "text": "termios", "parent": 492, "children": [], "start_point": {"row": 126, "column": 44}, "end_point": {"row": 126, "column": 51}}, {"id": 494, "type": "<", "text": "<", "parent": 486, "children": [], "start_point": {"row": 126, "column": 53}, "end_point": {"row": 126, "column": 54}}, {"id": 495, "type": "number_literal", "text": "0", "parent": 486, "children": [], "start_point": {"row": 126, "column": 55}, "end_point": {"row": 126, "column": 56}}, {"id": 496, "type": "call_expression", "text": "syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno))", "parent": 484, "children": [497, 498], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 65}}, {"id": 497, "type": "identifier", "text": "syslog", "parent": 496, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 18}}, {"id": 498, "type": "argument_list", "text": "(LOG_WARNING, \"tcsetattr: %s\", strerror(errno))", "parent": 496, "children": [499, 500, 501], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 65}}, {"id": 499, "type": "identifier", "text": "LOG_WARNING", "parent": 498, "children": [], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 30}}, {"id": 500, "type": "string_literal", "text": "\"tcsetattr: %s\"", "parent": 498, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 47}}, {"id": 501, "type": "call_expression", "text": "strerror(errno)", "parent": 498, "children": [502, 503], "start_point": {"row": 127, "column": 49}, "end_point": {"row": 127, "column": 64}}, {"id": 502, "type": "identifier", "text": "strerror", "parent": 501, "children": [], "start_point": {"row": 127, "column": 49}, "end_point": {"row": 127, "column": 57}}, {"id": 503, "type": "argument_list", "text": "(errno)", "parent": 501, "children": [504], "start_point": {"row": 127, "column": 57}, "end_point": {"row": 127, "column": 64}}, {"id": 504, "type": "identifier", "text": "errno", "parent": 503, "children": [], "start_point": {"row": 127, "column": 58}, "end_point": {"row": 127, "column": 63}}, {"id": 505, "type": "return_statement", "text": "return 0;", "parent": 421, "children": [506], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 13}}, {"id": 506, "type": "number_literal", "text": "0", "parent": 505, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 12}}, {"id": 507, "type": "function_definition", "text": "int main(int argc, char** argv) {\n const char* iomux_filename;\n int open_iomux_error_logged = 0;\n\n if (argc != 2) {\n fprintf(stderr, \"usage: %s iomux_device\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"The program captures packets received by a device\\n\");\n fprintf(stderr, \"with CoreRadioSniffer appliction programmed and\\n\");\n fprintf(stderr, \"dumps the data to stdout in libpcap format.\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"To see the data live, do something like this:\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \" # %s /dev/ttyACM0 | wireshark -k -i -\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n return 1;\n }\n iomux_filename = argv[1];\n\n pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);\n pcap_dumper = pcap_dump_fopen(pcap, stdout);\n if (pcap_dumper == NULL) {\n pcap_perror(pcap, \"pcap_dump_fopen\");\n return 1;\n }\n\n openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);\n syslog(LOG_INFO, PROJECT_NAME \" [%s] starting\", iomux_filename);\n\n for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, \"opened IOMUX device\");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }\n sleep(1);\n }\n}", "parent": null, "children": [508, 509], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 174, "column": 1}}, {"id": 508, "type": "primitive_type", "text": "int", "parent": 507, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 3}}, {"id": 509, "type": "function_declarator", "text": "main(int argc, char** argv)", "parent": 507, "children": [510, 511], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 31}}, {"id": 510, "type": "identifier", "text": "main", "parent": 509, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 8}}, {"id": 511, "type": "parameter_list", "text": "(int argc, char** argv)", "parent": 509, "children": [512, 515], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 31}}, {"id": 512, "type": "parameter_declaration", "text": "int argc", "parent": 511, "children": [513, 514], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 17}}, {"id": 513, "type": "primitive_type", "text": "int", "parent": 512, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 12}}, {"id": 514, "type": "identifier", "text": "argc", "parent": 512, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 17}}, {"id": 515, "type": "parameter_declaration", "text": "char** argv", "parent": 511, "children": [516, 517], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 30}}, {"id": 516, "type": "primitive_type", "text": "char", "parent": 515, "children": [], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 23}}, {"id": 517, "type": "pointer_declarator", "text": "** argv", "parent": 515, "children": [518, 519], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 30}}, {"id": 518, "type": "*", "text": "*", "parent": 517, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 24}}, {"id": 519, "type": "pointer_declarator", "text": "* argv", "parent": 517, "children": [520, 521], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 30}}, {"id": 520, "type": "*", "text": "*", "parent": 519, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 25}}, {"id": 521, "type": "identifier", "text": "argv", "parent": 519, "children": [], "start_point": {"row": 133, "column": 26}, "end_point": {"row": 133, "column": 30}}, {"id": 522, "type": "declaration", "text": "const char* iomux_filename;", "parent": 507, "children": [523, 524], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 31}}, {"id": 523, "type": "primitive_type", "text": "char", "parent": 522, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 14}}, {"id": 524, "type": "pointer_declarator", "text": "* iomux_filename", "parent": 522, "children": [525, 526], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 30}}, {"id": 525, "type": "*", "text": "*", "parent": 524, "children": [], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 15}}, {"id": 526, "type": "identifier", "text": "iomux_filename", "parent": 524, "children": [], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 30}}, {"id": 527, "type": "declaration", "text": "int open_iomux_error_logged = 0;", "parent": 507, "children": [528, 529], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 36}}, {"id": 528, "type": "primitive_type", "text": "int", "parent": 527, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 7}}, {"id": 529, "type": "init_declarator", "text": "open_iomux_error_logged = 0", "parent": 527, "children": [530, 531, 532], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 35}}, {"id": 530, "type": "identifier", "text": "open_iomux_error_logged", "parent": 529, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 31}}, {"id": 531, "type": "=", "text": "=", "parent": 529, "children": [], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 33}}, {"id": 532, "type": "number_literal", "text": "0", "parent": 529, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 35}}, {"id": 533, "type": "if_statement", "text": "if (argc != 2) {\n fprintf(stderr, \"usage: %s iomux_device\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"The program captures packets received by a device\\n\");\n fprintf(stderr, \"with CoreRadioSniffer appliction programmed and\\n\");\n fprintf(stderr, \"dumps the data to stdout in libpcap format.\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"To see the data live, do something like this:\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \" # %s /dev/ttyACM0 | wireshark -k -i -\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n return 1;\n }", "parent": 507, "children": [534], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 149, "column": 5}}, {"id": 534, "type": "parenthesized_expression", "text": "(argc != 2)", "parent": 533, "children": [535], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 18}}, {"id": 535, "type": "binary_expression", "text": "argc != 2", "parent": 534, "children": [536, 537, 538], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 17}}, {"id": 536, "type": "identifier", "text": "argc", "parent": 535, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 12}}, {"id": 537, "type": "!=", "text": "!=", "parent": 535, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 15}}, {"id": 538, "type": "number_literal", "text": "2", "parent": 535, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 17}}, {"id": 539, "type": "call_expression", "text": "fprintf(stderr, \"usage: %s iomux_device\\n\", argv[0])", "parent": 533, "children": [540, 541], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 60}}, {"id": 540, "type": "identifier", "text": "fprintf", "parent": 539, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 15}}, {"id": 541, "type": "argument_list", "text": "(stderr, \"usage: %s iomux_device\\n\", argv[0])", "parent": 539, "children": [542, 543, 545], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 60}}, {"id": 542, "type": "identifier", "text": "stderr", "parent": 541, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 22}}, {"id": 543, "type": "string_literal", "text": "\"usage: %s iomux_device\\n\"", "parent": 541, "children": [544], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 50}}, {"id": 544, "type": "escape_sequence", "text": "\\n", "parent": 543, "children": [], "start_point": {"row": 138, "column": 47}, "end_point": {"row": 138, "column": 49}}, {"id": 545, "type": "subscript_expression", "text": "argv[0]", "parent": 541, "children": [546, 547], "start_point": {"row": 138, "column": 52}, "end_point": {"row": 138, "column": 59}}, {"id": 546, "type": "identifier", "text": "argv", "parent": 545, "children": [], "start_point": {"row": 138, "column": 52}, "end_point": {"row": 138, "column": 56}}, {"id": 547, "type": "number_literal", "text": "0", "parent": 545, "children": [], "start_point": {"row": 138, "column": 57}, "end_point": {"row": 138, "column": 58}}, {"id": 548, "type": "call_expression", "text": "fprintf(stderr, \"\\n\")", "parent": 533, "children": [549, 550], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 29}}, {"id": 549, "type": "identifier", "text": "fprintf", "parent": 548, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 15}}, {"id": 550, "type": "argument_list", "text": "(stderr, \"\\n\")", "parent": 548, "children": [551, 552], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 29}}, {"id": 551, "type": "identifier", "text": "stderr", "parent": 550, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 22}}, {"id": 552, "type": "string_literal", "text": "\"\\n\"", "parent": 550, "children": [553], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 28}}, {"id": 553, "type": "escape_sequence", "text": "\\n", "parent": 552, "children": [], "start_point": {"row": 139, "column": 25}, "end_point": {"row": 139, "column": 27}}, {"id": 554, "type": "call_expression", "text": "fprintf(stderr, \"The program captures packets received by a device\\n\")", "parent": 533, "children": [555, 556], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 78}}, {"id": 555, "type": "identifier", "text": "fprintf", "parent": 554, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 15}}, {"id": 556, "type": "argument_list", "text": "(stderr, \"The program captures packets received by a device\\n\")", "parent": 554, "children": [557, 558], "start_point": {"row": 140, "column": 15}, "end_point": {"row": 140, "column": 78}}, {"id": 557, "type": "identifier", "text": "stderr", "parent": 556, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 22}}, {"id": 558, "type": "string_literal", "text": "\"The program captures packets received by a device\\n\"", "parent": 556, "children": [559], "start_point": {"row": 140, "column": 24}, "end_point": {"row": 140, "column": 77}}, {"id": 559, "type": "escape_sequence", "text": "\\n", "parent": 558, "children": [], "start_point": {"row": 140, "column": 74}, "end_point": {"row": 140, "column": 76}}, {"id": 560, "type": "call_expression", "text": "fprintf(stderr, \"with CoreRadioSniffer appliction programmed and\\n\")", "parent": 533, "children": [561, 562], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 76}}, {"id": 561, "type": "identifier", "text": "fprintf", "parent": 560, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 15}}, {"id": 562, "type": "argument_list", "text": "(stderr, \"with CoreRadioSniffer appliction programmed and\\n\")", "parent": 560, "children": [563, 564], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 76}}, {"id": 563, "type": "identifier", "text": "stderr", "parent": 562, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 22}}, {"id": 564, "type": "string_literal", "text": "\"with CoreRadioSniffer appliction programmed and\\n\"", "parent": 562, "children": [565], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 75}}, {"id": 565, "type": "escape_sequence", "text": "\\n", "parent": 564, "children": [], "start_point": {"row": 141, "column": 72}, "end_point": {"row": 141, "column": 74}}, {"id": 566, "type": "call_expression", "text": "fprintf(stderr, \"dumps the data to stdout in libpcap format.\\n\")", "parent": 533, "children": [567, 568], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 72}}, {"id": 567, "type": "identifier", "text": "fprintf", "parent": 566, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 15}}, {"id": 568, "type": "argument_list", "text": "(stderr, \"dumps the data to stdout in libpcap format.\\n\")", "parent": 566, "children": [569, 570], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 72}}, {"id": 569, "type": "identifier", "text": "stderr", "parent": 568, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 22}}, {"id": 570, "type": "string_literal", "text": "\"dumps the data to stdout in libpcap format.\\n\"", "parent": 568, "children": [571], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 71}}, {"id": 571, "type": "escape_sequence", "text": "\\n", "parent": 570, "children": [], "start_point": {"row": 142, "column": 68}, "end_point": {"row": 142, "column": 70}}, {"id": 572, "type": "call_expression", "text": "fprintf(stderr, \"\\n\")", "parent": 533, "children": [573, 574], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 29}}, {"id": 573, "type": "identifier", "text": "fprintf", "parent": 572, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 15}}, {"id": 574, "type": "argument_list", "text": "(stderr, \"\\n\")", "parent": 572, "children": [575, 576], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 29}}, {"id": 575, "type": "identifier", "text": "stderr", "parent": 574, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 22}}, {"id": 576, "type": "string_literal", "text": "\"\\n\"", "parent": 574, "children": [577], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 28}}, {"id": 577, "type": "escape_sequence", "text": "\\n", "parent": 576, "children": [], "start_point": {"row": 143, "column": 25}, "end_point": {"row": 143, "column": 27}}, {"id": 578, "type": "call_expression", "text": "fprintf(stderr, \"To see the data live, do something like this:\\n\")", "parent": 533, "children": [579, 580], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 74}}, {"id": 579, "type": "identifier", "text": "fprintf", "parent": 578, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 15}}, {"id": 580, "type": "argument_list", "text": "(stderr, \"To see the data live, do something like this:\\n\")", "parent": 578, "children": [581, 582], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 74}}, {"id": 581, "type": "identifier", "text": "stderr", "parent": 580, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 22}}, {"id": 582, "type": "string_literal", "text": "\"To see the data live, do something like this:\\n\"", "parent": 580, "children": [583], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 73}}, {"id": 583, "type": "escape_sequence", "text": "\\n", "parent": 582, "children": [], "start_point": {"row": 144, "column": 70}, "end_point": {"row": 144, "column": 72}}, {"id": 584, "type": "call_expression", "text": "fprintf(stderr, \"\\n\")", "parent": 533, "children": [585, 586], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 29}}, {"id": 585, "type": "identifier", "text": "fprintf", "parent": 584, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 15}}, {"id": 586, "type": "argument_list", "text": "(stderr, \"\\n\")", "parent": 584, "children": [587, 588], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 29}}, {"id": 587, "type": "identifier", "text": "stderr", "parent": 586, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 22}}, {"id": 588, "type": "string_literal", "text": "\"\\n\"", "parent": 586, "children": [589], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 28}}, {"id": 589, "type": "escape_sequence", "text": "\\n", "parent": 588, "children": [], "start_point": {"row": 145, "column": 25}, "end_point": {"row": 145, "column": 27}}, {"id": 590, "type": "call_expression", "text": "fprintf(stderr, \" # %s /dev/ttyACM0 | wireshark -k -i -\\n\", argv[0])", "parent": 533, "children": [591, 592], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 76}}, {"id": 591, "type": "identifier", "text": "fprintf", "parent": 590, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 15}}, {"id": 592, "type": "argument_list", "text": "(stderr, \" # %s /dev/ttyACM0 | wireshark -k -i -\\n\", argv[0])", "parent": 590, "children": [593, 594, 596], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 76}}, {"id": 593, "type": "identifier", "text": "stderr", "parent": 592, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 22}}, {"id": 594, "type": "string_literal", "text": "\" # %s /dev/ttyACM0 | wireshark -k -i -\\n\"", "parent": 592, "children": [595], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 66}}, {"id": 595, "type": "escape_sequence", "text": "\\n", "parent": 594, "children": [], "start_point": {"row": 146, "column": 63}, "end_point": {"row": 146, "column": 65}}, {"id": 596, "type": "subscript_expression", "text": "argv[0]", "parent": 592, "children": [597, 598], "start_point": {"row": 146, "column": 68}, "end_point": {"row": 146, "column": 75}}, {"id": 597, "type": "identifier", "text": "argv", "parent": 596, "children": [], "start_point": {"row": 146, "column": 68}, "end_point": {"row": 146, "column": 72}}, {"id": 598, "type": "number_literal", "text": "0", "parent": 596, "children": [], "start_point": {"row": 146, "column": 73}, "end_point": {"row": 146, "column": 74}}, {"id": 599, "type": "call_expression", "text": "fprintf(stderr, \"\\n\")", "parent": 533, "children": [600, 601], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 29}}, {"id": 600, "type": "identifier", "text": "fprintf", "parent": 599, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 15}}, {"id": 601, "type": "argument_list", "text": "(stderr, \"\\n\")", "parent": 599, "children": [602, 603], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 29}}, {"id": 602, "type": "identifier", "text": "stderr", "parent": 601, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 22}}, {"id": 603, "type": "string_literal", "text": "\"\\n\"", "parent": 601, "children": [604], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 28}}, {"id": 604, "type": "escape_sequence", "text": "\\n", "parent": 603, "children": [], "start_point": {"row": 147, "column": 25}, "end_point": {"row": 147, "column": 27}}, {"id": 605, "type": "return_statement", "text": "return 1;", "parent": 533, "children": [606], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 17}}, {"id": 606, "type": "number_literal", "text": "1", "parent": 605, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 16}}, {"id": 607, "type": "assignment_expression", "text": "iomux_filename = argv[1]", "parent": 507, "children": [608, 609, 610], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 28}}, {"id": 608, "type": "identifier", "text": "iomux_filename", "parent": 607, "children": [], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 18}}, {"id": 609, "type": "=", "text": "=", "parent": 607, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 20}}, {"id": 610, "type": "subscript_expression", "text": "argv[1]", "parent": 607, "children": [611, 612], "start_point": {"row": 150, "column": 21}, "end_point": {"row": 150, "column": 28}}, {"id": 611, "type": "identifier", "text": "argv", "parent": 610, "children": [], "start_point": {"row": 150, "column": 21}, "end_point": {"row": 150, "column": 25}}, {"id": 612, "type": "number_literal", "text": "1", "parent": 610, "children": [], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 27}}, {"id": 613, "type": "assignment_expression", "text": "pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1)", "parent": 507, "children": [614, 615, 616], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 53}}, {"id": 614, "type": "identifier", "text": "pcap", "parent": 613, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 8}}, {"id": 615, "type": "=", "text": "=", "parent": 613, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 10}}, {"id": 616, "type": "call_expression", "text": "pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1)", "parent": 613, "children": [617, 618], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 53}}, {"id": 617, "type": "identifier", "text": "pcap_open_dead", "parent": 616, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 25}}, {"id": 618, "type": "argument_list", "text": "(DLT_IEEE802_15_4_NOFCS, -1)", "parent": 616, "children": [619, 620], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 53}}, {"id": 619, "type": "identifier", "text": "DLT_IEEE802_15_4_NOFCS", "parent": 618, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 48}}, {"id": 620, "type": "number_literal", "text": "-1", "parent": 618, "children": [], "start_point": {"row": 152, "column": 50}, "end_point": {"row": 152, "column": 52}}, {"id": 621, "type": "assignment_expression", "text": "pcap_dumper = pcap_dump_fopen(pcap, stdout)", "parent": 507, "children": [622, 623, 624], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 47}}, {"id": 622, "type": "identifier", "text": "pcap_dumper", "parent": 621, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 15}}, {"id": 623, "type": "=", "text": "=", "parent": 621, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 624, "type": "call_expression", "text": "pcap_dump_fopen(pcap, stdout)", "parent": 621, "children": [625, 626], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 47}}, {"id": 625, "type": "identifier", "text": "pcap_dump_fopen", "parent": 624, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 33}}, {"id": 626, "type": "argument_list", "text": "(pcap, stdout)", "parent": 624, "children": [627, 628], "start_point": {"row": 153, "column": 33}, "end_point": {"row": 153, "column": 47}}, {"id": 627, "type": "identifier", "text": "pcap", "parent": 626, "children": [], "start_point": {"row": 153, "column": 34}, "end_point": {"row": 153, "column": 38}}, {"id": 628, "type": "identifier", "text": "stdout", "parent": 626, "children": [], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 46}}, {"id": 629, "type": "if_statement", "text": "if (pcap_dumper == NULL) {\n pcap_perror(pcap, \"pcap_dump_fopen\");\n return 1;\n }", "parent": 507, "children": [630], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 157, "column": 5}}, {"id": 630, "type": "parenthesized_expression", "text": "(pcap_dumper == NULL)", "parent": 629, "children": [631], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 28}}, {"id": 631, "type": "binary_expression", "text": "pcap_dumper == NULL", "parent": 630, "children": [632, 633, 634], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 27}}, {"id": 632, "type": "identifier", "text": "pcap_dumper", "parent": 631, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 19}}, {"id": 633, "type": "==", "text": "==", "parent": 631, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 22}}, {"id": 634, "type": "null", "text": "NULL", "parent": 631, "children": [635], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 27}}, {"id": 635, "type": "NULL", "text": "NULL", "parent": 634, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 27}}, {"id": 636, "type": "call_expression", "text": "pcap_perror(pcap, \"pcap_dump_fopen\")", "parent": 629, "children": [637, 638], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 44}}, {"id": 637, "type": "identifier", "text": "pcap_perror", "parent": 636, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 19}}, {"id": 638, "type": "argument_list", "text": "(pcap, \"pcap_dump_fopen\")", "parent": 636, "children": [639, 640], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 44}}, {"id": 639, "type": "identifier", "text": "pcap", "parent": 638, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 24}}, {"id": 640, "type": "string_literal", "text": "\"pcap_dump_fopen\"", "parent": 638, "children": [], "start_point": {"row": 155, "column": 26}, "end_point": {"row": 155, "column": 43}}, {"id": 641, "type": "return_statement", "text": "return 1;", "parent": 629, "children": [642], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 17}}, {"id": 642, "type": "number_literal", "text": "1", "parent": 641, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 16}}, {"id": 643, "type": "call_expression", "text": "openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON)", "parent": 507, "children": [644, 645], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 49}}, {"id": 644, "type": "identifier", "text": "openlog", "parent": 643, "children": [], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 11}}, {"id": 645, "type": "argument_list", "text": "(PROJECT_NAME, LOG_PERROR, LOG_DAEMON)", "parent": 643, "children": [646, 647, 648], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 49}}, {"id": 646, "type": "identifier", "text": "PROJECT_NAME", "parent": 645, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 24}}, {"id": 647, "type": "identifier", "text": "LOG_PERROR", "parent": 645, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 36}}, {"id": 648, "type": "identifier", "text": "LOG_DAEMON", "parent": 645, "children": [], "start_point": {"row": 159, "column": 38}, "end_point": {"row": 159, "column": 48}}, {"id": 649, "type": "call_expression", "text": "syslog(LOG_INFO, PROJECT_NAME \" [%s] starting\", iomux_filename)", "parent": 507, "children": [650, 651], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 67}}, {"id": 650, "type": "identifier", "text": "syslog", "parent": 649, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 10}}, {"id": 651, "type": "argument_list", "text": "(LOG_INFO, PROJECT_NAME \" [%s] starting\", iomux_filename)", "parent": 649, "children": [652, 653, 656], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 67}}, {"id": 652, "type": "identifier", "text": "LOG_INFO", "parent": 651, "children": [], "start_point": {"row": 160, "column": 11}, "end_point": {"row": 160, "column": 19}}, {"id": 653, "type": "concatenated_string", "text": "PROJECT_NAME \" [%s] starting\"", "parent": 651, "children": [654, 655], "start_point": {"row": 160, "column": 21}, "end_point": {"row": 160, "column": 50}}, {"id": 654, "type": "identifier", "text": "PROJECT_NAME", "parent": 653, "children": [], "start_point": {"row": 160, "column": 21}, "end_point": {"row": 160, "column": 33}}, {"id": 655, "type": "string_literal", "text": "\" [%s] starting\"", "parent": 653, "children": [], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 50}}, {"id": 656, "type": "identifier", "text": "iomux_filename", "parent": 651, "children": [], "start_point": {"row": 160, "column": 52}, "end_point": {"row": 160, "column": 66}}, {"id": 657, "type": "for_statement", "text": "for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, \"opened IOMUX device\");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }\n sleep(1);\n }", "parent": 507, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 658, "type": "if_statement", "text": "if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, \"opened IOMUX device\");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }", "parent": 657, "children": [659, 683], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 171, "column": 9}}, {"id": 659, "type": "parenthesized_expression", "text": "(open_iomux(iomux_filename) == 0)", "parent": 658, "children": [660], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 44}}, {"id": 660, "type": "binary_expression", "text": "open_iomux(iomux_filename) == 0", "parent": 659, "children": [661, 665, 666], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 43}}, {"id": 661, "type": "call_expression", "text": "open_iomux(iomux_filename)", "parent": 660, "children": [662, 663], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 38}}, {"id": 662, "type": "identifier", "text": "open_iomux", "parent": 661, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 22}}, {"id": 663, "type": "argument_list", "text": "(iomux_filename)", "parent": 661, "children": [664], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 38}}, {"id": 664, "type": "identifier", "text": "iomux_filename", "parent": 663, "children": [], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 163, "column": 37}}, {"id": 665, "type": "==", "text": "==", "parent": 660, "children": [], "start_point": {"row": 163, "column": 39}, "end_point": {"row": 163, "column": 41}}, {"id": 666, "type": "number_literal", "text": "0", "parent": 660, "children": [], "start_point": {"row": 163, "column": 42}, "end_point": {"row": 163, "column": 43}}, {"id": 667, "type": "call_expression", "text": "syslog(LOG_INFO, \"opened IOMUX device\")", "parent": 658, "children": [668, 669], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 51}}, {"id": 668, "type": "identifier", "text": "syslog", "parent": 667, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 18}}, {"id": 669, "type": "argument_list", "text": "(LOG_INFO, \"opened IOMUX device\")", "parent": 667, "children": [670, 671], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 51}}, {"id": 670, "type": "identifier", "text": "LOG_INFO", "parent": 669, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 27}}, {"id": 671, "type": "string_literal", "text": "\"opened IOMUX device\"", "parent": 669, "children": [], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 50}}, {"id": 672, "type": "assignment_expression", "text": "open_iomux_error_logged = 0", "parent": 658, "children": [673, 674, 675], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 39}}, {"id": 673, "type": "identifier", "text": "open_iomux_error_logged", "parent": 672, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 35}}, {"id": 674, "type": "=", "text": "=", "parent": 672, "children": [], "start_point": {"row": 165, "column": 36}, "end_point": {"row": 165, "column": 37}}, {"id": 675, "type": "number_literal", "text": "0", "parent": 672, "children": [], "start_point": {"row": 165, "column": 38}, "end_point": {"row": 165, "column": 39}}, {"id": 676, "type": "call_expression", "text": "main_loop()", "parent": 658, "children": [677, 678], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 23}}, {"id": 677, "type": "identifier", "text": "main_loop", "parent": 676, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 21}}, {"id": 678, "type": "argument_list", "text": "()", "parent": 676, "children": [], "start_point": {"row": 166, "column": 21}, "end_point": {"row": 166, "column": 23}}, {"id": 679, "type": "call_expression", "text": "close(iomux_fd)", "parent": 658, "children": [680, 681], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 27}}, {"id": 680, "type": "identifier", "text": "close", "parent": 679, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 17}}, {"id": 681, "type": "argument_list", "text": "(iomux_fd)", "parent": 679, "children": [682], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 27}}, {"id": 682, "type": "identifier", "text": "iomux_fd", "parent": 681, "children": [], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 167, "column": 26}}, {"id": 683, "type": "else_clause", "text": "else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }", "parent": 658, "children": [684], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 171, "column": 9}}, {"id": 684, "type": "if_statement", "text": "if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }", "parent": 683, "children": [685], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 171, "column": 9}}, {"id": 685, "type": "parenthesized_expression", "text": "(!open_iomux_error_logged)", "parent": 684, "children": [686], "start_point": {"row": 168, "column": 18}, "end_point": {"row": 168, "column": 44}}, {"id": 686, "type": "unary_expression", "text": "!open_iomux_error_logged", "parent": 685, "children": [687, 688], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 43}}, {"id": 687, "type": "!", "text": "!", "parent": 686, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 20}}, {"id": 688, "type": "identifier", "text": "open_iomux_error_logged", "parent": 686, "children": [], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 43}}, {"id": 689, "type": "assignment_expression", "text": "open_iomux_error_logged = 1", "parent": 684, "children": [690, 691, 692], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 39}}, {"id": 690, "type": "identifier", "text": "open_iomux_error_logged", "parent": 689, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 35}}, {"id": 691, "type": "=", "text": "=", "parent": 689, "children": [], "start_point": {"row": 169, "column": 36}, "end_point": {"row": 169, "column": 37}}, {"id": 692, "type": "number_literal", "text": "1", "parent": 689, "children": [], "start_point": {"row": 169, "column": 38}, "end_point": {"row": 169, "column": 39}}, {"id": 693, "type": "call_expression", "text": "syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno))", "parent": 684, "children": [694, 695], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 66}}, {"id": 694, "type": "identifier", "text": "syslog", "parent": 693, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 18}}, {"id": 695, "type": "argument_list", "text": "(LOG_WARNING, \"open_iomux: %s\", strerror(errno))", "parent": 693, "children": [696, 697, 698], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 66}}, {"id": 696, "type": "identifier", "text": "LOG_WARNING", "parent": 695, "children": [], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 30}}, {"id": 697, "type": "string_literal", "text": "\"open_iomux: %s\"", "parent": 695, "children": [], "start_point": {"row": 170, "column": 32}, "end_point": {"row": 170, "column": 48}}, {"id": 698, "type": "call_expression", "text": "strerror(errno)", "parent": 695, "children": [699, 700], "start_point": {"row": 170, "column": 50}, "end_point": {"row": 170, "column": 65}}, {"id": 699, "type": "identifier", "text": "strerror", "parent": 698, "children": [], "start_point": {"row": 170, "column": 50}, "end_point": {"row": 170, "column": 58}}, {"id": 700, "type": "argument_list", "text": "(errno)", "parent": 698, "children": [701], "start_point": {"row": 170, "column": 58}, "end_point": {"row": 170, "column": 65}}, {"id": 701, "type": "identifier", "text": "errno", "parent": 700, "children": [], "start_point": {"row": 170, "column": 59}, "end_point": {"row": 170, "column": 64}}, {"id": 702, "type": "call_expression", "text": "sleep(1)", "parent": 657, "children": [703, 704], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 16}}, {"id": 703, "type": "identifier", "text": "sleep", "parent": 702, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 13}}, {"id": 704, "type": "argument_list", "text": "(1)", "parent": 702, "children": [705], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 16}}, {"id": 705, "type": "number_literal", "text": "1", "parent": 704, "children": [], "start_point": {"row": 172, "column": 14}, "end_point": {"row": 172, "column": 15}}]}, "node_categories": {"declarations": {"functions": [69, 71, 137, 139, 303, 305, 421, 423, 507, 509], "variables": [50, 53, 58, 63, 66, 74, 77, 80, 142, 147, 150, 155, 165, 308, 310, 316, 322, 426, 431, 512, 515, 522, 527], "classes": [81, 82, 151, 152, 432, 433], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40], "modules": [], "enums": []}, "statements": {"expressions": [86, 92, 98, 99, 100, 103, 106, 115, 116, 117, 120, 121, 127, 128, 129, 160, 161, 169, 170, 173, 174, 176, 190, 191, 195, 205, 206, 207, 216, 217, 224, 225, 230, 235, 236, 241, 246, 251, 255, 258, 259, 261, 264, 270, 272, 276, 277, 278, 284, 289, 293, 297, 327, 328, 336, 341, 355, 356, 357, 362, 364, 368, 373, 379, 380, 387, 388, 389, 392, 401, 406, 415, 439, 445, 446, 453, 454, 455, 459, 463, 468, 473, 476, 478, 481, 485, 486, 487, 492, 496, 501, 534, 535, 539, 545, 548, 554, 560, 566, 572, 578, 584, 590, 596, 599, 610, 616, 624, 630, 631, 636, 643, 649, 659, 660, 661, 667, 676, 679, 685, 686, 693, 698, 702], "assignments": [85, 91, 183, 198, 202, 213, 223, 234, 245, 250, 436, 607, 613, 621, 672, 689], "loops": [315, 657], "conditionals": [2, 44, 48, 52, 54, 57, 59, 62, 65, 68, 72, 76, 79, 83, 84, 87, 88, 90, 93, 94, 96, 97, 101, 104, 107, 114, 118, 119, 122, 123, 126, 130, 131, 132, 140, 143, 146, 149, 153, 154, 158, 162, 163, 164, 167, 168, 171, 175, 177, 179, 182, 184, 186, 189, 192, 194, 196, 199, 201, 203, 210, 214, 218, 226, 227, 228, 231, 237, 238, 239, 242, 247, 248, 252, 253, 256, 260, 262, 266, 269, 271, 273, 274, 275, 279, 281, 285, 287, 290, 292, 294, 298, 300, 302, 306, 313, 314, 319, 321, 324, 325, 326, 329, 331, 333, 334, 337, 339, 342, 344, 346, 347, 351, 352, 354, 358, 360, 361, 363, 365, 369, 371, 374, 376, 378, 381, 383, 386, 390, 394, 397, 398, 400, 402, 404, 407, 409, 413, 416, 424, 430, 434, 435, 437, 440, 442, 443, 444, 447, 451, 452, 456, 458, 460, 464, 466, 469, 471, 474, 477, 479, 482, 483, 484, 488, 490, 491, 493, 497, 499, 502, 504, 510, 514, 521, 526, 530, 533, 536, 540, 542, 546, 549, 551, 555, 557, 561, 563, 567, 569, 573, 575, 579, 581, 585, 587, 591, 593, 597, 600, 602, 608, 611, 614, 617, 619, 622, 625, 627, 628, 629, 632, 637, 639, 644, 646, 647, 648, 650, 652, 654, 656, 658, 662, 664, 668, 670, 673, 677, 680, 682, 684, 688, 690, 694, 696, 699, 701, 703], "returns": [112, 124, 133, 135, 187, 301, 345, 377, 410, 450, 505, 605, 641], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 105, 109, 111, 113, 125, 134, 136, 180, 188, 212, 220, 222, 233, 244, 283, 288, 296, 332, 335, 340, 348, 353, 367, 372, 405, 418, 449, 462, 467, 495, 500, 506, 532, 538, 543, 547, 552, 558, 564, 570, 576, 582, 588, 594, 598, 603, 606, 612, 620, 640, 642, 653, 655, 666, 671, 675, 692, 697, 705], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 69, "universal_type": "function", "name": "wait_until_can_read_fd", "text_snippet": "static int wait_until_can_read_fd(int fd, int timeout_sec) {\n struct pollfd pfd;\n pfd.fd = fd;"}, {"node_id": 71, "universal_type": "function", "name": "timeout_sec)", "text_snippet": "wait_until_can_read_fd(int fd, int timeout_sec)"}, {"node_id": 137, "universal_type": "function", "name": "pcap_pkthdr", "text_snippet": "static ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) {\n struct pcap_pkthdr"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len)"}, {"node_id": 303, "universal_type": "function", "name": "main_loop", "text_snippet": "static void main_loop(void) {\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MA"}, {"node_id": 305, "universal_type": "function", "name": "unknown", "text_snippet": "main_loop(void)"}, {"node_id": 421, "universal_type": "function", "name": "open_iomux", "text_snippet": "static int open_iomux(const char* filename) {\n struct termios termios;\n iomux_fd = open(filena"}, {"node_id": 423, "universal_type": "function", "name": "unknown", "text_snippet": "open_iomux(const char* filename)"}, {"node_id": 507, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char** argv) {\n const char* iomux_filename;\n int open_iomux_error_logged = "}, {"node_id": 509, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char** argv)"}], "class_declarations": [{"node_id": 81, "universal_type": "class", "name": "pollfd", "text_snippet": "struct pollfd"}, {"node_id": 82, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 151, "universal_type": "class", "name": "pcap_pkthdr", "text_snippet": "struct pcap_pkthdr"}, {"node_id": 152, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 432, "universal_type": "class", "name": "termios", "text_snippet": "struct termios"}, {"node_id": 433, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdlib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <poll.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <assert.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <errno.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <string.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <unistd.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <fcntl.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <termios.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <syslog.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <pcap/pcap.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"iomux.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"CoreRadioSniffer.h\"\n"}, {"node_id": 40, "text": "#include"}]}, "original_source_code": "/*\n * whip6: Warsaw High-performance IPv6.\n *\n * Copyright (c) 2012-2017 <NAME>\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE \n * files.\n */\n\n#define _BSD_SOURCE\n#include <stdio.h>\n#include <stdlib.h>\n#include <poll.h>\n#include <assert.h>\n#include <errno.h>\n#include <string.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <termios.h>\n#include <syslog.h>\n#include <pcap/pcap.h>\n\n#include \"iomux.h\"\n#include \"CoreRadioSniffer.h\"\n\n#define MAX_PACKET_SIZE (1500 + sizeof(sniffer_header_t))\n\n// Sometimes valgrind is distributed with an older-version headers\n// for libpcap, which do not have this link type defined.\n#define LINKTYPE_IEEE802_15_4_NOFCS 230\n\nstatic int iomux_fd;\nstatic pcap_dumper_t* pcap_dumper;\nstatic pcap_t* pcap;\nstatic uint32_t last_timestamp_32khz;\nstatic uint32_t timestamp_overflows;\n\nstatic int wait_until_can_read_fd(int fd, int timeout_sec) {\n struct pollfd pfd;\n pfd.fd = fd;\n pfd.events = POLLIN;\n if (poll(&pfd, 1, timeout_sec * 1000) < 0)\n return -1;\n if (pfd.revents & (POLLERR|POLLHUP))\n return -1;\n if (pfd.revents & POLLIN)\n return 1;\n return 0;\n}\n\nstatic ssize_t pcap_write_ipv6_packet(sniffer_packet_t* packet, size_t len) {\n struct pcap_pkthdr pkthdr;\n uint64_t timestamp_32khz = packet->header.timestamp_32khz;\n uint64_t timestamp_usec;\n\n if (len < sizeof(sniffer_packet_t)) {\n fprintf(stderr, \"invalid iomux packet: %ld bytes\\n\", len);\n errno = EINVAL;\n return -1;\n }\n\n if (timestamp_32khz < last_timestamp_32khz) {\n timestamp_overflows++;\n }\n last_timestamp_32khz = timestamp_32khz;\n\n timestamp_32khz += ((uint64_t)timestamp_overflows) << 32;\n timestamp_usec = timestamp_32khz * 1000000ULL / 32768;\n\n pkthdr.ts.tv_sec = timestamp_usec / 1000000;\n pkthdr.ts.tv_usec = timestamp_usec % 1000000;\n pkthdr.caplen = pkthdr.len = len - sizeof(sniffer_header_t);\n pcap_dump((u_char*)pcap_dumper, &pkthdr, packet->data);\n if (pcap_dump_flush(pcap_dumper) != 0) {\n syslog(LOG_ERR, \"pcap_dump_flush: %s (terminating)\",\n pcap_geterr(pcap));\n exit(1);\n }\n fflush(stdout);\n return len;\n}\n\nstatic void main_loop(void) {\n char buf[MAX_PACKET_SIZE];\n for (;;) {\n size_t size = MAX_PACKET_SIZE;\n uint8_t channel;\n switch (wait_until_can_read_fd(iomux_fd, 1)) {\n case -1:\n syslog(LOG_WARNING, \"poll(iomux): %s\", strerror(errno));\n return;\n case 0:\n break;\n case 1:\n if (iomux_read_packet(iomux_fd, buf, &size, &channel) < 0) {\n syslog(LOG_WARNING, \"iomux_read_packet: %s\",\n strerror(errno));\n return;\n }\n if (channel != IOMUX_SNIFFER_CHANNEL)\n break;\n if (pcap_write_ipv6_packet((sniffer_packet_t*)buf, size)\n != size) {\n syslog(LOG_WARNING, \"pcap_write_ipv6_packet: %s\",\n strerror(errno));\n return;\n }\n break;\n default:\n assert(0);\n }\n continue;\n }\n}\n\nstatic int open_iomux(const char* filename) {\n struct termios termios;\n iomux_fd = open(filename, O_RDWR);\n if (iomux_fd < 0)\n return iomux_fd;\n if (tcgetattr(iomux_fd, &termios) < 0) {\n syslog(LOG_WARNING, \"tcgetattr: %s\", strerror(errno));\n } else {\n cfmakeraw(&termios);\n cfsetspeed(&termios, B115200);\n if (tcsetattr(iomux_fd, TCSAFLUSH, &termios) < 0) {\n syslog(LOG_WARNING, \"tcsetattr: %s\", strerror(errno));\n }\n }\n return 0;\n}\n\nint main(int argc, char** argv) {\n const char* iomux_filename;\n int open_iomux_error_logged = 0;\n\n if (argc != 2) {\n fprintf(stderr, \"usage: %s iomux_device\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"The program captures packets received by a device\\n\");\n fprintf(stderr, \"with CoreRadioSniffer appliction programmed and\\n\");\n fprintf(stderr, \"dumps the data to stdout in libpcap format.\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \"To see the data live, do something like this:\\n\");\n fprintf(stderr, \"\\n\");\n fprintf(stderr, \" # %s /dev/ttyACM0 | wireshark -k -i -\\n\", argv[0]);\n fprintf(stderr, \"\\n\");\n return 1;\n }\n iomux_filename = argv[1];\n\n pcap = pcap_open_dead(DLT_IEEE802_15_4_NOFCS, -1);\n pcap_dumper = pcap_dump_fopen(pcap, stdout);\n if (pcap_dumper == NULL) {\n pcap_perror(pcap, \"pcap_dump_fopen\");\n return 1;\n }\n\n openlog(PROJECT_NAME, LOG_PERROR, LOG_DAEMON);\n syslog(LOG_INFO, PROJECT_NAME \" [%s] starting\", iomux_filename);\n\n for (;;) {\n if (open_iomux(iomux_filename) == 0) {\n syslog(LOG_INFO, \"opened IOMUX device\");\n open_iomux_error_logged = 0;\n main_loop();\n close(iomux_fd);\n } else if (!open_iomux_error_logged) {\n open_iomux_error_logged = 1;\n syslog(LOG_WARNING, \"open_iomux: %s\", strerror(errno));\n }\n sleep(1);\n }\n}\n"}
81,050
c
/* * Linux driver for Disk-On-Chip devices * * Copyright (C) 1999 Machine Vision Holdings, Inc. * Copyright (C) 2001-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2003 SnapGear Inc * * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $ * * Released under GPL */ #ifndef __MTD_DOC2000_H__ #define __MTD_DOC2000_H__ #include <linux/mtd/mtd.h> #include <linux/mutex.h> #define DoC_Sig1 0 #define DoC_Sig2 1 #define DoC_ChipID 0x1000 #define DoC_DOCStatus 0x1001 #define DoC_DOCControl 0x1002 #define DoC_FloorSelect 0x1003 #define DoC_CDSNControl 0x1004 #define DoC_CDSNDeviceSelect 0x1005 #define DoC_ECCConf 0x1006 #define DoC_2k_ECCStatus 0x1007 #define DoC_CDSNSlowIO 0x100d #define DoC_ECCSyndrome0 0x1010 #define DoC_ECCSyndrome1 0x1011 #define DoC_ECCSyndrome2 0x1012 #define DoC_ECCSyndrome3 0x1013 #define DoC_ECCSyndrome4 0x1014 #define DoC_ECCSyndrome5 0x1015 #define DoC_AliasResolution 0x101b #define DoC_ConfigInput 0x101c #define DoC_ReadPipeInit 0x101d #define DoC_WritePipeTerm 0x101e #define DoC_LastDataRead 0x101f #define DoC_NOP 0x1020 #define DoC_Mil_CDSN_IO 0x0800 #define DoC_2k_CDSN_IO 0x1800 #define DoC_Mplus_NOP 0x1002 #define DoC_Mplus_AliasResolution 0x1004 #define DoC_Mplus_DOCControl 0x1006 #define DoC_Mplus_AccessStatus 0x1008 #define DoC_Mplus_DeviceSelect 0x1008 #define DoC_Mplus_Configuration 0x100a #define DoC_Mplus_OutputControl 0x100c #define DoC_Mplus_FlashControl 0x1020 #define DoC_Mplus_FlashSelect 0x1022 #define DoC_Mplus_FlashCmd 0x1024 #define DoC_Mplus_FlashAddress 0x1026 #define DoC_Mplus_FlashData0 0x1028 #define DoC_Mplus_FlashData1 0x1029 #define DoC_Mplus_ReadPipeInit 0x102a #define DoC_Mplus_LastDataRead 0x102c #define DoC_Mplus_LastDataRead1 0x102d #define DoC_Mplus_WritePipeTerm 0x102e #define DoC_Mplus_ECCSyndrome0 0x1040 #define DoC_Mplus_ECCSyndrome1 0x1041 #define DoC_Mplus_ECCSyndrome2 0x1042 #define DoC_Mplus_ECCSyndrome3 0x1043 #define DoC_Mplus_ECCSyndrome4 0x1044 #define DoC_Mplus_ECCSyndrome5 0x1045 #define DoC_Mplus_ECCConf 0x1046 #define DoC_Mplus_Toggle 0x1046 #define DoC_Mplus_DownloadStatus 0x1074 #define DoC_Mplus_CtrlConfirm 0x1076 #define DoC_Mplus_Power 0x1fff /* How to access the device? * On ARM, it'll be mmap'd directly with 32-bit wide accesses. * On PPC, it's mmap'd and 16-bit wide. * Others use readb/writeb */ #if defined(__arm__) #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)))) #define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0) #define DOC_IOREMAP_LEN 0x8000 #elif defined(__ppc__) #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)))) #define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0) #define DOC_IOREMAP_LEN 0x4000 #else #define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg)) #define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg)) #define DOC_IOREMAP_LEN 0x2000 #endif #if defined(__i386__) || defined(__x86_64__) #define USE_MEMCPY #endif /* These are provided to directly use the DoC_xxx defines */ #define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg) #define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg) #define DOC_MODE_RESET 0 #define DOC_MODE_NORMAL 1 #define DOC_MODE_RESERVED1 2 #define DOC_MODE_RESERVED2 3 #define DOC_MODE_CLR_ERR 0x80 #define DOC_MODE_RST_LAT 0x10 #define DOC_MODE_BDECT 0x08 #define DOC_MODE_MDWREN 0x04 #define DOC_ChipID_Doc2k 0x20 #define DOC_ChipID_Doc2kTSOP 0x21 /* internal number for MTD */ #define DOC_ChipID_DocMil 0x30 #define DOC_ChipID_DocMilPlus32 0x40 #define DOC_ChipID_DocMilPlus16 0x41 #define CDSN_CTRL_FR_B 0x80 #define CDSN_CTRL_FR_B0 0x40 #define CDSN_CTRL_FR_B1 0x80 #define CDSN_CTRL_ECC_IO 0x20 #define CDSN_CTRL_FLASH_IO 0x10 #define CDSN_CTRL_WP 0x08 #define CDSN_CTRL_ALE 0x04 #define CDSN_CTRL_CLE 0x02 #define CDSN_CTRL_CE 0x01 #define DOC_ECC_RESET 0 #define DOC_ECC_ERROR 0x80 #define DOC_ECC_RW 0x20 #define DOC_ECC__EN 0x08 #define DOC_TOGGLE_BIT 0x04 #define DOC_ECC_RESV 0x02 #define DOC_ECC_IGNORE 0x01 #define DOC_FLASH_CE 0x80 #define DOC_FLASH_WP 0x40 #define DOC_FLASH_BANK 0x02 /* We have to also set the reserved bit 1 for enable */ #define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV) #define DOC_ECC_DIS (DOC_ECC_RESV) struct Nand { char floor, chip; unsigned long curadr; unsigned char curmode; /* Also some erase/write/pipeline info when we get that far */ }; #define MAX_FLOORS 4 #define MAX_CHIPS 4 #define MAX_FLOORS_MIL 1 #define MAX_CHIPS_MIL 1 #define MAX_FLOORS_MPLUS 2 #define MAX_CHIPS_MPLUS 1 #define ADDR_COLUMN 1 #define ADDR_PAGE 2 #define ADDR_COLUMN_PAGE 3 struct DiskOnChip { unsigned long physadr; void __iomem *virtadr; unsigned long totlen; unsigned char ChipID; /* Type of DiskOnChip */ int ioreg; unsigned long mfr; /* Flash IDs - only one type of flash per device */ unsigned long id; int chipshift; char page256; char pageadrlen; char interleave; /* Internal interleaving - Millennium Plus style */ unsigned long erasesize; int curfloor; int curchip; int numchips; struct Nand *chips; struct mtd_info *nextdoc; struct mutex lock; }; int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]); #endif /* __MTD_DOC2000_H__ */
32.22
165
(translation_unit) "/*\n * Linux driver for Disk-On-Chip devices\n *\n * Copyright (C) 1999 Machine Vision Holdings, Inc.\n * Copyright (C) 2001-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 SnapGear Inc\n *\n * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $\n *\n * Released under GPL\n */\n\n#ifndef __MTD_DOC2000_H__\n#define __MTD_DOC2000_H__\n\n#include <linux/mtd/mtd.h>\n#include <linux/mutex.h>\n\n#define DoC_Sig1 0\n#define DoC_Sig2 1\n\n#define DoC_ChipID 0x1000\n#define DoC_DOCStatus 0x1001\n#define DoC_DOCControl 0x1002\n#define DoC_FloorSelect 0x1003\n#define DoC_CDSNControl 0x1004\n#define DoC_CDSNDeviceSelect 0x1005\n#define DoC_ECCConf 0x1006\n#define DoC_2k_ECCStatus 0x1007\n\n#define DoC_CDSNSlowIO 0x100d\n#define DoC_ECCSyndrome0 0x1010\n#define DoC_ECCSyndrome1 0x1011\n#define DoC_ECCSyndrome2 0x1012\n#define DoC_ECCSyndrome3 0x1013\n#define DoC_ECCSyndrome4 0x1014\n#define DoC_ECCSyndrome5 0x1015\n#define DoC_AliasResolution 0x101b\n#define DoC_ConfigInput 0x101c\n#define DoC_ReadPipeInit 0x101d\n#define DoC_WritePipeTerm 0x101e\n#define DoC_LastDataRead 0x101f\n#define DoC_NOP 0x1020\n\n#define DoC_Mil_CDSN_IO 0x0800\n#define DoC_2k_CDSN_IO 0x1800\n\n#define DoC_Mplus_NOP 0x1002\n#define DoC_Mplus_AliasResolution 0x1004\n#define DoC_Mplus_DOCControl 0x1006\n#define DoC_Mplus_AccessStatus 0x1008\n#define DoC_Mplus_DeviceSelect 0x1008\n#define DoC_Mplus_Configuration 0x100a\n#define DoC_Mplus_OutputControl 0x100c\n#define DoC_Mplus_FlashControl 0x1020\n#define DoC_Mplus_FlashSelect 0x1022\n#define DoC_Mplus_FlashCmd 0x1024\n#define DoC_Mplus_FlashAddress 0x1026\n#define DoC_Mplus_FlashData0 0x1028\n#define DoC_Mplus_FlashData1 0x1029\n#define DoC_Mplus_ReadPipeInit 0x102a\n#define DoC_Mplus_LastDataRead 0x102c\n#define DoC_Mplus_LastDataRead1 0x102d\n#define DoC_Mplus_WritePipeTerm 0x102e\n#define DoC_Mplus_ECCSyndrome0 0x1040\n#define DoC_Mplus_ECCSyndrome1 0x1041\n#define DoC_Mplus_ECCSyndrome2 0x1042\n#define DoC_Mplus_ECCSyndrome3 0x1043\n#define DoC_Mplus_ECCSyndrome4 0x1044\n#define DoC_Mplus_ECCSyndrome5 0x1045\n#define DoC_Mplus_ECCConf 0x1046\n#define DoC_Mplus_Toggle 0x1046\n#define DoC_Mplus_DownloadStatus 0x1074\n#define DoC_Mplus_CtrlConfirm 0x1076\n#define DoC_Mplus_Power 0x1fff\n\n/* How to access the device?\n * On ARM, it'll be mmap'd directly with 32-bit wide accesses.\n * On PPC, it's mmap'd and 16-bit wide.\n * Others use readb/writeb\n */\n#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif\n\n#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif\n\n/* These are provided to directly use the DoC_xxx defines */\n#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n\n#define DOC_MODE_RESET 0\n#define DOC_MODE_NORMAL 1\n#define DOC_MODE_RESERVED1 2\n#define DOC_MODE_RESERVED2 3\n\n#define DOC_MODE_CLR_ERR 0x80\n#define DOC_MODE_RST_LAT 0x10\n#define DOC_MODE_BDECT 0x08\n#define DOC_MODE_MDWREN 0x04\n\n#define DOC_ChipID_Doc2k 0x20\n#define DOC_ChipID_Doc2kTSOP 0x21 /* internal number for MTD */\n#define DOC_ChipID_DocMil 0x30\n#define DOC_ChipID_DocMilPlus32 0x40\n#define DOC_ChipID_DocMilPlus16 0x41\n\n#define CDSN_CTRL_FR_B 0x80\n#define CDSN_CTRL_FR_B0 0x40\n#define CDSN_CTRL_FR_B1 0x80\n\n#define CDSN_CTRL_ECC_IO 0x20\n#define CDSN_CTRL_FLASH_IO 0x10\n#define CDSN_CTRL_WP 0x08\n#define CDSN_CTRL_ALE 0x04\n#define CDSN_CTRL_CLE 0x02\n#define CDSN_CTRL_CE 0x01\n\n#define DOC_ECC_RESET 0\n#define DOC_ECC_ERROR 0x80\n#define DOC_ECC_RW 0x20\n#define DOC_ECC__EN 0x08\n#define DOC_TOGGLE_BIT 0x04\n#define DOC_ECC_RESV 0x02\n#define DOC_ECC_IGNORE 0x01\n\n#define DOC_FLASH_CE 0x80\n#define DOC_FLASH_WP 0x40\n#define DOC_FLASH_BANK 0x02\n\n/* We have to also set the reserved bit 1 for enable */\n#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n#define DOC_ECC_DIS (DOC_ECC_RESV)\n\nstruct Nand {\n char floor, chip;\n unsigned long curadr;\n unsigned char curmode;\n /* Also some erase/write/pipeline info when we get that far */\n};\n\n#define MAX_FLOORS 4\n#define MAX_CHIPS 4\n\n#define MAX_FLOORS_MIL 1\n#define MAX_CHIPS_MIL 1\n\n#define MAX_FLOORS_MPLUS 2\n#define MAX_CHIPS_MPLUS 1\n\n#define ADDR_COLUMN 1\n#define ADDR_PAGE 2\n#define ADDR_COLUMN_PAGE 3\n\nstruct DiskOnChip {\n unsigned long physadr;\n void __iomem *virtadr;\n unsigned long totlen;\n unsigned char ChipID; /* Type of DiskOnChip */\n int ioreg;\n\n unsigned long mfr; /* Flash IDs - only one type of flash per device */\n unsigned long id;\n int chipshift;\n char page256;\n char pageadrlen;\n char interleave; /* Internal interleaving - Millennium Plus style */\n unsigned long erasesize;\n\n int curfloor;\n int curchip;\n\n int numchips;\n struct Nand *chips;\n struct mtd_info *nextdoc;\n struct mutex lock;\n};\n\nint doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);\n\n#endif /* __MTD_DOC2000_H__ */\n" (comment) "/*\n * Linux driver for Disk-On-Chip devices\n *\n * Copyright (C) 1999 Machine Vision Holdings, Inc.\n * Copyright (C) 2001-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 SnapGear Inc\n *\n * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $\n *\n * Released under GPL\n */" (preproc_ifdef) "#ifndef __MTD_DOC2000_H__\n#define __MTD_DOC2000_H__\n\n#include <linux/mtd/mtd.h>\n#include <linux/mutex.h>\n\n#define DoC_Sig1 0\n#define DoC_Sig2 1\n\n#define DoC_ChipID 0x1000\n#define DoC_DOCStatus 0x1001\n#define DoC_DOCControl 0x1002\n#define DoC_FloorSelect 0x1003\n#define DoC_CDSNControl 0x1004\n#define DoC_CDSNDeviceSelect 0x1005\n#define DoC_ECCConf 0x1006\n#define DoC_2k_ECCStatus 0x1007\n\n#define DoC_CDSNSlowIO 0x100d\n#define DoC_ECCSyndrome0 0x1010\n#define DoC_ECCSyndrome1 0x1011\n#define DoC_ECCSyndrome2 0x1012\n#define DoC_ECCSyndrome3 0x1013\n#define DoC_ECCSyndrome4 0x1014\n#define DoC_ECCSyndrome5 0x1015\n#define DoC_AliasResolution 0x101b\n#define DoC_ConfigInput 0x101c\n#define DoC_ReadPipeInit 0x101d\n#define DoC_WritePipeTerm 0x101e\n#define DoC_LastDataRead 0x101f\n#define DoC_NOP 0x1020\n\n#define DoC_Mil_CDSN_IO 0x0800\n#define DoC_2k_CDSN_IO 0x1800\n\n#define DoC_Mplus_NOP 0x1002\n#define DoC_Mplus_AliasResolution 0x1004\n#define DoC_Mplus_DOCControl 0x1006\n#define DoC_Mplus_AccessStatus 0x1008\n#define DoC_Mplus_DeviceSelect 0x1008\n#define DoC_Mplus_Configuration 0x100a\n#define DoC_Mplus_OutputControl 0x100c\n#define DoC_Mplus_FlashControl 0x1020\n#define DoC_Mplus_FlashSelect 0x1022\n#define DoC_Mplus_FlashCmd 0x1024\n#define DoC_Mplus_FlashAddress 0x1026\n#define DoC_Mplus_FlashData0 0x1028\n#define DoC_Mplus_FlashData1 0x1029\n#define DoC_Mplus_ReadPipeInit 0x102a\n#define DoC_Mplus_LastDataRead 0x102c\n#define DoC_Mplus_LastDataRead1 0x102d\n#define DoC_Mplus_WritePipeTerm 0x102e\n#define DoC_Mplus_ECCSyndrome0 0x1040\n#define DoC_Mplus_ECCSyndrome1 0x1041\n#define DoC_Mplus_ECCSyndrome2 0x1042\n#define DoC_Mplus_ECCSyndrome3 0x1043\n#define DoC_Mplus_ECCSyndrome4 0x1044\n#define DoC_Mplus_ECCSyndrome5 0x1045\n#define DoC_Mplus_ECCConf 0x1046\n#define DoC_Mplus_Toggle 0x1046\n#define DoC_Mplus_DownloadStatus 0x1074\n#define DoC_Mplus_CtrlConfirm 0x1076\n#define DoC_Mplus_Power 0x1fff\n\n/* How to access the device?\n * On ARM, it'll be mmap'd directly with 32-bit wide accesses.\n * On PPC, it's mmap'd and 16-bit wide.\n * Others use readb/writeb\n */\n#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif\n\n#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif\n\n/* These are provided to directly use the DoC_xxx defines */\n#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n\n#define DOC_MODE_RESET 0\n#define DOC_MODE_NORMAL 1\n#define DOC_MODE_RESERVED1 2\n#define DOC_MODE_RESERVED2 3\n\n#define DOC_MODE_CLR_ERR 0x80\n#define DOC_MODE_RST_LAT 0x10\n#define DOC_MODE_BDECT 0x08\n#define DOC_MODE_MDWREN 0x04\n\n#define DOC_ChipID_Doc2k 0x20\n#define DOC_ChipID_Doc2kTSOP 0x21 /* internal number for MTD */\n#define DOC_ChipID_DocMil 0x30\n#define DOC_ChipID_DocMilPlus32 0x40\n#define DOC_ChipID_DocMilPlus16 0x41\n\n#define CDSN_CTRL_FR_B 0x80\n#define CDSN_CTRL_FR_B0 0x40\n#define CDSN_CTRL_FR_B1 0x80\n\n#define CDSN_CTRL_ECC_IO 0x20\n#define CDSN_CTRL_FLASH_IO 0x10\n#define CDSN_CTRL_WP 0x08\n#define CDSN_CTRL_ALE 0x04\n#define CDSN_CTRL_CLE 0x02\n#define CDSN_CTRL_CE 0x01\n\n#define DOC_ECC_RESET 0\n#define DOC_ECC_ERROR 0x80\n#define DOC_ECC_RW 0x20\n#define DOC_ECC__EN 0x08\n#define DOC_TOGGLE_BIT 0x04\n#define DOC_ECC_RESV 0x02\n#define DOC_ECC_IGNORE 0x01\n\n#define DOC_FLASH_CE 0x80\n#define DOC_FLASH_WP 0x40\n#define DOC_FLASH_BANK 0x02\n\n/* We have to also set the reserved bit 1 for enable */\n#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n#define DOC_ECC_DIS (DOC_ECC_RESV)\n\nstruct Nand {\n char floor, chip;\n unsigned long curadr;\n unsigned char curmode;\n /* Also some erase/write/pipeline info when we get that far */\n};\n\n#define MAX_FLOORS 4\n#define MAX_CHIPS 4\n\n#define MAX_FLOORS_MIL 1\n#define MAX_CHIPS_MIL 1\n\n#define MAX_FLOORS_MPLUS 2\n#define MAX_CHIPS_MPLUS 1\n\n#define ADDR_COLUMN 1\n#define ADDR_PAGE 2\n#define ADDR_COLUMN_PAGE 3\n\nstruct DiskOnChip {\n unsigned long physadr;\n void __iomem *virtadr;\n unsigned long totlen;\n unsigned char ChipID; /* Type of DiskOnChip */\n int ioreg;\n\n unsigned long mfr; /* Flash IDs - only one type of flash per device */\n unsigned long id;\n int chipshift;\n char page256;\n char pageadrlen;\n char interleave; /* Internal interleaving - Millennium Plus style */\n unsigned long erasesize;\n\n int curfloor;\n int curchip;\n\n int numchips;\n struct Nand *chips;\n struct mtd_info *nextdoc;\n struct mutex lock;\n};\n\nint doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__MTD_DOC2000_H__" (preproc_def) "#define __MTD_DOC2000_H__\n" (#define) "#define" (identifier) "__MTD_DOC2000_H__" (preproc_include) "#include <linux/mtd/mtd.h>\n" (#include) "#include" (system_lib_string) "<linux/mtd/mtd.h>" (preproc_include) "#include <linux/mutex.h>\n" (#include) "#include" (system_lib_string) "<linux/mutex.h>" (preproc_def) "#define DoC_Sig1 0\n" (#define) "#define" (identifier) "DoC_Sig1" (preproc_arg) "0" (preproc_def) "#define DoC_Sig2 1\n" (#define) "#define" (identifier) "DoC_Sig2" (preproc_arg) "1" (preproc_def) "#define DoC_ChipID 0x1000\n" (#define) "#define" (identifier) "DoC_ChipID" (preproc_arg) "0x1000" (preproc_def) "#define DoC_DOCStatus 0x1001\n" (#define) "#define" (identifier) "DoC_DOCStatus" (preproc_arg) "0x1001" (preproc_def) "#define DoC_DOCControl 0x1002\n" (#define) "#define" (identifier) "DoC_DOCControl" (preproc_arg) "0x1002" (preproc_def) "#define DoC_FloorSelect 0x1003\n" (#define) "#define" (identifier) "DoC_FloorSelect" (preproc_arg) "0x1003" (preproc_def) "#define DoC_CDSNControl 0x1004\n" (#define) "#define" (identifier) "DoC_CDSNControl" (preproc_arg) "0x1004" (preproc_def) "#define DoC_CDSNDeviceSelect 0x1005\n" (#define) "#define" (identifier) "DoC_CDSNDeviceSelect" (preproc_arg) "0x1005" (preproc_def) "#define DoC_ECCConf 0x1006\n" (#define) "#define" (identifier) "DoC_ECCConf" (preproc_arg) "0x1006" (preproc_def) "#define DoC_2k_ECCStatus 0x1007\n" (#define) "#define" (identifier) "DoC_2k_ECCStatus" (preproc_arg) "0x1007" (preproc_def) "#define DoC_CDSNSlowIO 0x100d\n" (#define) "#define" (identifier) "DoC_CDSNSlowIO" (preproc_arg) "0x100d" (preproc_def) "#define DoC_ECCSyndrome0 0x1010\n" (#define) "#define" (identifier) "DoC_ECCSyndrome0" (preproc_arg) "0x1010" (preproc_def) "#define DoC_ECCSyndrome1 0x1011\n" (#define) "#define" (identifier) "DoC_ECCSyndrome1" (preproc_arg) "0x1011" (preproc_def) "#define DoC_ECCSyndrome2 0x1012\n" (#define) "#define" (identifier) "DoC_ECCSyndrome2" (preproc_arg) "0x1012" (preproc_def) "#define DoC_ECCSyndrome3 0x1013\n" (#define) "#define" (identifier) "DoC_ECCSyndrome3" (preproc_arg) "0x1013" (preproc_def) "#define DoC_ECCSyndrome4 0x1014\n" (#define) "#define" (identifier) "DoC_ECCSyndrome4" (preproc_arg) "0x1014" (preproc_def) "#define DoC_ECCSyndrome5 0x1015\n" (#define) "#define" (identifier) "DoC_ECCSyndrome5" (preproc_arg) "0x1015" (preproc_def) "#define DoC_AliasResolution 0x101b\n" (#define) "#define" (identifier) "DoC_AliasResolution" (preproc_arg) "0x101b" (preproc_def) "#define DoC_ConfigInput 0x101c\n" (#define) "#define" (identifier) "DoC_ConfigInput" (preproc_arg) "0x101c" (preproc_def) "#define DoC_ReadPipeInit 0x101d\n" (#define) "#define" (identifier) "DoC_ReadPipeInit" (preproc_arg) "0x101d" (preproc_def) "#define DoC_WritePipeTerm 0x101e\n" (#define) "#define" (identifier) "DoC_WritePipeTerm" (preproc_arg) "0x101e" (preproc_def) "#define DoC_LastDataRead 0x101f\n" (#define) "#define" (identifier) "DoC_LastDataRead" (preproc_arg) "0x101f" (preproc_def) "#define DoC_NOP 0x1020\n" (#define) "#define" (identifier) "DoC_NOP" (preproc_arg) "0x1020" (preproc_def) "#define DoC_Mil_CDSN_IO 0x0800\n" (#define) "#define" (identifier) "DoC_Mil_CDSN_IO" (preproc_arg) "0x0800" (preproc_def) "#define DoC_2k_CDSN_IO 0x1800\n" (#define) "#define" (identifier) "DoC_2k_CDSN_IO" (preproc_arg) "0x1800" (preproc_def) "#define DoC_Mplus_NOP 0x1002\n" (#define) "#define" (identifier) "DoC_Mplus_NOP" (preproc_arg) "0x1002" (preproc_def) "#define DoC_Mplus_AliasResolution 0x1004\n" (#define) "#define" (identifier) "DoC_Mplus_AliasResolution" (preproc_arg) "0x1004" (preproc_def) "#define DoC_Mplus_DOCControl 0x1006\n" (#define) "#define" (identifier) "DoC_Mplus_DOCControl" (preproc_arg) "0x1006" (preproc_def) "#define DoC_Mplus_AccessStatus 0x1008\n" (#define) "#define" (identifier) "DoC_Mplus_AccessStatus" (preproc_arg) "0x1008" (preproc_def) "#define DoC_Mplus_DeviceSelect 0x1008\n" (#define) "#define" (identifier) "DoC_Mplus_DeviceSelect" (preproc_arg) "0x1008" (preproc_def) "#define DoC_Mplus_Configuration 0x100a\n" (#define) "#define" (identifier) "DoC_Mplus_Configuration" (preproc_arg) "0x100a" (preproc_def) "#define DoC_Mplus_OutputControl 0x100c\n" (#define) "#define" (identifier) "DoC_Mplus_OutputControl" (preproc_arg) "0x100c" (preproc_def) "#define DoC_Mplus_FlashControl 0x1020\n" (#define) "#define" (identifier) "DoC_Mplus_FlashControl" (preproc_arg) "0x1020" (preproc_def) "#define DoC_Mplus_FlashSelect 0x1022\n" (#define) "#define" (identifier) "DoC_Mplus_FlashSelect" (preproc_arg) "0x1022" (preproc_def) "#define DoC_Mplus_FlashCmd 0x1024\n" (#define) "#define" (identifier) "DoC_Mplus_FlashCmd" (preproc_arg) "0x1024" (preproc_def) "#define DoC_Mplus_FlashAddress 0x1026\n" (#define) "#define" (identifier) "DoC_Mplus_FlashAddress" (preproc_arg) "0x1026" (preproc_def) "#define DoC_Mplus_FlashData0 0x1028\n" (#define) "#define" (identifier) "DoC_Mplus_FlashData0" (preproc_arg) "0x1028" (preproc_def) "#define DoC_Mplus_FlashData1 0x1029\n" (#define) "#define" (identifier) "DoC_Mplus_FlashData1" (preproc_arg) "0x1029" (preproc_def) "#define DoC_Mplus_ReadPipeInit 0x102a\n" (#define) "#define" (identifier) "DoC_Mplus_ReadPipeInit" (preproc_arg) "0x102a" (preproc_def) "#define DoC_Mplus_LastDataRead 0x102c\n" (#define) "#define" (identifier) "DoC_Mplus_LastDataRead" (preproc_arg) "0x102c" (preproc_def) "#define DoC_Mplus_LastDataRead1 0x102d\n" (#define) "#define" (identifier) "DoC_Mplus_LastDataRead1" (preproc_arg) "0x102d" (preproc_def) "#define DoC_Mplus_WritePipeTerm 0x102e\n" (#define) "#define" (identifier) "DoC_Mplus_WritePipeTerm" (preproc_arg) "0x102e" (preproc_def) "#define DoC_Mplus_ECCSyndrome0 0x1040\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome0" (preproc_arg) "0x1040" (preproc_def) "#define DoC_Mplus_ECCSyndrome1 0x1041\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome1" (preproc_arg) "0x1041" (preproc_def) "#define DoC_Mplus_ECCSyndrome2 0x1042\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome2" (preproc_arg) "0x1042" (preproc_def) "#define DoC_Mplus_ECCSyndrome3 0x1043\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome3" (preproc_arg) "0x1043" (preproc_def) "#define DoC_Mplus_ECCSyndrome4 0x1044\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome4" (preproc_arg) "0x1044" (preproc_def) "#define DoC_Mplus_ECCSyndrome5 0x1045\n" (#define) "#define" (identifier) "DoC_Mplus_ECCSyndrome5" (preproc_arg) "0x1045" (preproc_def) "#define DoC_Mplus_ECCConf 0x1046\n" (#define) "#define" (identifier) "DoC_Mplus_ECCConf" (preproc_arg) "0x1046" (preproc_def) "#define DoC_Mplus_Toggle 0x1046\n" (#define) "#define" (identifier) "DoC_Mplus_Toggle" (preproc_arg) "0x1046" (preproc_def) "#define DoC_Mplus_DownloadStatus 0x1074\n" (#define) "#define" (identifier) "DoC_Mplus_DownloadStatus" (preproc_arg) "0x1074" (preproc_def) "#define DoC_Mplus_CtrlConfirm 0x1076\n" (#define) "#define" (identifier) "DoC_Mplus_CtrlConfirm" (preproc_arg) "0x1076" (preproc_def) "#define DoC_Mplus_Power 0x1fff\n" (#define) "#define" (identifier) "DoC_Mplus_Power" (preproc_arg) "0x1fff" (comment) "/* How to access the device?\n * On ARM, it'll be mmap'd directly with 32-bit wide accesses.\n * On PPC, it's mmap'd and 16-bit wide.\n * Others use readb/writeb\n */" (preproc_if) "#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif" (#if) "#if" (preproc_defined) "defined(__arm__)" (defined) "defined" (() "(" (identifier) "__arm__" ()) ")" ( ) "\n" (preproc_function_def) "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n" (#define) "#define" (identifier) "ReadDOC_" (preproc_params) "(adr, reg)" (() "(" (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))" (preproc_function_def) "#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n" (#define) "#define" (identifier) "WriteDOC_" (preproc_params) "(d, adr, reg)" (() "(" (identifier) "d" (,) "," (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)" (preproc_def) "#define DOC_IOREMAP_LEN 0x8000\n" (#define) "#define" (identifier) "DOC_IOREMAP_LEN" (preproc_arg) "0x8000" (preproc_elif) "#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n" (#elif) "#elif" (preproc_defined) "defined(__ppc__)" (defined) "defined" (() "(" (identifier) "__ppc__" ()) ")" ( ) "\n" (preproc_function_def) "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n" (#define) "#define" (identifier) "ReadDOC_" (preproc_params) "(adr, reg)" (() "(" (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))" (preproc_function_def) "#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n" (#define) "#define" (identifier) "WriteDOC_" (preproc_params) "(d, adr, reg)" (() "(" (identifier) "d" (,) "," (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)" (preproc_def) "#define DOC_IOREMAP_LEN 0x4000\n" (#define) "#define" (identifier) "DOC_IOREMAP_LEN" (preproc_arg) "0x4000" (preproc_else) "#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n" (#else) "#else" (preproc_function_def) "#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n" (#define) "#define" (identifier) "ReadDOC_" (preproc_params) "(adr, reg)" (() "(" (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "readb((void __iomem *)(adr) + (reg))" (preproc_function_def) "#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n" (#define) "#define" (identifier) "WriteDOC_" (preproc_params) "(d, adr, reg)" (() "(" (identifier) "d" (,) "," (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "writeb(d, (void __iomem *)(adr) + (reg))" (preproc_def) "#define DOC_IOREMAP_LEN 0x2000\n" (#define) "#define" (identifier) "DOC_IOREMAP_LEN" (preproc_arg) "0x2000" (#endif) "#endif" (preproc_if) "#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif" (#if) "#if" (binary_expression) "defined(__i386__) || defined(__x86_64__)" (preproc_defined) "defined(__i386__)" (defined) "defined" (() "(" (identifier) "__i386__" ()) ")" (||) "||" (preproc_defined) "defined(__x86_64__)" (defined) "defined" (() "(" (identifier) "__x86_64__" ()) ")" ( ) "\n" (preproc_def) "#define USE_MEMCPY\n" (#define) "#define" (identifier) "USE_MEMCPY" (#endif) "#endif" (comment) "/* These are provided to directly use the DoC_xxx defines */" (preproc_function_def) "#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n" (#define) "#define" (identifier) "ReadDOC" (preproc_params) "(adr, reg)" (() "(" (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "ReadDOC_(adr,DoC_##reg)" (preproc_function_def) "#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n" (#define) "#define" (identifier) "WriteDOC" (preproc_params) "(d, adr, reg)" (() "(" (identifier) "d" (,) "," (identifier) "adr" (,) "," (identifier) "reg" ()) ")" (preproc_arg) "WriteDOC_(d,adr,DoC_##reg)" (preproc_def) "#define DOC_MODE_RESET 0\n" (#define) "#define" (identifier) "DOC_MODE_RESET" (preproc_arg) "0" (preproc_def) "#define DOC_MODE_NORMAL 1\n" (#define) "#define" (identifier) "DOC_MODE_NORMAL" (preproc_arg) "1" (preproc_def) "#define DOC_MODE_RESERVED1 2\n" (#define) "#define" (identifier) "DOC_MODE_RESERVED1" (preproc_arg) "2" (preproc_def) "#define DOC_MODE_RESERVED2 3\n" (#define) "#define" (identifier) "DOC_MODE_RESERVED2" (preproc_arg) "3" (preproc_def) "#define DOC_MODE_CLR_ERR 0x80\n" (#define) "#define" (identifier) "DOC_MODE_CLR_ERR" (preproc_arg) "0x80" (preproc_def) "#define DOC_MODE_RST_LAT 0x10\n" (#define) "#define" (identifier) "DOC_MODE_RST_LAT" (preproc_arg) "0x10" (preproc_def) "#define DOC_MODE_BDECT 0x08\n" (#define) "#define" (identifier) "DOC_MODE_BDECT" (preproc_arg) "0x08" (preproc_def) "#define DOC_MODE_MDWREN 0x04\n" (#define) "#define" (identifier) "DOC_MODE_MDWREN" (preproc_arg) "0x04" (preproc_def) "#define DOC_ChipID_Doc2k 0x20\n" (#define) "#define" (identifier) "DOC_ChipID_Doc2k" (preproc_arg) "0x20" (preproc_def) "#define DOC_ChipID_Doc2kTSOP 0x21 /* internal number for MTD */\n" (#define) "#define" (identifier) "DOC_ChipID_Doc2kTSOP" (preproc_arg) "0x21 " (comment) "/* internal number for MTD */" (preproc_def) "#define DOC_ChipID_DocMil 0x30\n" (#define) "#define" (identifier) "DOC_ChipID_DocMil" (preproc_arg) "0x30" (preproc_def) "#define DOC_ChipID_DocMilPlus32 0x40\n" (#define) "#define" (identifier) "DOC_ChipID_DocMilPlus32" (preproc_arg) "0x40" (preproc_def) "#define DOC_ChipID_DocMilPlus16 0x41\n" (#define) "#define" (identifier) "DOC_ChipID_DocMilPlus16" (preproc_arg) "0x41" (preproc_def) "#define CDSN_CTRL_FR_B 0x80\n" (#define) "#define" (identifier) "CDSN_CTRL_FR_B" (preproc_arg) "0x80" (preproc_def) "#define CDSN_CTRL_FR_B0 0x40\n" (#define) "#define" (identifier) "CDSN_CTRL_FR_B0" (preproc_arg) "0x40" (preproc_def) "#define CDSN_CTRL_FR_B1 0x80\n" (#define) "#define" (identifier) "CDSN_CTRL_FR_B1" (preproc_arg) "0x80" (preproc_def) "#define CDSN_CTRL_ECC_IO 0x20\n" (#define) "#define" (identifier) "CDSN_CTRL_ECC_IO" (preproc_arg) "0x20" (preproc_def) "#define CDSN_CTRL_FLASH_IO 0x10\n" (#define) "#define" (identifier) "CDSN_CTRL_FLASH_IO" (preproc_arg) "0x10" (preproc_def) "#define CDSN_CTRL_WP 0x08\n" (#define) "#define" (identifier) "CDSN_CTRL_WP" (preproc_arg) "0x08" (preproc_def) "#define CDSN_CTRL_ALE 0x04\n" (#define) "#define" (identifier) "CDSN_CTRL_ALE" (preproc_arg) "0x04" (preproc_def) "#define CDSN_CTRL_CLE 0x02\n" (#define) "#define" (identifier) "CDSN_CTRL_CLE" (preproc_arg) "0x02" (preproc_def) "#define CDSN_CTRL_CE 0x01\n" (#define) "#define" (identifier) "CDSN_CTRL_CE" (preproc_arg) "0x01" (preproc_def) "#define DOC_ECC_RESET 0\n" (#define) "#define" (identifier) "DOC_ECC_RESET" (preproc_arg) "0" (preproc_def) "#define DOC_ECC_ERROR 0x80\n" (#define) "#define" (identifier) "DOC_ECC_ERROR" (preproc_arg) "0x80" (preproc_def) "#define DOC_ECC_RW 0x20\n" (#define) "#define" (identifier) "DOC_ECC_RW" (preproc_arg) "0x20" (preproc_def) "#define DOC_ECC__EN 0x08\n" (#define) "#define" (identifier) "DOC_ECC__EN" (preproc_arg) "0x08" (preproc_def) "#define DOC_TOGGLE_BIT 0x04\n" (#define) "#define" (identifier) "DOC_TOGGLE_BIT" (preproc_arg) "0x04" (preproc_def) "#define DOC_ECC_RESV 0x02\n" (#define) "#define" (identifier) "DOC_ECC_RESV" (preproc_arg) "0x02" (preproc_def) "#define DOC_ECC_IGNORE 0x01\n" (#define) "#define" (identifier) "DOC_ECC_IGNORE" (preproc_arg) "0x01" (preproc_def) "#define DOC_FLASH_CE 0x80\n" (#define) "#define" (identifier) "DOC_FLASH_CE" (preproc_arg) "0x80" (preproc_def) "#define DOC_FLASH_WP 0x40\n" (#define) "#define" (identifier) "DOC_FLASH_WP" (preproc_arg) "0x40" (preproc_def) "#define DOC_FLASH_BANK 0x02\n" (#define) "#define" (identifier) "DOC_FLASH_BANK" (preproc_arg) "0x02" (comment) "/* We have to also set the reserved bit 1 for enable */" (preproc_def) "#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n" (#define) "#define" (identifier) "DOC_ECC_EN" (preproc_arg) "(DOC_ECC__EN | DOC_ECC_RESV)" (preproc_def) "#define DOC_ECC_DIS (DOC_ECC_RESV)\n" (#define) "#define" (identifier) "DOC_ECC_DIS" (preproc_arg) "(DOC_ECC_RESV)" (struct_specifier) "struct Nand {\n char floor, chip;\n unsigned long curadr;\n unsigned char curmode;\n /* Also some erase/write/pipeline info when we get that far */\n}" (struct) "struct" (type_identifier) "Nand" (field_declaration_list) "{\n char floor, chip;\n unsigned long curadr;\n unsigned char curmode;\n /* Also some erase/write/pipeline info when we get that far */\n}" ({) "{" (field_declaration) "char floor, chip;" (primitive_type) "char" (field_identifier) "floor" (,) "," (field_identifier) "chip" (;) ";" (field_declaration) "unsigned long curadr;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "curadr" (;) ";" (field_declaration) "unsigned char curmode;" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (field_identifier) "curmode" (;) ";" (comment) "/* Also some erase/write/pipeline info when we get that far */" (}) "}" (;) ";" (preproc_def) "#define MAX_FLOORS 4\n" (#define) "#define" (identifier) "MAX_FLOORS" (preproc_arg) "4" (preproc_def) "#define MAX_CHIPS 4\n" (#define) "#define" (identifier) "MAX_CHIPS" (preproc_arg) "4" (preproc_def) "#define MAX_FLOORS_MIL 1\n" (#define) "#define" (identifier) "MAX_FLOORS_MIL" (preproc_arg) "1" (preproc_def) "#define MAX_CHIPS_MIL 1\n" (#define) "#define" (identifier) "MAX_CHIPS_MIL" (preproc_arg) "1" (preproc_def) "#define MAX_FLOORS_MPLUS 2\n" (#define) "#define" (identifier) "MAX_FLOORS_MPLUS" (preproc_arg) "2" (preproc_def) "#define MAX_CHIPS_MPLUS 1\n" (#define) "#define" (identifier) "MAX_CHIPS_MPLUS" (preproc_arg) "1" (preproc_def) "#define ADDR_COLUMN 1\n" (#define) "#define" (identifier) "ADDR_COLUMN" (preproc_arg) "1" (preproc_def) "#define ADDR_PAGE 2\n" (#define) "#define" (identifier) "ADDR_PAGE" (preproc_arg) "2" (preproc_def) "#define ADDR_COLUMN_PAGE 3\n" (#define) "#define" (identifier) "ADDR_COLUMN_PAGE" (preproc_arg) "3" (struct_specifier) "struct DiskOnChip {\n unsigned long physadr;\n void __iomem *virtadr;\n unsigned long totlen;\n unsigned char ChipID; /* Type of DiskOnChip */\n int ioreg;\n\n unsigned long mfr; /* Flash IDs - only one type of flash per device */\n unsigned long id;\n int chipshift;\n char page256;\n char pageadrlen;\n char interleave; /* Internal interleaving - Millennium Plus style */\n unsigned long erasesize;\n\n int curfloor;\n int curchip;\n\n int numchips;\n struct Nand *chips;\n struct mtd_info *nextdoc;\n struct mutex lock;\n}" (struct) "struct" (type_identifier) "DiskOnChip" (field_declaration_list) "{\n unsigned long physadr;\n void __iomem *virtadr;\n unsigned long totlen;\n unsigned char ChipID; /* Type of DiskOnChip */\n int ioreg;\n\n unsigned long mfr; /* Flash IDs - only one type of flash per device */\n unsigned long id;\n int chipshift;\n char page256;\n char pageadrlen;\n char interleave; /* Internal interleaving - Millennium Plus style */\n unsigned long erasesize;\n\n int curfloor;\n int curchip;\n\n int numchips;\n struct Nand *chips;\n struct mtd_info *nextdoc;\n struct mutex lock;\n}" ({) "{" (field_declaration) "unsigned long physadr;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "physadr" (;) ";" (field_declaration) "void __iomem *virtadr;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*virtadr" (*) "*" (field_identifier) "virtadr" (;) ";" (field_declaration) "unsigned long totlen;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "totlen" (;) ";" (field_declaration) "unsigned char ChipID;" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (field_identifier) "ChipID" (;) ";" (comment) "/* Type of DiskOnChip */" (field_declaration) "int ioreg;" (primitive_type) "int" (field_identifier) "ioreg" (;) ";" (field_declaration) "unsigned long mfr;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "mfr" (;) ";" (comment) "/* Flash IDs - only one type of flash per device */" (field_declaration) "unsigned long id;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "id" (;) ";" (field_declaration) "int chipshift;" (primitive_type) "int" (field_identifier) "chipshift" (;) ";" (field_declaration) "char page256;" (primitive_type) "char" (field_identifier) "page256" (;) ";" (field_declaration) "char pageadrlen;" (primitive_type) "char" (field_identifier) "pageadrlen" (;) ";" (field_declaration) "char interleave;" (primitive_type) "char" (field_identifier) "interleave" (;) ";" (comment) "/* Internal interleaving - Millennium Plus style */" (field_declaration) "unsigned long erasesize;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "erasesize" (;) ";" (field_declaration) "int curfloor;" (primitive_type) "int" (field_identifier) "curfloor" (;) ";" (field_declaration) "int curchip;" (primitive_type) "int" (field_identifier) "curchip" (;) ";" (field_declaration) "int numchips;" (primitive_type) "int" (field_identifier) "numchips" (;) ";" (field_declaration) "struct Nand *chips;" (struct_specifier) "struct Nand" (struct) "struct" (type_identifier) "Nand" (pointer_declarator) "*chips" (*) "*" (field_identifier) "chips" (;) ";" (field_declaration) "struct mtd_info *nextdoc;" (struct_specifier) "struct mtd_info" (struct) "struct" (type_identifier) "mtd_info" (pointer_declarator) "*nextdoc" (*) "*" (field_identifier) "nextdoc" (;) ";" (field_declaration) "struct mutex lock;" (struct_specifier) "struct mutex" (struct) "struct" (type_identifier) "mutex" (field_identifier) "lock" (;) ";" (}) "}" (;) ";" (declaration) "int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);" (primitive_type) "int" (function_declarator) "doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6])" (identifier) "doc_decode_ecc" (parameter_list) "(unsigned char sector[512], unsigned char ecc1[6])" (() "(" (parameter_declaration) "unsigned char sector[512]" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (array_declarator) "sector[512]" (identifier) "sector" ([) "[" (number_literal) "512" (]) "]" (,) "," (parameter_declaration) "unsigned char ecc1[6]" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (array_declarator) "ecc1[6]" (identifier) "ecc1" ([) "[" (number_literal) "6" (]) "]" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __MTD_DOC2000_H__ */"
703
1
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 32.22, "nodes": 618, "errors": 0, "source_hash": "1fb78055dd87629f392dfd4bfab7dbbd24f8945da7b1ed0a094296825e6f0460", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __MTD_DOC2000_H__\n#define __MTD_DOC2000_H__\n\n#include <linux/mtd/mtd.h>\n#include <linux/mutex.h>\n\n#define DoC_Sig1 0\n#define DoC_Sig2 1\n\n#define DoC_ChipID\t\t0x1000\n#define DoC_DOCStatus\t\t0x1001\n#define DoC_DOCControl\t\t0x1002\n#define DoC_FloorSelect\t\t0x1003\n#define DoC_CDSNControl\t\t0x1004\n#define DoC_CDSNDeviceSelect \t0x1005\n#define DoC_ECCConf \t\t0x1006\n#define DoC_2k_ECCStatus\t0x1007\n\n#define DoC_CDSNSlowIO\t\t0x100d\n#define DoC_ECCSyndrome0\t0x1010\n#define DoC_ECCSyndrome1\t0x1011\n#define DoC_ECCSyndrome2\t0x1012\n#define DoC_ECCSyndrome3\t0x1013\n#define DoC_ECCSyndrome4\t0x1014\n#define DoC_ECCSyndrome5\t0x1015\n#define DoC_AliasResolution \t0x101b\n#define DoC_ConfigInput\t\t0x101c\n#define DoC_ReadPipeInit \t0x101d\n#define DoC_WritePipeTerm \t0x101e\n#define DoC_LastDataRead \t0x101f\n#define DoC_NOP \t\t0x1020\n\n#define DoC_Mil_CDSN_IO \t0x0800\n#define DoC_2k_CDSN_IO \t\t0x1800\n\n#define DoC_Mplus_NOP\t\t\t0x1002\n#define DoC_Mplus_AliasResolution\t0x1004\n#define DoC_Mplus_DOCControl\t\t0x1006\n#define DoC_Mplus_AccessStatus\t\t0x1008\n#define DoC_Mplus_DeviceSelect\t\t0x1008\n#define DoC_Mplus_Configuration\t\t0x100a\n#define DoC_Mplus_OutputControl\t\t0x100c\n#define DoC_Mplus_FlashControl\t\t0x1020\n#define DoC_Mplus_FlashSelect \t\t0x1022\n#define DoC_Mplus_FlashCmd\t\t0x1024\n#define DoC_Mplus_FlashAddress\t\t0x1026\n#define DoC_Mplus_FlashData0\t\t0x1028\n#define DoC_Mplus_FlashData1\t\t0x1029\n#define DoC_Mplus_ReadPipeInit\t\t0x102a\n#define DoC_Mplus_LastDataRead\t\t0x102c\n#define DoC_Mplus_LastDataRead1\t\t0x102d\n#define DoC_Mplus_WritePipeTerm \t0x102e\n#define DoC_Mplus_ECCSyndrome0\t\t0x1040\n#define DoC_Mplus_ECCSyndrome1\t\t0x1041\n#define DoC_Mplus_ECCSyndrome2\t\t0x1042\n#define DoC_Mplus_ECCSyndrome3\t\t0x1043\n#define DoC_Mplus_ECCSyndrome4\t\t0x1044\n#define DoC_Mplus_ECCSyndrome5\t\t0x1045\n#define DoC_Mplus_ECCConf \t\t0x1046\n#define DoC_Mplus_Toggle\t\t0x1046\n#define DoC_Mplus_DownloadStatus\t0x1074\n#define DoC_Mplus_CtrlConfirm\t\t0x1076\n#define DoC_Mplus_Power\t\t\t0x1fff\n\n/* How to access the device?\n * On ARM, it'll be mmap'd directly with 32-bit wide accesses.\n * On PPC, it's mmap'd and 16-bit wide.\n * Others use readb/writeb\n */\n#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif\n\n#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif\n\n/* These are provided to directly use the DoC_xxx defines */\n#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n\n#define DOC_MODE_RESET \t\t0\n#define DOC_MODE_NORMAL \t1\n#define DOC_MODE_RESERVED1 \t2\n#define DOC_MODE_RESERVED2 \t3\n\n#define DOC_MODE_CLR_ERR \t0x80\n#define\tDOC_MODE_RST_LAT\t0x10\n#define\tDOC_MODE_BDECT\t\t0x08\n#define DOC_MODE_MDWREN \t0x04\n\n#define DOC_ChipID_Doc2k \t0x20\n#define DOC_ChipID_Doc2kTSOP \t0x21\t/* internal number for MTD */\n#define DOC_ChipID_DocMil \t0x30\n#define DOC_ChipID_DocMilPlus32\t0x40\n#define DOC_ChipID_DocMilPlus16\t0x41\n\n#define CDSN_CTRL_FR_B \t\t0x80\n#define CDSN_CTRL_FR_B0\t\t0x40\n#define CDSN_CTRL_FR_B1\t\t0x80\n\n#define CDSN_CTRL_ECC_IO \t0x20\n#define CDSN_CTRL_FLASH_IO \t0x10\n#define CDSN_CTRL_WP \t\t0x08\n#define CDSN_CTRL_ALE \t\t0x04\n#define CDSN_CTRL_CLE \t\t0x02\n#define CDSN_CTRL_CE \t\t0x01\n\n#define DOC_ECC_RESET \t\t0\n#define DOC_ECC_ERROR \t\t0x80\n#define DOC_ECC_RW \t\t0x20\n#define DOC_ECC__EN \t\t0x08\n#define DOC_TOGGLE_BIT \t\t0x04\n#define DOC_ECC_RESV \t\t0x02\n#define DOC_ECC_IGNORE\t\t0x01\n\n#define DOC_FLASH_CE\t\t0x80\n#define DOC_FLASH_WP\t\t0x40\n#define DOC_FLASH_BANK\t\t0x02\n\n/* We have to also set the reserved bit 1 for enable */\n#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n#define DOC_ECC_DIS (DOC_ECC_RESV)\n\nstruct Nand {\n\tchar floor, chip;\n\tunsigned long curadr;\n\tunsigned char curmode;\n\t/* Also some erase/write/pipeline info when we get that far */\n};\n\n#define MAX_FLOORS 4\n#define MAX_CHIPS 4\n\n#define MAX_FLOORS_MIL 1\n#define MAX_CHIPS_MIL 1\n\n#define MAX_FLOORS_MPLUS 2\n#define MAX_CHIPS_MPLUS 1\n\n#define ADDR_COLUMN 1\n#define ADDR_PAGE 2\n#define ADDR_COLUMN_PAGE 3\n\nstruct DiskOnChip {\n\tunsigned long physadr;\n\tvoid __iomem *virtadr;\n\tunsigned long totlen;\n\tunsigned char ChipID; /* Type of DiskOnChip */\n\tint ioreg;\n\n\tunsigned long mfr; /* Flash IDs - only one type of flash per device */\n\tunsigned long id;\n\tint chipshift;\n\tchar page256;\n\tchar pageadrlen;\n\tchar interleave; /* Internal interleaving - Millennium Plus style */\n\tunsigned long erasesize;\n\n\tint curfloor;\n\tint curchip;\n\n\tint numchips;\n\tstruct Nand *chips;\n\tstruct mtd_info *nextdoc;\n\tstruct mutex lock;\n};\n\nint doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220, 224, 296, 311, 318, 326, 330, 334, 338, 342, 346, 350, 354, 358, 362, 366, 370, 374, 378, 382, 386, 390, 394, 398, 402, 406, 410, 414, 418, 422, 426, 430, 434, 438, 442, 446, 450, 454, 458, 462, 479, 483, 487, 491, 495, 499, 503, 507, 511, 515, 598, 617], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 2, "type": "identifier", "text": "__MTD_DOC2000_H__", "parent": 0, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define __MTD_DOC2000_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 5, "type": "identifier", "text": "__MTD_DOC2000_H__", "parent": 3, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/mtd/mtd.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/mtd/mtd.h>", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/mutex.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/mutex.h>", "parent": 9, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 24}}, {"id": 12, "type": "preproc_def", "text": "#define DoC_Sig1 0\n", "parent": 0, "children": [13, 14, 15], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 14, "type": "identifier", "text": "DoC_Sig1", "parent": 12, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 15, "type": "preproc_arg", "text": "0", "parent": 12, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 16, "type": "preproc_def", "text": "#define DoC_Sig2 1\n", "parent": 0, "children": [17, 18, 19], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 18, "type": "identifier", "text": "DoC_Sig2", "parent": 16, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 19, "type": "preproc_arg", "text": "1", "parent": 16, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 20, "type": "preproc_def", "text": "#define DoC_ChipID\t\t0x1000\n", "parent": 0, "children": [21, 22, 23], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 22, "type": "identifier", "text": "DoC_ChipID", "parent": 20, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 18}}, {"id": 23, "type": "preproc_arg", "text": "0x1000", "parent": 20, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 26}}, {"id": 24, "type": "preproc_def", "text": "#define DoC_DOCStatus\t\t0x1001\n", "parent": 0, "children": [25, 26, 27], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 26, "type": "identifier", "text": "DoC_DOCStatus", "parent": 24, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 21}}, {"id": 27, "type": "preproc_arg", "text": "0x1001", "parent": 24, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 29}}, {"id": 28, "type": "preproc_def", "text": "#define DoC_DOCControl\t\t0x1002\n", "parent": 0, "children": [29, 30, 31], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 30, "type": "identifier", "text": "DoC_DOCControl", "parent": 28, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 22}}, {"id": 31, "type": "preproc_arg", "text": "0x1002", "parent": 28, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 30}}, {"id": 32, "type": "preproc_def", "text": "#define DoC_FloorSelect\t\t0x1003\n", "parent": 0, "children": [33, 34, 35], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 34, "type": "identifier", "text": "DoC_FloorSelect", "parent": 32, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 23}}, {"id": 35, "type": "preproc_arg", "text": "0x1003", "parent": 32, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 31}}, {"id": 36, "type": "preproc_def", "text": "#define DoC_CDSNControl\t\t0x1004\n", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 38, "type": "identifier", "text": "DoC_CDSNControl", "parent": 36, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 23}}, {"id": 39, "type": "preproc_arg", "text": "0x1004", "parent": 36, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 31}}, {"id": 40, "type": "preproc_def", "text": "#define DoC_CDSNDeviceSelect \t0x1005\n", "parent": 0, "children": [41, 42, 43], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 42, "type": "identifier", "text": "DoC_CDSNDeviceSelect", "parent": 40, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 28}}, {"id": 43, "type": "preproc_arg", "text": "0x1005", "parent": 40, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 36}}, {"id": 44, "type": "preproc_def", "text": "#define DoC_ECCConf \t\t0x1006\n", "parent": 0, "children": [45, 46, 47], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 46, "type": "identifier", "text": "DoC_ECCConf", "parent": 44, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 19}}, {"id": 47, "type": "preproc_arg", "text": "0x1006", "parent": 44, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 28}}, {"id": 48, "type": "preproc_def", "text": "#define DoC_2k_ECCStatus\t0x1007\n", "parent": 0, "children": [49, 50, 51], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 50, "type": "identifier", "text": "DoC_2k_ECCStatus", "parent": 48, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 24}}, {"id": 51, "type": "preproc_arg", "text": "0x1007", "parent": 48, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 31}}, {"id": 52, "type": "preproc_def", "text": "#define DoC_CDSNSlowIO\t\t0x100d\n", "parent": 0, "children": [53, 54, 55], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 54, "type": "identifier", "text": "DoC_CDSNSlowIO", "parent": 52, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 22}}, {"id": 55, "type": "preproc_arg", "text": "0x100d", "parent": 52, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 30}}, {"id": 56, "type": "preproc_def", "text": "#define DoC_ECCSyndrome0\t0x1010\n", "parent": 0, "children": [57, 58, 59], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 58, "type": "identifier", "text": "DoC_ECCSyndrome0", "parent": 56, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 24}}, {"id": 59, "type": "preproc_arg", "text": "0x1010", "parent": 56, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 31}}, {"id": 60, "type": "preproc_def", "text": "#define DoC_ECCSyndrome1\t0x1011\n", "parent": 0, "children": [61, 62, 63], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 62, "type": "identifier", "text": "DoC_ECCSyndrome1", "parent": 60, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 24}}, {"id": 63, "type": "preproc_arg", "text": "0x1011", "parent": 60, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 31}}, {"id": 64, "type": "preproc_def", "text": "#define DoC_ECCSyndrome2\t0x1012\n", "parent": 0, "children": [65, 66, 67], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 66, "type": "identifier", "text": "DoC_ECCSyndrome2", "parent": 64, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 24}}, {"id": 67, "type": "preproc_arg", "text": "0x1012", "parent": 64, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 31}}, {"id": 68, "type": "preproc_def", "text": "#define DoC_ECCSyndrome3\t0x1013\n", "parent": 0, "children": [69, 70, 71], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 70, "type": "identifier", "text": "DoC_ECCSyndrome3", "parent": 68, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 24}}, {"id": 71, "type": "preproc_arg", "text": "0x1013", "parent": 68, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 31}}, {"id": 72, "type": "preproc_def", "text": "#define DoC_ECCSyndrome4\t0x1014\n", "parent": 0, "children": [73, 74, 75], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 74, "type": "identifier", "text": "DoC_ECCSyndrome4", "parent": 72, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 24}}, {"id": 75, "type": "preproc_arg", "text": "0x1014", "parent": 72, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 31}}, {"id": 76, "type": "preproc_def", "text": "#define DoC_ECCSyndrome5\t0x1015\n", "parent": 0, "children": [77, 78, 79], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 78, "type": "identifier", "text": "DoC_ECCSyndrome5", "parent": 76, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 24}}, {"id": 79, "type": "preproc_arg", "text": "0x1015", "parent": 76, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 31}}, {"id": 80, "type": "preproc_def", "text": "#define DoC_AliasResolution \t0x101b\n", "parent": 0, "children": [81, 82, 83], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 82, "type": "identifier", "text": "DoC_AliasResolution", "parent": 80, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 27}}, {"id": 83, "type": "preproc_arg", "text": "0x101b", "parent": 80, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 35}}, {"id": 84, "type": "preproc_def", "text": "#define DoC_ConfigInput\t\t0x101c\n", "parent": 0, "children": [85, 86, 87], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 86, "type": "identifier", "text": "DoC_ConfigInput", "parent": 84, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 87, "type": "preproc_arg", "text": "0x101c", "parent": 84, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 31}}, {"id": 88, "type": "preproc_def", "text": "#define DoC_ReadPipeInit \t0x101d\n", "parent": 0, "children": [89, 90, 91], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 90, "type": "identifier", "text": "DoC_ReadPipeInit", "parent": 88, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 24}}, {"id": 91, "type": "preproc_arg", "text": "0x101d", "parent": 88, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 32}}, {"id": 92, "type": "preproc_def", "text": "#define DoC_WritePipeTerm \t0x101e\n", "parent": 0, "children": [93, 94, 95], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 93, "type": "#define", "text": "#define", "parent": 92, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 94, "type": "identifier", "text": "DoC_WritePipeTerm", "parent": 92, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 25}}, {"id": 95, "type": "preproc_arg", "text": "0x101e", "parent": 92, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 33}}, {"id": 96, "type": "preproc_def", "text": "#define DoC_LastDataRead \t0x101f\n", "parent": 0, "children": [97, 98, 99], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 97, "type": "#define", "text": "#define", "parent": 96, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 98, "type": "identifier", "text": "DoC_LastDataRead", "parent": 96, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 24}}, {"id": 99, "type": "preproc_arg", "text": "0x101f", "parent": 96, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 32}}, {"id": 100, "type": "preproc_def", "text": "#define DoC_NOP \t\t0x1020\n", "parent": 0, "children": [101, 102, 103], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 101, "type": "#define", "text": "#define", "parent": 100, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 102, "type": "identifier", "text": "DoC_NOP", "parent": 100, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 103, "type": "preproc_arg", "text": "0x1020", "parent": 100, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 24}}, {"id": 104, "type": "preproc_def", "text": "#define DoC_Mil_CDSN_IO \t0x0800\n", "parent": 0, "children": [105, 106, 107], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 105, "type": "#define", "text": "#define", "parent": 104, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 106, "type": "identifier", "text": "DoC_Mil_CDSN_IO", "parent": 104, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 23}}, {"id": 107, "type": "preproc_arg", "text": "0x0800", "parent": 104, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 31}}, {"id": 108, "type": "preproc_def", "text": "#define DoC_2k_CDSN_IO \t\t0x1800\n", "parent": 0, "children": [109, 110, 111], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 109, "type": "#define", "text": "#define", "parent": 108, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 110, "type": "identifier", "text": "DoC_2k_CDSN_IO", "parent": 108, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 22}}, {"id": 111, "type": "preproc_arg", "text": "0x1800", "parent": 108, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 31}}, {"id": 112, "type": "preproc_def", "text": "#define DoC_Mplus_NOP\t\t\t0x1002\n", "parent": 0, "children": [113, 114, 115], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 113, "type": "#define", "text": "#define", "parent": 112, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 114, "type": "identifier", "text": "DoC_Mplus_NOP", "parent": 112, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 21}}, {"id": 115, "type": "preproc_arg", "text": "0x1002", "parent": 112, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 30}}, {"id": 116, "type": "preproc_def", "text": "#define DoC_Mplus_AliasResolution\t0x1004\n", "parent": 0, "children": [117, 118, 119], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 117, "type": "#define", "text": "#define", "parent": 116, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 118, "type": "identifier", "text": "DoC_Mplus_AliasResolution", "parent": 116, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 33}}, {"id": 119, "type": "preproc_arg", "text": "0x1004", "parent": 116, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 40}}, {"id": 120, "type": "preproc_def", "text": "#define DoC_Mplus_DOCControl\t\t0x1006\n", "parent": 0, "children": [121, 122, 123], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 121, "type": "#define", "text": "#define", "parent": 120, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 122, "type": "identifier", "text": "DoC_Mplus_DOCControl", "parent": 120, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 28}}, {"id": 123, "type": "preproc_arg", "text": "0x1006", "parent": 120, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 36}}, {"id": 124, "type": "preproc_def", "text": "#define DoC_Mplus_AccessStatus\t\t0x1008\n", "parent": 0, "children": [125, 126, 127], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 126, "type": "identifier", "text": "DoC_Mplus_AccessStatus", "parent": 124, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 30}}, {"id": 127, "type": "preproc_arg", "text": "0x1008", "parent": 124, "children": [], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 38}}, {"id": 128, "type": "preproc_def", "text": "#define DoC_Mplus_DeviceSelect\t\t0x1008\n", "parent": 0, "children": [129, 130, 131], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 129, "type": "#define", "text": "#define", "parent": 128, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 130, "type": "identifier", "text": "DoC_Mplus_DeviceSelect", "parent": 128, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 30}}, {"id": 131, "type": "preproc_arg", "text": "0x1008", "parent": 128, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 38}}, {"id": 132, "type": "preproc_def", "text": "#define DoC_Mplus_Configuration\t\t0x100a\n", "parent": 0, "children": [133, 134, 135], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 133, "type": "#define", "text": "#define", "parent": 132, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 134, "type": "identifier", "text": "DoC_Mplus_Configuration", "parent": 132, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 31}}, {"id": 135, "type": "preproc_arg", "text": "0x100a", "parent": 132, "children": [], "start_point": {"row": 53, "column": 33}, "end_point": {"row": 53, "column": 39}}, {"id": 136, "type": "preproc_def", "text": "#define DoC_Mplus_OutputControl\t\t0x100c\n", "parent": 0, "children": [137, 138, 139], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 137, "type": "#define", "text": "#define", "parent": 136, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 138, "type": "identifier", "text": "DoC_Mplus_OutputControl", "parent": 136, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 31}}, {"id": 139, "type": "preproc_arg", "text": "0x100c", "parent": 136, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 39}}, {"id": 140, "type": "preproc_def", "text": "#define DoC_Mplus_FlashControl\t\t0x1020\n", "parent": 0, "children": [141, 142, 143], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 141, "type": "#define", "text": "#define", "parent": 140, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 142, "type": "identifier", "text": "DoC_Mplus_FlashControl", "parent": 140, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 30}}, {"id": 143, "type": "preproc_arg", "text": "0x1020", "parent": 140, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 38}}, {"id": 144, "type": "preproc_def", "text": "#define DoC_Mplus_FlashSelect \t\t0x1022\n", "parent": 0, "children": [145, 146, 147], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 145, "type": "#define", "text": "#define", "parent": 144, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 146, "type": "identifier", "text": "DoC_Mplus_FlashSelect", "parent": 144, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 29}}, {"id": 147, "type": "preproc_arg", "text": "0x1022", "parent": 144, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 38}}, {"id": 148, "type": "preproc_def", "text": "#define DoC_Mplus_FlashCmd\t\t0x1024\n", "parent": 0, "children": [149, 150, 151], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 149, "type": "#define", "text": "#define", "parent": 148, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 150, "type": "identifier", "text": "DoC_Mplus_FlashCmd", "parent": 148, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 26}}, {"id": 151, "type": "preproc_arg", "text": "0x1024", "parent": 148, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 34}}, {"id": 152, "type": "preproc_def", "text": "#define DoC_Mplus_FlashAddress\t\t0x1026\n", "parent": 0, "children": [153, 154, 155], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 153, "type": "#define", "text": "#define", "parent": 152, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 154, "type": "identifier", "text": "DoC_Mplus_FlashAddress", "parent": 152, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 30}}, {"id": 155, "type": "preproc_arg", "text": "0x1026", "parent": 152, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 38}}, {"id": 156, "type": "preproc_def", "text": "#define DoC_Mplus_FlashData0\t\t0x1028\n", "parent": 0, "children": [157, 158, 159], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 157, "type": "#define", "text": "#define", "parent": 156, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 158, "type": "identifier", "text": "DoC_Mplus_FlashData0", "parent": 156, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 28}}, {"id": 159, "type": "preproc_arg", "text": "0x1028", "parent": 156, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 36}}, {"id": 160, "type": "preproc_def", "text": "#define DoC_Mplus_FlashData1\t\t0x1029\n", "parent": 0, "children": [161, 162, 163], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 161, "type": "#define", "text": "#define", "parent": 160, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 162, "type": "identifier", "text": "DoC_Mplus_FlashData1", "parent": 160, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 28}}, {"id": 163, "type": "preproc_arg", "text": "0x1029", "parent": 160, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 36}}, {"id": 164, "type": "preproc_def", "text": "#define DoC_Mplus_ReadPipeInit\t\t0x102a\n", "parent": 0, "children": [165, 166, 167], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 165, "type": "#define", "text": "#define", "parent": 164, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 166, "type": "identifier", "text": "DoC_Mplus_ReadPipeInit", "parent": 164, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 30}}, {"id": 167, "type": "preproc_arg", "text": "0x102a", "parent": 164, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 38}}, {"id": 168, "type": "preproc_def", "text": "#define DoC_Mplus_LastDataRead\t\t0x102c\n", "parent": 0, "children": [169, 170, 171], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 169, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 170, "type": "identifier", "text": "DoC_Mplus_LastDataRead", "parent": 168, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 30}}, {"id": 171, "type": "preproc_arg", "text": "0x102c", "parent": 168, "children": [], "start_point": {"row": 62, "column": 32}, "end_point": {"row": 62, "column": 38}}, {"id": 172, "type": "preproc_def", "text": "#define DoC_Mplus_LastDataRead1\t\t0x102d\n", "parent": 0, "children": [173, 174, 175], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 173, "type": "#define", "text": "#define", "parent": 172, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 174, "type": "identifier", "text": "DoC_Mplus_LastDataRead1", "parent": 172, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 31}}, {"id": 175, "type": "preproc_arg", "text": "0x102d", "parent": 172, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 39}}, {"id": 176, "type": "preproc_def", "text": "#define DoC_Mplus_WritePipeTerm \t0x102e\n", "parent": 0, "children": [177, 178, 179], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 177, "type": "#define", "text": "#define", "parent": 176, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 178, "type": "identifier", "text": "DoC_Mplus_WritePipeTerm", "parent": 176, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 31}}, {"id": 179, "type": "preproc_arg", "text": "0x102e", "parent": 176, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 39}}, {"id": 180, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome0\t\t0x1040\n", "parent": 0, "children": [181, 182, 183], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 181, "type": "#define", "text": "#define", "parent": 180, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 182, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome0", "parent": 180, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 30}}, {"id": 183, "type": "preproc_arg", "text": "0x1040", "parent": 180, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 38}}, {"id": 184, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome1\t\t0x1041\n", "parent": 0, "children": [185, 186, 187], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 185, "type": "#define", "text": "#define", "parent": 184, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 186, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome1", "parent": 184, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 30}}, {"id": 187, "type": "preproc_arg", "text": "0x1041", "parent": 184, "children": [], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 38}}, {"id": 188, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome2\t\t0x1042\n", "parent": 0, "children": [189, 190, 191], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 189, "type": "#define", "text": "#define", "parent": 188, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 190, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome2", "parent": 188, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 30}}, {"id": 191, "type": "preproc_arg", "text": "0x1042", "parent": 188, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 38}}, {"id": 192, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome3\t\t0x1043\n", "parent": 0, "children": [193, 194, 195], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 193, "type": "#define", "text": "#define", "parent": 192, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 194, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome3", "parent": 192, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 30}}, {"id": 195, "type": "preproc_arg", "text": "0x1043", "parent": 192, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 38}}, {"id": 196, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome4\t\t0x1044\n", "parent": 0, "children": [197, 198, 199], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 70, "column": 0}}, {"id": 197, "type": "#define", "text": "#define", "parent": 196, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 198, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome4", "parent": 196, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 30}}, {"id": 199, "type": "preproc_arg", "text": "0x1044", "parent": 196, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 38}}, {"id": 200, "type": "preproc_def", "text": "#define DoC_Mplus_ECCSyndrome5\t\t0x1045\n", "parent": 0, "children": [201, 202, 203], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 201, "type": "#define", "text": "#define", "parent": 200, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 202, "type": "identifier", "text": "DoC_Mplus_ECCSyndrome5", "parent": 200, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 30}}, {"id": 203, "type": "preproc_arg", "text": "0x1045", "parent": 200, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 38}}, {"id": 204, "type": "preproc_def", "text": "#define DoC_Mplus_ECCConf \t\t0x1046\n", "parent": 0, "children": [205, 206, 207], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 0}}, {"id": 205, "type": "#define", "text": "#define", "parent": 204, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 206, "type": "identifier", "text": "DoC_Mplus_ECCConf", "parent": 204, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 25}}, {"id": 207, "type": "preproc_arg", "text": "0x1046", "parent": 204, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 34}}, {"id": 208, "type": "preproc_def", "text": "#define DoC_Mplus_Toggle\t\t0x1046\n", "parent": 0, "children": [209, 210, 211], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 209, "type": "#define", "text": "#define", "parent": 208, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 210, "type": "identifier", "text": "DoC_Mplus_Toggle", "parent": 208, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 24}}, {"id": 211, "type": "preproc_arg", "text": "0x1046", "parent": 208, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 32}}, {"id": 212, "type": "preproc_def", "text": "#define DoC_Mplus_DownloadStatus\t0x1074\n", "parent": 0, "children": [213, 214, 215], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 213, "type": "#define", "text": "#define", "parent": 212, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 214, "type": "identifier", "text": "DoC_Mplus_DownloadStatus", "parent": 212, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 32}}, {"id": 215, "type": "preproc_arg", "text": "0x1074", "parent": 212, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 39}}, {"id": 216, "type": "preproc_def", "text": "#define DoC_Mplus_CtrlConfirm\t\t0x1076\n", "parent": 0, "children": [217, 218, 219], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 217, "type": "#define", "text": "#define", "parent": 216, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 218, "type": "identifier", "text": "DoC_Mplus_CtrlConfirm", "parent": 216, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 29}}, {"id": 219, "type": "preproc_arg", "text": "0x1076", "parent": 216, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 37}}, {"id": 220, "type": "preproc_def", "text": "#define DoC_Mplus_Power\t\t\t0x1fff\n", "parent": 0, "children": [221, 222, 223], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 76, "column": 0}}, {"id": 221, "type": "#define", "text": "#define", "parent": 220, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 7}}, {"id": 222, "type": "identifier", "text": "DoC_Mplus_Power", "parent": 220, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 23}}, {"id": 223, "type": "preproc_arg", "text": "0x1fff", "parent": 220, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 32}}, {"id": 224, "type": "preproc_if", "text": "#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif", "parent": 0, "children": [225, 226, 229, 230, 237, 245, 249, 295], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 225, "type": "#if", "text": "#if", "parent": 224, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 3}}, {"id": 226, "type": "preproc_defined", "text": "defined(__arm__)", "parent": 224, "children": [227, 228], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 20}}, {"id": 227, "type": "defined", "text": "defined", "parent": 226, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 11}}, {"id": 228, "type": "identifier", "text": "__arm__", "parent": 226, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 19}}, {"id": 229, "type": "\n", "text": "\n", "parent": 224, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 83, "column": 0}}, {"id": 230, "type": "preproc_function_def", "text": "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n", "parent": 224, "children": [231, 232, 233, 236], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 84, "column": 0}}, {"id": 231, "type": "#define", "text": "#define", "parent": 230, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 7}}, {"id": 232, "type": "identifier", "text": "ReadDOC_", "parent": 230, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 16}}, {"id": 233, "type": "preproc_params", "text": "(adr, reg)", "parent": 230, "children": [234, 235], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 26}}, {"id": 234, "type": "identifier", "text": "adr", "parent": 233, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 20}}, {"id": 235, "type": "identifier", "text": "reg", "parent": 233, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 25}}, {"id": 236, "type": "preproc_arg", "text": "((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))", "parent": 230, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 103}}, {"id": 237, "type": "preproc_function_def", "text": "#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n", "parent": 224, "children": [238, 239, 240, 244], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 85, "column": 0}}, {"id": 238, "type": "#define", "text": "#define", "parent": 237, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 239, "type": "identifier", "text": "WriteDOC_", "parent": 237, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 17}}, {"id": 240, "type": "preproc_params", "text": "(d, adr, reg)", "parent": 237, "children": [241, 242, 243], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 30}}, {"id": 241, "type": "identifier", "text": "d", "parent": 240, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 19}}, {"id": 242, "type": "identifier", "text": "adr", "parent": 240, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 24}}, {"id": 243, "type": "identifier", "text": "reg", "parent": 240, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 29}}, {"id": 244, "type": "preproc_arg", "text": "do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)", "parent": 237, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 117}}, {"id": 245, "type": "preproc_def", "text": "#define DOC_IOREMAP_LEN 0x8000\n", "parent": 224, "children": [246, 247, 248], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 246, "type": "#define", "text": "#define", "parent": 245, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 7}}, {"id": 247, "type": "identifier", "text": "DOC_IOREMAP_LEN", "parent": 245, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 23}}, {"id": 248, "type": "preproc_arg", "text": "0x8000", "parent": 245, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 30}}, {"id": 249, "type": "preproc_elif", "text": "#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n", "parent": 224, "children": [250, 251, 254, 255, 262, 270, 274], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 250, "type": "#elif", "text": "#elif", "parent": 249, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 5}}, {"id": 251, "type": "preproc_defined", "text": "defined(__ppc__)", "parent": 249, "children": [252, 253], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 22}}, {"id": 252, "type": "defined", "text": "defined", "parent": 251, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 13}}, {"id": 253, "type": "identifier", "text": "__ppc__", "parent": 251, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 21}}, {"id": 254, "type": "\n", "text": "\n", "parent": 249, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 87, "column": 0}}, {"id": 255, "type": "preproc_function_def", "text": "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n", "parent": 249, "children": [256, 257, 258, 261], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 256, "type": "#define", "text": "#define", "parent": 255, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 257, "type": "identifier", "text": "ReadDOC_", "parent": 255, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 16}}, {"id": 258, "type": "preproc_params", "text": "(adr, reg)", "parent": 255, "children": [259, 260], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 26}}, {"id": 259, "type": "identifier", "text": "adr", "parent": 258, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 20}}, {"id": 260, "type": "identifier", "text": "reg", "parent": 258, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 25}}, {"id": 261, "type": "preproc_arg", "text": "((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))", "parent": 255, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 103}}, {"id": 262, "type": "preproc_function_def", "text": "#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n", "parent": 249, "children": [263, 264, 265, 269], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 263, "type": "#define", "text": "#define", "parent": 262, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 264, "type": "identifier", "text": "WriteDOC_", "parent": 262, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 17}}, {"id": 265, "type": "preproc_params", "text": "(d, adr, reg)", "parent": 262, "children": [266, 267, 268], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 30}}, {"id": 266, "type": "identifier", "text": "d", "parent": 265, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 19}}, {"id": 267, "type": "identifier", "text": "adr", "parent": 265, "children": [], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 24}}, {"id": 268, "type": "identifier", "text": "reg", "parent": 265, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 29}}, {"id": 269, "type": "preproc_arg", "text": "do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)", "parent": 262, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 117}}, {"id": 270, "type": "preproc_def", "text": "#define DOC_IOREMAP_LEN 0x4000\n", "parent": 249, "children": [271, 272, 273], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 90, "column": 0}}, {"id": 271, "type": "#define", "text": "#define", "parent": 270, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 7}}, {"id": 272, "type": "identifier", "text": "DOC_IOREMAP_LEN", "parent": 270, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 23}}, {"id": 273, "type": "preproc_arg", "text": "0x4000", "parent": 270, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 30}}, {"id": 274, "type": "preproc_else", "text": "#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n", "parent": 249, "children": [275, 276, 283, 291], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 275, "type": "#else", "text": "#else", "parent": 274, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 5}}, {"id": 276, "type": "preproc_function_def", "text": "#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n", "parent": 274, "children": [277, 278, 279, 282], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 277, "type": "#define", "text": "#define", "parent": 276, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 278, "type": "identifier", "text": "ReadDOC_", "parent": 276, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 16}}, {"id": 279, "type": "preproc_params", "text": "(adr, reg)", "parent": 276, "children": [280, 281], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 26}}, {"id": 280, "type": "identifier", "text": "adr", "parent": 279, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 20}}, {"id": 281, "type": "identifier", "text": "reg", "parent": 279, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 25}}, {"id": 282, "type": "preproc_arg", "text": "readb((void __iomem *)(adr) + (reg))", "parent": 276, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 68}}, {"id": 283, "type": "preproc_function_def", "text": "#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n", "parent": 274, "children": [284, 285, 286, 290], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 0}}, {"id": 284, "type": "#define", "text": "#define", "parent": 283, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 285, "type": "identifier", "text": "WriteDOC_", "parent": 283, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 17}}, {"id": 286, "type": "preproc_params", "text": "(d, adr, reg)", "parent": 283, "children": [287, 288, 289], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 30}}, {"id": 287, "type": "identifier", "text": "d", "parent": 286, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 19}}, {"id": 288, "type": "identifier", "text": "adr", "parent": 286, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 24}}, {"id": 289, "type": "identifier", "text": "reg", "parent": 286, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 29}}, {"id": 290, "type": "preproc_arg", "text": "writeb(d, (void __iomem *)(adr) + (reg))", "parent": 283, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 72}}, {"id": 291, "type": "preproc_def", "text": "#define DOC_IOREMAP_LEN 0x2000\n", "parent": 274, "children": [292, 293, 294], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 292, "type": "#define", "text": "#define", "parent": 291, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 293, "type": "identifier", "text": "DOC_IOREMAP_LEN", "parent": 291, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 23}}, {"id": 294, "type": "preproc_arg", "text": "0x2000", "parent": 291, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 30}}, {"id": 295, "type": "#endif", "text": "#endif", "parent": 224, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 296, "type": "preproc_if", "text": "#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif", "parent": 0, "children": [297, 298, 306, 307, 310], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 297, "type": "#if", "text": "#if", "parent": 296, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 3}}, {"id": 298, "type": "binary_expression", "text": "defined(__i386__) || defined(__x86_64__)", "parent": 296, "children": [299, 302, 303], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 44}}, {"id": 299, "type": "preproc_defined", "text": "defined(__i386__)", "parent": 298, "children": [300, 301], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 21}}, {"id": 300, "type": "defined", "text": "defined", "parent": 299, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 11}}, {"id": 301, "type": "identifier", "text": "__i386__", "parent": 299, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 20}}, {"id": 302, "type": "||", "text": "||", "parent": 298, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 24}}, {"id": 303, "type": "preproc_defined", "text": "defined(__x86_64__)", "parent": 298, "children": [304, 305], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 44}}, {"id": 304, "type": "defined", "text": "defined", "parent": 303, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 32}}, {"id": 305, "type": "identifier", "text": "__x86_64__", "parent": 303, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 43}}, {"id": 306, "type": "\n", "text": "\n", "parent": 296, "children": [], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 98, "column": 0}}, {"id": 307, "type": "preproc_def", "text": "#define USE_MEMCPY\n", "parent": 296, "children": [308, 309], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 308, "type": "#define", "text": "#define", "parent": 307, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 309, "type": "identifier", "text": "USE_MEMCPY", "parent": 307, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 18}}, {"id": 310, "type": "#endif", "text": "#endif", "parent": 296, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 311, "type": "preproc_function_def", "text": "#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n", "parent": 0, "children": [312, 313, 314, 317], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 312, "type": "#define", "text": "#define", "parent": 311, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 313, "type": "identifier", "text": "ReadDOC", "parent": 311, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 15}}, {"id": 314, "type": "preproc_params", "text": "(adr, reg)", "parent": 311, "children": [315, 316], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 25}}, {"id": 315, "type": "identifier", "text": "adr", "parent": 314, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 19}}, {"id": 316, "type": "identifier", "text": "reg", "parent": 314, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 24}}, {"id": 317, "type": "preproc_arg", "text": "ReadDOC_(adr,DoC_##reg)", "parent": 311, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 54}}, {"id": 318, "type": "preproc_function_def", "text": "#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n", "parent": 0, "children": [319, 320, 321, 325], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 104, "column": 0}}, {"id": 319, "type": "#define", "text": "#define", "parent": 318, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 7}}, {"id": 320, "type": "identifier", "text": "WriteDOC", "parent": 318, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 16}}, {"id": 321, "type": "preproc_params", "text": "(d, adr, reg)", "parent": 318, "children": [322, 323, 324], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 29}}, {"id": 322, "type": "identifier", "text": "d", "parent": 321, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 323, "type": "identifier", "text": "adr", "parent": 321, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 23}}, {"id": 324, "type": "identifier", "text": "reg", "parent": 321, "children": [], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 28}}, {"id": 325, "type": "preproc_arg", "text": "WriteDOC_(d,adr,DoC_##reg)", "parent": 318, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 57}}, {"id": 326, "type": "preproc_def", "text": "#define DOC_MODE_RESET \t\t0\n", "parent": 0, "children": [327, 328, 329], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 327, "type": "#define", "text": "#define", "parent": 326, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 328, "type": "identifier", "text": "DOC_MODE_RESET", "parent": 326, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 329, "type": "preproc_arg", "text": "0", "parent": 326, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 26}}, {"id": 330, "type": "preproc_def", "text": "#define DOC_MODE_NORMAL \t1\n", "parent": 0, "children": [331, 332, 333], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 331, "type": "#define", "text": "#define", "parent": 330, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 332, "type": "identifier", "text": "DOC_MODE_NORMAL", "parent": 330, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 23}}, {"id": 333, "type": "preproc_arg", "text": "1", "parent": 330, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 26}}, {"id": 334, "type": "preproc_def", "text": "#define DOC_MODE_RESERVED1 \t2\n", "parent": 0, "children": [335, 336, 337], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 335, "type": "#define", "text": "#define", "parent": 334, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 336, "type": "identifier", "text": "DOC_MODE_RESERVED1", "parent": 334, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 26}}, {"id": 337, "type": "preproc_arg", "text": "2", "parent": 334, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 29}}, {"id": 338, "type": "preproc_def", "text": "#define DOC_MODE_RESERVED2 \t3\n", "parent": 0, "children": [339, 340, 341], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 0}}, {"id": 339, "type": "#define", "text": "#define", "parent": 338, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 7}}, {"id": 340, "type": "identifier", "text": "DOC_MODE_RESERVED2", "parent": 338, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 26}}, {"id": 341, "type": "preproc_arg", "text": "3", "parent": 338, "children": [], "start_point": {"row": 108, "column": 28}, "end_point": {"row": 108, "column": 29}}, {"id": 342, "type": "preproc_def", "text": "#define DOC_MODE_CLR_ERR \t0x80\n", "parent": 0, "children": [343, 344, 345], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 111, "column": 0}}, {"id": 343, "type": "#define", "text": "#define", "parent": 342, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 7}}, {"id": 344, "type": "identifier", "text": "DOC_MODE_CLR_ERR", "parent": 342, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 24}}, {"id": 345, "type": "preproc_arg", "text": "0x80", "parent": 342, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 30}}, {"id": 346, "type": "preproc_def", "text": "#define\tDOC_MODE_RST_LAT\t0x10\n", "parent": 0, "children": [347, 348, 349], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 0}}, {"id": 347, "type": "#define", "text": "#define", "parent": 346, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 348, "type": "identifier", "text": "DOC_MODE_RST_LAT", "parent": 346, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 24}}, {"id": 349, "type": "preproc_arg", "text": "0x10", "parent": 346, "children": [], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 29}}, {"id": 350, "type": "preproc_def", "text": "#define\tDOC_MODE_BDECT\t\t0x08\n", "parent": 0, "children": [351, 352, 353], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 351, "type": "#define", "text": "#define", "parent": 350, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 7}}, {"id": 352, "type": "identifier", "text": "DOC_MODE_BDECT", "parent": 350, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 22}}, {"id": 353, "type": "preproc_arg", "text": "0x08", "parent": 350, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 28}}, {"id": 354, "type": "preproc_def", "text": "#define DOC_MODE_MDWREN \t0x04\n", "parent": 0, "children": [355, 356, 357], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 114, "column": 0}}, {"id": 355, "type": "#define", "text": "#define", "parent": 354, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 7}}, {"id": 356, "type": "identifier", "text": "DOC_MODE_MDWREN", "parent": 354, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 23}}, {"id": 357, "type": "preproc_arg", "text": "0x04", "parent": 354, "children": [], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 29}}, {"id": 358, "type": "preproc_def", "text": "#define DOC_ChipID_Doc2k \t0x20\n", "parent": 0, "children": [359, 360, 361], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 359, "type": "#define", "text": "#define", "parent": 358, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 7}}, {"id": 360, "type": "identifier", "text": "DOC_ChipID_Doc2k", "parent": 358, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 24}}, {"id": 361, "type": "preproc_arg", "text": "0x20", "parent": 358, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 30}}, {"id": 362, "type": "preproc_def", "text": "#define DOC_ChipID_Doc2kTSOP \t0x21\t/* internal number for MTD */\n", "parent": 0, "children": [363, 364, 365], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 363, "type": "#define", "text": "#define", "parent": 362, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 364, "type": "identifier", "text": "DOC_ChipID_Doc2kTSOP", "parent": 362, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 28}}, {"id": 365, "type": "preproc_arg", "text": "0x21\t", "parent": 362, "children": [], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 35}}, {"id": 366, "type": "preproc_def", "text": "#define DOC_ChipID_DocMil \t0x30\n", "parent": 0, "children": [367, 368, 369], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 367, "type": "#define", "text": "#define", "parent": 366, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 368, "type": "identifier", "text": "DOC_ChipID_DocMil", "parent": 366, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 25}}, {"id": 369, "type": "preproc_arg", "text": "0x30", "parent": 366, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 31}}, {"id": 370, "type": "preproc_def", "text": "#define DOC_ChipID_DocMilPlus32\t0x40\n", "parent": 0, "children": [371, 372, 373], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 0}}, {"id": 371, "type": "#define", "text": "#define", "parent": 370, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 7}}, {"id": 372, "type": "identifier", "text": "DOC_ChipID_DocMilPlus32", "parent": 370, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 31}}, {"id": 373, "type": "preproc_arg", "text": "0x40", "parent": 370, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 36}}, {"id": 374, "type": "preproc_def", "text": "#define DOC_ChipID_DocMilPlus16\t0x41\n", "parent": 0, "children": [375, 376, 377], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 375, "type": "#define", "text": "#define", "parent": 374, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 7}}, {"id": 376, "type": "identifier", "text": "DOC_ChipID_DocMilPlus16", "parent": 374, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 31}}, {"id": 377, "type": "preproc_arg", "text": "0x41", "parent": 374, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 36}}, {"id": 378, "type": "preproc_def", "text": "#define CDSN_CTRL_FR_B \t\t0x80\n", "parent": 0, "children": [379, 380, 381], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 122, "column": 0}}, {"id": 379, "type": "#define", "text": "#define", "parent": 378, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 7}}, {"id": 380, "type": "identifier", "text": "CDSN_CTRL_FR_B", "parent": 378, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 22}}, {"id": 381, "type": "preproc_arg", "text": "0x80", "parent": 378, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 29}}, {"id": 382, "type": "preproc_def", "text": "#define CDSN_CTRL_FR_B0\t\t0x40\n", "parent": 0, "children": [383, 384, 385], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 123, "column": 0}}, {"id": 383, "type": "#define", "text": "#define", "parent": 382, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 7}}, {"id": 384, "type": "identifier", "text": "CDSN_CTRL_FR_B0", "parent": 382, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 23}}, {"id": 385, "type": "preproc_arg", "text": "0x40", "parent": 382, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 29}}, {"id": 386, "type": "preproc_def", "text": "#define CDSN_CTRL_FR_B1\t\t0x80\n", "parent": 0, "children": [387, 388, 389], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 124, "column": 0}}, {"id": 387, "type": "#define", "text": "#define", "parent": 386, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 7}}, {"id": 388, "type": "identifier", "text": "CDSN_CTRL_FR_B1", "parent": 386, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 23}}, {"id": 389, "type": "preproc_arg", "text": "0x80", "parent": 386, "children": [], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 29}}, {"id": 390, "type": "preproc_def", "text": "#define CDSN_CTRL_ECC_IO \t0x20\n", "parent": 0, "children": [391, 392, 393], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 391, "type": "#define", "text": "#define", "parent": 390, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 7}}, {"id": 392, "type": "identifier", "text": "CDSN_CTRL_ECC_IO", "parent": 390, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 24}}, {"id": 393, "type": "preproc_arg", "text": "0x20", "parent": 390, "children": [], "start_point": {"row": 125, "column": 26}, "end_point": {"row": 125, "column": 30}}, {"id": 394, "type": "preproc_def", "text": "#define CDSN_CTRL_FLASH_IO \t0x10\n", "parent": 0, "children": [395, 396, 397], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 127, "column": 0}}, {"id": 395, "type": "#define", "text": "#define", "parent": 394, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 7}}, {"id": 396, "type": "identifier", "text": "CDSN_CTRL_FLASH_IO", "parent": 394, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 26}}, {"id": 397, "type": "preproc_arg", "text": "0x10", "parent": 394, "children": [], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 32}}, {"id": 398, "type": "preproc_def", "text": "#define CDSN_CTRL_WP \t\t0x08\n", "parent": 0, "children": [399, 400, 401], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 399, "type": "#define", "text": "#define", "parent": 398, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 7}}, {"id": 400, "type": "identifier", "text": "CDSN_CTRL_WP", "parent": 398, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 20}}, {"id": 401, "type": "preproc_arg", "text": "0x08", "parent": 398, "children": [], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 27}}, {"id": 402, "type": "preproc_def", "text": "#define CDSN_CTRL_ALE \t\t0x04\n", "parent": 0, "children": [403, 404, 405], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 129, "column": 0}}, {"id": 403, "type": "#define", "text": "#define", "parent": 402, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 7}}, {"id": 404, "type": "identifier", "text": "CDSN_CTRL_ALE", "parent": 402, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 21}}, {"id": 405, "type": "preproc_arg", "text": "0x04", "parent": 402, "children": [], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 28}}, {"id": 406, "type": "preproc_def", "text": "#define CDSN_CTRL_CLE \t\t0x02\n", "parent": 0, "children": [407, 408, 409], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 130, "column": 0}}, {"id": 407, "type": "#define", "text": "#define", "parent": 406, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 408, "type": "identifier", "text": "CDSN_CTRL_CLE", "parent": 406, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 21}}, {"id": 409, "type": "preproc_arg", "text": "0x02", "parent": 406, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 28}}, {"id": 410, "type": "preproc_def", "text": "#define CDSN_CTRL_CE \t\t0x01\n", "parent": 0, "children": [411, 412, 413], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 131, "column": 0}}, {"id": 411, "type": "#define", "text": "#define", "parent": 410, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 7}}, {"id": 412, "type": "identifier", "text": "CDSN_CTRL_CE", "parent": 410, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 20}}, {"id": 413, "type": "preproc_arg", "text": "0x01", "parent": 410, "children": [], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 27}}, {"id": 414, "type": "preproc_def", "text": "#define DOC_ECC_RESET \t\t0\n", "parent": 0, "children": [415, 416, 417], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 133, "column": 0}}, {"id": 415, "type": "#define", "text": "#define", "parent": 414, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 416, "type": "identifier", "text": "DOC_ECC_RESET", "parent": 414, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 21}}, {"id": 417, "type": "preproc_arg", "text": "0", "parent": 414, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 25}}, {"id": 418, "type": "preproc_def", "text": "#define DOC_ECC_ERROR \t\t0x80\n", "parent": 0, "children": [419, 420, 421], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 134, "column": 0}}, {"id": 419, "type": "#define", "text": "#define", "parent": 418, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 7}}, {"id": 420, "type": "identifier", "text": "DOC_ECC_ERROR", "parent": 418, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 21}}, {"id": 421, "type": "preproc_arg", "text": "0x80", "parent": 418, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 28}}, {"id": 422, "type": "preproc_def", "text": "#define DOC_ECC_RW \t\t0x20\n", "parent": 0, "children": [423, 424, 425], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 0}}, {"id": 423, "type": "#define", "text": "#define", "parent": 422, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 7}}, {"id": 424, "type": "identifier", "text": "DOC_ECC_RW", "parent": 422, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 18}}, {"id": 425, "type": "preproc_arg", "text": "0x20", "parent": 422, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 25}}, {"id": 426, "type": "preproc_def", "text": "#define DOC_ECC__EN \t\t0x08\n", "parent": 0, "children": [427, 428, 429], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 427, "type": "#define", "text": "#define", "parent": 426, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 428, "type": "identifier", "text": "DOC_ECC__EN", "parent": 426, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 19}}, {"id": 429, "type": "preproc_arg", "text": "0x08", "parent": 426, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 26}}, {"id": 430, "type": "preproc_def", "text": "#define DOC_TOGGLE_BIT \t\t0x04\n", "parent": 0, "children": [431, 432, 433], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 137, "column": 0}}, {"id": 431, "type": "#define", "text": "#define", "parent": 430, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 7}}, {"id": 432, "type": "identifier", "text": "DOC_TOGGLE_BIT", "parent": 430, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 22}}, {"id": 433, "type": "preproc_arg", "text": "0x04", "parent": 430, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 29}}, {"id": 434, "type": "preproc_def", "text": "#define DOC_ECC_RESV \t\t0x02\n", "parent": 0, "children": [435, 436, 437], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 138, "column": 0}}, {"id": 435, "type": "#define", "text": "#define", "parent": 434, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 7}}, {"id": 436, "type": "identifier", "text": "DOC_ECC_RESV", "parent": 434, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 20}}, {"id": 437, "type": "preproc_arg", "text": "0x02", "parent": 434, "children": [], "start_point": {"row": 137, "column": 23}, "end_point": {"row": 137, "column": 27}}, {"id": 438, "type": "preproc_def", "text": "#define DOC_ECC_IGNORE\t\t0x01\n", "parent": 0, "children": [439, 440, 441], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 139, "column": 0}}, {"id": 439, "type": "#define", "text": "#define", "parent": 438, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 7}}, {"id": 440, "type": "identifier", "text": "DOC_ECC_IGNORE", "parent": 438, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 22}}, {"id": 441, "type": "preproc_arg", "text": "0x01", "parent": 438, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 28}}, {"id": 442, "type": "preproc_def", "text": "#define DOC_FLASH_CE\t\t0x80\n", "parent": 0, "children": [443, 444, 445], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 141, "column": 0}}, {"id": 443, "type": "#define", "text": "#define", "parent": 442, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 7}}, {"id": 444, "type": "identifier", "text": "DOC_FLASH_CE", "parent": 442, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 20}}, {"id": 445, "type": "preproc_arg", "text": "0x80", "parent": 442, "children": [], "start_point": {"row": 140, "column": 22}, "end_point": {"row": 140, "column": 26}}, {"id": 446, "type": "preproc_def", "text": "#define DOC_FLASH_WP\t\t0x40\n", "parent": 0, "children": [447, 448, 449], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 0}}, {"id": 447, "type": "#define", "text": "#define", "parent": 446, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 448, "type": "identifier", "text": "DOC_FLASH_WP", "parent": 446, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 20}}, {"id": 449, "type": "preproc_arg", "text": "0x40", "parent": 446, "children": [], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 26}}, {"id": 450, "type": "preproc_def", "text": "#define DOC_FLASH_BANK\t\t0x02\n", "parent": 0, "children": [451, 452, 453], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 143, "column": 0}}, {"id": 451, "type": "#define", "text": "#define", "parent": 450, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 7}}, {"id": 452, "type": "identifier", "text": "DOC_FLASH_BANK", "parent": 450, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 22}}, {"id": 453, "type": "preproc_arg", "text": "0x02", "parent": 450, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 28}}, {"id": 454, "type": "preproc_def", "text": "#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n", "parent": 0, "children": [455, 456, 457], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 146, "column": 0}}, {"id": 455, "type": "#define", "text": "#define", "parent": 454, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 7}}, {"id": 456, "type": "identifier", "text": "DOC_ECC_EN", "parent": 454, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 18}}, {"id": 457, "type": "preproc_arg", "text": "(DOC_ECC__EN | DOC_ECC_RESV)", "parent": 454, "children": [], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 47}}, {"id": 458, "type": "preproc_def", "text": "#define DOC_ECC_DIS (DOC_ECC_RESV)\n", "parent": 0, "children": [459, 460, 461], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 147, "column": 0}}, {"id": 459, "type": "#define", "text": "#define", "parent": 458, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 7}}, {"id": 460, "type": "identifier", "text": "DOC_ECC_DIS", "parent": 458, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 19}}, {"id": 461, "type": "preproc_arg", "text": "(DOC_ECC_RESV)", "parent": 458, "children": [], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 34}}, {"id": 462, "type": "struct_specifier", "text": "struct Nand {\n\tchar floor, chip;\n\tunsigned long curadr;\n\tunsigned char curmode;\n\t/* Also some erase/write/pipeline info when we get that far */\n}", "parent": 0, "children": [463, 464], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 463, "type": "struct", "text": "struct", "parent": 462, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 6}}, {"id": 464, "type": "type_identifier", "text": "Nand", "parent": 462, "children": [], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 11}}, {"id": 465, "type": "field_declaration", "text": "char floor, chip;", "parent": 462, "children": [466, 467, 468], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 18}}, {"id": 466, "type": "primitive_type", "text": "char", "parent": 465, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 5}}, {"id": 467, "type": "field_identifier", "text": "floor", "parent": 465, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 11}}, {"id": 468, "type": "field_identifier", "text": "chip", "parent": 465, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 17}}, {"id": 469, "type": "field_declaration", "text": "unsigned long curadr;", "parent": 462, "children": [470, 473], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 22}}, {"id": 470, "type": "sized_type_specifier", "text": "unsigned long", "parent": 469, "children": [471, 472], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 14}}, {"id": 471, "type": "unsigned", "text": "unsigned", "parent": 470, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 9}}, {"id": 472, "type": "long", "text": "long", "parent": 470, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 14}}, {"id": 473, "type": "field_identifier", "text": "curadr", "parent": 469, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 21}}, {"id": 474, "type": "field_declaration", "text": "unsigned char curmode;", "parent": 462, "children": [475, 478], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 23}}, {"id": 475, "type": "sized_type_specifier", "text": "unsigned char", "parent": 474, "children": [476, 477], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 14}}, {"id": 476, "type": "unsigned", "text": "unsigned", "parent": 475, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 9}}, {"id": 477, "type": "primitive_type", "text": "char", "parent": 475, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 14}}, {"id": 478, "type": "field_identifier", "text": "curmode", "parent": 474, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 22}}, {"id": 479, "type": "preproc_def", "text": "#define MAX_FLOORS 4\n", "parent": 0, "children": [480, 481, 482], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 480, "type": "#define", "text": "#define", "parent": 479, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 481, "type": "identifier", "text": "MAX_FLOORS", "parent": 479, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 18}}, {"id": 482, "type": "preproc_arg", "text": "4", "parent": 479, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 20}}, {"id": 483, "type": "preproc_def", "text": "#define MAX_CHIPS 4\n", "parent": 0, "children": [484, 485, 486], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 157, "column": 0}}, {"id": 484, "type": "#define", "text": "#define", "parent": 483, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 7}}, {"id": 485, "type": "identifier", "text": "MAX_CHIPS", "parent": 483, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 17}}, {"id": 486, "type": "preproc_arg", "text": "4", "parent": 483, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 19}}, {"id": 487, "type": "preproc_def", "text": "#define MAX_FLOORS_MIL 1\n", "parent": 0, "children": [488, 489, 490], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 159, "column": 0}}, {"id": 488, "type": "#define", "text": "#define", "parent": 487, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 7}}, {"id": 489, "type": "identifier", "text": "MAX_FLOORS_MIL", "parent": 487, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 22}}, {"id": 490, "type": "preproc_arg", "text": "1", "parent": 487, "children": [], "start_point": {"row": 158, "column": 23}, "end_point": {"row": 158, "column": 24}}, {"id": 491, "type": "preproc_def", "text": "#define MAX_CHIPS_MIL 1\n", "parent": 0, "children": [492, 493, 494], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 160, "column": 0}}, {"id": 492, "type": "#define", "text": "#define", "parent": 491, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 7}}, {"id": 493, "type": "identifier", "text": "MAX_CHIPS_MIL", "parent": 491, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 21}}, {"id": 494, "type": "preproc_arg", "text": "1", "parent": 491, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 23}}, {"id": 495, "type": "preproc_def", "text": "#define MAX_FLOORS_MPLUS 2\n", "parent": 0, "children": [496, 497, 498], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 162, "column": 0}}, {"id": 496, "type": "#define", "text": "#define", "parent": 495, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 7}}, {"id": 497, "type": "identifier", "text": "MAX_FLOORS_MPLUS", "parent": 495, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 24}}, {"id": 498, "type": "preproc_arg", "text": "2", "parent": 495, "children": [], "start_point": {"row": 161, "column": 25}, "end_point": {"row": 161, "column": 26}}, {"id": 499, "type": "preproc_def", "text": "#define MAX_CHIPS_MPLUS 1\n", "parent": 0, "children": [500, 501, 502], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 163, "column": 0}}, {"id": 500, "type": "#define", "text": "#define", "parent": 499, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 7}}, {"id": 501, "type": "identifier", "text": "MAX_CHIPS_MPLUS", "parent": 499, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 23}}, {"id": 502, "type": "preproc_arg", "text": "1", "parent": 499, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 25}}, {"id": 503, "type": "preproc_def", "text": "#define ADDR_COLUMN 1\n", "parent": 0, "children": [504, 505, 506], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 165, "column": 0}}, {"id": 504, "type": "#define", "text": "#define", "parent": 503, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 7}}, {"id": 505, "type": "identifier", "text": "ADDR_COLUMN", "parent": 503, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 19}}, {"id": 506, "type": "preproc_arg", "text": "1", "parent": 503, "children": [], "start_point": {"row": 164, "column": 20}, "end_point": {"row": 164, "column": 21}}, {"id": 507, "type": "preproc_def", "text": "#define ADDR_PAGE 2\n", "parent": 0, "children": [508, 509, 510], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 166, "column": 0}}, {"id": 508, "type": "#define", "text": "#define", "parent": 507, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 7}}, {"id": 509, "type": "identifier", "text": "ADDR_PAGE", "parent": 507, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 17}}, {"id": 510, "type": "preproc_arg", "text": "2", "parent": 507, "children": [], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 19}}, {"id": 511, "type": "preproc_def", "text": "#define ADDR_COLUMN_PAGE 3\n", "parent": 0, "children": [512, 513, 514], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 167, "column": 0}}, {"id": 512, "type": "#define", "text": "#define", "parent": 511, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 7}}, {"id": 513, "type": "identifier", "text": "ADDR_COLUMN_PAGE", "parent": 511, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 24}}, {"id": 514, "type": "preproc_arg", "text": "3", "parent": 511, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 26}}, {"id": 515, "type": "struct_specifier", "text": "struct DiskOnChip {\n\tunsigned long physadr;\n\tvoid __iomem *virtadr;\n\tunsigned long totlen;\n\tunsigned char ChipID; /* Type of DiskOnChip */\n\tint ioreg;\n\n\tunsigned long mfr; /* Flash IDs - only one type of flash per device */\n\tunsigned long id;\n\tint chipshift;\n\tchar page256;\n\tchar pageadrlen;\n\tchar interleave; /* Internal interleaving - Millennium Plus style */\n\tunsigned long erasesize;\n\n\tint curfloor;\n\tint curchip;\n\n\tint numchips;\n\tstruct Nand *chips;\n\tstruct mtd_info *nextdoc;\n\tstruct mutex lock;\n}", "parent": 0, "children": [516, 517], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 190, "column": 1}}, {"id": 516, "type": "struct", "text": "struct", "parent": 515, "children": [], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 168, "column": 6}}, {"id": 517, "type": "type_identifier", "text": "DiskOnChip", "parent": 515, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 17}}, {"id": 518, "type": "field_declaration", "text": "unsigned long physadr;", "parent": 515, "children": [519, 522], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 23}}, {"id": 519, "type": "sized_type_specifier", "text": "unsigned long", "parent": 518, "children": [520, 521], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 14}}, {"id": 520, "type": "unsigned", "text": "unsigned", "parent": 519, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 9}}, {"id": 521, "type": "long", "text": "long", "parent": 519, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 14}}, {"id": 522, "type": "field_identifier", "text": "physadr", "parent": 518, "children": [], "start_point": {"row": 169, "column": 15}, "end_point": {"row": 169, "column": 22}}, {"id": 523, "type": "field_declaration", "text": "void __iomem *virtadr;", "parent": 515, "children": [524, 525, 527], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 23}}, {"id": 524, "type": "primitive_type", "text": "void", "parent": 523, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 5}}, {"id": 525, "type": "ERROR", "text": "__iomem", "parent": 523, "children": [526], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 13}}, {"id": 526, "type": "field_identifier", "text": "__iomem", "parent": 525, "children": [], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 13}}, {"id": 527, "type": "pointer_declarator", "text": "*virtadr", "parent": 523, "children": [528, 529], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 22}}, {"id": 528, "type": "*", "text": "*", "parent": 527, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 529, "type": "field_identifier", "text": "virtadr", "parent": 527, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 22}}, {"id": 530, "type": "field_declaration", "text": "unsigned long totlen;", "parent": 515, "children": [531, 534], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 22}}, {"id": 531, "type": "sized_type_specifier", "text": "unsigned long", "parent": 530, "children": [532, 533], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 14}}, {"id": 532, "type": "unsigned", "text": "unsigned", "parent": 531, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 9}}, {"id": 533, "type": "long", "text": "long", "parent": 531, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 14}}, {"id": 534, "type": "field_identifier", "text": "totlen", "parent": 530, "children": [], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 21}}, {"id": 535, "type": "field_declaration", "text": "unsigned char ChipID;", "parent": 515, "children": [536, 539], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 22}}, {"id": 536, "type": "sized_type_specifier", "text": "unsigned char", "parent": 535, "children": [537, 538], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 14}}, {"id": 537, "type": "unsigned", "text": "unsigned", "parent": 536, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 9}}, {"id": 538, "type": "primitive_type", "text": "char", "parent": 536, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 14}}, {"id": 539, "type": "field_identifier", "text": "ChipID", "parent": 535, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 21}}, {"id": 540, "type": "field_declaration", "text": "int ioreg;", "parent": 515, "children": [541, 542], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 11}}, {"id": 541, "type": "primitive_type", "text": "int", "parent": 540, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 4}}, {"id": 542, "type": "field_identifier", "text": "ioreg", "parent": 540, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 10}}, {"id": 543, "type": "field_declaration", "text": "unsigned long mfr;", "parent": 515, "children": [544, 547], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 19}}, {"id": 544, "type": "sized_type_specifier", "text": "unsigned long", "parent": 543, "children": [545, 546], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 14}}, {"id": 545, "type": "unsigned", "text": "unsigned", "parent": 544, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 9}}, {"id": 546, "type": "long", "text": "long", "parent": 544, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 14}}, {"id": 547, "type": "field_identifier", "text": "mfr", "parent": 543, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 18}}, {"id": 548, "type": "field_declaration", "text": "unsigned long id;", "parent": 515, "children": [549, 552], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 18}}, {"id": 549, "type": "sized_type_specifier", "text": "unsigned long", "parent": 548, "children": [550, 551], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 14}}, {"id": 550, "type": "unsigned", "text": "unsigned", "parent": 549, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 9}}, {"id": 551, "type": "long", "text": "long", "parent": 549, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 14}}, {"id": 552, "type": "field_identifier", "text": "id", "parent": 548, "children": [], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 17}}, {"id": 553, "type": "field_declaration", "text": "int chipshift;", "parent": 515, "children": [554, 555], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 15}}, {"id": 554, "type": "primitive_type", "text": "int", "parent": 553, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 4}}, {"id": 555, "type": "field_identifier", "text": "chipshift", "parent": 553, "children": [], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 14}}, {"id": 556, "type": "field_declaration", "text": "char page256;", "parent": 515, "children": [557, 558], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 14}}, {"id": 557, "type": "primitive_type", "text": "char", "parent": 556, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 5}}, {"id": 558, "type": "field_identifier", "text": "page256", "parent": 556, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 13}}, {"id": 559, "type": "field_declaration", "text": "char pageadrlen;", "parent": 515, "children": [560, 561], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 17}}, {"id": 560, "type": "primitive_type", "text": "char", "parent": 559, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 5}}, {"id": 561, "type": "field_identifier", "text": "pageadrlen", "parent": 559, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 16}}, {"id": 562, "type": "field_declaration", "text": "char interleave;", "parent": 515, "children": [563, 564], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 17}}, {"id": 563, "type": "primitive_type", "text": "char", "parent": 562, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 5}}, {"id": 564, "type": "field_identifier", "text": "interleave", "parent": 562, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 16}}, {"id": 565, "type": "field_declaration", "text": "unsigned long erasesize;", "parent": 515, "children": [566, 569], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 25}}, {"id": 566, "type": "sized_type_specifier", "text": "unsigned long", "parent": 565, "children": [567, 568], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 14}}, {"id": 567, "type": "unsigned", "text": "unsigned", "parent": 566, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 9}}, {"id": 568, "type": "long", "text": "long", "parent": 566, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 14}}, {"id": 569, "type": "field_identifier", "text": "erasesize", "parent": 565, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 24}}, {"id": 570, "type": "field_declaration", "text": "int curfloor;", "parent": 515, "children": [571, 572], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 14}}, {"id": 571, "type": "primitive_type", "text": "int", "parent": 570, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 4}}, {"id": 572, "type": "field_identifier", "text": "curfloor", "parent": 570, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 13}}, {"id": 573, "type": "field_declaration", "text": "int curchip;", "parent": 515, "children": [574, 575], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 13}}, {"id": 574, "type": "primitive_type", "text": "int", "parent": 573, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 4}}, {"id": 575, "type": "field_identifier", "text": "curchip", "parent": 573, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 12}}, {"id": 576, "type": "field_declaration", "text": "int numchips;", "parent": 515, "children": [577, 578], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 14}}, {"id": 577, "type": "primitive_type", "text": "int", "parent": 576, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 4}}, {"id": 578, "type": "field_identifier", "text": "numchips", "parent": 576, "children": [], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 13}}, {"id": 579, "type": "field_declaration", "text": "struct Nand *chips;", "parent": 515, "children": [580, 583], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 20}}, {"id": 580, "type": "struct_specifier", "text": "struct Nand", "parent": 579, "children": [581, 582], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 12}}, {"id": 581, "type": "struct", "text": "struct", "parent": 580, "children": [], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 7}}, {"id": 582, "type": "type_identifier", "text": "Nand", "parent": 580, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 12}}, {"id": 583, "type": "pointer_declarator", "text": "*chips", "parent": 579, "children": [584, 585], "start_point": {"row": 187, "column": 13}, "end_point": {"row": 187, "column": 19}}, {"id": 584, "type": "*", "text": "*", "parent": 583, "children": [], "start_point": {"row": 187, "column": 13}, "end_point": {"row": 187, "column": 14}}, {"id": 585, "type": "field_identifier", "text": "chips", "parent": 583, "children": [], "start_point": {"row": 187, "column": 14}, "end_point": {"row": 187, "column": 19}}, {"id": 586, "type": "field_declaration", "text": "struct mtd_info *nextdoc;", "parent": 515, "children": [587, 590], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 26}}, {"id": 587, "type": "struct_specifier", "text": "struct mtd_info", "parent": 586, "children": [588, 589], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 16}}, {"id": 588, "type": "struct", "text": "struct", "parent": 587, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 7}}, {"id": 589, "type": "type_identifier", "text": "mtd_info", "parent": 587, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 16}}, {"id": 590, "type": "pointer_declarator", "text": "*nextdoc", "parent": 586, "children": [591, 592], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 25}}, {"id": 591, "type": "*", "text": "*", "parent": 590, "children": [], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 18}}, {"id": 592, "type": "field_identifier", "text": "nextdoc", "parent": 590, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 25}}, {"id": 593, "type": "field_declaration", "text": "struct mutex lock;", "parent": 515, "children": [594, 597], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 19}}, {"id": 594, "type": "struct_specifier", "text": "struct mutex", "parent": 593, "children": [595, 596], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 13}}, {"id": 595, "type": "struct", "text": "struct", "parent": 594, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 7}}, {"id": 596, "type": "type_identifier", "text": "mutex", "parent": 594, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 13}}, {"id": 597, "type": "field_identifier", "text": "lock", "parent": 593, "children": [], "start_point": {"row": 189, "column": 14}, "end_point": {"row": 189, "column": 18}}, {"id": 598, "type": "declaration", "text": "int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);", "parent": 0, "children": [599, 600], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 69}}, {"id": 599, "type": "primitive_type", "text": "int", "parent": 598, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 3}}, {"id": 600, "type": "function_declarator", "text": "doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6])", "parent": 598, "children": [601, 602], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 68}}, {"id": 601, "type": "identifier", "text": "doc_decode_ecc", "parent": 600, "children": [], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 18}}, {"id": 602, "type": "parameter_list", "text": "(unsigned char sector[512], unsigned char ecc1[6])", "parent": 600, "children": [603, 610], "start_point": {"row": 192, "column": 18}, "end_point": {"row": 192, "column": 68}}, {"id": 603, "type": "parameter_declaration", "text": "unsigned char sector[512]", "parent": 602, "children": [604, 607], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 44}}, {"id": 604, "type": "sized_type_specifier", "text": "unsigned char", "parent": 603, "children": [605, 606], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 32}}, {"id": 605, "type": "unsigned", "text": "unsigned", "parent": 604, "children": [], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 27}}, {"id": 606, "type": "primitive_type", "text": "char", "parent": 604, "children": [], "start_point": {"row": 192, "column": 28}, "end_point": {"row": 192, "column": 32}}, {"id": 607, "type": "array_declarator", "text": "sector[512]", "parent": 603, "children": [608, 609], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 44}}, {"id": 608, "type": "identifier", "text": "sector", "parent": 607, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 39}}, {"id": 609, "type": "number_literal", "text": "512", "parent": 607, "children": [], "start_point": {"row": 192, "column": 40}, "end_point": {"row": 192, "column": 43}}, {"id": 610, "type": "parameter_declaration", "text": "unsigned char ecc1[6]", "parent": 602, "children": [611, 614], "start_point": {"row": 192, "column": 46}, "end_point": {"row": 192, "column": 67}}, {"id": 611, "type": "sized_type_specifier", "text": "unsigned char", "parent": 610, "children": [612, 613], "start_point": {"row": 192, "column": 46}, "end_point": {"row": 192, "column": 59}}, {"id": 612, "type": "unsigned", "text": "unsigned", "parent": 611, "children": [], "start_point": {"row": 192, "column": 46}, "end_point": {"row": 192, "column": 54}}, {"id": 613, "type": "primitive_type", "text": "char", "parent": 611, "children": [], "start_point": {"row": 192, "column": 55}, "end_point": {"row": 192, "column": 59}}, {"id": 614, "type": "array_declarator", "text": "ecc1[6]", "parent": 610, "children": [615, 616], "start_point": {"row": 192, "column": 60}, "end_point": {"row": 192, "column": 67}}, {"id": 615, "type": "identifier", "text": "ecc1", "parent": 614, "children": [], "start_point": {"row": 192, "column": 60}, "end_point": {"row": 192, "column": 64}}, {"id": 616, "type": "number_literal", "text": "6", "parent": 614, "children": [], "start_point": {"row": 192, "column": 65}, "end_point": {"row": 192, "column": 66}}, {"id": 617, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 6}}]}, "node_categories": {"declarations": {"functions": [230, 237, 255, 262, 276, 283, 311, 318, 600], "variables": [465, 469, 474, 518, 523, 530, 535, 540, 543, 548, 553, 556, 559, 562, 565, 570, 573, 576, 579, 586, 593, 598, 603, 610], "classes": [462, 463, 515, 516, 580, 581, 587, 588, 594, 595], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [298], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 218, 222, 224, 225, 228, 232, 234, 235, 239, 241, 242, 243, 247, 249, 250, 253, 257, 259, 260, 264, 266, 267, 268, 272, 278, 280, 281, 285, 287, 288, 289, 293, 295, 296, 297, 301, 305, 309, 310, 313, 315, 316, 320, 322, 323, 324, 328, 332, 336, 340, 344, 348, 352, 356, 360, 364, 368, 372, 376, 380, 384, 388, 392, 396, 400, 404, 408, 412, 416, 420, 424, 428, 432, 436, 440, 444, 448, 452, 456, 460, 464, 467, 468, 470, 473, 475, 478, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 519, 522, 526, 529, 531, 534, 536, 539, 542, 544, 547, 549, 552, 555, 558, 561, 564, 566, 569, 572, 575, 578, 582, 585, 589, 592, 596, 597, 601, 604, 608, 611, 615, 617], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 609, 616], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d;"}, {"node_id": 255, "universal_type": "function", "name": "unknown", "text_snippet": "#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d;"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n"}, {"node_id": 283, "universal_type": "function", "name": "unknown", "text_snippet": "#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n"}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": "#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n"}, {"node_id": 600, "universal_type": "function", "name": "unknown", "text_snippet": "doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6])"}], "class_declarations": [{"node_id": 462, "universal_type": "class", "name": "Nand", "text_snippet": "struct Nand {\n\tchar floor, chip;\n\tunsigned long curadr;\n\tunsigned char curmode;\n\t/* Also some erase/"}, {"node_id": 463, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 515, "universal_type": "class", "name": "DiskOnChip", "text_snippet": "struct DiskOnChip {\n\tunsigned long physadr;\n\tvoid __iomem *virtadr;\n\tunsigned long totlen;\n\tunsigned"}, {"node_id": 516, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 580, "universal_type": "class", "name": "Nand", "text_snippet": "struct Nand"}, {"node_id": 581, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 587, "universal_type": "class", "name": "mtd_info", "text_snippet": "struct mtd_info"}, {"node_id": 588, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 594, "universal_type": "class", "name": "mutex", "text_snippet": "struct mutex"}, {"node_id": 595, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <linux/mtd/mtd.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/mutex.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * Linux driver for Disk-On-Chip devices\n *\n * Copyright (C) 1999 Machine Vision Holdings, Inc.\n * Copyright (C) 2001-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 SnapGear Inc\n *\n * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $\n *\n * Released under GPL\n */\n\n#ifndef __MTD_DOC2000_H__\n#define __MTD_DOC2000_H__\n\n#include <linux/mtd/mtd.h>\n#include <linux/mutex.h>\n\n#define DoC_Sig1 0\n#define DoC_Sig2 1\n\n#define DoC_ChipID\t\t0x1000\n#define DoC_DOCStatus\t\t0x1001\n#define DoC_DOCControl\t\t0x1002\n#define DoC_FloorSelect\t\t0x1003\n#define DoC_CDSNControl\t\t0x1004\n#define DoC_CDSNDeviceSelect \t0x1005\n#define DoC_ECCConf \t\t0x1006\n#define DoC_2k_ECCStatus\t0x1007\n\n#define DoC_CDSNSlowIO\t\t0x100d\n#define DoC_ECCSyndrome0\t0x1010\n#define DoC_ECCSyndrome1\t0x1011\n#define DoC_ECCSyndrome2\t0x1012\n#define DoC_ECCSyndrome3\t0x1013\n#define DoC_ECCSyndrome4\t0x1014\n#define DoC_ECCSyndrome5\t0x1015\n#define DoC_AliasResolution \t0x101b\n#define DoC_ConfigInput\t\t0x101c\n#define DoC_ReadPipeInit \t0x101d\n#define DoC_WritePipeTerm \t0x101e\n#define DoC_LastDataRead \t0x101f\n#define DoC_NOP \t\t0x1020\n\n#define DoC_Mil_CDSN_IO \t0x0800\n#define DoC_2k_CDSN_IO \t\t0x1800\n\n#define DoC_Mplus_NOP\t\t\t0x1002\n#define DoC_Mplus_AliasResolution\t0x1004\n#define DoC_Mplus_DOCControl\t\t0x1006\n#define DoC_Mplus_AccessStatus\t\t0x1008\n#define DoC_Mplus_DeviceSelect\t\t0x1008\n#define DoC_Mplus_Configuration\t\t0x100a\n#define DoC_Mplus_OutputControl\t\t0x100c\n#define DoC_Mplus_FlashControl\t\t0x1020\n#define DoC_Mplus_FlashSelect \t\t0x1022\n#define DoC_Mplus_FlashCmd\t\t0x1024\n#define DoC_Mplus_FlashAddress\t\t0x1026\n#define DoC_Mplus_FlashData0\t\t0x1028\n#define DoC_Mplus_FlashData1\t\t0x1029\n#define DoC_Mplus_ReadPipeInit\t\t0x102a\n#define DoC_Mplus_LastDataRead\t\t0x102c\n#define DoC_Mplus_LastDataRead1\t\t0x102d\n#define DoC_Mplus_WritePipeTerm \t0x102e\n#define DoC_Mplus_ECCSyndrome0\t\t0x1040\n#define DoC_Mplus_ECCSyndrome1\t\t0x1041\n#define DoC_Mplus_ECCSyndrome2\t\t0x1042\n#define DoC_Mplus_ECCSyndrome3\t\t0x1043\n#define DoC_Mplus_ECCSyndrome4\t\t0x1044\n#define DoC_Mplus_ECCSyndrome5\t\t0x1045\n#define DoC_Mplus_ECCConf \t\t0x1046\n#define DoC_Mplus_Toggle\t\t0x1046\n#define DoC_Mplus_DownloadStatus\t0x1074\n#define DoC_Mplus_CtrlConfirm\t\t0x1076\n#define DoC_Mplus_Power\t\t\t0x1fff\n\n/* How to access the device?\n * On ARM, it'll be mmap'd directly with 32-bit wide accesses.\n * On PPC, it's mmap'd and 16-bit wide.\n * Others use readb/writeb\n */\n#if defined(__arm__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x8000\n#elif defined(__ppc__)\n#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u16 *)(((unsigned long)adr)+((reg)<<1))))\n#define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0)\n#define DOC_IOREMAP_LEN 0x4000\n#else\n#define ReadDOC_(adr, reg) readb((void __iomem *)(adr) + (reg))\n#define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg))\n#define DOC_IOREMAP_LEN 0x2000\n\n#endif\n\n#if defined(__i386__) || defined(__x86_64__)\n#define USE_MEMCPY\n#endif\n\n/* These are provided to directly use the DoC_xxx defines */\n#define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg)\n#define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg)\n\n#define DOC_MODE_RESET \t\t0\n#define DOC_MODE_NORMAL \t1\n#define DOC_MODE_RESERVED1 \t2\n#define DOC_MODE_RESERVED2 \t3\n\n#define DOC_MODE_CLR_ERR \t0x80\n#define\tDOC_MODE_RST_LAT\t0x10\n#define\tDOC_MODE_BDECT\t\t0x08\n#define DOC_MODE_MDWREN \t0x04\n\n#define DOC_ChipID_Doc2k \t0x20\n#define DOC_ChipID_Doc2kTSOP \t0x21\t/* internal number for MTD */\n#define DOC_ChipID_DocMil \t0x30\n#define DOC_ChipID_DocMilPlus32\t0x40\n#define DOC_ChipID_DocMilPlus16\t0x41\n\n#define CDSN_CTRL_FR_B \t\t0x80\n#define CDSN_CTRL_FR_B0\t\t0x40\n#define CDSN_CTRL_FR_B1\t\t0x80\n\n#define CDSN_CTRL_ECC_IO \t0x20\n#define CDSN_CTRL_FLASH_IO \t0x10\n#define CDSN_CTRL_WP \t\t0x08\n#define CDSN_CTRL_ALE \t\t0x04\n#define CDSN_CTRL_CLE \t\t0x02\n#define CDSN_CTRL_CE \t\t0x01\n\n#define DOC_ECC_RESET \t\t0\n#define DOC_ECC_ERROR \t\t0x80\n#define DOC_ECC_RW \t\t0x20\n#define DOC_ECC__EN \t\t0x08\n#define DOC_TOGGLE_BIT \t\t0x04\n#define DOC_ECC_RESV \t\t0x02\n#define DOC_ECC_IGNORE\t\t0x01\n\n#define DOC_FLASH_CE\t\t0x80\n#define DOC_FLASH_WP\t\t0x40\n#define DOC_FLASH_BANK\t\t0x02\n\n/* We have to also set the reserved bit 1 for enable */\n#define DOC_ECC_EN (DOC_ECC__EN | DOC_ECC_RESV)\n#define DOC_ECC_DIS (DOC_ECC_RESV)\n\nstruct Nand {\n\tchar floor, chip;\n\tunsigned long curadr;\n\tunsigned char curmode;\n\t/* Also some erase/write/pipeline info when we get that far */\n};\n\n#define MAX_FLOORS 4\n#define MAX_CHIPS 4\n\n#define MAX_FLOORS_MIL 1\n#define MAX_CHIPS_MIL 1\n\n#define MAX_FLOORS_MPLUS 2\n#define MAX_CHIPS_MPLUS 1\n\n#define ADDR_COLUMN 1\n#define ADDR_PAGE 2\n#define ADDR_COLUMN_PAGE 3\n\nstruct DiskOnChip {\n\tunsigned long physadr;\n\tvoid __iomem *virtadr;\n\tunsigned long totlen;\n\tunsigned char ChipID; /* Type of DiskOnChip */\n\tint ioreg;\n\n\tunsigned long mfr; /* Flash IDs - only one type of flash per device */\n\tunsigned long id;\n\tint chipshift;\n\tchar page256;\n\tchar pageadrlen;\n\tchar interleave; /* Internal interleaving - Millennium Plus style */\n\tunsigned long erasesize;\n\n\tint curfloor;\n\tint curchip;\n\n\tint numchips;\n\tstruct Nand *chips;\n\tstruct mtd_info *nextdoc;\n\tstruct mutex lock;\n};\n\nint doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);\n\n#endif /* __MTD_DOC2000_H__ */\n"}
81,051
c
/* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ double cos (double); void link_error(); void f(double a) { double b = cos (a); double c = cos (a); if (b != c) link_error(); } /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */ /* { dg-final { cleanup-tree-dump "fre" } } */
26.8
15
(translation_unit) "/* { dg-do compile } */ \n/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */\n/* LLVM LOCAL test not applicable */\n/* { dg-require-fdump "" } */\ndouble cos (double);\nvoid link_error();\nvoid f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}\n\n/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */\n/* { dg-final { cleanup-tree-dump "fre" } } */\n" (comment) "/* { dg-do compile } */" (comment) "/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */" (comment) "/* LLVM LOCAL test not applicable */" (comment) "/* { dg-require-fdump "" } */" (declaration) "double cos (double);" (primitive_type) "double" (function_declarator) "cos (double)" (identifier) "cos" (parameter_list) "(double)" (() "(" (parameter_declaration) "double" (primitive_type) "double" ()) ")" (;) ";" (declaration) "void link_error();" (primitive_type) "void" (function_declarator) "link_error()" (identifier) "link_error" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "void f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}" (primitive_type) "void" (function_declarator) "f(double a)" (identifier) "f" (parameter_list) "(double a)" (() "(" (parameter_declaration) "double a" (primitive_type) "double" (identifier) "a" ()) ")" (compound_statement) "{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}" ({) "{" (declaration) "double b = cos (a);" (primitive_type) "double" (init_declarator) "b = cos (a)" (identifier) "b" (=) "=" (call_expression) "cos (a)" (identifier) "cos" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (declaration) "double c = cos (a);" (primitive_type) "double" (init_declarator) "c = cos (a)" (identifier) "c" (=) "=" (call_expression) "cos (a)" (identifier) "cos" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (if_statement) "if (b != c)\n link_error();" (if) "if" (parenthesized_expression) "(b != c)" (() "(" (binary_expression) "b != c" (identifier) "b" (!=) "!=" (identifier) "c" ()) ")" (expression_statement) "link_error();" (call_expression) "link_error()" (identifier) "link_error" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */" (comment) "/* { dg-final { cleanup-tree-dump "fre" } } */"
78
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.8, "nodes": 47, "errors": 0, "source_hash": "3e34baab6ec5cc2b3fec994e5f643782e7c2b0eea01e3dcd6c52c254d12305e2", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "double cos (double);", "parent": null, "children": [1, 2], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 20}}, {"id": 1, "type": "primitive_type", "text": "double", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 2, "type": "function_declarator", "text": "cos (double)", "parent": 0, "children": [3, 4], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 19}}, {"id": 3, "type": "identifier", "text": "cos", "parent": 2, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 10}}, {"id": 4, "type": "parameter_list", "text": "(double)", "parent": 2, "children": [5], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 19}}, {"id": 5, "type": "parameter_declaration", "text": "double", "parent": 4, "children": [6], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 18}}, {"id": 6, "type": "primitive_type", "text": "double", "parent": 5, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 18}}, {"id": 7, "type": "declaration", "text": "void link_error();", "parent": null, "children": [8, 9], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 18}}, {"id": 8, "type": "primitive_type", "text": "void", "parent": 7, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 9, "type": "function_declarator", "text": "link_error()", "parent": 7, "children": [10, 11], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 17}}, {"id": 10, "type": "identifier", "text": "link_error", "parent": 9, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 15}}, {"id": 11, "type": "parameter_list", "text": "()", "parent": 9, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 17}}, {"id": 12, "type": "function_definition", "text": "void f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "f(double a)", "parent": 12, "children": [15, 16], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 16}}, {"id": 15, "type": "identifier", "text": "f", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 6}}, {"id": 16, "type": "parameter_list", "text": "(double a)", "parent": 14, "children": [17], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 16}}, {"id": 17, "type": "parameter_declaration", "text": "double a", "parent": 16, "children": [18, 19], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 15}}, {"id": 18, "type": "primitive_type", "text": "double", "parent": 17, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 13}}, {"id": 19, "type": "identifier", "text": "a", "parent": 17, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 15}}, {"id": 20, "type": "declaration", "text": "double b = cos (a);", "parent": 12, "children": [21, 22], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 21}}, {"id": 21, "type": "primitive_type", "text": "double", "parent": 20, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 8}}, {"id": 22, "type": "init_declarator", "text": "b = cos (a)", "parent": 20, "children": [23, 24, 25], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 23, "type": "identifier", "text": "b", "parent": 22, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 25, "type": "call_expression", "text": "cos (a)", "parent": 22, "children": [26, 27], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 20}}, {"id": 26, "type": "identifier", "text": "cos", "parent": 25, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 16}}, {"id": 27, "type": "argument_list", "text": "(a)", "parent": 25, "children": [28], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 20}}, {"id": 28, "type": "identifier", "text": "a", "parent": 27, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 19}}, {"id": 29, "type": "declaration", "text": "double c = cos (a);", "parent": 12, "children": [30, 31], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 21}}, {"id": 30, "type": "primitive_type", "text": "double", "parent": 29, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 31, "type": "init_declarator", "text": "c = cos (a)", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 32, "type": "identifier", "text": "c", "parent": 31, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 34, "type": "call_expression", "text": "cos (a)", "parent": 31, "children": [35, 36], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 20}}, {"id": 35, "type": "identifier", "text": "cos", "parent": 34, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 36, "type": "argument_list", "text": "(a)", "parent": 34, "children": [37], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 20}}, {"id": 37, "type": "identifier", "text": "a", "parent": 36, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 19}}, {"id": 38, "type": "if_statement", "text": "if (b != c)\n link_error();", "parent": 12, "children": [39], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 17}}, {"id": 39, "type": "parenthesized_expression", "text": "(b != c)", "parent": 38, "children": [40], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 13}}, {"id": 40, "type": "binary_expression", "text": "b != c", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 41, "type": "identifier", "text": "b", "parent": 40, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 7}}, {"id": 42, "type": "!=", "text": "!=", "parent": 40, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 10}}, {"id": 43, "type": "identifier", "text": "c", "parent": 40, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 44, "type": "call_expression", "text": "link_error()", "parent": 38, "children": [45, 46], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 16}}, {"id": 45, "type": "identifier", "text": "link_error", "parent": 44, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 46, "type": "argument_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 16}}]}, "node_categories": {"declarations": {"functions": [2, 9, 12, 14], "variables": [0, 5, 7, 17, 20, 29], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [25, 34, 39, 40, 44], "assignments": [], "loops": [], "conditionals": [3, 10, 15, 19, 23, 26, 28, 32, 35, 37, 38, 41, 43, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "cos (double)"}, {"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "link_error()"}, {"node_id": 12, "universal_type": "function", "name": "f", "text_snippet": "void f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "f(double a)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* { dg-do compile } */ \n/* { dg-options \"-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats\" } */\n/* LLVM LOCAL test not applicable */\n/* { dg-require-fdump \"\" } */\ndouble cos (double);\nvoid link_error();\nvoid f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n link_error();\n}\n\n/* { dg-final { scan-tree-dump-times \"Eliminated: 1\" 1 \"fre\"} } */\n/* { dg-final { cleanup-tree-dump \"fre\" } } */\n"}
81,052
c
/* MacCommandWin.h -- headers for more mac stuff */ void SetSelection (short start, short end); void macputc(int ch); void macputs(char *s); void PrepareForInput(void); void InitalizeCmdWindow(void); void UpdateCmdWindow(void); void StopPasting(void); void DeleteRange(void); void scrflush(void); void SetScrollRect(void); void AdjustCursor(Point theLoc, RgnHandle theRgn); void DoKeyPress(EventRecord *theEvent); void ActivateCmdWindow(void); void DeactivateCmdWindow(void); void CleanupCmdWindow(void);
30.56
16
(translation_unit) "/* MacCommandWin.h -- headers for more mac stuff */\n\nvoid SetSelection (short start, short end);\nvoid macputc(int ch);\nvoid macputs(char *s);\nvoid PrepareForInput(void);\nvoid InitalizeCmdWindow(void);\nvoid UpdateCmdWindow(void);\nvoid StopPasting(void);\nvoid DeleteRange(void);\nvoid scrflush(void);\nvoid SetScrollRect(void);\nvoid AdjustCursor(Point theLoc, RgnHandle theRgn);\nvoid DoKeyPress(EventRecord *theEvent);\nvoid ActivateCmdWindow(void);\nvoid DeactivateCmdWindow(void);\nvoid CleanupCmdWindow(void);\n" (comment) "/* MacCommandWin.h -- headers for more mac stuff */" (declaration) "void SetSelection (short start, short end);" (primitive_type) "void" (function_declarator) "SetSelection (short start, short end)" (identifier) "SetSelection" (parameter_list) "(short start, short end)" (() "(" (parameter_declaration) "short start" (sized_type_specifier) "short" (short) "short" (identifier) "start" (,) "," (parameter_declaration) "short end" (sized_type_specifier) "short" (short) "short" (identifier) "end" ()) ")" (;) ";" (declaration) "void macputc(int ch);" (primitive_type) "void" (function_declarator) "macputc(int ch)" (identifier) "macputc" (parameter_list) "(int ch)" (() "(" (parameter_declaration) "int ch" (primitive_type) "int" (identifier) "ch" ()) ")" (;) ";" (declaration) "void macputs(char *s);" (primitive_type) "void" (function_declarator) "macputs(char *s)" (identifier) "macputs" (parameter_list) "(char *s)" (() "(" (parameter_declaration) "char *s" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "void PrepareForInput(void);" (primitive_type) "void" (function_declarator) "PrepareForInput(void)" (identifier) "PrepareForInput" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void InitalizeCmdWindow(void);" (primitive_type) "void" (function_declarator) "InitalizeCmdWindow(void)" (identifier) "InitalizeCmdWindow" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void UpdateCmdWindow(void);" (primitive_type) "void" (function_declarator) "UpdateCmdWindow(void)" (identifier) "UpdateCmdWindow" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void StopPasting(void);" (primitive_type) "void" (function_declarator) "StopPasting(void)" (identifier) "StopPasting" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void DeleteRange(void);" (primitive_type) "void" (function_declarator) "DeleteRange(void)" (identifier) "DeleteRange" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void scrflush(void);" (primitive_type) "void" (function_declarator) "scrflush(void)" (identifier) "scrflush" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void SetScrollRect(void);" (primitive_type) "void" (function_declarator) "SetScrollRect(void)" (identifier) "SetScrollRect" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void AdjustCursor(Point theLoc, RgnHandle theRgn);" (primitive_type) "void" (function_declarator) "AdjustCursor(Point theLoc, RgnHandle theRgn)" (identifier) "AdjustCursor" (parameter_list) "(Point theLoc, RgnHandle theRgn)" (() "(" (parameter_declaration) "Point theLoc" (type_identifier) "Point" (identifier) "theLoc" (,) "," (parameter_declaration) "RgnHandle theRgn" (type_identifier) "RgnHandle" (identifier) "theRgn" ()) ")" (;) ";" (declaration) "void DoKeyPress(EventRecord *theEvent);" (primitive_type) "void" (function_declarator) "DoKeyPress(EventRecord *theEvent)" (identifier) "DoKeyPress" (parameter_list) "(EventRecord *theEvent)" (() "(" (parameter_declaration) "EventRecord *theEvent" (type_identifier) "EventRecord" (pointer_declarator) "*theEvent" (*) "*" (identifier) "theEvent" ()) ")" (;) ";" (declaration) "void ActivateCmdWindow(void);" (primitive_type) "void" (function_declarator) "ActivateCmdWindow(void)" (identifier) "ActivateCmdWindow" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void DeactivateCmdWindow(void);" (primitive_type) "void" (function_declarator) "DeactivateCmdWindow(void)" (identifier) "DeactivateCmdWindow" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void CleanupCmdWindow(void);" (primitive_type) "void" (function_declarator) "CleanupCmdWindow(void)" (identifier) "CleanupCmdWindow" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";"
171
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.56, "nodes": 121, "errors": 0, "source_hash": "90021998393404d0e35d85914aaf1239bc7e021baa79a239ad1ccc0a5b81cb6c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void SetSelection (short start, short end);", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 43}}, {"id": 1, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "SetSelection (short start, short end)", "parent": 0, "children": [3, 4], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 42}}, {"id": 3, "type": "identifier", "text": "SetSelection", "parent": 2, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 17}}, {"id": 4, "type": "parameter_list", "text": "(short start, short end)", "parent": 2, "children": [5, 9], "start_point": {"row": 2, "column": 18}, "end_point": {"row": 2, "column": 42}}, {"id": 5, "type": "parameter_declaration", "text": "short start", "parent": 4, "children": [6, 8], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 30}}, {"id": 6, "type": "sized_type_specifier", "text": "short", "parent": 5, "children": [7], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 24}}, {"id": 7, "type": "short", "text": "short", "parent": 6, "children": [], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 24}}, {"id": 8, "type": "identifier", "text": "start", "parent": 5, "children": [], "start_point": {"row": 2, "column": 25}, "end_point": {"row": 2, "column": 30}}, {"id": 9, "type": "parameter_declaration", "text": "short end", "parent": 4, "children": [10], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 41}}, {"id": 10, "type": "sized_type_specifier", "text": "short", "parent": 9, "children": [11], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 37}}, {"id": 11, "type": "short", "text": "short", "parent": 10, "children": [], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 37}}, {"id": 12, "type": "declaration", "text": "void macputc(int ch);", "parent": null, "children": [13, 14], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 21}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "macputc(int ch)", "parent": 12, "children": [15, 16], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 20}}, {"id": 15, "type": "identifier", "text": "macputc", "parent": 14, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 12}}, {"id": 16, "type": "parameter_list", "text": "(int ch)", "parent": 14, "children": [17], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 20}}, {"id": 17, "type": "parameter_declaration", "text": "int ch", "parent": 16, "children": [18, 19], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 19}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 16}}, {"id": 19, "type": "identifier", "text": "ch", "parent": 17, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 19}}, {"id": 20, "type": "declaration", "text": "void macputs(char *s);", "parent": null, "children": [21, 22], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 22}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 22, "type": "function_declarator", "text": "macputs(char *s)", "parent": 20, "children": [23, 24], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 21}}, {"id": 23, "type": "identifier", "text": "macputs", "parent": 22, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 12}}, {"id": 24, "type": "parameter_list", "text": "(char *s)", "parent": 22, "children": [25], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 21}}, {"id": 25, "type": "parameter_declaration", "text": "char *s", "parent": 24, "children": [26, 27], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 20}}, {"id": 26, "type": "primitive_type", "text": "char", "parent": 25, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 17}}, {"id": 27, "type": "pointer_declarator", "text": "*s", "parent": 25, "children": [28, 29], "start_point": {"row": 4, "column": 18}, "end_point": {"row": 4, "column": 20}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 4, "column": 18}, "end_point": {"row": 4, "column": 19}}, {"id": 29, "type": "identifier", "text": "s", "parent": 27, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 20}}, {"id": 30, "type": "declaration", "text": "void PrepareForInput(void);", "parent": null, "children": [31, 32], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 27}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 30, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 32, "type": "function_declarator", "text": "PrepareForInput(void)", "parent": 30, "children": [33, 34], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 26}}, {"id": 33, "type": "identifier", "text": "PrepareForInput", "parent": 32, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 20}}, {"id": 34, "type": "parameter_list", "text": "(void)", "parent": 32, "children": [35], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 26}}, {"id": 35, "type": "parameter_declaration", "text": "void", "parent": 34, "children": [36], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 25}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 25}}, {"id": 37, "type": "declaration", "text": "void InitalizeCmdWindow(void);", "parent": null, "children": [38, 39], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 30}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 39, "type": "function_declarator", "text": "InitalizeCmdWindow(void)", "parent": 37, "children": [40, 41], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 29}}, {"id": 40, "type": "identifier", "text": "InitalizeCmdWindow", "parent": 39, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 23}}, {"id": 41, "type": "parameter_list", "text": "(void)", "parent": 39, "children": [42], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 29}}, {"id": 42, "type": "parameter_declaration", "text": "void", "parent": 41, "children": [43], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 28}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 28}}, {"id": 44, "type": "declaration", "text": "void UpdateCmdWindow(void);", "parent": null, "children": [45, 46], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 27}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 46, "type": "function_declarator", "text": "UpdateCmdWindow(void)", "parent": 44, "children": [47, 48], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 26}}, {"id": 47, "type": "identifier", "text": "UpdateCmdWindow", "parent": 46, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 20}}, {"id": 48, "type": "parameter_list", "text": "(void)", "parent": 46, "children": [49], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 26}}, {"id": 49, "type": "parameter_declaration", "text": "void", "parent": 48, "children": [50], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 25}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 25}}, {"id": 51, "type": "declaration", "text": "void StopPasting(void);", "parent": null, "children": [52, 53], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 23}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 53, "type": "function_declarator", "text": "StopPasting(void)", "parent": 51, "children": [54, 55], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 22}}, {"id": 54, "type": "identifier", "text": "StopPasting", "parent": 53, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 16}}, {"id": 55, "type": "parameter_list", "text": "(void)", "parent": 53, "children": [56], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 22}}, {"id": 56, "type": "parameter_declaration", "text": "void", "parent": 55, "children": [57], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 21}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 21}}, {"id": 58, "type": "declaration", "text": "void DeleteRange(void);", "parent": null, "children": [59, 60], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 23}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 60, "type": "function_declarator", "text": "DeleteRange(void)", "parent": 58, "children": [61, 62], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 22}}, {"id": 61, "type": "identifier", "text": "DeleteRange", "parent": 60, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 16}}, {"id": 62, "type": "parameter_list", "text": "(void)", "parent": 60, "children": [63], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 22}}, {"id": 63, "type": "parameter_declaration", "text": "void", "parent": 62, "children": [64], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 64, "type": "primitive_type", "text": "void", "parent": 63, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 65, "type": "declaration", "text": "void scrflush(void);", "parent": null, "children": [66, 67], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 20}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 67, "type": "function_declarator", "text": "scrflush(void)", "parent": 65, "children": [68, 69], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 19}}, {"id": 68, "type": "identifier", "text": "scrflush", "parent": 67, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 13}}, {"id": 69, "type": "parameter_list", "text": "(void)", "parent": 67, "children": [70], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 19}}, {"id": 70, "type": "parameter_declaration", "text": "void", "parent": 69, "children": [71], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 18}}, {"id": 71, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 18}}, {"id": 72, "type": "declaration", "text": "void SetScrollRect(void);", "parent": null, "children": [73, 74], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 25}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 74, "type": "function_declarator", "text": "SetScrollRect(void)", "parent": 72, "children": [75, 76], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 24}}, {"id": 75, "type": "identifier", "text": "SetScrollRect", "parent": 74, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 18}}, {"id": 76, "type": "parameter_list", "text": "(void)", "parent": 74, "children": [77], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 77, "type": "parameter_declaration", "text": "void", "parent": 76, "children": [78], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 79, "type": "declaration", "text": "void AdjustCursor(Point theLoc, RgnHandle theRgn);", "parent": null, "children": [80, 81], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 50}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 81, "type": "function_declarator", "text": "AdjustCursor(Point theLoc, RgnHandle theRgn)", "parent": 79, "children": [82, 83], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 49}}, {"id": 82, "type": "identifier", "text": "AdjustCursor", "parent": 81, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 17}}, {"id": 83, "type": "parameter_list", "text": "(Point theLoc, RgnHandle theRgn)", "parent": 81, "children": [84, 87], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 49}}, {"id": 84, "type": "parameter_declaration", "text": "Point theLoc", "parent": 83, "children": [85, 86], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 30}}, {"id": 85, "type": "type_identifier", "text": "Point", "parent": 84, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 23}}, {"id": 86, "type": "identifier", "text": "theLoc", "parent": 84, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 30}}, {"id": 87, "type": "parameter_declaration", "text": "RgnHandle theRgn", "parent": 83, "children": [88, 89], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 48}}, {"id": 88, "type": "type_identifier", "text": "RgnHandle", "parent": 87, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 41}}, {"id": 89, "type": "identifier", "text": "theRgn", "parent": 87, "children": [], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 48}}, {"id": 90, "type": "declaration", "text": "void DoKeyPress(EventRecord *theEvent);", "parent": null, "children": [91, 92], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 39}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 92, "type": "function_declarator", "text": "DoKeyPress(EventRecord *theEvent)", "parent": 90, "children": [93, 94], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 38}}, {"id": 93, "type": "identifier", "text": "DoKeyPress", "parent": 92, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 15}}, {"id": 94, "type": "parameter_list", "text": "(EventRecord *theEvent)", "parent": 92, "children": [95], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 38}}, {"id": 95, "type": "parameter_declaration", "text": "EventRecord *theEvent", "parent": 94, "children": [96, 97], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 37}}, {"id": 96, "type": "type_identifier", "text": "EventRecord", "parent": 95, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 27}}, {"id": 97, "type": "pointer_declarator", "text": "*theEvent", "parent": 95, "children": [98, 99], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 37}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 29}}, {"id": 99, "type": "identifier", "text": "theEvent", "parent": 97, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 100, "type": "declaration", "text": "void ActivateCmdWindow(void);", "parent": null, "children": [101, 102], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 29}}, {"id": 101, "type": "primitive_type", "text": "void", "parent": 100, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 102, "type": "function_declarator", "text": "ActivateCmdWindow(void)", "parent": 100, "children": [103, 104], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 28}}, {"id": 103, "type": "identifier", "text": "ActivateCmdWindow", "parent": 102, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 22}}, {"id": 104, "type": "parameter_list", "text": "(void)", "parent": 102, "children": [105], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 28}}, {"id": 105, "type": "parameter_declaration", "text": "void", "parent": 104, "children": [106], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 27}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 27}}, {"id": 107, "type": "declaration", "text": "void DeactivateCmdWindow(void);", "parent": null, "children": [108, 109], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 31}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 109, "type": "function_declarator", "text": "DeactivateCmdWindow(void)", "parent": 107, "children": [110, 111], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 30}}, {"id": 110, "type": "identifier", "text": "DeactivateCmdWindow", "parent": 109, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 24}}, {"id": 111, "type": "parameter_list", "text": "(void)", "parent": 109, "children": [112], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 30}}, {"id": 112, "type": "parameter_declaration", "text": "void", "parent": 111, "children": [113], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 29}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 112, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 29}}, {"id": 114, "type": "declaration", "text": "void CleanupCmdWindow(void);", "parent": null, "children": [115, 116], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 28}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 116, "type": "function_declarator", "text": "CleanupCmdWindow(void)", "parent": 114, "children": [117, 118], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 27}}, {"id": 117, "type": "identifier", "text": "CleanupCmdWindow", "parent": 116, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 21}}, {"id": 118, "type": "parameter_list", "text": "(void)", "parent": 116, "children": [119], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 27}}, {"id": 119, "type": "parameter_declaration", "text": "void", "parent": 118, "children": [120], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}]}, "node_categories": {"declarations": {"functions": [2, 14, 22, 32, 39, 46, 53, 60, 67, 74, 81, 92, 102, 109, 116], "variables": [0, 5, 9, 12, 17, 20, 25, 30, 35, 37, 42, 44, 49, 51, 56, 58, 63, 65, 70, 72, 77, 79, 84, 87, 90, 95, 100, 105, 107, 112, 114, 119], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 15, 19, 23, 29, 33, 40, 47, 54, 61, 68, 75, 82, 85, 86, 88, 89, 93, 96, 99, 103, 110, 117], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "SetSelection (short start, short end)"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "macputc(int ch)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "macputs(char *s)"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "PrepareForInput(void)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "InitalizeCmdWindow(void)"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateCmdWindow(void)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "StopPasting(void)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "DeleteRange(void)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "scrflush(void)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "SetScrollRect(void)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "AdjustCursor(Point theLoc, RgnHandle theRgn)"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "DoKeyPress(EventRecord *theEvent)"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "ActivateCmdWindow(void)"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "DeactivateCmdWindow(void)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "CleanupCmdWindow(void)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* MacCommandWin.h -- headers for more mac stuff */\n\nvoid SetSelection (short start, short end);\nvoid macputc(int ch);\nvoid macputs(char *s);\nvoid PrepareForInput(void);\nvoid InitalizeCmdWindow(void);\nvoid UpdateCmdWindow(void);\nvoid StopPasting(void);\nvoid DeleteRange(void);\nvoid scrflush(void);\nvoid SetScrollRect(void);\nvoid AdjustCursor(Point theLoc, RgnHandle theRgn);\nvoid DoKeyPress(EventRecord *theEvent);\nvoid ActivateCmdWindow(void);\nvoid DeactivateCmdWindow(void);\nvoid CleanupCmdWindow(void);\n"}
81,053
c
// // StrategyDetailRelatedServiceCell.h // KidsTC // // Created by Altair on 1/22/16. // Copyright © 2016 KidsTC. All rights reserved. // #import <UIKit/UIKit.h> #import "StrategyDetailServiceItemModel.h" @interface StrategyDetailRelatedServiceCell : UITableViewCell @property (nonatomic, strong) NSIndexPath *indexPath; - (void)configWithModel:(StrategyDetailServiceItemModel *)model; + (CGFloat)cellHeight; @end
28.93
14
(translation_unit) "//\n// StrategyDetailRelatedServiceCell.h\n// KidsTC\n//\n// Created by Altair on 1/22/16.\n// Copyright © 2016 KidsTC. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "StrategyDetailServiceItemModel.h"\n\n@interface StrategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) NSIndexPath *indexPath;\n\n- (void)configWithModel:(StrategyDetailServiceItemModel *)model;\n\n+ (CGFloat)cellHeight;\n\n@end\n" (comment) "//" (comment) "// StrategyDetailRelatedServiceCell.h" (comment) "// KidsTC" (comment) "//" (comment) "// Created by Altair on 1/22/16." (comment) "// Copyright © 2016 KidsTC. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n#" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (preproc_call) "import "StrategyDetailServiceItemModel.h"\n\n" (preproc_directive) "import " (preproc_arg) "StrategyDetailServiceItemModel.h"\n" (ERROR) "interface StrategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) NSIndexPath *indexPath;\n\n- (void)configWithModel:(StrategyDetailServiceItemModel *)model;" (ERROR) "i" (type_identifier) "nterface " (function_declarator) "trategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) " (identifier) "trategyDetailRelatedServiceCell " (ERROR) " UITableViewCell\n\n@property " (:) " " (identifier) "ITableViewCell\n" (ERROR) "p" (identifier) "roperty " (parameter_list) "nonatomic, strong) " (() "n" (identifier) "onatomic," (,) " " (identifier) "trong)" ()) " " (declaration) "SIndexPath *indexPath;\n" (type_identifier) "SIndexPath " (pointer_declarator) "indexPath;" (*) "i" (identifier) "ndexPath;" (;) "\n" (unary_expression) " (void)configWithModel:" (-) " " (cast_expression) "void)configWithModel:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "c" (identifier) "onfigWithModel:" (:) "(" (() "S" (binary_expression) "trategyDetailServiceItemModel *)model;" (identifier) "trategyDetailServiceItemModel " (*) ")" (ERROR) "m" ()) "m" (identifier) "odel;" (expression_statement) "\n" (;) "\n" (expression_statement) " (CGFloat)cellHeight;\n" (unary_expression) " (CGFloat)cellHeight;" (+) " " (cast_expression) "CGFloat)cellHeight;" (() "C" (type_descriptor) "GFloat)" (type_identifier) "GFloat)" ()) "c" (identifier) "ellHeight;" (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
69
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.93, "nodes": 40, "errors": 0, "source_hash": "07135017408306b039f05ce95f89ab2febd392cee62a6aba78cec94c98a93975", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "preproc_call", "text": "import \"StrategyDetailServiceItemModel.h\"\n\n", "parent": null, "children": [3], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "StrategyDetailServiceItemModel.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 42}}, {"id": 4, "type": "ERROR", "text": "interface StrategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) NSIndexPath *indexPath;\n\n- (void)configWithModel:(StrategyDetailServiceItemModel *)model;", "parent": null, "children": [5, 6, 7, 16, 21, 27], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 15, "column": 63}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 7, "type": "function_declarator", "text": "trategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) ", "parent": 4, "children": [8, 9, 13], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 13, "column": 29}}, {"id": 8, "type": "identifier", "text": "trategyDetailRelatedServiceCell ", "parent": 7, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 43}}, {"id": 9, "type": "ERROR", "text": " UITableViewCell\n\n@property ", "parent": 7, "children": [10, 11, 12], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 13, "column": 9}}, {"id": 10, "type": "identifier", "text": "ITableViewCell\n", "parent": 9, "children": [], "start_point": {"row": 11, "column": 46}, "end_point": {"row": 11, "column": 61}}, {"id": 11, "type": "ERROR", "text": "p", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 12, "type": "identifier", "text": "roperty ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 13, "type": "parameter_list", "text": "nonatomic, strong) ", "parent": 7, "children": [14, 15], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 29}}, {"id": 14, "type": "identifier", "text": "onatomic,", "parent": 13, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 15, "type": "identifier", "text": "trong)", "parent": 13, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 16, "type": "declaration", "text": "SIndexPath *indexPath;\n", "parent": 4, "children": [17, 18], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 53}}, {"id": 17, "type": "type_identifier", "text": "SIndexPath ", "parent": 16, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 41}}, {"id": 18, "type": "pointer_declarator", "text": "indexPath;", "parent": 16, "children": [19, 20], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 52}}, {"id": 19, "type": "*", "text": "i", "parent": 18, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 43}}, {"id": 20, "type": "identifier", "text": "ndexPath;", "parent": 18, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 52}}, {"id": 21, "type": "unary_expression", "text": " (void)configWithModel:", "parent": 4, "children": [22, 23], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 23}}, {"id": 22, "type": "-", "text": " ", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 23, "type": "cast_expression", "text": "void)configWithModel:", "parent": 21, "children": [24, 26], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 23}}, {"id": 24, "type": "type_descriptor", "text": "oid)", "parent": 23, "children": [25], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 25, "type": "primitive_type", "text": "oid)", "parent": 24, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 26, "type": "identifier", "text": "onfigWithModel:", "parent": 23, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 23}}, {"id": 27, "type": "binary_expression", "text": "trategyDetailServiceItemModel *)model;", "parent": 4, "children": [28, 29, 30], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 63}}, {"id": 28, "type": "identifier", "text": "trategyDetailServiceItemModel ", "parent": 27, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 55}}, {"id": 29, "type": "ERROR", "text": "m", "parent": 27, "children": [], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 58}}, {"id": 30, "type": "identifier", "text": "odel;", "parent": 27, "children": [], "start_point": {"row": 15, "column": 58}, "end_point": {"row": 15, "column": 63}}, {"id": 31, "type": "unary_expression", "text": " (CGFloat)cellHeight;", "parent": null, "children": [32, 33], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 21}}, {"id": 32, "type": "+", "text": " ", "parent": 31, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 33, "type": "cast_expression", "text": "CGFloat)cellHeight;", "parent": 31, "children": [34, 36], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 21}}, {"id": 34, "type": "type_descriptor", "text": "GFloat)", "parent": 33, "children": [35], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 10}}, {"id": 35, "type": "type_identifier", "text": "GFloat)", "parent": 34, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 10}}, {"id": 36, "type": "identifier", "text": "ellHeight;", "parent": 33, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 21}}, {"id": 37, "type": "ERROR", "text": "e", "parent": null, "children": [38], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 38, "type": "ERROR", "text": "e", "parent": 37, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 39, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 4}}]}, "node_categories": {"declarations": {"functions": [7], "variables": [16], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [21, 23, 27, 31, 33], "assignments": [], "loops": [], "conditionals": [6, 8, 10, 12, 14, 15, 17, 20, 26, 28, 30, 35, 36, 39], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "trategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// StrategyDetailRelatedServiceCell.h\n// KidsTC\n//\n// Created by Altair on 1/22/16.\n// Copyright \u00a9 2016 KidsTC. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"StrategyDetailServiceItemModel.h\"\n\n@interface StrategyDetailRelatedServiceCell : UITableViewCell\n\n@property (nonatomic, strong) NSIndexPath *indexPath;\n\n- (void)configWithModel:(StrategyDetailServiceItemModel *)model;\n\n+ (CGFloat)cellHeight;\n\n@end\n"}
81,054
c
//-------------------------------------------------- // File: typed_allocator.h // Created: 12/12/2021 7:17:25 PM // // Created By: nickdb // // Copyright (c) REX //-------------------------------------------------- #pragma once namespace rtl { template <typename T> class TypedAllocator { public: static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed"); using value_type = T; using size_type = card32; using difference_type = int32; using propagate_on_container_move_assignment = std::true_type; using is_always_equal = std::true_type; constexpr TypedAllocator() noexcept {} template <typename U> constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {} [[nodiscard]] T* allocate(const size_type count) { return static_cast<T*>(operator new(sizeof(T) * count)); } void deallocate(T* const ptr, const size_type count) { operator delete(ptr, sizeof(T) * count); } constexpr bool operator==(const TypedAllocator&) { return true; } constexpr bool operator!=(const TypedAllocator&) { return false; } template <typename Other> constexpr bool operator==(const TypedAllocator<Other>&) { return false; } template <typename Other> constexpr bool operator!=(const TypedAllocator<Other>&) { return true; } }; }
33.95
40
(translation_unit) "//--------------------------------------------------\n// File: typed_allocator.h\n// Created: 12/12/2021 7:17:25 PM\n//\n// Created By: nickdb\n// \n// Copyright (c) REX\n//--------------------------------------------------\n\n#pragma once\n\nnamespace rtl\n{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }\n\n template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true; }\n };\n}" (comment) "//--------------------------------------------------" (comment) "// File: typed_allocator.h" (comment) "// Created: 12/12/2021 7:17:25 PM" (comment) "//" (comment) "// Created By: nickdb" (comment) "// " (comment) "// Copyright (c) REX" (comment) "//--------------------------------------------------" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace rtl\n{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }\n\n template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true; }" (type_identifier) "namespace" (identifier) "rtl" (compound_statement) "{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }\n\n template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true; }" ({) "{" (ERROR) "template <typename T>\n class TypedAllocator" (binary_expression) "template <typename T>\n class" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "TypedAllocator" (compound_statement) "{\n public:\n static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }" ({) "{" (labeled_statement) "public:\n static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");" (statement_identifier) "public" (:) ":" (expression_statement) "static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed");" (call_expression) "static_assert(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed")" (identifier) "static_assert" (argument_list) "(!std::is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed")" (() "(" (ERROR) "!std::" (unary_expression) "!std" (!) "!" (identifier) "std" (:) ":" (:) ":" (binary_expression) "is_const_v<T>, "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed"" (binary_expression) "is_const_v<T" (identifier) "is_const_v" (<) "<" (identifier) "T" (>) ">" (ERROR) "," (,) "," (string_literal) ""The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed"" (") """ (string_content) "The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed" (") """ ()) ")" (;) ";" (declaration) "using value_type = T;" (type_identifier) "using" (init_declarator) "value_type = T" (identifier) "value_type" (=) "=" (identifier) "T" (;) ";" (declaration) "using size_type = card32;" (type_identifier) "using" (init_declarator) "size_type = card32" (identifier) "size_type" (=) "=" (identifier) "card32" (;) ";" (declaration) "using difference_type = int32;" (type_identifier) "using" (init_declarator) "difference_type = int32" (identifier) "difference_type" (=) "=" (identifier) "int32" (;) ";" (declaration) "using propagate_on_container_move_assignment = std::true_type;" (type_identifier) "using" (init_declarator) "propagate_on_container_move_assignment = std::true_type" (identifier) "propagate_on_container_move_assignment" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "true_type" (;) ";" (declaration) "using is_always_equal = std::true_type;" (type_identifier) "using" (init_declarator) "is_always_equal = std::true_type" (identifier) "is_always_equal" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "true_type" (;) ";" (function_definition) "constexpr TypedAllocator() noexcept {}" (type_qualifier) "constexpr" (constexpr) "constexpr" (macro_type_specifier) "TypedAllocator()" (identifier) "TypedAllocator" (() "(" (type_descriptor) "" (type_identifier) "" ()) ")" (identifier) "noexcept" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "template <typename U>\n constexpr" (binary_expression) "template <typename U>\n constexpr" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "U" (identifier) "U" (>) ">" (identifier) "constexpr" (;) "" (expression_statement) "TypedAllocator(const TypedAllocator<U>&) noexcept" (binary_expression) "TypedAllocator(const TypedAllocator<U>&) noexcept" (binary_expression) "TypedAllocator(const TypedAllocator<U" (identifier) "TypedAllocator" (ERROR) "(const TypedAllocator" (() "(" (type_descriptor) "const TypedAllocator" (type_qualifier) "const" (const) "const" (type_identifier) "TypedAllocator" (<) "<" (identifier) "U" (>) ">" (pointer_expression) "&) noexcept" (&) "&" (ERROR) ")" ()) ")" (identifier) "noexcept" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "[[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (type_identifier) "T" (pointer_declarator) "* allocate(const size_type count)" (*) "*" (function_declarator) "allocate(const size_type count)" (identifier) "allocate" (parameter_list) "(const size_type count)" (() "(" (parameter_declaration) "const size_type count" (type_qualifier) "const" (const) "const" (type_identifier) "size_type" (identifier) "count" ()) ")" (compound_statement) "{\n return static_cast<T*>(operator new(sizeof(T) * count));\n }" ({) "{" (return_statement) "return static_cast<T*>(operator new(sizeof(T) * count));" (return) "return" (binary_expression) "static_cast<T*>(operator new(sizeof(T) * count))" (binary_expression) "static_cast<T" (identifier) "static_cast" (<) "<" (identifier) "T" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(operator new(sizeof(T) * count))" (() "(" (ERROR) "operator" (identifier) "operator" (call_expression) "new(sizeof(T) * count)" (identifier) "new" (argument_list) "(sizeof(T) * count)" (() "(" (binary_expression) "sizeof(T) * count" (sizeof_expression) "sizeof(T)" (sizeof) "sizeof" (parenthesized_expression) "(T)" (() "(" (identifier) "T" ()) ")" (*) "*" (identifier) "count" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }" (primitive_type) "void" (function_declarator) "deallocate(T* const ptr, const size_type count)" (identifier) "deallocate" (parameter_list) "(T* const ptr, const size_type count)" (() "(" (parameter_declaration) "T* const ptr" (type_identifier) "T" (pointer_declarator) "* const ptr" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "ptr" (,) "," (parameter_declaration) "const size_type count" (type_qualifier) "const" (const) "const" (type_identifier) "size_type" (identifier) "count" ()) ")" (compound_statement) "{\n operator delete(ptr, sizeof(T) * count);\n }" ({) "{" (declaration) "operator delete(ptr, sizeof(T) * count);" (type_identifier) "operator" (function_declarator) "delete(ptr, sizeof(T) * count)" (identifier) "delete" (parameter_list) "(ptr, sizeof(T) * count)" (() "(" (parameter_declaration) "ptr" (type_identifier) "ptr" (,) "," (parameter_declaration) "sizeof(T) * count" (macro_type_specifier) "sizeof(T)" (identifier) "sizeof" (() "(" (type_descriptor) "T" (type_identifier) "T" ()) ")" (pointer_declarator) "* count" (*) "*" (identifier) "count" ()) ")" (;) ";" (}) "}" (function_definition) "constexpr bool operator==(const TypedAllocator&) { return true; }" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "bool" (ERROR) "operator==(const" (identifier) "operator" (==) "==" (() "(" (const) "const" (identifier) "TypedAllocator" (ERROR) "&)" (&) "&" ()) ")" (compound_statement) "{ return true; }" ({) "{" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "constexpr bool operator!=(const TypedAllocator&) { return false; }" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "bool" (ERROR) "operator!=(const" (identifier) "operator" (!=) "!=" (() "(" (const) "const" (identifier) "TypedAllocator" (ERROR) "&)" (&) "&" ()) ")" (compound_statement) "{ return false; }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false;" (binary_expression) "template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false" (binary_expression) "template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other" (binary_expression) "template <typename Other>\n constexpr bool operator" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Other" (identifier) "Other" (>) ">" (ERROR) "constexpr bool" (identifier) "constexpr" (identifier) "bool" (identifier) "operator" (ERROR) "==(const TypedAllocator" (==) "==" (() "(" (type_descriptor) "const TypedAllocator" (type_qualifier) "const" (const) "const" (type_identifier) "TypedAllocator" (<) "<" (identifier) "Other" (>) ">" (pointer_expression) "&) { return false" (&) "&" (ERROR) ") { return" ()) ")" ({) "{" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true;" (binary_expression) "template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true" (binary_expression) "template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other" (binary_expression) "template <typename Other>\n constexpr bool operator" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Other" (identifier) "Other" (>) ">" (ERROR) "constexpr bool" (identifier) "constexpr" (identifier) "bool" (identifier) "operator" (ERROR) "!=(const TypedAllocator" (!=) "!=" (() "(" (type_descriptor) "const TypedAllocator" (type_qualifier) "const" (const) "const" (type_identifier) "TypedAllocator" (<) "<" (identifier) "Other" (>) ">" (pointer_expression) "&) { return true" (&) "&" (ERROR) ") { return" ()) ")" ({) "{" (return) "return" (true) "true" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}"
357
25
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.95, "nodes": 224, "errors": 0, "source_hash": "1d9fa464ecea2bd5b63e6a276ca2107390dc76da625ff08304314e39c74b4a85", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 12}}, {"id": 3, "type": "function_definition", "text": "namespace rtl\n{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std::is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }\n\n template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true; }", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 49, "column": 76}}, {"id": 4, "type": "type_identifier", "text": "namespace", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 5, "type": "identifier", "text": "rtl", "parent": 3, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 13}}, {"id": 6, "type": "ERROR", "text": "template <typename T>\n class TypedAllocator", "parent": 3, "children": [7, 15], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 14, "column": 22}}, {"id": 7, "type": "binary_expression", "text": "template <typename T>\n class", "parent": 6, "children": [8, 12, 14], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 14, "column": 7}}, {"id": 8, "type": "binary_expression", "text": "template <typename", "parent": 7, "children": [9, 10, 11], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 20}}, {"id": 9, "type": "identifier", "text": "template", "parent": 8, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 10}}, {"id": 10, "type": "<", "text": "<", "parent": 8, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 11, "type": "identifier", "text": "typename", "parent": 8, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 20}}, {"id": 12, "type": "ERROR", "text": "T", "parent": 7, "children": [13], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 13, "type": "identifier", "text": "T", "parent": 12, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 14, "type": ">", "text": ">", "parent": 7, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 15, "type": "identifier", "text": "TypedAllocator", "parent": 6, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 22}}, {"id": 16, "type": "labeled_statement", "text": "public:\n static_assert(!std::is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\");", "parent": 3, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 17, "column": 142}}, {"id": 17, "type": "call_expression", "text": "static_assert(!std::is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\")", "parent": 16, "children": [18, 19], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 141}}, {"id": 18, "type": "identifier", "text": "static_assert", "parent": 17, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 17}}, {"id": 19, "type": "argument_list", "text": "(!std::is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\")", "parent": 17, "children": [20, 24], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 141}}, {"id": 20, "type": "ERROR", "text": "!std::", "parent": 19, "children": [21], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 24}}, {"id": 21, "type": "unary_expression", "text": "!std", "parent": 20, "children": [22, 23], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 22}}, {"id": 22, "type": "!", "text": "!", "parent": 21, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 23, "type": "identifier", "text": "std", "parent": 21, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 22}}, {"id": 24, "type": "binary_expression", "text": "is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\"", "parent": 19, "children": [25, 29, 30], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 140}}, {"id": 25, "type": "binary_expression", "text": "is_const_v<T", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 36}}, {"id": 26, "type": "identifier", "text": "is_const_v", "parent": 25, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 34}}, {"id": 27, "type": "<", "text": "<", "parent": 25, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 28, "type": "identifier", "text": "T", "parent": 25, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 36}}, {"id": 29, "type": ">", "text": ">", "parent": 24, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 30, "type": "string_literal", "text": "\"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\"", "parent": 24, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 140}}, {"id": 31, "type": "declaration", "text": "using value_type = T;", "parent": 3, "children": [32, 33], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 32, "type": "type_identifier", "text": "using", "parent": 31, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 9}}, {"id": 33, "type": "init_declarator", "text": "value_type = T", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 24}}, {"id": 34, "type": "identifier", "text": "value_type", "parent": 33, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 20}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 36, "type": "identifier", "text": "T", "parent": 33, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 37, "type": "declaration", "text": "using size_type = card32;", "parent": 3, "children": [38, 39], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 29}}, {"id": 38, "type": "type_identifier", "text": "using", "parent": 37, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 9}}, {"id": 39, "type": "init_declarator", "text": "size_type = card32", "parent": 37, "children": [40, 41, 42], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 28}}, {"id": 40, "type": "identifier", "text": "size_type", "parent": 39, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 41, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 21}}, {"id": 42, "type": "identifier", "text": "card32", "parent": 39, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 28}}, {"id": 43, "type": "declaration", "text": "using difference_type = int32;", "parent": 3, "children": [44, 45], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 34}}, {"id": 44, "type": "type_identifier", "text": "using", "parent": 43, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 9}}, {"id": 45, "type": "init_declarator", "text": "difference_type = int32", "parent": 43, "children": [46, 47, 48], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 33}}, {"id": 46, "type": "identifier", "text": "difference_type", "parent": 45, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 25}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 48, "type": "identifier", "text": "int32", "parent": 45, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 33}}, {"id": 49, "type": "declaration", "text": "using propagate_on_container_move_assignment = std::true_type;", "parent": 3, "children": [50, 51], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 66}}, {"id": 50, "type": "type_identifier", "text": "using", "parent": 49, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 9}}, {"id": 51, "type": "init_declarator", "text": "propagate_on_container_move_assignment = std::true_type", "parent": 49, "children": [52, 53, 54, 56], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 65}}, {"id": 52, "type": "identifier", "text": "propagate_on_container_move_assignment", "parent": 51, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 48}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 50}}, {"id": 54, "type": "ERROR", "text": "std::", "parent": 51, "children": [55], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 56}}, {"id": 55, "type": "identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 54}}, {"id": 56, "type": "identifier", "text": "true_type", "parent": 51, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 65}}, {"id": 57, "type": "declaration", "text": "using is_always_equal = std::true_type;", "parent": 3, "children": [58, 59], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 43}}, {"id": 58, "type": "type_identifier", "text": "using", "parent": 57, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 9}}, {"id": 59, "type": "init_declarator", "text": "is_always_equal = std::true_type", "parent": 57, "children": [60, 61, 62, 64], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 42}}, {"id": 60, "type": "identifier", "text": "is_always_equal", "parent": 59, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 25}}, {"id": 61, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 27}}, {"id": 62, "type": "ERROR", "text": "std::", "parent": 59, "children": [63], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 33}}, {"id": 63, "type": "identifier", "text": "std", "parent": 62, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 31}}, {"id": 64, "type": "identifier", "text": "true_type", "parent": 59, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 42}}, {"id": 65, "type": "function_definition", "text": "constexpr TypedAllocator() noexcept {}", "parent": 3, "children": [66, 68, 72], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 42}}, {"id": 66, "type": "type_qualifier", "text": "constexpr", "parent": 65, "children": [67], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 13}}, {"id": 67, "type": "constexpr", "text": "constexpr", "parent": 66, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 13}}, {"id": 68, "type": "macro_type_specifier", "text": "TypedAllocator()", "parent": 65, "children": [69, 70], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 30}}, {"id": 69, "type": "identifier", "text": "TypedAllocator", "parent": 68, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 28}}, {"id": 70, "type": "type_descriptor", "text": "", "parent": 68, "children": [71], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 29}}, {"id": 71, "type": "type_identifier", "text": "", "parent": 70, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 29}}, {"id": 72, "type": "identifier", "text": "noexcept", "parent": 65, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 39}}, {"id": 73, "type": "binary_expression", "text": "template <typename U>\n constexpr", "parent": 3, "children": [74, 78, 80, 81], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 74, "type": "binary_expression", "text": "template <typename", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 22}}, {"id": 75, "type": "identifier", "text": "template", "parent": 74, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 76, "type": "<", "text": "<", "parent": 74, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 77, "type": "identifier", "text": "typename", "parent": 74, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 22}}, {"id": 78, "type": "ERROR", "text": "U", "parent": 73, "children": [79], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 24}}, {"id": 79, "type": "identifier", "text": "U", "parent": 78, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 24}}, {"id": 80, "type": ">", "text": ">", "parent": 73, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 81, "type": "identifier", "text": "constexpr", "parent": 73, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 82, "type": "binary_expression", "text": "TypedAllocator(const TypedAllocator<U>&) noexcept", "parent": 3, "children": [83, 90, 91], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 63}}, {"id": 83, "type": "binary_expression", "text": "TypedAllocator(const TypedAllocator<U", "parent": 82, "children": [84, 85, 88, 89], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 51}}, {"id": 84, "type": "identifier", "text": "TypedAllocator", "parent": 83, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 28}}, {"id": 85, "type": "ERROR", "text": "(const TypedAllocator", "parent": 83, "children": [86], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 49}}, {"id": 86, "type": "type_descriptor", "text": "const TypedAllocator", "parent": 85, "children": [87], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 49}}, {"id": 87, "type": "type_identifier", "text": "TypedAllocator", "parent": 86, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 49}}, {"id": 88, "type": "<", "text": "<", "parent": 83, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 50}}, {"id": 89, "type": "identifier", "text": "U", "parent": 83, "children": [], "start_point": {"row": 30, "column": 50}, "end_point": {"row": 30, "column": 51}}, {"id": 90, "type": ">", "text": ">", "parent": 82, "children": [], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 52}}, {"id": 91, "type": "pointer_expression", "text": "&) noexcept", "parent": 82, "children": [92], "start_point": {"row": 30, "column": 52}, "end_point": {"row": 30, "column": 63}}, {"id": 92, "type": "identifier", "text": "noexcept", "parent": 91, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 63}}, {"id": 93, "type": "function_definition", "text": "[[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }", "parent": 3, "children": [94, 99, 100], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 94, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 93, "children": [95, 96, 98], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 17}}, {"id": 95, "type": "[[", "text": "[[", "parent": 94, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 6}}, {"id": 96, "type": "attribute", "text": "nodiscard", "parent": 94, "children": [97], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 15}}, {"id": 97, "type": "identifier", "text": "nodiscard", "parent": 96, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 15}}, {"id": 98, "type": "]]", "text": "]]", "parent": 94, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 17}}, {"id": 99, "type": "type_identifier", "text": "T", "parent": 93, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 100, "type": "pointer_declarator", "text": "* allocate(const size_type count)", "parent": 93, "children": [101, 102], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 52}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 102, "type": "function_declarator", "text": "allocate(const size_type count)", "parent": 100, "children": [103, 104], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 52}}, {"id": 103, "type": "identifier", "text": "allocate", "parent": 102, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 29}}, {"id": 104, "type": "parameter_list", "text": "(const size_type count)", "parent": 102, "children": [105], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 52}}, {"id": 105, "type": "parameter_declaration", "text": "const size_type count", "parent": 104, "children": [106, 107], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 51}}, {"id": 106, "type": "type_identifier", "text": "size_type", "parent": 105, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 45}}, {"id": 107, "type": "identifier", "text": "count", "parent": 105, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 51}}, {"id": 108, "type": "return_statement", "text": "return static_cast<T*>(operator new(sizeof(T) * count));", "parent": 93, "children": [109], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 62}}, {"id": 109, "type": "binary_expression", "text": "static_cast<T*>(operator new(sizeof(T) * count))", "parent": 108, "children": [110, 114, 116, 117], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 61}}, {"id": 110, "type": "binary_expression", "text": "static_cast<T", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 26}}, {"id": 111, "type": "identifier", "text": "static_cast", "parent": 110, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 24}}, {"id": 112, "type": "<", "text": "<", "parent": 110, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 25}}, {"id": 113, "type": "identifier", "text": "T", "parent": 110, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 114, "type": "ERROR", "text": "*", "parent": 109, "children": [115], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 27}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 27}}, {"id": 116, "type": ">", "text": ">", "parent": 109, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 28}}, {"id": 117, "type": "parenthesized_expression", "text": "(operator new(sizeof(T) * count))", "parent": 109, "children": [118, 120], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 61}}, {"id": 118, "type": "ERROR", "text": "operator", "parent": 117, "children": [119], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 37}}, {"id": 119, "type": "identifier", "text": "operator", "parent": 118, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 37}}, {"id": 120, "type": "call_expression", "text": "new(sizeof(T) * count)", "parent": 117, "children": [121], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 60}}, {"id": 121, "type": "argument_list", "text": "(sizeof(T) * count)", "parent": 120, "children": [122], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 60}}, {"id": 122, "type": "binary_expression", "text": "sizeof(T) * count", "parent": 121, "children": [123, 126, 127], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 59}}, {"id": 123, "type": "sizeof_expression", "text": "sizeof(T)", "parent": 122, "children": [124], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 51}}, {"id": 124, "type": "parenthesized_expression", "text": "(T)", "parent": 123, "children": [125], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 51}}, {"id": 125, "type": "identifier", "text": "T", "parent": 124, "children": [], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 50}}, {"id": 126, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 53}}, {"id": 127, "type": "identifier", "text": "count", "parent": 122, "children": [], "start_point": {"row": 34, "column": 54}, "end_point": {"row": 34, "column": 59}}, {"id": 128, "type": "function_definition", "text": "void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }", "parent": 3, "children": [129, 130], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 130, "type": "function_declarator", "text": "deallocate(T* const ptr, const size_type count)", "parent": 128, "children": [131, 132], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 56}}, {"id": 131, "type": "identifier", "text": "deallocate", "parent": 130, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 19}}, {"id": 132, "type": "parameter_list", "text": "(T* const ptr, const size_type count)", "parent": 130, "children": [133, 138], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 56}}, {"id": 133, "type": "parameter_declaration", "text": "T* const ptr", "parent": 132, "children": [134, 135], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 32}}, {"id": 134, "type": "type_identifier", "text": "T", "parent": 133, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 135, "type": "pointer_declarator", "text": "* const ptr", "parent": 133, "children": [136, 137], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 32}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 137, "type": "identifier", "text": "ptr", "parent": 135, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 32}}, {"id": 138, "type": "parameter_declaration", "text": "const size_type count", "parent": 132, "children": [139, 140], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 55}}, {"id": 139, "type": "type_identifier", "text": "size_type", "parent": 138, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 49}}, {"id": 140, "type": "identifier", "text": "count", "parent": 138, "children": [], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 55}}, {"id": 141, "type": "declaration", "text": "operator delete(ptr, sizeof(T) * count);", "parent": 128, "children": [142, 143], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 46}}, {"id": 142, "type": "type_identifier", "text": "operator", "parent": 141, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 14}}, {"id": 143, "type": "function_declarator", "text": "delete(ptr, sizeof(T) * count)", "parent": 141, "children": [144], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 45}}, {"id": 144, "type": "parameter_list", "text": "(ptr, sizeof(T) * count)", "parent": 143, "children": [145, 147], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 45}}, {"id": 145, "type": "parameter_declaration", "text": "ptr", "parent": 144, "children": [146], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 25}}, {"id": 146, "type": "type_identifier", "text": "ptr", "parent": 145, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 25}}, {"id": 147, "type": "parameter_declaration", "text": "sizeof(T) * count", "parent": 144, "children": [148, 151], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 44}}, {"id": 148, "type": "macro_type_specifier", "text": "sizeof(T)", "parent": 147, "children": [149], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 36}}, {"id": 149, "type": "type_descriptor", "text": "T", "parent": 148, "children": [150], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 35}}, {"id": 150, "type": "type_identifier", "text": "T", "parent": 149, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 35}}, {"id": 151, "type": "pointer_declarator", "text": "* count", "parent": 147, "children": [152, 153], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 44}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 38}}, {"id": 153, "type": "identifier", "text": "count", "parent": 151, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 44}}, {"id": 154, "type": "function_definition", "text": "constexpr bool operator==(const TypedAllocator&) { return true; }", "parent": 3, "children": [155, 157, 158, 161, 162], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 69}}, {"id": 155, "type": "type_qualifier", "text": "constexpr", "parent": 154, "children": [156], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 13}}, {"id": 156, "type": "constexpr", "text": "constexpr", "parent": 155, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 13}}, {"id": 157, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 158, "type": "ERROR", "text": "operator==(const", "parent": 154, "children": [159, 160], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 35}}, {"id": 159, "type": "identifier", "text": "operator", "parent": 158, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 27}}, {"id": 160, "type": "==", "text": "==", "parent": 158, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 29}}, {"id": 161, "type": "identifier", "text": "TypedAllocator", "parent": 154, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 50}}, {"id": 162, "type": "ERROR", "text": "&)", "parent": 154, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 52}}, {"id": 163, "type": "return_statement", "text": "return true;", "parent": 154, "children": [164], "start_point": {"row": 42, "column": 55}, "end_point": {"row": 42, "column": 67}}, {"id": 164, "type": "true", "text": "true", "parent": 163, "children": [], "start_point": {"row": 42, "column": 62}, "end_point": {"row": 42, "column": 66}}, {"id": 165, "type": "function_definition", "text": "constexpr bool operator!=(const TypedAllocator&) { return false; }", "parent": 3, "children": [166, 168, 169, 172, 173], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 70}}, {"id": 166, "type": "type_qualifier", "text": "constexpr", "parent": 165, "children": [167], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 167, "type": "constexpr", "text": "constexpr", "parent": 166, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 168, "type": "primitive_type", "text": "bool", "parent": 165, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 18}}, {"id": 169, "type": "ERROR", "text": "operator!=(const", "parent": 165, "children": [170, 171], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 35}}, {"id": 170, "type": "identifier", "text": "operator", "parent": 169, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 27}}, {"id": 171, "type": "!=", "text": "!=", "parent": 169, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 29}}, {"id": 172, "type": "identifier", "text": "TypedAllocator", "parent": 165, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 50}}, {"id": 173, "type": "ERROR", "text": "&)", "parent": 165, "children": [], "start_point": {"row": 43, "column": 50}, "end_point": {"row": 43, "column": 52}}, {"id": 174, "type": "return_statement", "text": "return false;", "parent": 165, "children": [175], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 68}}, {"id": 175, "type": "false", "text": "false", "parent": 174, "children": [], "start_point": {"row": 43, "column": 62}, "end_point": {"row": 43, "column": 67}}, {"id": 176, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false", "parent": 3, "children": [177, 196, 197], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 46, "column": 74}}, {"id": 177, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other", "parent": 176, "children": [178, 190, 194, 195], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 46, "column": 56}}, {"id": 178, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator", "parent": 177, "children": [179, 183, 185, 186, 189], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 46, "column": 27}}, {"id": 179, "type": "binary_expression", "text": "template <typename", "parent": 178, "children": [180, 181, 182], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 22}}, {"id": 180, "type": "identifier", "text": "template", "parent": 179, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 12}}, {"id": 181, "type": "<", "text": "<", "parent": 179, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 14}}, {"id": 182, "type": "identifier", "text": "typename", "parent": 179, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 22}}, {"id": 183, "type": "ERROR", "text": "Other", "parent": 178, "children": [184], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 28}}, {"id": 184, "type": "identifier", "text": "Other", "parent": 183, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 28}}, {"id": 185, "type": ">", "text": ">", "parent": 178, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 29}}, {"id": 186, "type": "ERROR", "text": "constexpr bool", "parent": 178, "children": [187, 188], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 18}}, {"id": 187, "type": "identifier", "text": "constexpr", "parent": 186, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 188, "type": "identifier", "text": "bool", "parent": 186, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 189, "type": "identifier", "text": "operator", "parent": 178, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 27}}, {"id": 190, "type": "ERROR", "text": "==(const TypedAllocator", "parent": 177, "children": [191, 192], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 50}}, {"id": 191, "type": "==", "text": "==", "parent": 190, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 29}}, {"id": 192, "type": "type_descriptor", "text": "const TypedAllocator", "parent": 190, "children": [193], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 50}}, {"id": 193, "type": "type_identifier", "text": "TypedAllocator", "parent": 192, "children": [], "start_point": {"row": 46, "column": 36}, "end_point": {"row": 46, "column": 50}}, {"id": 194, "type": "<", "text": "<", "parent": 177, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 195, "type": "identifier", "text": "Other", "parent": 177, "children": [], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 56}}, {"id": 196, "type": ">", "text": ">", "parent": 176, "children": [], "start_point": {"row": 46, "column": 56}, "end_point": {"row": 46, "column": 57}}, {"id": 197, "type": "pointer_expression", "text": "&) { return false", "parent": 176, "children": [198, 199], "start_point": {"row": 46, "column": 57}, "end_point": {"row": 46, "column": 74}}, {"id": 198, "type": "ERROR", "text": ") { return", "parent": 197, "children": [], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 68}}, {"id": 199, "type": "false", "text": "false", "parent": 197, "children": [], "start_point": {"row": 46, "column": 69}, "end_point": {"row": 46, "column": 74}}, {"id": 200, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true", "parent": 3, "children": [201, 220, 221], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 49, "column": 73}}, {"id": 201, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other", "parent": 200, "children": [202, 214, 218, 219], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 49, "column": 56}}, {"id": 202, "type": "binary_expression", "text": "template <typename Other>\n constexpr bool operator", "parent": 201, "children": [203, 207, 209, 210, 213], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 49, "column": 27}}, {"id": 203, "type": "binary_expression", "text": "template <typename", "parent": 202, "children": [204, 205, 206], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 22}}, {"id": 204, "type": "identifier", "text": "template", "parent": 203, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 12}}, {"id": 205, "type": "<", "text": "<", "parent": 203, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 14}}, {"id": 206, "type": "identifier", "text": "typename", "parent": 203, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 22}}, {"id": 207, "type": "ERROR", "text": "Other", "parent": 202, "children": [208], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 28}}, {"id": 208, "type": "identifier", "text": "Other", "parent": 207, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 28}}, {"id": 209, "type": ">", "text": ">", "parent": 202, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 29}}, {"id": 210, "type": "ERROR", "text": "constexpr bool", "parent": 202, "children": [211, 212], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 18}}, {"id": 211, "type": "identifier", "text": "constexpr", "parent": 210, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 13}}, {"id": 212, "type": "identifier", "text": "bool", "parent": 210, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 213, "type": "identifier", "text": "operator", "parent": 202, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 27}}, {"id": 214, "type": "ERROR", "text": "!=(const TypedAllocator", "parent": 201, "children": [215, 216], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 50}}, {"id": 215, "type": "!=", "text": "!=", "parent": 214, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 29}}, {"id": 216, "type": "type_descriptor", "text": "const TypedAllocator", "parent": 214, "children": [217], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 50}}, {"id": 217, "type": "type_identifier", "text": "TypedAllocator", "parent": 216, "children": [], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 50}}, {"id": 218, "type": "<", "text": "<", "parent": 201, "children": [], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 49, "column": 51}}, {"id": 219, "type": "identifier", "text": "Other", "parent": 201, "children": [], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 56}}, {"id": 220, "type": ">", "text": ">", "parent": 200, "children": [], "start_point": {"row": 49, "column": 56}, "end_point": {"row": 49, "column": 57}}, {"id": 221, "type": "pointer_expression", "text": "&) { return true", "parent": 200, "children": [222, 223], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 73}}, {"id": 222, "type": "ERROR", "text": ") { return", "parent": 221, "children": [], "start_point": {"row": 49, "column": 58}, "end_point": {"row": 49, "column": 68}}, {"id": 223, "type": "true", "text": "true", "parent": 221, "children": [], "start_point": {"row": 49, "column": 69}, "end_point": {"row": 49, "column": 73}}]}, "node_categories": {"declarations": {"functions": [3, 65, 93, 102, 128, 130, 143, 154, 165], "variables": [31, 37, 43, 49, 57, 94, 105, 133, 138, 141, 145, 147], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [7, 8, 17, 21, 24, 25, 73, 74, 82, 83, 91, 109, 110, 117, 120, 122, 123, 124, 176, 177, 178, 179, 197, 200, 201, 202, 203, 221], "assignments": [], "loops": [], "conditionals": [4, 5, 9, 11, 13, 15, 18, 23, 26, 28, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 55, 56, 58, 60, 63, 64, 66, 68, 69, 71, 72, 75, 77, 79, 81, 84, 87, 89, 92, 97, 99, 103, 106, 107, 111, 113, 119, 125, 127, 131, 134, 137, 139, 140, 142, 146, 148, 150, 153, 155, 159, 161, 166, 170, 172, 180, 182, 184, 187, 188, 189, 193, 195, 204, 206, 208, 211, 212, 213, 217, 219], "returns": [108, 163, 174], "exceptions": []}, "expressions": {"calls": [0], "literals": [30], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "TypedAllocator", "text_snippet": "namespace rtl\n{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std:"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr TypedAllocator() noexcept {}"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "[[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(siz"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "allocate(const size_type count)"}, {"node_id": 128, "universal_type": "function", "name": "deallocate", "text_snippet": "void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * co"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "deallocate(T* const ptr, const size_type count)"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "delete(ptr, sizeof(T) * count)"}, {"node_id": 154, "universal_type": "function", "name": "operator==", "text_snippet": "constexpr bool operator==(const TypedAllocator&) { return true; }"}, {"node_id": 165, "universal_type": "function", "name": "operator!=", "text_snippet": "constexpr bool operator!=(const TypedAllocator&) { return false; }"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//--------------------------------------------------\n// File: typed_allocator.h\n// Created: 12/12/2021 7:17:25 PM\n//\n// Created By: nickdb\n// \n// Copyright (c) REX\n//--------------------------------------------------\n\n#pragma once\n\nnamespace rtl\n{\n template <typename T>\n class TypedAllocator\n {\n public:\n static_assert(!std::is_const_v<T>, \"The C++ standard forbids containers of const elements because TypedAllocator<const T> is ill-formed\");\n\n using value_type = T;\n\n using size_type = card32;\n using difference_type = int32;\n\n using propagate_on_container_move_assignment = std::true_type;\n using is_always_equal = std::true_type;\n\n constexpr TypedAllocator() noexcept {}\n\n template <typename U>\n constexpr TypedAllocator(const TypedAllocator<U>&) noexcept {}\n\n [[nodiscard]] T* allocate(const size_type count)\n {\n return static_cast<T*>(operator new(sizeof(T) * count));\n }\n\n void deallocate(T* const ptr, const size_type count)\n {\n operator delete(ptr, sizeof(T) * count);\n }\n\n constexpr bool operator==(const TypedAllocator&) { return true; }\n constexpr bool operator!=(const TypedAllocator&) { return false; }\n\n template <typename Other>\n constexpr bool operator==(const TypedAllocator<Other>&) { return false; }\n\n template <typename Other>\n constexpr bool operator!=(const TypedAllocator<Other>&) { return true; }\n };\n}"}
81,055
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices */ @interface SSVFamilyContentDeletionEvent : NSObject { NSArray * _deletedAccounts; } @property (nonatomic, readonly) NSArray *deletedAccounts; + (id)notificationPayloadWithAccountPairs:(id)arg1; + (void)postDistributedNotificationWithAccountPairs:(id)arg1; - (void).cxx_destruct; - (id)deletedAccounts; - (id)initWithNotificationUserInfo:(id)arg1; - (id)initWithXPCEventStreamEvent:(id)arg1; @end
35.93
14
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices\n */\n\n@interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}\n\n@property (nonatomic, readonly) NSArray *deletedAccounts;\n\n+ (id)notificationPayloadWithAccountPairs:(id)arg1;\n+ (void)postDistributedNotificationWithAccountPairs:(id)arg1;\n\n- (void).cxx_destruct;\n- (id)deletedAccounts;\n- (id)initWithNotificationUserInfo:(id)arg1;\n- (id)initWithXPCEventStreamEvent:(id)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices\n */" (ERROR) "@interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}\n\n@property (nonatomic, readonly)" (ERROR) "@" (function_definition) "interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}" (type_identifier) "interface" (identifier) "SSVFamilyContentDeletionEvent" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSArray * _deletedAccounts;\n}" ({) "{" (declaration) "NSArray * _deletedAccounts;" (type_identifier) "NSArray" (pointer_declarator) "* _deletedAccounts" (*) "*" (identifier) "_deletedAccounts" (;) ";" (}) "}" (ERROR) "@" (ERROR) "@" (call_expression) "property (nonatomic, readonly)" (identifier) "property" (argument_list) "(nonatomic, readonly)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readonly" ()) ")" (declaration) "NSArray *deletedAccounts;" (type_identifier) "NSArray" (pointer_declarator) "*deletedAccounts" (*) "*" (identifier) "deletedAccounts" (;) ";" (expression_statement) "+ (id)notificationPayloadWithAccountPairs:(id)arg1;" (unary_expression) "+ (id)notificationPayloadWithAccountPairs" (+) "+" (cast_expression) "(id)notificationPayloadWithAccountPairs" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "notificationPayloadWithAccountPairs" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (void)postDistributedNotificationWithAccountPairs:(id)arg1;" (unary_expression) "+ (void)postDistributedNotificationWithAccountPairs" (+) "+" (cast_expression) "(void)postDistributedNotificationWithAccountPairs" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "postDistributedNotificationWithAccountPairs" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void).cxx_destruct;" (unary_expression) "- (void).cxx_destruct" (-) "-" (cast_expression) "(void).cxx_destruct" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (ERROR) "." (.) "." (identifier) "cxx_destruct" (;) ";" (expression_statement) "- (id)deletedAccounts;" (unary_expression) "- (id)deletedAccounts" (-) "-" (cast_expression) "(id)deletedAccounts" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "deletedAccounts" (;) ";" (expression_statement) "- (id)initWithNotificationUserInfo:(id)arg1;" (unary_expression) "- (id)initWithNotificationUserInfo" (-) "-" (cast_expression) "(id)initWithNotificationUserInfo" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithNotificationUserInfo" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)initWithXPCEventStreamEvent:(id)arg1;" (unary_expression) "- (id)initWithXPCEventStreamEvent" (-) "-" (cast_expression) "(id)initWithXPCEventStreamEvent" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithXPCEventStreamEvent" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
126
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.93, "nodes": 74, "errors": 0, "source_hash": "c77d0a58bd6af8bf4b887b3f05a3b2575042da689fc77aacad22c6cd8034a61e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}\n\n@property (nonatomic, readonly)", "parent": null, "children": [1, 2, 12, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 8, "column": 31}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 2, "type": "function_definition", "text": "interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}", "parent": 0, "children": [3, 4, 5], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 6, "column": 1}}, {"id": 3, "type": "type_identifier", "text": "interface", "parent": 2, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 4, "type": "identifier", "text": "SSVFamilyContentDeletionEvent", "parent": 2, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 40}}, {"id": 5, "type": "ERROR", "text": ": NSObject", "parent": 2, "children": [6], "start_point": {"row": 4, "column": 41}, "end_point": {"row": 4, "column": 51}}, {"id": 6, "type": "identifier", "text": "NSObject", "parent": 5, "children": [], "start_point": {"row": 4, "column": 43}, "end_point": {"row": 4, "column": 51}}, {"id": 7, "type": "declaration", "text": "NSArray * _deletedAccounts;", "parent": 2, "children": [8, 9], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 31}}, {"id": 8, "type": "type_identifier", "text": "NSArray", "parent": 7, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 11}}, {"id": 9, "type": "pointer_declarator", "text": "* _deletedAccounts", "parent": 7, "children": [10, 11], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 30}}, {"id": 10, "type": "*", "text": "*", "parent": 9, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 13}}, {"id": 11, "type": "identifier", "text": "_deletedAccounts", "parent": 9, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 30}}, {"id": 12, "type": "ERROR", "text": "@", "parent": 0, "children": [13], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 13, "type": "ERROR", "text": "@", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 14, "type": "call_expression", "text": "property (nonatomic, readonly)", "parent": 0, "children": [15, 16], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 31}}, {"id": 15, "type": "identifier", "text": "property", "parent": 14, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 9}}, {"id": 16, "type": "argument_list", "text": "(nonatomic, readonly)", "parent": 14, "children": [17, 18], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 31}}, {"id": 17, "type": "identifier", "text": "nonatomic", "parent": 16, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 20}}, {"id": 18, "type": "identifier", "text": "readonly", "parent": 16, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 30}}, {"id": 19, "type": "declaration", "text": "NSArray *deletedAccounts;", "parent": null, "children": [20, 21], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 57}}, {"id": 20, "type": "type_identifier", "text": "NSArray", "parent": 19, "children": [], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 39}}, {"id": 21, "type": "pointer_declarator", "text": "*deletedAccounts", "parent": 19, "children": [22, 23], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 56}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 41}}, {"id": 23, "type": "identifier", "text": "deletedAccounts", "parent": 21, "children": [], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 56}}, {"id": 24, "type": "unary_expression", "text": "+ (id)notificationPayloadWithAccountPairs", "parent": null, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 41}}, {"id": 25, "type": "+", "text": "+", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 26, "type": "cast_expression", "text": "(id)notificationPayloadWithAccountPairs", "parent": 24, "children": [27, 29], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 41}}, {"id": 27, "type": "type_descriptor", "text": "id", "parent": 26, "children": [28], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 5}}, {"id": 28, "type": "type_identifier", "text": "id", "parent": 27, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 5}}, {"id": 29, "type": "identifier", "text": "notificationPayloadWithAccountPairs", "parent": 26, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 41}}, {"id": 30, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [31, 32], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 50}}, {"id": 31, "type": "identifier", "text": "id", "parent": 30, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 45}}, {"id": 32, "type": "identifier", "text": "arg1", "parent": 30, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 50}}, {"id": 33, "type": "unary_expression", "text": "+ (void)postDistributedNotificationWithAccountPairs", "parent": null, "children": [34, 35], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 51}}, {"id": 34, "type": "+", "text": "+", "parent": 33, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "(void)postDistributedNotificationWithAccountPairs", "parent": 33, "children": [36, 38], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 51}}, {"id": 36, "type": "type_descriptor", "text": "void", "parent": 35, "children": [37], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 38, "type": "identifier", "text": "postDistributedNotificationWithAccountPairs", "parent": 35, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 51}}, {"id": 39, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [40, 41], "start_point": {"row": 11, "column": 51}, "end_point": {"row": 11, "column": 60}}, {"id": 40, "type": "identifier", "text": "id", "parent": 39, "children": [], "start_point": {"row": 11, "column": 53}, "end_point": {"row": 11, "column": 55}}, {"id": 41, "type": "identifier", "text": "arg1", "parent": 39, "children": [], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 60}}, {"id": 42, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [43, 44], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 21}}, {"id": 43, "type": "-", "text": "-", "parent": 42, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 44, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 42, "children": [45, 47], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 21}}, {"id": 45, "type": "type_descriptor", "text": "void", "parent": 44, "children": [46], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 47, "type": "identifier", "text": "cxx_destruct", "parent": 44, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 48, "type": "unary_expression", "text": "- (id)deletedAccounts", "parent": null, "children": [49, 50], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 21}}, {"id": 49, "type": "-", "text": "-", "parent": 48, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 50, "type": "cast_expression", "text": "(id)deletedAccounts", "parent": 48, "children": [51, 53], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 21}}, {"id": 51, "type": "type_descriptor", "text": "id", "parent": 50, "children": [52], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 52, "type": "type_identifier", "text": "id", "parent": 51, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 53, "type": "identifier", "text": "deletedAccounts", "parent": 50, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 21}}, {"id": 54, "type": "unary_expression", "text": "- (id)initWithNotificationUserInfo", "parent": null, "children": [55, 56], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 34}}, {"id": 55, "type": "-", "text": "-", "parent": 54, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 56, "type": "cast_expression", "text": "(id)initWithNotificationUserInfo", "parent": 54, "children": [57, 59], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 34}}, {"id": 57, "type": "type_descriptor", "text": "id", "parent": 56, "children": [58], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 58, "type": "type_identifier", "text": "id", "parent": 57, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 59, "type": "identifier", "text": "initWithNotificationUserInfo", "parent": 56, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 34}}, {"id": 60, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [61, 62], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 43}}, {"id": 61, "type": "identifier", "text": "id", "parent": 60, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 38}}, {"id": 62, "type": "identifier", "text": "arg1", "parent": 60, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 43}}, {"id": 63, "type": "unary_expression", "text": "- (id)initWithXPCEventStreamEvent", "parent": null, "children": [64, 65], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 33}}, {"id": 64, "type": "-", "text": "-", "parent": 63, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 65, "type": "cast_expression", "text": "(id)initWithXPCEventStreamEvent", "parent": 63, "children": [66, 68], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 33}}, {"id": 66, "type": "type_descriptor", "text": "id", "parent": 65, "children": [67], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 67, "type": "type_identifier", "text": "id", "parent": 66, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 68, "type": "identifier", "text": "initWithXPCEventStreamEvent", "parent": 65, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 33}}, {"id": 69, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [70, 71], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 42}}, {"id": 70, "type": "identifier", "text": "id", "parent": 69, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 37}}, {"id": 71, "type": "identifier", "text": "arg1", "parent": 69, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 42}}, {"id": 72, "type": "ERROR", "text": "@", "parent": null, "children": [73], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 73, "type": "ERROR", "text": "@", "parent": 72, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}]}, "node_categories": {"declarations": {"functions": [2], "variables": [7, 19], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [14, 24, 26, 33, 35, 42, 44, 48, 50, 54, 56, 63, 65], "assignments": [], "loops": [], "conditionals": [3, 4, 6, 8, 11, 15, 17, 18, 20, 23, 28, 29, 31, 32, 38, 40, 41, 47, 52, 53, 58, 59, 61, 62, 67, 68, 70, 71], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "SSVFamilyContentDeletionEvent", "text_snippet": "interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices\n */\n\n@interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}\n\n@property (nonatomic, readonly) NSArray *deletedAccounts;\n\n+ (id)notificationPayloadWithAccountPairs:(id)arg1;\n+ (void)postDistributedNotificationWithAccountPairs:(id)arg1;\n\n- (void).cxx_destruct;\n- (id)deletedAccounts;\n- (id)initWithNotificationUserInfo:(id)arg1;\n- (id)initWithXPCEventStreamEvent:(id)arg1;\n\n@end\n"}
81,056
c
// C:\diabpsx\PSXSRC\PADS.H #include "types.h" // address: 0x8014785C // line start: 99 // line end: 103 unsigned short GetDown__C4CPad(struct CPad *this) { } // address: 0x8014AC70 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) { } // address: 0x80159028 // line start: 113 // line end: 117 void Flush__4CPad(struct CPad *this) { } // address: 0x8007E994 // line start: 85 // line end: 89 unsigned short GetCur__C4CPad(struct CPad *this) { } // address: 0x800852CC // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) { } // address: 0x800852F4 // line start: 92 // line end: 96 unsigned short GetUp__C4CPad(struct CPad *this) { } // address: 0x8008595C // line start: 77 // line end: 77 void SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) { } // address: 0x80085964 // size: 0x6C // line start: 75 // line end: 75 struct CPad *__4CPadi(struct CPad *this, int PhysStick) { } // address: 0x80085998 // line start: 113 // line end: 117 void Flush__4CPad_addr_80085998(struct CPad *this) { } // address: 0x8009430C // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) { } // address: 0x80094334 // line start: 85 // line end: 89 unsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) { } // address: 0x8009AE10 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) { } // address: 0x8009AE38 // line start: 85 // line end: 89 unsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) { } // address: 0x8009F0A8 // line start: 106 // line end: 110 unsigned short GetTick__C4CPad(struct CPad *this) { } // address: 0x8009F0D0 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) { } // address: 0x8009F0F8 // line start: 92 // line end: 96 unsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) { } // address: 0x8009F120 // line start: 85 // line end: 89 unsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) { } // address: 0x8009F148 // line start: 82 // line end: 82 void SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) { } // address: 0x8009F150 // line start: 81 // line end: 81 void SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) { } // address: 0x80035ED4 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) { } // address: 0x800705A0 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) { } // address: 0x80076B10 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) { } // address: 0x80076B38 // line start: 92 // line end: 96 unsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) { } // address: 0x80076B60 // line start: 85 // line end: 89 unsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) { }
19.8
146
(translation_unit) "// C:\diabpsx\PSXSRC\PADS.H\n\n#include "types.h"\n\n// address: 0x8014785C\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8014AC70\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) {\n}\n\n\n// address: 0x80159028\n// line start: 113\n// line end: 117\nvoid Flush__4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8007E994\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x800852CC\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) {\n}\n\n\n// address: 0x800852F4\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8008595C\n// line start: 77\n// line end: 77\nvoid SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) {\n}\n\n\n// address: 0x80085964\n// size: 0x6C\n// line start: 75\n// line end: 75\nstruct CPad *__4CPadi(struct CPad *this, int PhysStick) {\n}\n\n\n// address: 0x80085998\n// line start: 113\n// line end: 117\nvoid Flush__4CPad_addr_80085998(struct CPad *this) {\n}\n\n\n// address: 0x8009430C\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) {\n}\n\n\n// address: 0x80094334\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) {\n}\n\n\n// address: 0x8009AE10\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) {\n}\n\n\n// address: 0x8009AE38\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) {\n}\n\n\n// address: 0x8009F0A8\n// line start: 106\n// line end: 110\nunsigned short GetTick__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8009F0D0\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) {\n}\n\n\n// address: 0x8009F0F8\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) {\n}\n\n\n// address: 0x8009F120\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) {\n}\n\n\n// address: 0x8009F148\n// line start: 82\n// line end: 82\nvoid SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) {\n}\n\n\n// address: 0x8009F150\n// line start: 81\n// line end: 81\nvoid SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) {\n}\n\n\n// address: 0x80035ED4\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) {\n}\n\n\n// address: 0x800705A0\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) {\n}\n\n\n// address: 0x80076B10\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) {\n}\n\n\n// address: 0x80076B38\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) {\n}\n\n\n// address: 0x80076B60\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) {\n}\n\n\n" (comment) "// C:\diabpsx\PSXSRC\PADS.H" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_content) "types.h" (") """ (comment) "// address: 0x8014785C" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad(struct CPad *this)" (identifier) "GetDown__C4CPad" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8014AC70" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_8014AC70(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_8014AC70" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80159028" (comment) "// line start: 113" (comment) "// line end: 117" (function_definition) "void Flush__4CPad(struct CPad *this) {\n}" (primitive_type) "void" (function_declarator) "Flush__4CPad(struct CPad *this)" (identifier) "Flush__4CPad" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8007E994" (comment) "// line start: 85" (comment) "// line end: 89" (function_definition) "unsigned short GetCur__C4CPad(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetCur__C4CPad(struct CPad *this)" (identifier) "GetCur__C4CPad" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x800852CC" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_800852CC(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_800852CC" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x800852F4" (comment) "// line start: 92" (comment) "// line end: 96" (function_definition) "unsigned short GetUp__C4CPad(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetUp__C4CPad(struct CPad *this)" (identifier) "GetUp__C4CPad" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8008595C" (comment) "// line start: 77" (comment) "// line end: 77" (function_definition) "void SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) {\n}" (primitive_type) "void" (function_declarator) "SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl)" (identifier) "SetBothFlag__4CPadUc" (parameter_list) "(struct CPad *this, unsigned char fl)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "unsigned char fl" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (identifier) "fl" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80085964" (comment) "// size: 0x6C" (comment) "// line start: 75" (comment) "// line end: 75" (function_definition) "struct CPad *__4CPadi(struct CPad *this, int PhysStick) {\n}" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*__4CPadi(struct CPad *this, int PhysStick)" (*) "*" (function_declarator) "__4CPadi(struct CPad *this, int PhysStick)" (identifier) "__4CPadi" (parameter_list) "(struct CPad *this, int PhysStick)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "int PhysStick" (primitive_type) "int" (identifier) "PhysStick" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80085998" (comment) "// line start: 113" (comment) "// line end: 117" (function_definition) "void Flush__4CPad_addr_80085998(struct CPad *this) {\n}" (primitive_type) "void" (function_declarator) "Flush__4CPad_addr_80085998(struct CPad *this)" (identifier) "Flush__4CPad_addr_80085998" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009430C" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_8009430C(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_8009430C" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80094334" (comment) "// line start: 85" (comment) "// line end: 89" (function_definition) "unsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetCur__C4CPad_addr_80094334(struct CPad *this)" (identifier) "GetCur__C4CPad_addr_80094334" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009AE10" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_8009AE10(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_8009AE10" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009AE38" (comment) "// line start: 85" (comment) "// line end: 89" (function_definition) "unsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetCur__C4CPad_addr_8009AE38(struct CPad *this)" (identifier) "GetCur__C4CPad_addr_8009AE38" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F0A8" (comment) "// line start: 106" (comment) "// line end: 110" (function_definition) "unsigned short GetTick__C4CPad(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetTick__C4CPad(struct CPad *this)" (identifier) "GetTick__C4CPad" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F0D0" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_8009F0D0(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_8009F0D0" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F0F8" (comment) "// line start: 92" (comment) "// line end: 96" (function_definition) "unsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetUp__C4CPad_addr_8009F0F8(struct CPad *this)" (identifier) "GetUp__C4CPad_addr_8009F0F8" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F120" (comment) "// line start: 85" (comment) "// line end: 89" (function_definition) "unsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetCur__C4CPad_addr_8009F120(struct CPad *this)" (identifier) "GetCur__C4CPad_addr_8009F120" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F148" (comment) "// line start: 82" (comment) "// line end: 82" (function_definition) "void SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) {\n}" (primitive_type) "void" (function_declarator) "SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask)" (identifier) "SetPadTickMask__4CPadUs" (parameter_list) "(struct CPad *this, unsigned short mask)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "unsigned short mask" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (identifier) "mask" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x8009F150" (comment) "// line start: 81" (comment) "// line end: 81" (function_definition) "void SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) {\n}" (primitive_type) "void" (function_declarator) "SetPadTick__4CPadUs(struct CPad *this, unsigned short tick)" (identifier) "SetPadTick__4CPadUs" (parameter_list) "(struct CPad *this, unsigned short tick)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "unsigned short tick" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (identifier) "tick" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80035ED4" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_80035ED4(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_80035ED4" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x800705A0" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_800705A0(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_800705A0" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80076B10" (comment) "// line start: 99" (comment) "// line end: 103" (function_definition) "unsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetDown__C4CPad_addr_80076B10(struct CPad *this)" (identifier) "GetDown__C4CPad_addr_80076B10" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80076B38" (comment) "// line start: 92" (comment) "// line end: 96" (function_definition) "unsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetUp__C4CPad_addr_80076B38(struct CPad *this)" (identifier) "GetUp__C4CPad_addr_80076B38" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// address: 0x80076B60" (comment) "// line start: 85" (comment) "// line end: 89" (function_definition) "unsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) {\n}" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (function_declarator) "GetCur__C4CPad_addr_80076B60(struct CPad *this)" (identifier) "GetCur__C4CPad_addr_80076B60" (parameter_list) "(struct CPad *this)" (() "(" (parameter_declaration) "struct CPad *this" (struct_specifier) "struct CPad" (struct) "struct" (type_identifier) "CPad" (pointer_declarator) "*this" (*) "*" (identifier) "this" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}"
551
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 19.8, "nodes": 349, "errors": 0, "source_hash": "786647bab86883c0142a5f09858f70b560977ad880d85f0880c3ed6a260afec0", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"types.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"types.h\"", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 3, "type": "function_definition", "text": "unsigned short GetDown__C4CPad(struct CPad *this) {\n}", "parent": null, "children": [4, 7], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "sized_type_specifier", "text": "unsigned short", "parent": 3, "children": [5, 6], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 14}}, {"id": 5, "type": "unsigned", "text": "unsigned", "parent": 4, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 6, "type": "short", "text": "short", "parent": 4, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 14}}, {"id": 7, "type": "function_declarator", "text": "GetDown__C4CPad(struct CPad *this)", "parent": 3, "children": [8, 9], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 49}}, {"id": 8, "type": "identifier", "text": "GetDown__C4CPad", "parent": 7, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 30}}, {"id": 9, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 7, "children": [10], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 49}}, {"id": 10, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 9, "children": [11, 14], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 48}}, {"id": 11, "type": "struct_specifier", "text": "struct CPad", "parent": 10, "children": [12, 13], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 42}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 37}}, {"id": 13, "type": "type_identifier", "text": "CPad", "parent": 11, "children": [], "start_point": {"row": 7, "column": 38}, "end_point": {"row": 7, "column": 42}}, {"id": 14, "type": "pointer_declarator", "text": "*this", "parent": 10, "children": [15, 16], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 48}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 44}}, {"id": 16, "type": "identifier", "text": "this", "parent": 14, "children": [], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 48}}, {"id": 17, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) {\n}", "parent": null, "children": [18, 21], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 18, "type": "sized_type_specifier", "text": "unsigned short", "parent": 17, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 14}}, {"id": 19, "type": "unsigned", "text": "unsigned", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 20, "type": "short", "text": "short", "parent": 18, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 14}}, {"id": 21, "type": "function_declarator", "text": "GetDown__C4CPad_addr_8014AC70(struct CPad *this)", "parent": 17, "children": [22, 23], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 63}}, {"id": 22, "type": "identifier", "text": "GetDown__C4CPad_addr_8014AC70", "parent": 21, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 44}}, {"id": 23, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 21, "children": [24], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 63}}, {"id": 24, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 23, "children": [25, 28], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 62}}, {"id": 25, "type": "struct_specifier", "text": "struct CPad", "parent": 24, "children": [26, 27], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 56}}, {"id": 26, "type": "struct", "text": "struct", "parent": 25, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 51}}, {"id": 27, "type": "type_identifier", "text": "CPad", "parent": 25, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 56}}, {"id": 28, "type": "pointer_declarator", "text": "*this", "parent": 24, "children": [29, 30], "start_point": {"row": 14, "column": 57}, "end_point": {"row": 14, "column": 62}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 14, "column": 57}, "end_point": {"row": 14, "column": 58}}, {"id": 30, "type": "identifier", "text": "this", "parent": 28, "children": [], "start_point": {"row": 14, "column": 58}, "end_point": {"row": 14, "column": 62}}, {"id": 31, "type": "function_definition", "text": "void Flush__4CPad(struct CPad *this) {\n}", "parent": null, "children": [32, 33], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 32, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 33, "type": "function_declarator", "text": "Flush__4CPad(struct CPad *this)", "parent": 31, "children": [34, 35], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 36}}, {"id": 34, "type": "identifier", "text": "Flush__4CPad", "parent": 33, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 17}}, {"id": 35, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 33, "children": [36], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 36}}, {"id": 36, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 35, "children": [37, 40], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 35}}, {"id": 37, "type": "struct_specifier", "text": "struct CPad", "parent": 36, "children": [38, 39], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 29}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 24}}, {"id": 39, "type": "type_identifier", "text": "CPad", "parent": 37, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 29}}, {"id": 40, "type": "pointer_declarator", "text": "*this", "parent": 36, "children": [41, 42], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 35}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 31}}, {"id": 42, "type": "identifier", "text": "this", "parent": 40, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 35}}, {"id": 43, "type": "function_definition", "text": "unsigned short GetCur__C4CPad(struct CPad *this) {\n}", "parent": null, "children": [44, 47], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 44, "type": "sized_type_specifier", "text": "unsigned short", "parent": 43, "children": [45, 46], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 14}}, {"id": 45, "type": "unsigned", "text": "unsigned", "parent": 44, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 46, "type": "short", "text": "short", "parent": 44, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 14}}, {"id": 47, "type": "function_declarator", "text": "GetCur__C4CPad(struct CPad *this)", "parent": 43, "children": [48, 49], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 48}}, {"id": 48, "type": "identifier", "text": "GetCur__C4CPad", "parent": 47, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 29}}, {"id": 49, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 47, "children": [50], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 48}}, {"id": 50, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 49, "children": [51, 54], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 47}}, {"id": 51, "type": "struct_specifier", "text": "struct CPad", "parent": 50, "children": [52, 53], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 41}}, {"id": 52, "type": "struct", "text": "struct", "parent": 51, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 36}}, {"id": 53, "type": "type_identifier", "text": "CPad", "parent": 51, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 41}}, {"id": 54, "type": "pointer_declarator", "text": "*this", "parent": 50, "children": [55, 56], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 47}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 43}}, {"id": 56, "type": "identifier", "text": "this", "parent": 54, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 47}}, {"id": 57, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) {\n}", "parent": null, "children": [58, 61], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 58, "type": "sized_type_specifier", "text": "unsigned short", "parent": 57, "children": [59, 60], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 14}}, {"id": 59, "type": "unsigned", "text": "unsigned", "parent": 58, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 60, "type": "short", "text": "short", "parent": 58, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 14}}, {"id": 61, "type": "function_declarator", "text": "GetDown__C4CPad_addr_800852CC(struct CPad *this)", "parent": 57, "children": [62, 63], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 63}}, {"id": 62, "type": "identifier", "text": "GetDown__C4CPad_addr_800852CC", "parent": 61, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 44}}, {"id": 63, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 61, "children": [64], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 63}}, {"id": 64, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 63, "children": [65, 68], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 62}}, {"id": 65, "type": "struct_specifier", "text": "struct CPad", "parent": 64, "children": [66, 67], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 56}}, {"id": 66, "type": "struct", "text": "struct", "parent": 65, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 51}}, {"id": 67, "type": "type_identifier", "text": "CPad", "parent": 65, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 56}}, {"id": 68, "type": "pointer_declarator", "text": "*this", "parent": 64, "children": [69, 70], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 62}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 58}}, {"id": 70, "type": "identifier", "text": "this", "parent": 68, "children": [], "start_point": {"row": 35, "column": 58}, "end_point": {"row": 35, "column": 62}}, {"id": 71, "type": "function_definition", "text": "unsigned short GetUp__C4CPad(struct CPad *this) {\n}", "parent": null, "children": [72, 75], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 72, "type": "sized_type_specifier", "text": "unsigned short", "parent": 71, "children": [73, 74], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 14}}, {"id": 73, "type": "unsigned", "text": "unsigned", "parent": 72, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 74, "type": "short", "text": "short", "parent": 72, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 14}}, {"id": 75, "type": "function_declarator", "text": "GetUp__C4CPad(struct CPad *this)", "parent": 71, "children": [76, 77], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 47}}, {"id": 76, "type": "identifier", "text": "GetUp__C4CPad", "parent": 75, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 28}}, {"id": 77, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 75, "children": [78], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 47}}, {"id": 78, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 77, "children": [79, 82], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 46}}, {"id": 79, "type": "struct_specifier", "text": "struct CPad", "parent": 78, "children": [80, 81], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 40}}, {"id": 80, "type": "struct", "text": "struct", "parent": 79, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 35}}, {"id": 81, "type": "type_identifier", "text": "CPad", "parent": 79, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 40}}, {"id": 82, "type": "pointer_declarator", "text": "*this", "parent": 78, "children": [83, 84], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 46}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 42}}, {"id": 84, "type": "identifier", "text": "this", "parent": 82, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 46}}, {"id": 85, "type": "function_definition", "text": "void SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) {\n}", "parent": null, "children": [86, 87], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 87, "type": "function_declarator", "text": "SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl)", "parent": 85, "children": [88, 89], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 62}}, {"id": 88, "type": "identifier", "text": "SetBothFlag__4CPadUc", "parent": 87, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 25}}, {"id": 89, "type": "parameter_list", "text": "(struct CPad *this, unsigned char fl)", "parent": 87, "children": [90, 97], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 62}}, {"id": 90, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 89, "children": [91, 94], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 43}}, {"id": 91, "type": "struct_specifier", "text": "struct CPad", "parent": 90, "children": [92, 93], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 37}}, {"id": 92, "type": "struct", "text": "struct", "parent": 91, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 32}}, {"id": 93, "type": "type_identifier", "text": "CPad", "parent": 91, "children": [], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 37}}, {"id": 94, "type": "pointer_declarator", "text": "*this", "parent": 90, "children": [95, 96], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 43}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 39}}, {"id": 96, "type": "identifier", "text": "this", "parent": 94, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 43}}, {"id": 97, "type": "parameter_declaration", "text": "unsigned char fl", "parent": 89, "children": [98, 101], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 61}}, {"id": 98, "type": "sized_type_specifier", "text": "unsigned char", "parent": 97, "children": [99, 100], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 58}}, {"id": 99, "type": "unsigned", "text": "unsigned", "parent": 98, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 53}}, {"id": 100, "type": "primitive_type", "text": "char", "parent": 98, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 58}}, {"id": 101, "type": "identifier", "text": "fl", "parent": 97, "children": [], "start_point": {"row": 49, "column": 59}, "end_point": {"row": 49, "column": 61}}, {"id": 102, "type": "function_definition", "text": "struct CPad *__4CPadi(struct CPad *this, int PhysStick) {\n}", "parent": null, "children": [103, 106], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 103, "type": "struct_specifier", "text": "struct CPad", "parent": 102, "children": [104, 105], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 11}}, {"id": 104, "type": "struct", "text": "struct", "parent": 103, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 105, "type": "type_identifier", "text": "CPad", "parent": 103, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 11}}, {"id": 106, "type": "pointer_declarator", "text": "*__4CPadi(struct CPad *this, int PhysStick)", "parent": 102, "children": [107, 108], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 55}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 108, "type": "function_declarator", "text": "__4CPadi(struct CPad *this, int PhysStick)", "parent": 106, "children": [109, 110], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 55}}, {"id": 109, "type": "identifier", "text": "__4CPadi", "parent": 108, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 21}}, {"id": 110, "type": "parameter_list", "text": "(struct CPad *this, int PhysStick)", "parent": 108, "children": [111, 118], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 55}}, {"id": 111, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 110, "children": [112, 115], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 39}}, {"id": 112, "type": "struct_specifier", "text": "struct CPad", "parent": 111, "children": [113, 114], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 33}}, {"id": 113, "type": "struct", "text": "struct", "parent": 112, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 28}}, {"id": 114, "type": "type_identifier", "text": "CPad", "parent": 112, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 33}}, {"id": 115, "type": "pointer_declarator", "text": "*this", "parent": 111, "children": [116, 117], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 39}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 35}}, {"id": 117, "type": "identifier", "text": "this", "parent": 115, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 39}}, {"id": 118, "type": "parameter_declaration", "text": "int PhysStick", "parent": 110, "children": [119, 120], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 54}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 44}}, {"id": 120, "type": "identifier", "text": "PhysStick", "parent": 118, "children": [], "start_point": {"row": 57, "column": 45}, "end_point": {"row": 57, "column": 54}}, {"id": 121, "type": "function_definition", "text": "void Flush__4CPad_addr_80085998(struct CPad *this) {\n}", "parent": null, "children": [122, 123], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 122, "type": "primitive_type", "text": "void", "parent": 121, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 123, "type": "function_declarator", "text": "Flush__4CPad_addr_80085998(struct CPad *this)", "parent": 121, "children": [124, 125], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 50}}, {"id": 124, "type": "identifier", "text": "Flush__4CPad_addr_80085998", "parent": 123, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 31}}, {"id": 125, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 123, "children": [126], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 50}}, {"id": 126, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 125, "children": [127, 130], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 49}}, {"id": 127, "type": "struct_specifier", "text": "struct CPad", "parent": 126, "children": [128, 129], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 43}}, {"id": 128, "type": "struct", "text": "struct", "parent": 127, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 38}}, {"id": 129, "type": "type_identifier", "text": "CPad", "parent": 127, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 43}}, {"id": 130, "type": "pointer_declarator", "text": "*this", "parent": 126, "children": [131, 132], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 49}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 45}}, {"id": 132, "type": "identifier", "text": "this", "parent": 130, "children": [], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 49}}, {"id": 133, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) {\n}", "parent": null, "children": [134, 137], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 134, "type": "sized_type_specifier", "text": "unsigned short", "parent": 133, "children": [135, 136], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 14}}, {"id": 135, "type": "unsigned", "text": "unsigned", "parent": 134, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 136, "type": "short", "text": "short", "parent": 134, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 14}}, {"id": 137, "type": "function_declarator", "text": "GetDown__C4CPad_addr_8009430C(struct CPad *this)", "parent": 133, "children": [138, 139], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 63}}, {"id": 138, "type": "identifier", "text": "GetDown__C4CPad_addr_8009430C", "parent": 137, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 44}}, {"id": 139, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 137, "children": [140], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 63}}, {"id": 140, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 139, "children": [141, 144], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 62}}, {"id": 141, "type": "struct_specifier", "text": "struct CPad", "parent": 140, "children": [142, 143], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 56}}, {"id": 142, "type": "struct", "text": "struct", "parent": 141, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 51}}, {"id": 143, "type": "type_identifier", "text": "CPad", "parent": 141, "children": [], "start_point": {"row": 71, "column": 52}, "end_point": {"row": 71, "column": 56}}, {"id": 144, "type": "pointer_declarator", "text": "*this", "parent": 140, "children": [145, 146], "start_point": {"row": 71, "column": 57}, "end_point": {"row": 71, "column": 62}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 71, "column": 57}, "end_point": {"row": 71, "column": 58}}, {"id": 146, "type": "identifier", "text": "this", "parent": 144, "children": [], "start_point": {"row": 71, "column": 58}, "end_point": {"row": 71, "column": 62}}, {"id": 147, "type": "function_definition", "text": "unsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) {\n}", "parent": null, "children": [148, 151], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 148, "type": "sized_type_specifier", "text": "unsigned short", "parent": 147, "children": [149, 150], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 14}}, {"id": 149, "type": "unsigned", "text": "unsigned", "parent": 148, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 8}}, {"id": 150, "type": "short", "text": "short", "parent": 148, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 14}}, {"id": 151, "type": "function_declarator", "text": "GetCur__C4CPad_addr_80094334(struct CPad *this)", "parent": 147, "children": [152, 153], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 62}}, {"id": 152, "type": "identifier", "text": "GetCur__C4CPad_addr_80094334", "parent": 151, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 43}}, {"id": 153, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 151, "children": [154], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 62}}, {"id": 154, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 153, "children": [155, 158], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 61}}, {"id": 155, "type": "struct_specifier", "text": "struct CPad", "parent": 154, "children": [156, 157], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 55}}, {"id": 156, "type": "struct", "text": "struct", "parent": 155, "children": [], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 50}}, {"id": 157, "type": "type_identifier", "text": "CPad", "parent": 155, "children": [], "start_point": {"row": 78, "column": 51}, "end_point": {"row": 78, "column": 55}}, {"id": 158, "type": "pointer_declarator", "text": "*this", "parent": 154, "children": [159, 160], "start_point": {"row": 78, "column": 56}, "end_point": {"row": 78, "column": 61}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 78, "column": 56}, "end_point": {"row": 78, "column": 57}}, {"id": 160, "type": "identifier", "text": "this", "parent": 158, "children": [], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 61}}, {"id": 161, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) {\n}", "parent": null, "children": [162, 165], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 1}}, {"id": 162, "type": "sized_type_specifier", "text": "unsigned short", "parent": 161, "children": [163, 164], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 14}}, {"id": 163, "type": "unsigned", "text": "unsigned", "parent": 162, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 8}}, {"id": 164, "type": "short", "text": "short", "parent": 162, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 14}}, {"id": 165, "type": "function_declarator", "text": "GetDown__C4CPad_addr_8009AE10(struct CPad *this)", "parent": 161, "children": [166, 167], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 63}}, {"id": 166, "type": "identifier", "text": "GetDown__C4CPad_addr_8009AE10", "parent": 165, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 44}}, {"id": 167, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 165, "children": [168], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 63}}, {"id": 168, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 167, "children": [169, 172], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 62}}, {"id": 169, "type": "struct_specifier", "text": "struct CPad", "parent": 168, "children": [170, 171], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 56}}, {"id": 170, "type": "struct", "text": "struct", "parent": 169, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 51}}, {"id": 171, "type": "type_identifier", "text": "CPad", "parent": 169, "children": [], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 56}}, {"id": 172, "type": "pointer_declarator", "text": "*this", "parent": 168, "children": [173, 174], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 62}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 58}}, {"id": 174, "type": "identifier", "text": "this", "parent": 172, "children": [], "start_point": {"row": 85, "column": 58}, "end_point": {"row": 85, "column": 62}}, {"id": 175, "type": "function_definition", "text": "unsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) {\n}", "parent": null, "children": [176, 179], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 176, "type": "sized_type_specifier", "text": "unsigned short", "parent": 175, "children": [177, 178], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 14}}, {"id": 177, "type": "unsigned", "text": "unsigned", "parent": 176, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 8}}, {"id": 178, "type": "short", "text": "short", "parent": 176, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 14}}, {"id": 179, "type": "function_declarator", "text": "GetCur__C4CPad_addr_8009AE38(struct CPad *this)", "parent": 175, "children": [180, 181], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 62}}, {"id": 180, "type": "identifier", "text": "GetCur__C4CPad_addr_8009AE38", "parent": 179, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 43}}, {"id": 181, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 179, "children": [182], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 62}}, {"id": 182, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 181, "children": [183, 186], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 61}}, {"id": 183, "type": "struct_specifier", "text": "struct CPad", "parent": 182, "children": [184, 185], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 55}}, {"id": 184, "type": "struct", "text": "struct", "parent": 183, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 50}}, {"id": 185, "type": "type_identifier", "text": "CPad", "parent": 183, "children": [], "start_point": {"row": 92, "column": 51}, "end_point": {"row": 92, "column": 55}}, {"id": 186, "type": "pointer_declarator", "text": "*this", "parent": 182, "children": [187, 188], "start_point": {"row": 92, "column": 56}, "end_point": {"row": 92, "column": 61}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 92, "column": 56}, "end_point": {"row": 92, "column": 57}}, {"id": 188, "type": "identifier", "text": "this", "parent": 186, "children": [], "start_point": {"row": 92, "column": 57}, "end_point": {"row": 92, "column": 61}}, {"id": 189, "type": "function_definition", "text": "unsigned short GetTick__C4CPad(struct CPad *this) {\n}", "parent": null, "children": [190, 193], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 190, "type": "sized_type_specifier", "text": "unsigned short", "parent": 189, "children": [191, 192], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 14}}, {"id": 191, "type": "unsigned", "text": "unsigned", "parent": 190, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 8}}, {"id": 192, "type": "short", "text": "short", "parent": 190, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 14}}, {"id": 193, "type": "function_declarator", "text": "GetTick__C4CPad(struct CPad *this)", "parent": 189, "children": [194, 195], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 49}}, {"id": 194, "type": "identifier", "text": "GetTick__C4CPad", "parent": 193, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 30}}, {"id": 195, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 193, "children": [196], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 49}}, {"id": 196, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 195, "children": [197, 200], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 48}}, {"id": 197, "type": "struct_specifier", "text": "struct CPad", "parent": 196, "children": [198, 199], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 42}}, {"id": 198, "type": "struct", "text": "struct", "parent": 197, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 37}}, {"id": 199, "type": "type_identifier", "text": "CPad", "parent": 197, "children": [], "start_point": {"row": 99, "column": 38}, "end_point": {"row": 99, "column": 42}}, {"id": 200, "type": "pointer_declarator", "text": "*this", "parent": 196, "children": [201, 202], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 48}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 44}}, {"id": 202, "type": "identifier", "text": "this", "parent": 200, "children": [], "start_point": {"row": 99, "column": 44}, "end_point": {"row": 99, "column": 48}}, {"id": 203, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) {\n}", "parent": null, "children": [204, 207], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 204, "type": "sized_type_specifier", "text": "unsigned short", "parent": 203, "children": [205, 206], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 14}}, {"id": 205, "type": "unsigned", "text": "unsigned", "parent": 204, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 8}}, {"id": 206, "type": "short", "text": "short", "parent": 204, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 14}}, {"id": 207, "type": "function_declarator", "text": "GetDown__C4CPad_addr_8009F0D0(struct CPad *this)", "parent": 203, "children": [208, 209], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 63}}, {"id": 208, "type": "identifier", "text": "GetDown__C4CPad_addr_8009F0D0", "parent": 207, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 44}}, {"id": 209, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 207, "children": [210], "start_point": {"row": 106, "column": 44}, "end_point": {"row": 106, "column": 63}}, {"id": 210, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 209, "children": [211, 214], "start_point": {"row": 106, "column": 45}, "end_point": {"row": 106, "column": 62}}, {"id": 211, "type": "struct_specifier", "text": "struct CPad", "parent": 210, "children": [212, 213], "start_point": {"row": 106, "column": 45}, "end_point": {"row": 106, "column": 56}}, {"id": 212, "type": "struct", "text": "struct", "parent": 211, "children": [], "start_point": {"row": 106, "column": 45}, "end_point": {"row": 106, "column": 51}}, {"id": 213, "type": "type_identifier", "text": "CPad", "parent": 211, "children": [], "start_point": {"row": 106, "column": 52}, "end_point": {"row": 106, "column": 56}}, {"id": 214, "type": "pointer_declarator", "text": "*this", "parent": 210, "children": [215, 216], "start_point": {"row": 106, "column": 57}, "end_point": {"row": 106, "column": 62}}, {"id": 215, "type": "*", "text": "*", "parent": 214, "children": [], "start_point": {"row": 106, "column": 57}, "end_point": {"row": 106, "column": 58}}, {"id": 216, "type": "identifier", "text": "this", "parent": 214, "children": [], "start_point": {"row": 106, "column": 58}, "end_point": {"row": 106, "column": 62}}, {"id": 217, "type": "function_definition", "text": "unsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) {\n}", "parent": null, "children": [218, 221], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 218, "type": "sized_type_specifier", "text": "unsigned short", "parent": 217, "children": [219, 220], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 14}}, {"id": 219, "type": "unsigned", "text": "unsigned", "parent": 218, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 8}}, {"id": 220, "type": "short", "text": "short", "parent": 218, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 14}}, {"id": 221, "type": "function_declarator", "text": "GetUp__C4CPad_addr_8009F0F8(struct CPad *this)", "parent": 217, "children": [222, 223], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 61}}, {"id": 222, "type": "identifier", "text": "GetUp__C4CPad_addr_8009F0F8", "parent": 221, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 42}}, {"id": 223, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 221, "children": [224], "start_point": {"row": 113, "column": 42}, "end_point": {"row": 113, "column": 61}}, {"id": 224, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 223, "children": [225, 228], "start_point": {"row": 113, "column": 43}, "end_point": {"row": 113, "column": 60}}, {"id": 225, "type": "struct_specifier", "text": "struct CPad", "parent": 224, "children": [226, 227], "start_point": {"row": 113, "column": 43}, "end_point": {"row": 113, "column": 54}}, {"id": 226, "type": "struct", "text": "struct", "parent": 225, "children": [], "start_point": {"row": 113, "column": 43}, "end_point": {"row": 113, "column": 49}}, {"id": 227, "type": "type_identifier", "text": "CPad", "parent": 225, "children": [], "start_point": {"row": 113, "column": 50}, "end_point": {"row": 113, "column": 54}}, {"id": 228, "type": "pointer_declarator", "text": "*this", "parent": 224, "children": [229, 230], "start_point": {"row": 113, "column": 55}, "end_point": {"row": 113, "column": 60}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 113, "column": 55}, "end_point": {"row": 113, "column": 56}}, {"id": 230, "type": "identifier", "text": "this", "parent": 228, "children": [], "start_point": {"row": 113, "column": 56}, "end_point": {"row": 113, "column": 60}}, {"id": 231, "type": "function_definition", "text": "unsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) {\n}", "parent": null, "children": [232, 235], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 232, "type": "sized_type_specifier", "text": "unsigned short", "parent": 231, "children": [233, 234], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 14}}, {"id": 233, "type": "unsigned", "text": "unsigned", "parent": 232, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 8}}, {"id": 234, "type": "short", "text": "short", "parent": 232, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 14}}, {"id": 235, "type": "function_declarator", "text": "GetCur__C4CPad_addr_8009F120(struct CPad *this)", "parent": 231, "children": [236, 237], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 62}}, {"id": 236, "type": "identifier", "text": "GetCur__C4CPad_addr_8009F120", "parent": 235, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 43}}, {"id": 237, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 235, "children": [238], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 62}}, {"id": 238, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 237, "children": [239, 242], "start_point": {"row": 120, "column": 44}, "end_point": {"row": 120, "column": 61}}, {"id": 239, "type": "struct_specifier", "text": "struct CPad", "parent": 238, "children": [240, 241], "start_point": {"row": 120, "column": 44}, "end_point": {"row": 120, "column": 55}}, {"id": 240, "type": "struct", "text": "struct", "parent": 239, "children": [], "start_point": {"row": 120, "column": 44}, "end_point": {"row": 120, "column": 50}}, {"id": 241, "type": "type_identifier", "text": "CPad", "parent": 239, "children": [], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 55}}, {"id": 242, "type": "pointer_declarator", "text": "*this", "parent": 238, "children": [243, 244], "start_point": {"row": 120, "column": 56}, "end_point": {"row": 120, "column": 61}}, {"id": 243, "type": "*", "text": "*", "parent": 242, "children": [], "start_point": {"row": 120, "column": 56}, "end_point": {"row": 120, "column": 57}}, {"id": 244, "type": "identifier", "text": "this", "parent": 242, "children": [], "start_point": {"row": 120, "column": 57}, "end_point": {"row": 120, "column": 61}}, {"id": 245, "type": "function_definition", "text": "void SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) {\n}", "parent": null, "children": [246, 247], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 1}}, {"id": 246, "type": "primitive_type", "text": "void", "parent": 245, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 4}}, {"id": 247, "type": "function_declarator", "text": "SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask)", "parent": 245, "children": [248, 249], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 68}}, {"id": 248, "type": "identifier", "text": "SetPadTickMask__4CPadUs", "parent": 247, "children": [], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 28}}, {"id": 249, "type": "parameter_list", "text": "(struct CPad *this, unsigned short mask)", "parent": 247, "children": [250, 257], "start_point": {"row": 127, "column": 28}, "end_point": {"row": 127, "column": 68}}, {"id": 250, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 249, "children": [251, 254], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 46}}, {"id": 251, "type": "struct_specifier", "text": "struct CPad", "parent": 250, "children": [252, 253], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 40}}, {"id": 252, "type": "struct", "text": "struct", "parent": 251, "children": [], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 35}}, {"id": 253, "type": "type_identifier", "text": "CPad", "parent": 251, "children": [], "start_point": {"row": 127, "column": 36}, "end_point": {"row": 127, "column": 40}}, {"id": 254, "type": "pointer_declarator", "text": "*this", "parent": 250, "children": [255, 256], "start_point": {"row": 127, "column": 41}, "end_point": {"row": 127, "column": 46}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 127, "column": 41}, "end_point": {"row": 127, "column": 42}}, {"id": 256, "type": "identifier", "text": "this", "parent": 254, "children": [], "start_point": {"row": 127, "column": 42}, "end_point": {"row": 127, "column": 46}}, {"id": 257, "type": "parameter_declaration", "text": "unsigned short mask", "parent": 249, "children": [258, 261], "start_point": {"row": 127, "column": 48}, "end_point": {"row": 127, "column": 67}}, {"id": 258, "type": "sized_type_specifier", "text": "unsigned short", "parent": 257, "children": [259, 260], "start_point": {"row": 127, "column": 48}, "end_point": {"row": 127, "column": 62}}, {"id": 259, "type": "unsigned", "text": "unsigned", "parent": 258, "children": [], "start_point": {"row": 127, "column": 48}, "end_point": {"row": 127, "column": 56}}, {"id": 260, "type": "short", "text": "short", "parent": 258, "children": [], "start_point": {"row": 127, "column": 57}, "end_point": {"row": 127, "column": 62}}, {"id": 261, "type": "identifier", "text": "mask", "parent": 257, "children": [], "start_point": {"row": 127, "column": 63}, "end_point": {"row": 127, "column": 67}}, {"id": 262, "type": "function_definition", "text": "void SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) {\n}", "parent": null, "children": [263, 264], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 1}}, {"id": 263, "type": "primitive_type", "text": "void", "parent": 262, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 4}}, {"id": 264, "type": "function_declarator", "text": "SetPadTick__4CPadUs(struct CPad *this, unsigned short tick)", "parent": 262, "children": [265, 266], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 64}}, {"id": 265, "type": "identifier", "text": "SetPadTick__4CPadUs", "parent": 264, "children": [], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 24}}, {"id": 266, "type": "parameter_list", "text": "(struct CPad *this, unsigned short tick)", "parent": 264, "children": [267, 274], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 64}}, {"id": 267, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 266, "children": [268, 271], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 42}}, {"id": 268, "type": "struct_specifier", "text": "struct CPad", "parent": 267, "children": [269, 270], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 36}}, {"id": 269, "type": "struct", "text": "struct", "parent": 268, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 31}}, {"id": 270, "type": "type_identifier", "text": "CPad", "parent": 268, "children": [], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 36}}, {"id": 271, "type": "pointer_declarator", "text": "*this", "parent": 267, "children": [272, 273], "start_point": {"row": 134, "column": 37}, "end_point": {"row": 134, "column": 42}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 134, "column": 37}, "end_point": {"row": 134, "column": 38}}, {"id": 273, "type": "identifier", "text": "this", "parent": 271, "children": [], "start_point": {"row": 134, "column": 38}, "end_point": {"row": 134, "column": 42}}, {"id": 274, "type": "parameter_declaration", "text": "unsigned short tick", "parent": 266, "children": [275, 278], "start_point": {"row": 134, "column": 44}, "end_point": {"row": 134, "column": 63}}, {"id": 275, "type": "sized_type_specifier", "text": "unsigned short", "parent": 274, "children": [276, 277], "start_point": {"row": 134, "column": 44}, "end_point": {"row": 134, "column": 58}}, {"id": 276, "type": "unsigned", "text": "unsigned", "parent": 275, "children": [], "start_point": {"row": 134, "column": 44}, "end_point": {"row": 134, "column": 52}}, {"id": 277, "type": "short", "text": "short", "parent": 275, "children": [], "start_point": {"row": 134, "column": 53}, "end_point": {"row": 134, "column": 58}}, {"id": 278, "type": "identifier", "text": "tick", "parent": 274, "children": [], "start_point": {"row": 134, "column": 59}, "end_point": {"row": 134, "column": 63}}, {"id": 279, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) {\n}", "parent": null, "children": [280, 283], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 1}}, {"id": 280, "type": "sized_type_specifier", "text": "unsigned short", "parent": 279, "children": [281, 282], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 14}}, {"id": 281, "type": "unsigned", "text": "unsigned", "parent": 280, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 8}}, {"id": 282, "type": "short", "text": "short", "parent": 280, "children": [], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 14}}, {"id": 283, "type": "function_declarator", "text": "GetDown__C4CPad_addr_80035ED4(struct CPad *this)", "parent": 279, "children": [284, 285], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 63}}, {"id": 284, "type": "identifier", "text": "GetDown__C4CPad_addr_80035ED4", "parent": 283, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 44}}, {"id": 285, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 283, "children": [286], "start_point": {"row": 141, "column": 44}, "end_point": {"row": 141, "column": 63}}, {"id": 286, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 285, "children": [287, 290], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 62}}, {"id": 287, "type": "struct_specifier", "text": "struct CPad", "parent": 286, "children": [288, 289], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 56}}, {"id": 288, "type": "struct", "text": "struct", "parent": 287, "children": [], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 51}}, {"id": 289, "type": "type_identifier", "text": "CPad", "parent": 287, "children": [], "start_point": {"row": 141, "column": 52}, "end_point": {"row": 141, "column": 56}}, {"id": 290, "type": "pointer_declarator", "text": "*this", "parent": 286, "children": [291, 292], "start_point": {"row": 141, "column": 57}, "end_point": {"row": 141, "column": 62}}, {"id": 291, "type": "*", "text": "*", "parent": 290, "children": [], "start_point": {"row": 141, "column": 57}, "end_point": {"row": 141, "column": 58}}, {"id": 292, "type": "identifier", "text": "this", "parent": 290, "children": [], "start_point": {"row": 141, "column": 58}, "end_point": {"row": 141, "column": 62}}, {"id": 293, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) {\n}", "parent": null, "children": [294, 297], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 149, "column": 1}}, {"id": 294, "type": "sized_type_specifier", "text": "unsigned short", "parent": 293, "children": [295, 296], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 14}}, {"id": 295, "type": "unsigned", "text": "unsigned", "parent": 294, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 8}}, {"id": 296, "type": "short", "text": "short", "parent": 294, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 14}}, {"id": 297, "type": "function_declarator", "text": "GetDown__C4CPad_addr_800705A0(struct CPad *this)", "parent": 293, "children": [298, 299], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 63}}, {"id": 298, "type": "identifier", "text": "GetDown__C4CPad_addr_800705A0", "parent": 297, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 44}}, {"id": 299, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 297, "children": [300], "start_point": {"row": 148, "column": 44}, "end_point": {"row": 148, "column": 63}}, {"id": 300, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 299, "children": [301, 304], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 62}}, {"id": 301, "type": "struct_specifier", "text": "struct CPad", "parent": 300, "children": [302, 303], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 56}}, {"id": 302, "type": "struct", "text": "struct", "parent": 301, "children": [], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 51}}, {"id": 303, "type": "type_identifier", "text": "CPad", "parent": 301, "children": [], "start_point": {"row": 148, "column": 52}, "end_point": {"row": 148, "column": 56}}, {"id": 304, "type": "pointer_declarator", "text": "*this", "parent": 300, "children": [305, 306], "start_point": {"row": 148, "column": 57}, "end_point": {"row": 148, "column": 62}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 148, "column": 57}, "end_point": {"row": 148, "column": 58}}, {"id": 306, "type": "identifier", "text": "this", "parent": 304, "children": [], "start_point": {"row": 148, "column": 58}, "end_point": {"row": 148, "column": 62}}, {"id": 307, "type": "function_definition", "text": "unsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) {\n}", "parent": null, "children": [308, 311], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 1}}, {"id": 308, "type": "sized_type_specifier", "text": "unsigned short", "parent": 307, "children": [309, 310], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 14}}, {"id": 309, "type": "unsigned", "text": "unsigned", "parent": 308, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 8}}, {"id": 310, "type": "short", "text": "short", "parent": 308, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 14}}, {"id": 311, "type": "function_declarator", "text": "GetDown__C4CPad_addr_80076B10(struct CPad *this)", "parent": 307, "children": [312, 313], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 63}}, {"id": 312, "type": "identifier", "text": "GetDown__C4CPad_addr_80076B10", "parent": 311, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 44}}, {"id": 313, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 311, "children": [314], "start_point": {"row": 155, "column": 44}, "end_point": {"row": 155, "column": 63}}, {"id": 314, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 313, "children": [315, 318], "start_point": {"row": 155, "column": 45}, "end_point": {"row": 155, "column": 62}}, {"id": 315, "type": "struct_specifier", "text": "struct CPad", "parent": 314, "children": [316, 317], "start_point": {"row": 155, "column": 45}, "end_point": {"row": 155, "column": 56}}, {"id": 316, "type": "struct", "text": "struct", "parent": 315, "children": [], "start_point": {"row": 155, "column": 45}, "end_point": {"row": 155, "column": 51}}, {"id": 317, "type": "type_identifier", "text": "CPad", "parent": 315, "children": [], "start_point": {"row": 155, "column": 52}, "end_point": {"row": 155, "column": 56}}, {"id": 318, "type": "pointer_declarator", "text": "*this", "parent": 314, "children": [319, 320], "start_point": {"row": 155, "column": 57}, "end_point": {"row": 155, "column": 62}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 155, "column": 57}, "end_point": {"row": 155, "column": 58}}, {"id": 320, "type": "identifier", "text": "this", "parent": 318, "children": [], "start_point": {"row": 155, "column": 58}, "end_point": {"row": 155, "column": 62}}, {"id": 321, "type": "function_definition", "text": "unsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) {\n}", "parent": null, "children": [322, 325], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 163, "column": 1}}, {"id": 322, "type": "sized_type_specifier", "text": "unsigned short", "parent": 321, "children": [323, 324], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 14}}, {"id": 323, "type": "unsigned", "text": "unsigned", "parent": 322, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 8}}, {"id": 324, "type": "short", "text": "short", "parent": 322, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 14}}, {"id": 325, "type": "function_declarator", "text": "GetUp__C4CPad_addr_80076B38(struct CPad *this)", "parent": 321, "children": [326, 327], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 61}}, {"id": 326, "type": "identifier", "text": "GetUp__C4CPad_addr_80076B38", "parent": 325, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 42}}, {"id": 327, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 325, "children": [328], "start_point": {"row": 162, "column": 42}, "end_point": {"row": 162, "column": 61}}, {"id": 328, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 327, "children": [329, 332], "start_point": {"row": 162, "column": 43}, "end_point": {"row": 162, "column": 60}}, {"id": 329, "type": "struct_specifier", "text": "struct CPad", "parent": 328, "children": [330, 331], "start_point": {"row": 162, "column": 43}, "end_point": {"row": 162, "column": 54}}, {"id": 330, "type": "struct", "text": "struct", "parent": 329, "children": [], "start_point": {"row": 162, "column": 43}, "end_point": {"row": 162, "column": 49}}, {"id": 331, "type": "type_identifier", "text": "CPad", "parent": 329, "children": [], "start_point": {"row": 162, "column": 50}, "end_point": {"row": 162, "column": 54}}, {"id": 332, "type": "pointer_declarator", "text": "*this", "parent": 328, "children": [333, 334], "start_point": {"row": 162, "column": 55}, "end_point": {"row": 162, "column": 60}}, {"id": 333, "type": "*", "text": "*", "parent": 332, "children": [], "start_point": {"row": 162, "column": 55}, "end_point": {"row": 162, "column": 56}}, {"id": 334, "type": "identifier", "text": "this", "parent": 332, "children": [], "start_point": {"row": 162, "column": 56}, "end_point": {"row": 162, "column": 60}}, {"id": 335, "type": "function_definition", "text": "unsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) {\n}", "parent": null, "children": [336, 339], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 170, "column": 1}}, {"id": 336, "type": "sized_type_specifier", "text": "unsigned short", "parent": 335, "children": [337, 338], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 14}}, {"id": 337, "type": "unsigned", "text": "unsigned", "parent": 336, "children": [], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 8}}, {"id": 338, "type": "short", "text": "short", "parent": 336, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 14}}, {"id": 339, "type": "function_declarator", "text": "GetCur__C4CPad_addr_80076B60(struct CPad *this)", "parent": 335, "children": [340, 341], "start_point": {"row": 169, "column": 15}, "end_point": {"row": 169, "column": 62}}, {"id": 340, "type": "identifier", "text": "GetCur__C4CPad_addr_80076B60", "parent": 339, "children": [], "start_point": {"row": 169, "column": 15}, "end_point": {"row": 169, "column": 43}}, {"id": 341, "type": "parameter_list", "text": "(struct CPad *this)", "parent": 339, "children": [342], "start_point": {"row": 169, "column": 43}, "end_point": {"row": 169, "column": 62}}, {"id": 342, "type": "parameter_declaration", "text": "struct CPad *this", "parent": 341, "children": [343, 346], "start_point": {"row": 169, "column": 44}, "end_point": {"row": 169, "column": 61}}, {"id": 343, "type": "struct_specifier", "text": "struct CPad", "parent": 342, "children": [344, 345], "start_point": {"row": 169, "column": 44}, "end_point": {"row": 169, "column": 55}}, {"id": 344, "type": "struct", "text": "struct", "parent": 343, "children": [], "start_point": {"row": 169, "column": 44}, "end_point": {"row": 169, "column": 50}}, {"id": 345, "type": "type_identifier", "text": "CPad", "parent": 343, "children": [], "start_point": {"row": 169, "column": 51}, "end_point": {"row": 169, "column": 55}}, {"id": 346, "type": "pointer_declarator", "text": "*this", "parent": 342, "children": [347, 348], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 61}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 57}}, {"id": 348, "type": "identifier", "text": "this", "parent": 346, "children": [], "start_point": {"row": 169, "column": 57}, "end_point": {"row": 169, "column": 61}}]}, "node_categories": {"declarations": {"functions": [3, 7, 17, 21, 31, 33, 43, 47, 57, 61, 71, 75, 85, 87, 102, 108, 121, 123, 133, 137, 147, 151, 161, 165, 175, 179, 189, 193, 203, 207, 217, 221, 231, 235, 245, 247, 262, 264, 279, 283, 293, 297, 307, 311, 321, 325, 335, 339], "variables": [10, 24, 36, 50, 64, 78, 90, 97, 111, 118, 126, 140, 154, 168, 182, 196, 210, 224, 238, 250, 257, 267, 274, 286, 300, 314, 328, 342], "classes": [11, 12, 25, 26, 37, 38, 51, 52, 65, 66, 79, 80, 91, 92, 103, 104, 112, 113, 127, 128, 141, 142, 155, 156, 169, 170, 183, 184, 197, 198, 211, 212, 225, 226, 239, 240, 251, 252, 268, 269, 287, 288, 301, 302, 315, 316, 329, 330, 343, 344], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 8, 13, 16, 18, 22, 27, 30, 34, 39, 42, 44, 48, 53, 56, 58, 62, 67, 70, 72, 76, 81, 84, 88, 93, 96, 98, 101, 105, 109, 114, 117, 120, 124, 129, 132, 134, 138, 143, 146, 148, 152, 157, 160, 162, 166, 171, 174, 176, 180, 185, 188, 190, 194, 199, 202, 204, 208, 213, 216, 218, 222, 227, 230, 232, 236, 241, 244, 248, 253, 256, 258, 261, 265, 270, 273, 275, 278, 280, 284, 289, 292, 294, 298, 303, 306, 308, 312, 317, 320, 322, 326, 331, 334, 336, 340, 345, 348], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad(struct CPad *this) {\n}"}, {"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad(struct CPad *this)"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) {\n}"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_8014AC70(struct CPad *this)"}, {"node_id": 31, "universal_type": "function", "name": "Flush__4CPad", "text_snippet": "void Flush__4CPad(struct CPad *this) {\n}"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "Flush__4CPad(struct CPad *this)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetCur__C4CPad(struct CPad *this) {\n}"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "GetCur__C4CPad(struct CPad *this)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) {\n}"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_800852CC(struct CPad *this)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetUp__C4CPad(struct CPad *this) {\n}"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "GetUp__C4CPad(struct CPad *this)"}, {"node_id": 85, "universal_type": "function", "name": "SetBothFlag__4CPadUc", "text_snippet": "void SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) {\n}"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl)"}, {"node_id": 102, "universal_type": "function", "name": "CPad", "text_snippet": "struct CPad *__4CPadi(struct CPad *this, int PhysStick) {\n}"}, {"node_id": 108, "universal_type": "function", "name": "PhysStick)", "text_snippet": "__4CPadi(struct CPad *this, int PhysStick)"}, {"node_id": 121, "universal_type": "function", "name": "Flush__4CPad_addr_80085998", "text_snippet": "void Flush__4CPad_addr_80085998(struct CPad *this) {\n}"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "Flush__4CPad_addr_80085998(struct CPad *this)"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) {\n}"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_8009430C(struct CPad *this)"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) {\n}"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "GetCur__C4CPad_addr_80094334(struct CPad *this)"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) {\n}"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_8009AE10(struct CPad *this)"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) {\n}"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "GetCur__C4CPad_addr_8009AE38(struct CPad *this)"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetTick__C4CPad(struct CPad *this) {\n}"}, {"node_id": 193, "universal_type": "function", "name": "unknown", "text_snippet": "GetTick__C4CPad(struct CPad *this)"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) {\n}"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_8009F0D0(struct CPad *this)"}, {"node_id": 217, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) {\n}"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "GetUp__C4CPad_addr_8009F0F8(struct CPad *this)"}, {"node_id": 231, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) {\n}"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "GetCur__C4CPad_addr_8009F120(struct CPad *this)"}, {"node_id": 245, "universal_type": "function", "name": "SetPadTickMask__4CPadUs", "text_snippet": "void SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) {\n}"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask)"}, {"node_id": 262, "universal_type": "function", "name": "SetPadTick__4CPadUs", "text_snippet": "void SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) {\n}"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "SetPadTick__4CPadUs(struct CPad *this, unsigned short tick)"}, {"node_id": 279, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) {\n}"}, {"node_id": 283, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_80035ED4(struct CPad *this)"}, {"node_id": 293, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) {\n}"}, {"node_id": 297, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_800705A0(struct CPad *this)"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) {\n}"}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": "GetDown__C4CPad_addr_80076B10(struct CPad *this)"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) {\n}"}, {"node_id": 325, "universal_type": "function", "name": "unknown", "text_snippet": "GetUp__C4CPad_addr_80076B38(struct CPad *this)"}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) {\n}"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "GetCur__C4CPad_addr_80076B60(struct CPad *this)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 25, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 51, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 65, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 79, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 91, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 92, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 103, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 112, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 127, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 128, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 141, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 142, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 155, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 156, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 169, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 170, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 183, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 184, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 197, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 198, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 211, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 212, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 225, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 226, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 239, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 240, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 251, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 252, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 268, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 269, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 287, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 288, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 301, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 302, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 315, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 316, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 329, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 330, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 343, "universal_type": "class", "name": "CPad", "text_snippet": "struct CPad"}, {"node_id": 344, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"types.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "// C:\\diabpsx\\PSXSRC\\PADS.H\n\n#include \"types.h\"\n\n// address: 0x8014785C\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8014AC70\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) {\n}\n\n\n// address: 0x80159028\n// line start: 113\n// line end: 117\nvoid Flush__4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8007E994\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x800852CC\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_800852CC(struct CPad *this) {\n}\n\n\n// address: 0x800852F4\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8008595C\n// line start: 77\n// line end: 77\nvoid SetBothFlag__4CPadUc(struct CPad *this, unsigned char fl) {\n}\n\n\n// address: 0x80085964\n// size: 0x6C\n// line start: 75\n// line end: 75\nstruct CPad *__4CPadi(struct CPad *this, int PhysStick) {\n}\n\n\n// address: 0x80085998\n// line start: 113\n// line end: 117\nvoid Flush__4CPad_addr_80085998(struct CPad *this) {\n}\n\n\n// address: 0x8009430C\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009430C(struct CPad *this) {\n}\n\n\n// address: 0x80094334\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_80094334(struct CPad *this) {\n}\n\n\n// address: 0x8009AE10\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009AE10(struct CPad *this) {\n}\n\n\n// address: 0x8009AE38\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_8009AE38(struct CPad *this) {\n}\n\n\n// address: 0x8009F0A8\n// line start: 106\n// line end: 110\nunsigned short GetTick__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8009F0D0\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8009F0D0(struct CPad *this) {\n}\n\n\n// address: 0x8009F0F8\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad_addr_8009F0F8(struct CPad *this) {\n}\n\n\n// address: 0x8009F120\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_8009F120(struct CPad *this) {\n}\n\n\n// address: 0x8009F148\n// line start: 82\n// line end: 82\nvoid SetPadTickMask__4CPadUs(struct CPad *this, unsigned short mask) {\n}\n\n\n// address: 0x8009F150\n// line start: 81\n// line end: 81\nvoid SetPadTick__4CPadUs(struct CPad *this, unsigned short tick) {\n}\n\n\n// address: 0x80035ED4\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_80035ED4(struct CPad *this) {\n}\n\n\n// address: 0x800705A0\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_800705A0(struct CPad *this) {\n}\n\n\n// address: 0x80076B10\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_80076B10(struct CPad *this) {\n}\n\n\n// address: 0x80076B38\n// line start: 92\n// line end: 96\nunsigned short GetUp__C4CPad_addr_80076B38(struct CPad *this) {\n}\n\n\n// address: 0x80076B60\n// line start: 85\n// line end: 89\nunsigned short GetCur__C4CPad_addr_80076B60(struct CPad *this) {\n}\n\n\n"}
81,057
c
// // Created by cc on 18-12-6. // #ifndef QTALK_V2_DBCONFIG_H #define QTALK_V2_DBCONFIG_H #include "DaoInterface.h" class DbConfig : public DaoInterface { public: explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr); bool creatTable() override; public: bool getDbVersion(int &version); bool setDbVersion(const int& ver); bool initVersions(); private: bool initGroupMainVersion(); }; #endif //QTALK_V2_DBCONFIG_H
21.35
20
(translation_unit) "\n// Created by cc on 18-12-6.\n//\n\n#ifndef QTALK_V2_DBCONFIG_H\n#define QTALK_V2_DBCONFIG_H\n\n#include "DaoInterface.h"\n\nclass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n\n\n#endif //QTALK_V2_DBCONFIG_H\n" (comment) "\n/" (comment) " Created by cc on 18-12-6.\n/" (comment) "\n\n" (preproc_ifdef) "fndef QTALK_V2_DBCONFIG_H\n#define QTALK_V2_DBCONFIG_H\n\n#include "DaoInterface.h"\n\nclass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n\n\n#endif /" (#ifndef) "fndef Q" (identifier) "ALK_V2_DBCONFIG_H\n#" (preproc_def) "efine QTALK_V2_DBCONFIG_H\n\n#" (#define) "efine Q" (identifier) "ALK_V2_DBCONFIG_H\n\n" (preproc_include) "nclude "DaoInterface.h"\n\nc" (#include) "nclude "" (string_literal) "aoInterface.h"\n\n" (") "a" (string_content) "oInterface.h"\n" (") "\n" (function_definition) "ass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n" (type_identifier) "ass D" (ERROR) "Config : public D" (identifier) "Config :" (:) "p" (identifier) "blic D" (identifier) "oInterface\n{" (compound_statement) "public:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n" ({) "p" (labeled_statement) "blic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n " (statement_identifier) "blic:\n" (:) " " (declaration) "plicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n " (type_identifier) "plicit D" (init_declarator) "Config(qtalk::sqlite::database * sqlDb = nullptr);" (function_declarator) "Config(qtalk::sqlite::database * sqlDb =" (identifier) "Config(q" (parameter_list) "talk::sqlite::database * sqlDb =" (() "t" (parameter_declaration) "alk::sqlite::database * sqlDb =" (type_identifier) "alk::" (ERROR) "sqlite::database *" (:) "s" (:) "q" (identifier) "lite::" (:) "d" (:) "a" (identifier) "tabase *" (pointer_declarator) "sqlDb =" (*) "s" (identifier) "lDb =" ()) "" (=) "n" (null) "llptr);" (nullptr) "llptr);" (ERROR) "\n" ()) "\n" (;) " " (ERROR) "ol creatTable() override;\n" (primitive_type) "ol c" (function_declarator) "eatTable() o" (identifier) "eatTable()" (parameter_list) " o" (() " " ()) "o" (type_identifier) "erride;\n" (expression_statement) "\n" (;) "\n" (labeled_statement) "blic:\n bool getDbVersion(int &version);\n " (statement_identifier) "blic:\n" (:) " " (declaration) "ol getDbVersion(int &version);\n " (primitive_type) "ol g" (function_declarator) "tDbVersion(int &version);\n" (identifier) "tDbVersion(i" (parameter_list) "nt &version);\n" (() "n" (parameter_declaration) "t &version);" (primitive_type) "t &" (ERROR) "e" (&) "e" (identifier) "rsion);" ()) "\n" (;) " " (declaration) "ol setDbVersion(const int& ver);\n\n" (primitive_type) "ol s" (function_declarator) "tDbVersion(const int& ver);\n" (identifier) "tDbVersion(c" (parameter_list) "onst int& ver);\n" (() "o" (parameter_declaration) "nst int& ver);" (type_qualifier) "nst i" (const) "nst i" (primitive_type) "t& " (ERROR) "v" (&) "v" (identifier) "r);" ()) "\n" (;) "\n" (declaration) "ol initVersions();\n\n" (primitive_type) "ol i" (function_declarator) "itVersions();\n" (identifier) "itVersions()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "\n" (labeled_statement) "ivate:\n bool initGroupMainVersion();\n}" (statement_identifier) "ivate:\n" (:) " " (declaration) "ol initGroupMainVersion();\n}" (primitive_type) "ol i" (function_declarator) "itGroupMainVersion();\n" (identifier) "itGroupMainVersion()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "}" (}) "\n" (expression_statement) "\n" (;) "\n" (#endif) "ndif /" (comment) "QTALK_V2_DBCONFIG_H\n"
119
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.35, "nodes": 75, "errors": 0, "source_hash": "d4cfb1c5c111db96c076d6265cdb462df329e6fc8d77bf68c4566636c4056c61", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef QTALK_V2_DBCONFIG_H\n#define QTALK_V2_DBCONFIG_H\n\n#include \"DaoInterface.h\"\n\nclass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n\n\n#endif /", "parent": null, "children": [1, 2, 3, 6, 9, 74], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "fndef Q", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "ALK_V2_DBCONFIG_H\n#", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "efine QTALK_V2_DBCONFIG_H\n\n#", "parent": 0, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#define", "text": "efine Q", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "ALK_V2_DBCONFIG_H\n\n", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "nclude \"DaoInterface.h\"\n\nc", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude \"", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "string_literal", "text": "aoInterface.h\"\n\n", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 9, "type": "function_definition", "text": "ass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n", "parent": 0, "children": [10, 11, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "ass D", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 11, "type": "ERROR", "text": "Config : public D", "parent": 9, "children": [12, 13], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 23}}, {"id": 12, "type": "identifier", "text": "Config :", "parent": 11, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 14}}, {"id": 13, "type": "identifier", "text": "blic D", "parent": 11, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 23}}, {"id": 14, "type": "identifier", "text": "oInterface\n{", "parent": 9, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 36}}, {"id": 15, "type": "labeled_statement", "text": "blic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n ", "parent": 9, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 65}}, {"id": 16, "type": "statement_identifier", "text": "blic:\n", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 17, "type": "declaration", "text": "plicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n ", "parent": 15, "children": [18, 19, 34], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 65}}, {"id": 18, "type": "type_identifier", "text": "plicit D", "parent": 17, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 19, "type": "init_declarator", "text": "Config(qtalk::sqlite::database * sqlDb = nullptr);", "parent": 17, "children": [20, 31, 32], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 63}}, {"id": 20, "type": "function_declarator", "text": "Config(qtalk::sqlite::database * sqlDb =", "parent": 19, "children": [21, 22], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 53}}, {"id": 21, "type": "identifier", "text": "Config(q", "parent": 20, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 21}}, {"id": 22, "type": "parameter_list", "text": "talk::sqlite::database * sqlDb =", "parent": 20, "children": [23], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 53}}, {"id": 23, "type": "parameter_declaration", "text": "alk::sqlite::database * sqlDb =", "parent": 22, "children": [24, 25, 28], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 53}}, {"id": 24, "type": "type_identifier", "text": "alk::", "parent": 23, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 27}}, {"id": 25, "type": "ERROR", "text": "sqlite::database *", "parent": 23, "children": [26, 27], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 45}}, {"id": 26, "type": "identifier", "text": "lite::", "parent": 25, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 35}}, {"id": 27, "type": "identifier", "text": "tabase *", "parent": 25, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 45}}, {"id": 28, "type": "pointer_declarator", "text": "sqlDb =", "parent": 23, "children": [29, 30], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 53}}, {"id": 29, "type": "*", "text": "s", "parent": 28, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 47}}, {"id": 30, "type": "identifier", "text": "lDb =", "parent": 28, "children": [], "start_point": {"row": 12, "column": 48}, "end_point": {"row": 12, "column": 53}}, {"id": 31, "type": "=", "text": "n", "parent": 19, "children": [], "start_point": {"row": 12, "column": 54}, "end_point": {"row": 12, "column": 55}}, {"id": 32, "type": "null", "text": "llptr);", "parent": 19, "children": [33], "start_point": {"row": 12, "column": 56}, "end_point": {"row": 12, "column": 63}}, {"id": 33, "type": "nullptr", "text": "llptr);", "parent": 32, "children": [], "start_point": {"row": 12, "column": 56}, "end_point": {"row": 12, "column": 63}}, {"id": 34, "type": "ERROR", "text": "\n", "parent": 17, "children": [], "start_point": {"row": 12, "column": 63}, "end_point": {"row": 12, "column": 64}}, {"id": 35, "type": "ERROR", "text": "ol creatTable() override;\n", "parent": 9, "children": [36, 37, 40], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 30}}, {"id": 36, "type": "primitive_type", "text": "ol c", "parent": 35, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 37, "type": "function_declarator", "text": "eatTable() o", "parent": 35, "children": [38, 39], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 38, "type": "identifier", "text": "eatTable()", "parent": 37, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 39, "type": "parameter_list", "text": " o", "parent": 37, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 40, "type": "type_identifier", "text": "erride;\n", "parent": 35, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 30}}, {"id": 41, "type": "labeled_statement", "text": "blic:\n bool getDbVersion(int &version);\n ", "parent": 9, "children": [42, 43], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 36}}, {"id": 42, "type": "statement_identifier", "text": "blic:\n", "parent": 41, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 43, "type": "declaration", "text": "ol getDbVersion(int &version);\n ", "parent": 41, "children": [44, 45], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 36}}, {"id": 44, "type": "primitive_type", "text": "ol g", "parent": 43, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 45, "type": "function_declarator", "text": "tDbVersion(int &version);\n", "parent": 43, "children": [46, 47], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 35}}, {"id": 46, "type": "identifier", "text": "tDbVersion(i", "parent": 45, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 47, "type": "parameter_list", "text": "nt &version);\n", "parent": 45, "children": [48], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 35}}, {"id": 48, "type": "parameter_declaration", "text": "t &version);", "parent": 47, "children": [49, 50, 52], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 34}}, {"id": 49, "type": "primitive_type", "text": "t &", "parent": 48, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 25}}, {"id": 50, "type": "ERROR", "text": "e", "parent": 48, "children": [51], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 51, "type": "&", "text": "e", "parent": 50, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 52, "type": "identifier", "text": "rsion);", "parent": 48, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 34}}, {"id": 53, "type": "declaration", "text": "ol setDbVersion(const int& ver);\n\n", "parent": 9, "children": [54, 55], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 38}}, {"id": 54, "type": "primitive_type", "text": "ol s", "parent": 53, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 55, "type": "function_declarator", "text": "tDbVersion(const int& ver);\n", "parent": 53, "children": [56, 57], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 37}}, {"id": 56, "type": "identifier", "text": "tDbVersion(c", "parent": 55, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 21}}, {"id": 57, "type": "parameter_list", "text": "onst int& ver);\n", "parent": 55, "children": [58], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 37}}, {"id": 58, "type": "parameter_declaration", "text": "nst int& ver);", "parent": 57, "children": [59, 60, 61, 63], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 36}}, {"id": 59, "type": "type_qualifier", "text": "nst i", "parent": 58, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 27}}, {"id": 60, "type": "primitive_type", "text": "t& ", "parent": 58, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 31}}, {"id": 61, "type": "ERROR", "text": "v", "parent": 58, "children": [62], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 32}}, {"id": 62, "type": "&", "text": "v", "parent": 61, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 32}}, {"id": 63, "type": "identifier", "text": "r);", "parent": 58, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 36}}, {"id": 64, "type": "declaration", "text": "ol initVersions();\n\n", "parent": 9, "children": [65, 66], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 24}}, {"id": 65, "type": "primitive_type", "text": "ol i", "parent": 64, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 66, "type": "function_declarator", "text": "itVersions();\n", "parent": 64, "children": [67], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 23}}, {"id": 67, "type": "identifier", "text": "itVersions()", "parent": 66, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 21}}, {"id": 68, "type": "labeled_statement", "text": "ivate:\n bool initGroupMainVersion();\n}", "parent": 9, "children": [69, 70], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 32}}, {"id": 69, "type": "statement_identifier", "text": "ivate:\n", "parent": 68, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 70, "type": "declaration", "text": "ol initGroupMainVersion();\n}", "parent": 68, "children": [71, 72], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 32}}, {"id": 71, "type": "primitive_type", "text": "ol i", "parent": 70, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 72, "type": "function_declarator", "text": "itGroupMainVersion();\n", "parent": 70, "children": [73], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 31}}, {"id": 73, "type": "identifier", "text": "itGroupMainVersion()", "parent": 72, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 29}}, {"id": 74, "type": "#endif", "text": "ndif /", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 20, 37, 45, 55, 66, 72], "variables": [17, 23, 43, 48, 53, 58, 64, 70], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 13, 14, 16, 18, 21, 24, 26, 27, 30, 38, 40, 42, 46, 52, 56, 59, 63, 67, 69, 73, 74], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "creatTable", "text_snippet": "ass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb ="}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "Config(qtalk::sqlite::database * sqlDb ="}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "eatTable() o"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "tDbVersion(int &version);\n"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "tDbVersion(const int& ver);\n"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "itVersions();\n"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "itGroupMainVersion();\n"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "nclude \"DaoInterface.h\"\n\nc"}, {"node_id": 7, "text": "nclude \""}]}, "original_source_code": "\ufeff//\n// Created by cc on 18-12-6.\n//\n\n#ifndef QTALK_V2_DBCONFIG_H\n#define QTALK_V2_DBCONFIG_H\n\n#include \"DaoInterface.h\"\n\nclass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool getDbVersion(int &version);\n bool setDbVersion(const int& ver);\n\n bool initVersions();\n\nprivate:\n bool initGroupMainVersion();\n};\n\n\n#endif //QTALK_V2_DBCONFIG_H\n"}
81,058
c
/* Original Author: <NAME> on 11/9/08. Copyright (c) 2008 Rogue Amoeba Software LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import <Foundation/NSObject.h> @interface NSOperation : NSObject { } // abstract, override this to create a concrete subclass, don't call super - (void)run; @end @interface NSSelectorOperation : NSOperation { id _obj; SEL _sel; id _arg; id _result; } - (id)initWithTarget: (id)obj selector: (SEL)sel object: (id)arg; - (id)result; @end @class NSLatchTrigger; @interface NSWaitableSelectorOperation : NSSelectorOperation { NSLatchTrigger* _trigger; } - (void)waitUntilDone; @end
47.33
33
(translation_unit) "/*\nOriginal Author: <NAME> on 11/9/08.\nCopyright (c) 2008 Rogue Amoeba Software LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n#import <Foundation/NSObject.h>\n\n\n@interface NSOperation : NSObject\n{\n}\n\n// abstract, override this to create a concrete subclass, don't call super\n- (void)run;\n\n@end\n\n@interface NSSelectorOperation : NSOperation\n{\n id _obj;\n SEL _sel;\n id _arg;\n \n id _result;\n}\n\n- (id)initWithTarget: (id)obj selector: (SEL)sel object: (id)arg;\n\n- (id)result;\n\n@end\n\n@class NSLatchTrigger;\n@interface NSWaitableSelectorOperation : NSSelectorOperation\n{\n NSLatchTrigger* _trigger;\n}\n\n- (void)waitUntilDone;\n\n@end\n" (comment) "/*\nOriginal Author: <NAME> on 11/9/08.\nCopyright (c) 2008 Rogue Amoeba Software LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/" (preproc_call) "#import <Foundation/NSObject.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/NSObject.h>" (ERROR) "@" (ERROR) "@" (function_definition) "interface NSOperation : NSObject\n{\n}" (type_identifier) "interface" (identifier) "NSOperation" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n}" ({) "{" (}) "}" (comment) "// abstract, override this to create a concrete subclass, don't call super" (expression_statement) "- (void)run;" (unary_expression) "- (void)run" (-) "-" (cast_expression) "(void)run" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "run" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\n@interface" (type_identifier) "end" (ERROR) "@" (ERROR) "@" (identifier) "interface" (;) "" (labeled_statement) "NSSelectorOperation : NSOperation" (statement_identifier) "NSSelectorOperation" (:) ":" (expression_statement) "NSOperation" (identifier) "NSOperation" (;) "" (compound_statement) "{\n id _obj;\n SEL _sel;\n id _arg;\n \n id _result;\n}" ({) "{" (declaration) "id _obj;" (type_identifier) "id" (identifier) "_obj" (;) ";" (declaration) "SEL _sel;" (type_identifier) "SEL" (identifier) "_sel" (;) ";" (declaration) "id _arg;" (type_identifier) "id" (identifier) "_arg" (;) ";" (declaration) "id _result;" (type_identifier) "id" (identifier) "_result" (;) ";" (}) "}" (ERROR) "- (id)initWithTarget: (id)obj" (call_expression) "- (id)initWithTarget: (id)" (unary_expression) "- (id)initWithTarget" (-) "-" (cast_expression) "(id)initWithTarget" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithTarget" (ERROR) ":" (:) ":" (argument_list) "(id)" (() "(" (identifier) "id" ()) ")" (identifier) "obj" (labeled_statement) "selector: (SEL)sel" (statement_identifier) "selector" (:) ":" (expression_statement) "(SEL)sel" (cast_expression) "(SEL)sel" (() "(" (type_descriptor) "SEL" (type_identifier) "SEL" ()) ")" (identifier) "sel" (;) "" (labeled_statement) "object: (id)arg;" (statement_identifier) "object" (:) ":" (expression_statement) "(id)arg;" (cast_expression) "(id)arg" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "arg" (;) ";" (expression_statement) "- (id)result;" (unary_expression) "- (id)result" (-) "-" (cast_expression) "(id)result" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "result" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\n@class NSLatchTrigger;" (type_identifier) "end" (ERROR) "@class" (ERROR) "@" (identifier) "class" (identifier) "NSLatchTrigger" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface NSWaitableSelectorOperation : NSSelectorOperation\n{\n NSLatchTrigger* _trigger;\n}" (type_identifier) "interface" (identifier) "NSWaitableSelectorOperation" (ERROR) ": NSSelectorOperation" (:) ":" (identifier) "NSSelectorOperation" (compound_statement) "{\n NSLatchTrigger* _trigger;\n}" ({) "{" (declaration) "NSLatchTrigger* _trigger;" (type_identifier) "NSLatchTrigger" (pointer_declarator) "* _trigger" (*) "*" (identifier) "_trigger" (;) ";" (}) "}" (expression_statement) "- (void)waitUntilDone;" (unary_expression) "- (void)waitUntilDone" (-) "-" (cast_expression) "(void)waitUntilDone" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "waitUntilDone" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
150
18
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 47.33, "nodes": 92, "errors": 0, "source_hash": "407b57f06853b2f7bb2326f2594bd6a76e3ff5253f35a4bf9a63afba1217bc1a", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/NSObject.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/NSObject.h>", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 31}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface NSOperation : NSObject\n{\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 7, "type": "identifier", "text": "NSOperation", "parent": 5, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 22}}, {"id": 8, "type": "ERROR", "text": ": NSObject", "parent": 5, "children": [9], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 33}}, {"id": 9, "type": "identifier", "text": "NSObject", "parent": 8, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 33}}, {"id": 10, "type": "unary_expression", "text": "- (void)run", "parent": null, "children": [11, 12], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 11}}, {"id": 11, "type": "-", "text": "-", "parent": 10, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(void)run", "parent": 10, "children": [13, 15], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 11}}, {"id": 13, "type": "type_descriptor", "text": "void", "parent": 12, "children": [14], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 14, "type": "primitive_type", "text": "void", "parent": 13, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 15, "type": "identifier", "text": "run", "parent": 12, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 16, "type": "ERROR", "text": "@", "parent": null, "children": [17], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 17, "type": "ERROR", "text": "@", "parent": 16, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 18, "type": "declaration", "text": "end\n\n@interface", "parent": null, "children": [19, 21], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 23, "column": 10}}, {"id": 19, "type": "ERROR", "text": "@", "parent": 18, "children": [20], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 20, "type": "ERROR", "text": "@", "parent": 19, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 21, "type": "identifier", "text": "interface", "parent": 18, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 10}}, {"id": 22, "type": "labeled_statement", "text": "NSSelectorOperation : NSOperation", "parent": null, "children": [23], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 44}}, {"id": 23, "type": "statement_identifier", "text": "NSSelectorOperation", "parent": 22, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 30}}, {"id": 24, "type": "identifier", "text": "NSOperation", "parent": 22, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 44}}, {"id": 25, "type": "declaration", "text": "id\t_obj;", "parent": null, "children": [26, 27], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 26, "type": "type_identifier", "text": "id", "parent": 25, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 3}}, {"id": 27, "type": "identifier", "text": "_obj", "parent": 25, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 28, "type": "declaration", "text": "SEL\t_sel;", "parent": null, "children": [29, 30], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 10}}, {"id": 29, "type": "type_identifier", "text": "SEL", "parent": 28, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}, {"id": 30, "type": "identifier", "text": "_sel", "parent": 28, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 9}}, {"id": 31, "type": "declaration", "text": "id\t_arg;", "parent": null, "children": [32, 33], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 32, "type": "type_identifier", "text": "id", "parent": 31, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 3}}, {"id": 33, "type": "identifier", "text": "_arg", "parent": 31, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 34, "type": "declaration", "text": "id\t_result;", "parent": null, "children": [35, 36], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 12}}, {"id": 35, "type": "type_identifier", "text": "id", "parent": 34, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 3}}, {"id": 36, "type": "identifier", "text": "_result", "parent": 34, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 37, "type": "ERROR", "text": "- (id)initWithTarget: (id)obj", "parent": null, "children": [38, 47], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 29}}, {"id": 38, "type": "call_expression", "text": "- (id)initWithTarget: (id)", "parent": 37, "children": [39, 45], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 26}}, {"id": 39, "type": "unary_expression", "text": "- (id)initWithTarget", "parent": 38, "children": [40, 41], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 20}}, {"id": 40, "type": "-", "text": "-", "parent": 39, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 41, "type": "cast_expression", "text": "(id)initWithTarget", "parent": 39, "children": [42, 44], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 20}}, {"id": 42, "type": "type_descriptor", "text": "id", "parent": 41, "children": [43], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 43, "type": "type_identifier", "text": "id", "parent": 42, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 44, "type": "identifier", "text": "initWithTarget", "parent": 41, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 20}}, {"id": 45, "type": "argument_list", "text": "(id)", "parent": 38, "children": [46], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}, {"id": 46, "type": "identifier", "text": "id", "parent": 45, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 25}}, {"id": 47, "type": "identifier", "text": "obj", "parent": 37, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 29}}, {"id": 48, "type": "labeled_statement", "text": "selector: (SEL)sel", "parent": null, "children": [49], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 48}}, {"id": 49, "type": "statement_identifier", "text": "selector", "parent": 48, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 38}}, {"id": 50, "type": "cast_expression", "text": "(SEL)sel", "parent": 48, "children": [51, 53], "start_point": {"row": 32, "column": 40}, "end_point": {"row": 32, "column": 48}}, {"id": 51, "type": "type_descriptor", "text": "SEL", "parent": 50, "children": [52], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 44}}, {"id": 52, "type": "type_identifier", "text": "SEL", "parent": 51, "children": [], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 44}}, {"id": 53, "type": "identifier", "text": "sel", "parent": 50, "children": [], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 48}}, {"id": 54, "type": "labeled_statement", "text": "object: (id)arg;", "parent": null, "children": [55], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 65}}, {"id": 55, "type": "statement_identifier", "text": "object", "parent": 54, "children": [], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 55}}, {"id": 56, "type": "cast_expression", "text": "(id)arg", "parent": 54, "children": [57, 59], "start_point": {"row": 32, "column": 57}, "end_point": {"row": 32, "column": 64}}, {"id": 57, "type": "type_descriptor", "text": "id", "parent": 56, "children": [58], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 60}}, {"id": 58, "type": "type_identifier", "text": "id", "parent": 57, "children": [], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 60}}, {"id": 59, "type": "identifier", "text": "arg", "parent": 56, "children": [], "start_point": {"row": 32, "column": 61}, "end_point": {"row": 32, "column": 64}}, {"id": 60, "type": "unary_expression", "text": "- (id)result", "parent": null, "children": [61, 62], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 12}}, {"id": 61, "type": "-", "text": "-", "parent": 60, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 62, "type": "cast_expression", "text": "(id)result", "parent": 60, "children": [63, 65], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 12}}, {"id": 63, "type": "type_descriptor", "text": "id", "parent": 62, "children": [64], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 64, "type": "type_identifier", "text": "id", "parent": 63, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 65, "type": "identifier", "text": "result", "parent": 62, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 12}}, {"id": 66, "type": "ERROR", "text": "@", "parent": null, "children": [67], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 67, "type": "ERROR", "text": "@", "parent": 66, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 68, "type": "declaration", "text": "end\n\n@class NSLatchTrigger;", "parent": null, "children": [69, 71], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 38, "column": 22}}, {"id": 69, "type": "ERROR", "text": "@class", "parent": 68, "children": [70], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 70, "type": "ERROR", "text": "@", "parent": 69, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 71, "type": "identifier", "text": "NSLatchTrigger", "parent": 68, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 21}}, {"id": 72, "type": "ERROR", "text": "@", "parent": null, "children": [73], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 73, "type": "ERROR", "text": "@", "parent": 72, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 74, "type": "function_definition", "text": "interface NSWaitableSelectorOperation : NSSelectorOperation\n{\n\tNSLatchTrigger*\t_trigger;\n}", "parent": null, "children": [75, 76, 77], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 42, "column": 1}}, {"id": 75, "type": "type_identifier", "text": "interface", "parent": 74, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 76, "type": "identifier", "text": "NSWaitableSelectorOperation", "parent": 74, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 38}}, {"id": 77, "type": "ERROR", "text": ": NSSelectorOperation", "parent": 74, "children": [78], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 60}}, {"id": 78, "type": "identifier", "text": "NSSelectorOperation", "parent": 77, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 60}}, {"id": 79, "type": "declaration", "text": "NSLatchTrigger*\t_trigger;", "parent": 74, "children": [80, 81], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 26}}, {"id": 80, "type": "type_identifier", "text": "NSLatchTrigger", "parent": 79, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 15}}, {"id": 81, "type": "pointer_declarator", "text": "*\t_trigger", "parent": 79, "children": [82, 83], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 25}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 83, "type": "identifier", "text": "_trigger", "parent": 81, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 25}}, {"id": 84, "type": "unary_expression", "text": "- (void)waitUntilDone", "parent": null, "children": [85, 86], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 21}}, {"id": 85, "type": "-", "text": "-", "parent": 84, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 86, "type": "cast_expression", "text": "(void)waitUntilDone", "parent": 84, "children": [87, 89], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 21}}, {"id": 87, "type": "type_descriptor", "text": "void", "parent": 86, "children": [88], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 88, "type": "primitive_type", "text": "void", "parent": 87, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 89, "type": "identifier", "text": "waitUntilDone", "parent": 86, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 21}}, {"id": 90, "type": "ERROR", "text": "@", "parent": null, "children": [91], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 91, "type": "ERROR", "text": "@", "parent": 90, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5, 74], "variables": [18, 25, 28, 31, 34, 68, 79], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12, 38, 39, 41, 50, 56, 60, 62, 84, 86], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 15, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 43, 44, 46, 47, 49, 52, 53, 55, 58, 59, 64, 65, 71, 75, 76, 78, 80, 83, 89], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "NSOperation", "text_snippet": "interface NSOperation : NSObject\n{\n}"}, {"node_id": 74, "universal_type": "function", "name": "NSWaitableSelectorOperation", "text_snippet": "interface NSWaitableSelectorOperation : NSSelectorOperation\n{\n\tNSLatchTrigger*\t_trigger;\n}"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\nOriginal Author: <NAME> on 11/9/08.\nCopyright (c) 2008 Rogue Amoeba Software LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n#import <Foundation/NSObject.h>\n\n\n@interface NSOperation : NSObject\n{\n}\n\n// abstract, override this to create a concrete subclass, don't call super\n- (void)run;\n\n@end\n\n@interface NSSelectorOperation : NSOperation\n{\n\tid\t_obj;\n\tSEL\t_sel;\n\tid\t_arg;\n\t\n\tid\t_result;\n}\n\n- (id)initWithTarget: (id)obj selector: (SEL)sel object: (id)arg;\n\n- (id)result;\n\n@end\n\n@class NSLatchTrigger;\n@interface NSWaitableSelectorOperation : NSSelectorOperation\n{\n\tNSLatchTrigger*\t_trigger;\n}\n\n- (void)waitUntilDone;\n\n@end\n"}
81,059
c
#ifndef MUPDF_PDF_CMAP_H #define MUPDF_PDF_CMAP_H /* * CMap */ typedef struct pdf_cmap_s pdf_cmap; typedef struct pdf_range_s pdf_range; enum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }; struct pdf_range_s { unsigned short low; /* Next, we pack 2 fields into the same unsigned short. Top 14 bits * are the extent, bottom 2 bits are flags: single, range, table, * multi */ unsigned short extent_flags; unsigned short offset; /* range-delta or table-index */ }; struct pdf_cmap_s { fz_storable storable; char cmap_name[32]; char usecmap_name[32]; pdf_cmap *usecmap; int wmode; int codespace_len; struct { unsigned short n; unsigned short low; unsigned short high; } codespace[40]; int rlen, rcap; pdf_range *ranges; int tlen, tcap; unsigned short *table; }; pdf_cmap *pdf_new_cmap(fz_context *ctx); pdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap); void pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap); void pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap); unsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap); int pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap); void pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode); void pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap); void pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n); void pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len); void pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo); void pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len); void pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap); int pdf_lookup_cmap(pdf_cmap *cmap, int cpt); int pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out); int pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt); pdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes); pdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file); pdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name); pdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name); pdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref); #ifndef NDEBUG void pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap); #endif #endif
36.1
61
(translation_unit) "#ifndef MUPDF_PDF_CMAP_H\n#define MUPDF_PDF_CMAP_H\n\n/*\n * CMap\n */\n\ntypedef struct pdf_cmap_s pdf_cmap;\ntypedef struct pdf_range_s pdf_range;\n\nenum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI };\n\nstruct pdf_range_s\n{\n unsigned short low;\n /* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n * are the extent, bottom 2 bits are flags: single, range, table,\n * multi */\n unsigned short extent_flags;\n unsigned short offset; /* range-delta or table-index */\n};\n\nstruct pdf_cmap_s\n{\n fz_storable storable;\n char cmap_name[32];\n\n char usecmap_name[32];\n pdf_cmap *usecmap;\n\n int wmode;\n\n int codespace_len;\n struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n } codespace[40];\n\n int rlen, rcap;\n pdf_range *ranges;\n\n int tlen, tcap;\n unsigned short *table;\n};\n\npdf_cmap *pdf_new_cmap(fz_context *ctx);\npdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);\nunsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);\nvoid pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);\n\nvoid pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);\nvoid pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);\nvoid pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);\nvoid pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);\nvoid pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_lookup_cmap(pdf_cmap *cmap, int cpt);\nint pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);\nint pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);\n\npdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);\npdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);\npdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);\n\n#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef MUPDF_PDF_CMAP_H\n#define MUPDF_PDF_CMAP_H\n\n/*\n * CMap\n */\n\ntypedef struct pdf_cmap_s pdf_cmap;\ntypedef struct pdf_range_s pdf_range;\n\nenum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI };\n\nstruct pdf_range_s\n{\n unsigned short low;\n /* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n * are the extent, bottom 2 bits are flags: single, range, table,\n * multi */\n unsigned short extent_flags;\n unsigned short offset; /* range-delta or table-index */\n};\n\nstruct pdf_cmap_s\n{\n fz_storable storable;\n char cmap_name[32];\n\n char usecmap_name[32];\n pdf_cmap *usecmap;\n\n int wmode;\n\n int codespace_len;\n struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n } codespace[40];\n\n int rlen, rcap;\n pdf_range *ranges;\n\n int tlen, tcap;\n unsigned short *table;\n};\n\npdf_cmap *pdf_new_cmap(fz_context *ctx);\npdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);\nunsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);\nvoid pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);\n\nvoid pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);\nvoid pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);\nvoid pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);\nvoid pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);\nvoid pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_lookup_cmap(pdf_cmap *cmap, int cpt);\nint pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);\nint pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);\n\npdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);\npdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);\npdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);\n\n#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "MUPDF_PDF_CMAP_H" (preproc_def) "#define MUPDF_PDF_CMAP_H\n" (#define) "#define" (identifier) "MUPDF_PDF_CMAP_H" (comment) "/*\n * CMap\n */" (type_definition) "typedef struct pdf_cmap_s pdf_cmap;" (typedef) "typedef" (struct_specifier) "struct pdf_cmap_s" (struct) "struct" (type_identifier) "pdf_cmap_s" (type_identifier) "pdf_cmap" (;) ";" (type_definition) "typedef struct pdf_range_s pdf_range;" (typedef) "typedef" (struct_specifier) "struct pdf_range_s" (struct) "struct" (type_identifier) "pdf_range_s" (type_identifier) "pdf_range" (;) ";" (enum_specifier) "enum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }" (enum) "enum" (enumerator_list) "{ PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }" ({) "{" (enumerator) "PDF_CMAP_SINGLE" (identifier) "PDF_CMAP_SINGLE" (,) "," (enumerator) "PDF_CMAP_RANGE" (identifier) "PDF_CMAP_RANGE" (,) "," (enumerator) "PDF_CMAP_TABLE" (identifier) "PDF_CMAP_TABLE" (,) "," (enumerator) "PDF_CMAP_MULTI" (identifier) "PDF_CMAP_MULTI" (}) "}" (;) ";" (struct_specifier) "struct pdf_range_s\n{\n unsigned short low;\n /* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n * are the extent, bottom 2 bits are flags: single, range, table,\n * multi */\n unsigned short extent_flags;\n unsigned short offset; /* range-delta or table-index */\n}" (struct) "struct" (type_identifier) "pdf_range_s" (field_declaration_list) "{\n unsigned short low;\n /* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n * are the extent, bottom 2 bits are flags: single, range, table,\n * multi */\n unsigned short extent_flags;\n unsigned short offset; /* range-delta or table-index */\n}" ({) "{" (field_declaration) "unsigned short low;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "low" (;) ";" (comment) "/* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n * are the extent, bottom 2 bits are flags: single, range, table,\n * multi */" (field_declaration) "unsigned short extent_flags;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "extent_flags" (;) ";" (field_declaration) "unsigned short offset;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "offset" (;) ";" (comment) "/* range-delta or table-index */" (}) "}" (;) ";" (struct_specifier) "struct pdf_cmap_s\n{\n fz_storable storable;\n char cmap_name[32];\n\n char usecmap_name[32];\n pdf_cmap *usecmap;\n\n int wmode;\n\n int codespace_len;\n struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n } codespace[40];\n\n int rlen, rcap;\n pdf_range *ranges;\n\n int tlen, tcap;\n unsigned short *table;\n}" (struct) "struct" (type_identifier) "pdf_cmap_s" (field_declaration_list) "{\n fz_storable storable;\n char cmap_name[32];\n\n char usecmap_name[32];\n pdf_cmap *usecmap;\n\n int wmode;\n\n int codespace_len;\n struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n } codespace[40];\n\n int rlen, rcap;\n pdf_range *ranges;\n\n int tlen, tcap;\n unsigned short *table;\n}" ({) "{" (field_declaration) "fz_storable storable;" (type_identifier) "fz_storable" (field_identifier) "storable" (;) ";" (field_declaration) "char cmap_name[32];" (primitive_type) "char" (array_declarator) "cmap_name[32]" (field_identifier) "cmap_name" ([) "[" (number_literal) "32" (]) "]" (;) ";" (field_declaration) "char usecmap_name[32];" (primitive_type) "char" (array_declarator) "usecmap_name[32]" (field_identifier) "usecmap_name" ([) "[" (number_literal) "32" (]) "]" (;) ";" (field_declaration) "pdf_cmap *usecmap;" (type_identifier) "pdf_cmap" (pointer_declarator) "*usecmap" (*) "*" (field_identifier) "usecmap" (;) ";" (field_declaration) "int wmode;" (primitive_type) "int" (field_identifier) "wmode" (;) ";" (field_declaration) "int codespace_len;" (primitive_type) "int" (field_identifier) "codespace_len" (;) ";" (field_declaration) "struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n } codespace[40];" (struct_specifier) "struct\n {\n unsigned short n;\n unsigned short low;\n unsigned short high;\n }" (struct) "struct" (field_declaration_list) "{\n unsigned short n;\n unsigned short low;\n unsigned short high;\n }" ({) "{" (field_declaration) "unsigned short n;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "n" (;) ";" (field_declaration) "unsigned short low;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "low" (;) ";" (field_declaration) "unsigned short high;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (field_identifier) "high" (;) ";" (}) "}" (array_declarator) "codespace[40]" (field_identifier) "codespace" ([) "[" (number_literal) "40" (]) "]" (;) ";" (field_declaration) "int rlen, rcap;" (primitive_type) "int" (field_identifier) "rlen" (,) "," (field_identifier) "rcap" (;) ";" (field_declaration) "pdf_range *ranges;" (type_identifier) "pdf_range" (pointer_declarator) "*ranges" (*) "*" (field_identifier) "ranges" (;) ";" (field_declaration) "int tlen, tcap;" (primitive_type) "int" (field_identifier) "tlen" (,) "," (field_identifier) "tcap" (;) ";" (field_declaration) "unsigned short *table;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (pointer_declarator) "*table" (*) "*" (field_identifier) "table" (;) ";" (}) "}" (;) ";" (declaration) "pdf_cmap *pdf_new_cmap(fz_context *ctx);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_new_cmap(fz_context *ctx)" (*) "*" (function_declarator) "pdf_new_cmap(fz_context *ctx)" (identifier) "pdf_new_cmap" (parameter_list) "(fz_context *ctx)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)" (*) "*" (function_declarator) "pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_keep_cmap" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "void pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);" (primitive_type) "void" (function_declarator) "pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_drop_cmap" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "void pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);" (primitive_type) "void" (function_declarator) "pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap)" (identifier) "pdf_free_cmap_imp" (parameter_list) "(fz_context *ctx, fz_storable *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "fz_storable *cmap" (type_identifier) "fz_storable" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "unsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_cmap_size" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "int pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);" (primitive_type) "int" (function_declarator) "pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_cmap_wmode" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "void pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);" (primitive_type) "void" (function_declarator) "pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode)" (identifier) "pdf_set_cmap_wmode" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, int wmode)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int wmode" (primitive_type) "int" (identifier) "wmode" ()) ")" (;) ";" (declaration) "void pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);" (primitive_type) "void" (function_declarator) "pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap)" (identifier) "pdf_set_usecmap" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "pdf_cmap *usecmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*usecmap" (*) "*" (identifier) "usecmap" ()) ")" (;) ";" (declaration) "void pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);" (primitive_type) "void" (function_declarator) "pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n)" (identifier) "pdf_add_codespace" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int low" (primitive_type) "int" (identifier) "low" (,) "," (parameter_declaration) "int high" (primitive_type) "int" (identifier) "high" (,) "," (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (;) ";" (declaration) "void pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);" (primitive_type) "void" (function_declarator) "pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len)" (identifier) "pdf_map_range_to_table" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int low" (primitive_type) "int" (identifier) "low" (,) "," (parameter_declaration) "int *map" (primitive_type) "int" (pointer_declarator) "*map" (*) "*" (identifier) "map" (,) "," (parameter_declaration) "int len" (primitive_type) "int" (identifier) "len" ()) ")" (;) ";" (declaration) "void pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);" (primitive_type) "void" (function_declarator) "pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo)" (identifier) "pdf_map_range_to_range" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int srclo" (primitive_type) "int" (identifier) "srclo" (,) "," (parameter_declaration) "int srchi" (primitive_type) "int" (identifier) "srchi" (,) "," (parameter_declaration) "int dstlo" (primitive_type) "int" (identifier) "dstlo" ()) ")" (;) ";" (declaration) "void pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);" (primitive_type) "void" (function_declarator) "pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len)" (identifier) "pdf_map_one_to_many" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int one" (primitive_type) "int" (identifier) "one" (,) "," (parameter_declaration) "int *many" (primitive_type) "int" (pointer_declarator) "*many" (*) "*" (identifier) "many" (,) "," (parameter_declaration) "int len" (primitive_type) "int" (identifier) "len" ()) ")" (;) ";" (declaration) "void pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);" (primitive_type) "void" (function_declarator) "pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_sort_cmap" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (declaration) "int pdf_lookup_cmap(pdf_cmap *cmap, int cpt);" (primitive_type) "int" (function_declarator) "pdf_lookup_cmap(pdf_cmap *cmap, int cpt)" (identifier) "pdf_lookup_cmap" (parameter_list) "(pdf_cmap *cmap, int cpt)" (() "(" (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int cpt" (primitive_type) "int" (identifier) "cpt" ()) ")" (;) ";" (declaration) "int pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);" (primitive_type) "int" (function_declarator) "pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out)" (identifier) "pdf_lookup_cmap_full" (parameter_list) "(pdf_cmap *cmap, int cpt, int *out)" (() "(" (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "int cpt" (primitive_type) "int" (identifier) "cpt" (,) "," (parameter_declaration) "int *out" (primitive_type) "int" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (;) ";" (declaration) "int pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);" (primitive_type) "int" (function_declarator) "pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt)" (identifier) "pdf_decode_cmap" (parameter_list) "(pdf_cmap *cmap, unsigned char *s, int *cpt)" (() "(" (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" (,) "," (parameter_declaration) "unsigned char *s" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int *cpt" (primitive_type) "int" (pointer_declarator) "*cpt" (*) "*" (identifier) "cpt" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)" (*) "*" (function_declarator) "pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)" (identifier) "pdf_new_identity_cmap" (parameter_list) "(fz_context *ctx, int wmode, int bytes)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "int wmode" (primitive_type) "int" (identifier) "wmode" (,) "," (parameter_declaration) "int bytes" (primitive_type) "int" (identifier) "bytes" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_load_cmap(fz_context *ctx, fz_stream *file)" (*) "*" (function_declarator) "pdf_load_cmap(fz_context *ctx, fz_stream *file)" (identifier) "pdf_load_cmap" (parameter_list) "(fz_context *ctx, fz_stream *file)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "fz_stream *file" (type_identifier) "fz_stream" (pointer_declarator) "*file" (*) "*" (identifier) "file" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_load_system_cmap(fz_context *ctx, char *name)" (*) "*" (function_declarator) "pdf_load_system_cmap(fz_context *ctx, char *name)" (identifier) "pdf_load_system_cmap" (parameter_list) "(fz_context *ctx, char *name)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "char *name" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_load_builtin_cmap(fz_context *ctx, char *name)" (*) "*" (function_declarator) "pdf_load_builtin_cmap(fz_context *ctx, char *name)" (identifier) "pdf_load_builtin_cmap" (parameter_list) "(fz_context *ctx, char *name)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "char *name" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "pdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);" (type_identifier) "pdf_cmap" (pointer_declarator) "*pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref)" (*) "*" (function_declarator) "pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref)" (identifier) "pdf_load_embedded_cmap" (parameter_list) "(pdf_document *doc, pdf_obj *ref)" (() "(" (parameter_declaration) "pdf_document *doc" (type_identifier) "pdf_document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "pdf_obj *ref" (type_identifier) "pdf_obj" (pointer_declarator) "*ref" (*) "*" (identifier) "ref" ()) ")" (;) ";" (preproc_ifdef) "#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif" (#ifndef) "#ifndef" (identifier) "NDEBUG" (declaration) "void pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);" (primitive_type) "void" (function_declarator) "pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap)" (identifier) "pdf_print_cmap" (parameter_list) "(fz_context *ctx, pdf_cmap *cmap)" (() "(" (parameter_declaration) "fz_context *ctx" (type_identifier) "fz_context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "pdf_cmap *cmap" (type_identifier) "pdf_cmap" (pointer_declarator) "*cmap" (*) "*" (identifier) "cmap" ()) ")" (;) ";" (#endif) "#endif" (#endif) "#endif"
670
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.1, "nodes": 518, "errors": 0, "source_hash": "e517deebf71ee4fbd484e2534f939e6011b3d9d2bdb3d18887e27a0b13d92f54", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MUPDF_PDF_CMAP_H\n#define MUPDF_PDF_CMAP_H\n\n/*\n * CMap\n */\n\ntypedef struct pdf_cmap_s pdf_cmap;\ntypedef struct pdf_range_s pdf_range;\n\nenum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI };\n\nstruct pdf_range_s\n{\n\tunsigned short low;\n\t/* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n\t * are the extent, bottom 2 bits are flags: single, range, table,\n\t * multi */\n\tunsigned short extent_flags;\n\tunsigned short offset;\t/* range-delta or table-index */\n};\n\nstruct pdf_cmap_s\n{\n\tfz_storable storable;\n\tchar cmap_name[32];\n\n\tchar usecmap_name[32];\n\tpdf_cmap *usecmap;\n\n\tint wmode;\n\n\tint codespace_len;\n\tstruct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t} codespace[40];\n\n\tint rlen, rcap;\n\tpdf_range *ranges;\n\n\tint tlen, tcap;\n\tunsigned short *table;\n};\n\npdf_cmap *pdf_new_cmap(fz_context *ctx);\npdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);\nunsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);\nvoid pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);\n\nvoid pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);\nvoid pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);\nvoid pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);\nvoid pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);\nvoid pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_lookup_cmap(pdf_cmap *cmap, int cpt);\nint pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);\nint pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);\n\npdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);\npdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);\npdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);\n\n#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 12, 18, 29, 47, 115, 127, 144, 159, 174, 191, 206, 224, 244, 268, 294, 318, 344, 359, 372, 390, 412, 430, 447, 464, 481, 498, 517], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "MUPDF_PDF_CMAP_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define MUPDF_PDF_CMAP_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "MUPDF_PDF_CMAP_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "type_definition", "text": "typedef struct pdf_cmap_s pdf_cmap;", "parent": 0, "children": [7, 8, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 35}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct pdf_cmap_s", "parent": 6, "children": [9, 10], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "pdf_cmap_s", "parent": 8, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 25}}, {"id": 11, "type": "type_identifier", "text": "pdf_cmap", "parent": 6, "children": [], "start_point": {"row": 7, "column": 26}, "end_point": {"row": 7, "column": 34}}, {"id": 12, "type": "type_definition", "text": "typedef struct pdf_range_s pdf_range;", "parent": 0, "children": [13, 14, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 37}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 14, "type": "struct_specifier", "text": "struct pdf_range_s", "parent": 12, "children": [15, 16], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 16, "type": "type_identifier", "text": "pdf_range_s", "parent": 14, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 26}}, {"id": 17, "type": "type_identifier", "text": "pdf_range", "parent": 12, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 36}}, {"id": 18, "type": "enum_specifier", "text": "enum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }", "parent": 0, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 72}}, {"id": 19, "type": "enum", "text": "enum", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 20, "type": "enumerator_list", "text": "{ PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }", "parent": 18, "children": [21, 23, 25, 27], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 72}}, {"id": 21, "type": "enumerator", "text": "PDF_CMAP_SINGLE", "parent": 20, "children": [22], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 22}}, {"id": 22, "type": "identifier", "text": "PDF_CMAP_SINGLE", "parent": 21, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 22}}, {"id": 23, "type": "enumerator", "text": "PDF_CMAP_RANGE", "parent": 20, "children": [24], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 38}}, {"id": 24, "type": "identifier", "text": "PDF_CMAP_RANGE", "parent": 23, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 38}}, {"id": 25, "type": "enumerator", "text": "PDF_CMAP_TABLE", "parent": 20, "children": [26], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 54}}, {"id": 26, "type": "identifier", "text": "PDF_CMAP_TABLE", "parent": 25, "children": [], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 54}}, {"id": 27, "type": "enumerator", "text": "PDF_CMAP_MULTI", "parent": 20, "children": [28], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 70}}, {"id": 28, "type": "identifier", "text": "PDF_CMAP_MULTI", "parent": 27, "children": [], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 70}}, {"id": 29, "type": "struct_specifier", "text": "struct pdf_range_s\n{\n\tunsigned short low;\n\t/* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n\t * are the extent, bottom 2 bits are flags: single, range, table,\n\t * multi */\n\tunsigned short extent_flags;\n\tunsigned short offset;\t/* range-delta or table-index */\n}", "parent": 0, "children": [30, 31], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 30, "type": "struct", "text": "struct", "parent": 29, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 31, "type": "type_identifier", "text": "pdf_range_s", "parent": 29, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 18}}, {"id": 32, "type": "field_declaration", "text": "unsigned short low;", "parent": 29, "children": [33, 36], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 20}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned short", "parent": 32, "children": [34, 35], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 15}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 35, "type": "short", "text": "short", "parent": 33, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 15}}, {"id": 36, "type": "field_identifier", "text": "low", "parent": 32, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 19}}, {"id": 37, "type": "field_declaration", "text": "unsigned short extent_flags;", "parent": 29, "children": [38, 41], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 29}}, {"id": 38, "type": "sized_type_specifier", "text": "unsigned short", "parent": 37, "children": [39, 40], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 39, "type": "unsigned", "text": "unsigned", "parent": 38, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 40, "type": "short", "text": "short", "parent": 38, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 15}}, {"id": 41, "type": "field_identifier", "text": "extent_flags", "parent": 37, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 28}}, {"id": 42, "type": "field_declaration", "text": "unsigned short offset;", "parent": 29, "children": [43, 46], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 23}}, {"id": 43, "type": "sized_type_specifier", "text": "unsigned short", "parent": 42, "children": [44, 45], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 15}}, {"id": 44, "type": "unsigned", "text": "unsigned", "parent": 43, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 45, "type": "short", "text": "short", "parent": 43, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 15}}, {"id": 46, "type": "field_identifier", "text": "offset", "parent": 42, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 47, "type": "struct_specifier", "text": "struct pdf_cmap_s\n{\n\tfz_storable storable;\n\tchar cmap_name[32];\n\n\tchar usecmap_name[32];\n\tpdf_cmap *usecmap;\n\n\tint wmode;\n\n\tint codespace_len;\n\tstruct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t} codespace[40];\n\n\tint rlen, rcap;\n\tpdf_range *ranges;\n\n\tint tlen, tcap;\n\tunsigned short *table;\n}", "parent": 0, "children": [48, 49], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 49, "type": "type_identifier", "text": "pdf_cmap_s", "parent": 47, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 17}}, {"id": 50, "type": "field_declaration", "text": "fz_storable storable;", "parent": 47, "children": [51, 52], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 22}}, {"id": 51, "type": "type_identifier", "text": "fz_storable", "parent": 50, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 12}}, {"id": 52, "type": "field_identifier", "text": "storable", "parent": 50, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 53, "type": "field_declaration", "text": "char cmap_name[32];", "parent": 47, "children": [54, 55], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 20}}, {"id": 54, "type": "primitive_type", "text": "char", "parent": 53, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 55, "type": "array_declarator", "text": "cmap_name[32]", "parent": 53, "children": [56, 57], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 19}}, {"id": 56, "type": "field_identifier", "text": "cmap_name", "parent": 55, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 15}}, {"id": 57, "type": "number_literal", "text": "32", "parent": 55, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 18}}, {"id": 58, "type": "field_declaration", "text": "char usecmap_name[32];", "parent": 47, "children": [59, 60], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 23}}, {"id": 59, "type": "primitive_type", "text": "char", "parent": 58, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 60, "type": "array_declarator", "text": "usecmap_name[32]", "parent": 58, "children": [61, 62], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 22}}, {"id": 61, "type": "field_identifier", "text": "usecmap_name", "parent": 60, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 18}}, {"id": 62, "type": "number_literal", "text": "32", "parent": 60, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 21}}, {"id": 63, "type": "field_declaration", "text": "pdf_cmap *usecmap;", "parent": 47, "children": [64, 65], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 19}}, {"id": 64, "type": "type_identifier", "text": "pdf_cmap", "parent": 63, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 65, "type": "pointer_declarator", "text": "*usecmap", "parent": 63, "children": [66, 67], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 18}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 67, "type": "field_identifier", "text": "usecmap", "parent": 65, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 18}}, {"id": 68, "type": "field_declaration", "text": "int wmode;", "parent": 47, "children": [69, 70], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 11}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 4}}, {"id": 70, "type": "field_identifier", "text": "wmode", "parent": 68, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 10}}, {"id": 71, "type": "field_declaration", "text": "int codespace_len;", "parent": 47, "children": [72, 73], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 19}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 4}}, {"id": 73, "type": "field_identifier", "text": "codespace_len", "parent": 71, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 18}}, {"id": 74, "type": "field_declaration", "text": "struct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t} codespace[40];", "parent": 47, "children": [75, 92], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 38, "column": 17}}, {"id": 75, "type": "struct_specifier", "text": "struct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t}", "parent": 74, "children": [76], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 38, "column": 2}}, {"id": 76, "type": "struct", "text": "struct", "parent": 75, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 77, "type": "field_declaration", "text": "unsigned short n;", "parent": 75, "children": [78, 81], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 19}}, {"id": 78, "type": "sized_type_specifier", "text": "unsigned short", "parent": 77, "children": [79, 80], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 16}}, {"id": 79, "type": "unsigned", "text": "unsigned", "parent": 78, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 80, "type": "short", "text": "short", "parent": 78, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 16}}, {"id": 81, "type": "field_identifier", "text": "n", "parent": 77, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 18}}, {"id": 82, "type": "field_declaration", "text": "unsigned short low;", "parent": 75, "children": [83, 86], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 21}}, {"id": 83, "type": "sized_type_specifier", "text": "unsigned short", "parent": 82, "children": [84, 85], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 16}}, {"id": 84, "type": "unsigned", "text": "unsigned", "parent": 83, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 10}}, {"id": 85, "type": "short", "text": "short", "parent": 83, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 16}}, {"id": 86, "type": "field_identifier", "text": "low", "parent": 82, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 20}}, {"id": 87, "type": "field_declaration", "text": "unsigned short high;", "parent": 75, "children": [88, 91], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 22}}, {"id": 88, "type": "sized_type_specifier", "text": "unsigned short", "parent": 87, "children": [89, 90], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 16}}, {"id": 89, "type": "unsigned", "text": "unsigned", "parent": 88, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 10}}, {"id": 90, "type": "short", "text": "short", "parent": 88, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 16}}, {"id": 91, "type": "field_identifier", "text": "high", "parent": 87, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 21}}, {"id": 92, "type": "array_declarator", "text": "codespace[40]", "parent": 74, "children": [93, 94], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 16}}, {"id": 93, "type": "field_identifier", "text": "codespace", "parent": 92, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 12}}, {"id": 94, "type": "number_literal", "text": "40", "parent": 92, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 15}}, {"id": 95, "type": "field_declaration", "text": "int rlen, rcap;", "parent": 47, "children": [96, 97, 98], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 16}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 4}}, {"id": 97, "type": "field_identifier", "text": "rlen", "parent": 95, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 9}}, {"id": 98, "type": "field_identifier", "text": "rcap", "parent": 95, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 15}}, {"id": 99, "type": "field_declaration", "text": "pdf_range *ranges;", "parent": 47, "children": [100, 101], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 100, "type": "type_identifier", "text": "pdf_range", "parent": 99, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 10}}, {"id": 101, "type": "pointer_declarator", "text": "*ranges", "parent": 99, "children": [102, 103], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 18}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 103, "type": "field_identifier", "text": "ranges", "parent": 101, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 18}}, {"id": 104, "type": "field_declaration", "text": "int tlen, tcap;", "parent": 47, "children": [105, 106, 107], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 16}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 4}}, {"id": 106, "type": "field_identifier", "text": "tlen", "parent": 104, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 9}}, {"id": 107, "type": "field_identifier", "text": "tcap", "parent": 104, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 15}}, {"id": 108, "type": "field_declaration", "text": "unsigned short *table;", "parent": 47, "children": [109, 112], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 23}}, {"id": 109, "type": "sized_type_specifier", "text": "unsigned short", "parent": 108, "children": [110, 111], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 15}}, {"id": 110, "type": "unsigned", "text": "unsigned", "parent": 109, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 9}}, {"id": 111, "type": "short", "text": "short", "parent": 109, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 15}}, {"id": 112, "type": "pointer_declarator", "text": "*table", "parent": 108, "children": [113, 114], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 22}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 17}}, {"id": 114, "type": "field_identifier", "text": "table", "parent": 112, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 22}}, {"id": 115, "type": "declaration", "text": "pdf_cmap *pdf_new_cmap(fz_context *ctx);", "parent": 0, "children": [116, 117], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 40}}, {"id": 116, "type": "type_identifier", "text": "pdf_cmap", "parent": 115, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 117, "type": "pointer_declarator", "text": "*pdf_new_cmap(fz_context *ctx)", "parent": 115, "children": [118, 119], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 39}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 10}}, {"id": 119, "type": "function_declarator", "text": "pdf_new_cmap(fz_context *ctx)", "parent": 117, "children": [120, 121], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 39}}, {"id": 120, "type": "identifier", "text": "pdf_new_cmap", "parent": 119, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 22}}, {"id": 121, "type": "parameter_list", "text": "(fz_context *ctx)", "parent": 119, "children": [122], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 39}}, {"id": 122, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 121, "children": [123, 124], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 38}}, {"id": 123, "type": "type_identifier", "text": "fz_context", "parent": 122, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 33}}, {"id": 124, "type": "pointer_declarator", "text": "*ctx", "parent": 122, "children": [125, 126], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 38}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 35}}, {"id": 126, "type": "identifier", "text": "ctx", "parent": 124, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 38}}, {"id": 127, "type": "declaration", "text": "pdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);", "parent": 0, "children": [128, 129], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 57}}, {"id": 128, "type": "type_identifier", "text": "pdf_cmap", "parent": 127, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 129, "type": "pointer_declarator", "text": "*pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)", "parent": 127, "children": [130, 131], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 56}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 131, "type": "function_declarator", "text": "pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)", "parent": 129, "children": [132, 133], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 56}}, {"id": 132, "type": "identifier", "text": "pdf_keep_cmap", "parent": 131, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 23}}, {"id": 133, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 131, "children": [134, 139], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 56}}, {"id": 134, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 133, "children": [135, 136], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 39}}, {"id": 135, "type": "type_identifier", "text": "fz_context", "parent": 134, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 34}}, {"id": 136, "type": "pointer_declarator", "text": "*ctx", "parent": 134, "children": [137, 138], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 39}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 36}}, {"id": 138, "type": "identifier", "text": "ctx", "parent": 136, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 39}}, {"id": 139, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 133, "children": [140, 141], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 55}}, {"id": 140, "type": "type_identifier", "text": "pdf_cmap", "parent": 139, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 49}}, {"id": 141, "type": "pointer_declarator", "text": "*cmap", "parent": 139, "children": [142, 143], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 55}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 51}}, {"id": 143, "type": "identifier", "text": "cmap", "parent": 141, "children": [], "start_point": {"row": 48, "column": 51}, "end_point": {"row": 48, "column": 55}}, {"id": 144, "type": "declaration", "text": "void pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);", "parent": 0, "children": [145, 146], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 52}}, {"id": 145, "type": "primitive_type", "text": "void", "parent": 144, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 146, "type": "function_declarator", "text": "pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap)", "parent": 144, "children": [147, 148], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 51}}, {"id": 147, "type": "identifier", "text": "pdf_drop_cmap", "parent": 146, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 18}}, {"id": 148, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 146, "children": [149, 154], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 51}}, {"id": 149, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 148, "children": [150, 151], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 34}}, {"id": 150, "type": "type_identifier", "text": "fz_context", "parent": 149, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 29}}, {"id": 151, "type": "pointer_declarator", "text": "*ctx", "parent": 149, "children": [152, 153], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 34}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 31}}, {"id": 153, "type": "identifier", "text": "ctx", "parent": 151, "children": [], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 34}}, {"id": 154, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 148, "children": [155, 156], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 50}}, {"id": 155, "type": "type_identifier", "text": "pdf_cmap", "parent": 154, "children": [], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 44}}, {"id": 156, "type": "pointer_declarator", "text": "*cmap", "parent": 154, "children": [157, 158], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 50}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 46}}, {"id": 158, "type": "identifier", "text": "cmap", "parent": 156, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 50}}, {"id": 159, "type": "declaration", "text": "void pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);", "parent": 0, "children": [160, 161], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 59}}, {"id": 160, "type": "primitive_type", "text": "void", "parent": 159, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 4}}, {"id": 161, "type": "function_declarator", "text": "pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap)", "parent": 159, "children": [162, 163], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 58}}, {"id": 162, "type": "identifier", "text": "pdf_free_cmap_imp", "parent": 161, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 22}}, {"id": 163, "type": "parameter_list", "text": "(fz_context *ctx, fz_storable *cmap)", "parent": 161, "children": [164, 169], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 58}}, {"id": 164, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 163, "children": [165, 166], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 38}}, {"id": 165, "type": "type_identifier", "text": "fz_context", "parent": 164, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 33}}, {"id": 166, "type": "pointer_declarator", "text": "*ctx", "parent": 164, "children": [167, 168], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 38}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 35}}, {"id": 168, "type": "identifier", "text": "ctx", "parent": 166, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 38}}, {"id": 169, "type": "parameter_declaration", "text": "fz_storable *cmap", "parent": 163, "children": [170, 171], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 57}}, {"id": 170, "type": "type_identifier", "text": "fz_storable", "parent": 169, "children": [], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 51}}, {"id": 171, "type": "pointer_declarator", "text": "*cmap", "parent": 169, "children": [172, 173], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 57}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 53}}, {"id": 173, "type": "identifier", "text": "cmap", "parent": 171, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 57}}, {"id": 174, "type": "declaration", "text": "unsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);", "parent": 0, "children": [175, 178], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 60}}, {"id": 175, "type": "sized_type_specifier", "text": "unsigned int", "parent": 174, "children": [176, 177], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 12}}, {"id": 176, "type": "unsigned", "text": "unsigned", "parent": 175, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 177, "type": "primitive_type", "text": "int", "parent": 175, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 12}}, {"id": 178, "type": "function_declarator", "text": "pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap)", "parent": 174, "children": [179, 180], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 59}}, {"id": 179, "type": "identifier", "text": "pdf_cmap_size", "parent": 178, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 26}}, {"id": 180, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 178, "children": [181, 186], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 59}}, {"id": 181, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 180, "children": [182, 183], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 42}}, {"id": 182, "type": "type_identifier", "text": "fz_context", "parent": 181, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 37}}, {"id": 183, "type": "pointer_declarator", "text": "*ctx", "parent": 181, "children": [184, 185], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 42}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 39}}, {"id": 185, "type": "identifier", "text": "ctx", "parent": 183, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 42}}, {"id": 186, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 180, "children": [187, 188], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 58}}, {"id": 187, "type": "type_identifier", "text": "pdf_cmap", "parent": 186, "children": [], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 52}}, {"id": 188, "type": "pointer_declarator", "text": "*cmap", "parent": 186, "children": [189, 190], "start_point": {"row": 51, "column": 53}, "end_point": {"row": 51, "column": 58}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 51, "column": 53}, "end_point": {"row": 51, "column": 54}}, {"id": 190, "type": "identifier", "text": "cmap", "parent": 188, "children": [], "start_point": {"row": 51, "column": 54}, "end_point": {"row": 51, "column": 58}}, {"id": 191, "type": "declaration", "text": "int pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);", "parent": 0, "children": [192, 193], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 52}}, {"id": 192, "type": "primitive_type", "text": "int", "parent": 191, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 193, "type": "function_declarator", "text": "pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap)", "parent": 191, "children": [194, 195], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 51}}, {"id": 194, "type": "identifier", "text": "pdf_cmap_wmode", "parent": 193, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 18}}, {"id": 195, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 193, "children": [196, 201], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 51}}, {"id": 196, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 195, "children": [197, 198], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 34}}, {"id": 197, "type": "type_identifier", "text": "fz_context", "parent": 196, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 29}}, {"id": 198, "type": "pointer_declarator", "text": "*ctx", "parent": 196, "children": [199, 200], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 34}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 31}}, {"id": 200, "type": "identifier", "text": "ctx", "parent": 198, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 34}}, {"id": 201, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 195, "children": [202, 203], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 50}}, {"id": 202, "type": "type_identifier", "text": "pdf_cmap", "parent": 201, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 44}}, {"id": 203, "type": "pointer_declarator", "text": "*cmap", "parent": 201, "children": [204, 205], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 50}}, {"id": 204, "type": "*", "text": "*", "parent": 203, "children": [], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 46}}, {"id": 205, "type": "identifier", "text": "cmap", "parent": 203, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 50}}, {"id": 206, "type": "declaration", "text": "void pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);", "parent": 0, "children": [207, 208], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 68}}, {"id": 207, "type": "primitive_type", "text": "void", "parent": 206, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 208, "type": "function_declarator", "text": "pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode)", "parent": 206, "children": [209, 210], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 67}}, {"id": 209, "type": "identifier", "text": "pdf_set_cmap_wmode", "parent": 208, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 23}}, {"id": 210, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, int wmode)", "parent": 208, "children": [211, 216, 221], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 67}}, {"id": 211, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 210, "children": [212, 213], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 39}}, {"id": 212, "type": "type_identifier", "text": "fz_context", "parent": 211, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 34}}, {"id": 213, "type": "pointer_declarator", "text": "*ctx", "parent": 211, "children": [214, 215], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 39}}, {"id": 214, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 36}}, {"id": 215, "type": "identifier", "text": "ctx", "parent": 213, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 39}}, {"id": 216, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 210, "children": [217, 218], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 55}}, {"id": 217, "type": "type_identifier", "text": "pdf_cmap", "parent": 216, "children": [], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 49}}, {"id": 218, "type": "pointer_declarator", "text": "*cmap", "parent": 216, "children": [219, 220], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 55}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 51}}, {"id": 220, "type": "identifier", "text": "cmap", "parent": 218, "children": [], "start_point": {"row": 54, "column": 51}, "end_point": {"row": 54, "column": 55}}, {"id": 221, "type": "parameter_declaration", "text": "int wmode", "parent": 210, "children": [222, 223], "start_point": {"row": 54, "column": 57}, "end_point": {"row": 54, "column": 66}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 221, "children": [], "start_point": {"row": 54, "column": 57}, "end_point": {"row": 54, "column": 60}}, {"id": 223, "type": "identifier", "text": "wmode", "parent": 221, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 66}}, {"id": 224, "type": "declaration", "text": "void pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);", "parent": 0, "children": [225, 226], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 73}}, {"id": 225, "type": "primitive_type", "text": "void", "parent": 224, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 226, "type": "function_declarator", "text": "pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap)", "parent": 224, "children": [227, 228], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 72}}, {"id": 227, "type": "identifier", "text": "pdf_set_usecmap", "parent": 226, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 20}}, {"id": 228, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap)", "parent": 226, "children": [229, 234, 239], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 72}}, {"id": 229, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 228, "children": [230, 231], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 36}}, {"id": 230, "type": "type_identifier", "text": "fz_context", "parent": 229, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 31}}, {"id": 231, "type": "pointer_declarator", "text": "*ctx", "parent": 229, "children": [232, 233], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 36}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 33}}, {"id": 233, "type": "identifier", "text": "ctx", "parent": 231, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 36}}, {"id": 234, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 228, "children": [235, 236], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 52}}, {"id": 235, "type": "type_identifier", "text": "pdf_cmap", "parent": 234, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 46}}, {"id": 236, "type": "pointer_declarator", "text": "*cmap", "parent": 234, "children": [237, 238], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 52}}, {"id": 237, "type": "*", "text": "*", "parent": 236, "children": [], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 48}}, {"id": 238, "type": "identifier", "text": "cmap", "parent": 236, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 52}}, {"id": 239, "type": "parameter_declaration", "text": "pdf_cmap *usecmap", "parent": 228, "children": [240, 241], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 71}}, {"id": 240, "type": "type_identifier", "text": "pdf_cmap", "parent": 239, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 62}}, {"id": 241, "type": "pointer_declarator", "text": "*usecmap", "parent": 239, "children": [242, 243], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 71}}, {"id": 242, "type": "*", "text": "*", "parent": 241, "children": [], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 64}}, {"id": 243, "type": "identifier", "text": "usecmap", "parent": 241, "children": [], "start_point": {"row": 55, "column": 64}, "end_point": {"row": 55, "column": 71}}, {"id": 244, "type": "declaration", "text": "void pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);", "parent": 0, "children": [245, 246], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 82}}, {"id": 245, "type": "primitive_type", "text": "void", "parent": 244, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 4}}, {"id": 246, "type": "function_declarator", "text": "pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n)", "parent": 244, "children": [247, 248], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 81}}, {"id": 247, "type": "identifier", "text": "pdf_add_codespace", "parent": 246, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 22}}, {"id": 248, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n)", "parent": 246, "children": [249, 254, 259, 262, 265], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 81}}, {"id": 249, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 248, "children": [250, 251], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 38}}, {"id": 250, "type": "type_identifier", "text": "fz_context", "parent": 249, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 33}}, {"id": 251, "type": "pointer_declarator", "text": "*ctx", "parent": 249, "children": [252, 253], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 38}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 35}}, {"id": 253, "type": "identifier", "text": "ctx", "parent": 251, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 38}}, {"id": 254, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 248, "children": [255, 256], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 54}}, {"id": 255, "type": "type_identifier", "text": "pdf_cmap", "parent": 254, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 48}}, {"id": 256, "type": "pointer_declarator", "text": "*cmap", "parent": 254, "children": [257, 258], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 54}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 50}}, {"id": 258, "type": "identifier", "text": "cmap", "parent": 256, "children": [], "start_point": {"row": 57, "column": 50}, "end_point": {"row": 57, "column": 54}}, {"id": 259, "type": "parameter_declaration", "text": "int low", "parent": 248, "children": [260, 261], "start_point": {"row": 57, "column": 56}, "end_point": {"row": 57, "column": 63}}, {"id": 260, "type": "primitive_type", "text": "int", "parent": 259, "children": [], "start_point": {"row": 57, "column": 56}, "end_point": {"row": 57, "column": 59}}, {"id": 261, "type": "identifier", "text": "low", "parent": 259, "children": [], "start_point": {"row": 57, "column": 60}, "end_point": {"row": 57, "column": 63}}, {"id": 262, "type": "parameter_declaration", "text": "int high", "parent": 248, "children": [263, 264], "start_point": {"row": 57, "column": 65}, "end_point": {"row": 57, "column": 73}}, {"id": 263, "type": "primitive_type", "text": "int", "parent": 262, "children": [], "start_point": {"row": 57, "column": 65}, "end_point": {"row": 57, "column": 68}}, {"id": 264, "type": "identifier", "text": "high", "parent": 262, "children": [], "start_point": {"row": 57, "column": 69}, "end_point": {"row": 57, "column": 73}}, {"id": 265, "type": "parameter_declaration", "text": "int n", "parent": 248, "children": [266, 267], "start_point": {"row": 57, "column": 75}, "end_point": {"row": 57, "column": 80}}, {"id": 266, "type": "primitive_type", "text": "int", "parent": 265, "children": [], "start_point": {"row": 57, "column": 75}, "end_point": {"row": 57, "column": 78}}, {"id": 267, "type": "identifier", "text": "n", "parent": 265, "children": [], "start_point": {"row": 57, "column": 79}, "end_point": {"row": 57, "column": 80}}, {"id": 268, "type": "declaration", "text": "void pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);", "parent": 0, "children": [269, 270], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 89}}, {"id": 269, "type": "primitive_type", "text": "void", "parent": 268, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 270, "type": "function_declarator", "text": "pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len)", "parent": 268, "children": [271, 272], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 88}}, {"id": 271, "type": "identifier", "text": "pdf_map_range_to_table", "parent": 270, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 27}}, {"id": 272, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len)", "parent": 270, "children": [273, 278, 283, 286, 291], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 88}}, {"id": 273, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 272, "children": [274, 275], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 43}}, {"id": 274, "type": "type_identifier", "text": "fz_context", "parent": 273, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 38}}, {"id": 275, "type": "pointer_declarator", "text": "*ctx", "parent": 273, "children": [276, 277], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 43}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 40}}, {"id": 277, "type": "identifier", "text": "ctx", "parent": 275, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 43}}, {"id": 278, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 272, "children": [279, 280], "start_point": {"row": 58, "column": 45}, "end_point": {"row": 58, "column": 59}}, {"id": 279, "type": "type_identifier", "text": "pdf_cmap", "parent": 278, "children": [], "start_point": {"row": 58, "column": 45}, "end_point": {"row": 58, "column": 53}}, {"id": 280, "type": "pointer_declarator", "text": "*cmap", "parent": 278, "children": [281, 282], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 59}}, {"id": 281, "type": "*", "text": "*", "parent": 280, "children": [], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 55}}, {"id": 282, "type": "identifier", "text": "cmap", "parent": 280, "children": [], "start_point": {"row": 58, "column": 55}, "end_point": {"row": 58, "column": 59}}, {"id": 283, "type": "parameter_declaration", "text": "int low", "parent": 272, "children": [284, 285], "start_point": {"row": 58, "column": 61}, "end_point": {"row": 58, "column": 68}}, {"id": 284, "type": "primitive_type", "text": "int", "parent": 283, "children": [], "start_point": {"row": 58, "column": 61}, "end_point": {"row": 58, "column": 64}}, {"id": 285, "type": "identifier", "text": "low", "parent": 283, "children": [], "start_point": {"row": 58, "column": 65}, "end_point": {"row": 58, "column": 68}}, {"id": 286, "type": "parameter_declaration", "text": "int *map", "parent": 272, "children": [287, 288], "start_point": {"row": 58, "column": 70}, "end_point": {"row": 58, "column": 78}}, {"id": 287, "type": "primitive_type", "text": "int", "parent": 286, "children": [], "start_point": {"row": 58, "column": 70}, "end_point": {"row": 58, "column": 73}}, {"id": 288, "type": "pointer_declarator", "text": "*map", "parent": 286, "children": [289, 290], "start_point": {"row": 58, "column": 74}, "end_point": {"row": 58, "column": 78}}, {"id": 289, "type": "*", "text": "*", "parent": 288, "children": [], "start_point": {"row": 58, "column": 74}, "end_point": {"row": 58, "column": 75}}, {"id": 290, "type": "identifier", "text": "map", "parent": 288, "children": [], "start_point": {"row": 58, "column": 75}, "end_point": {"row": 58, "column": 78}}, {"id": 291, "type": "parameter_declaration", "text": "int len", "parent": 272, "children": [292, 293], "start_point": {"row": 58, "column": 80}, "end_point": {"row": 58, "column": 87}}, {"id": 292, "type": "primitive_type", "text": "int", "parent": 291, "children": [], "start_point": {"row": 58, "column": 80}, "end_point": {"row": 58, "column": 83}}, {"id": 293, "type": "identifier", "text": "len", "parent": 291, "children": [], "start_point": {"row": 58, "column": 84}, "end_point": {"row": 58, "column": 87}}, {"id": 294, "type": "declaration", "text": "void pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);", "parent": 0, "children": [295, 296], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 94}}, {"id": 295, "type": "primitive_type", "text": "void", "parent": 294, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 296, "type": "function_declarator", "text": "pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo)", "parent": 294, "children": [297, 298], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 93}}, {"id": 297, "type": "identifier", "text": "pdf_map_range_to_range", "parent": 296, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 27}}, {"id": 298, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo)", "parent": 296, "children": [299, 304, 309, 312, 315], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 93}}, {"id": 299, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 298, "children": [300, 301], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 43}}, {"id": 300, "type": "type_identifier", "text": "fz_context", "parent": 299, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 38}}, {"id": 301, "type": "pointer_declarator", "text": "*ctx", "parent": 299, "children": [302, 303], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 43}}, {"id": 302, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 40}}, {"id": 303, "type": "identifier", "text": "ctx", "parent": 301, "children": [], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 43}}, {"id": 304, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 298, "children": [305, 306], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 59}}, {"id": 305, "type": "type_identifier", "text": "pdf_cmap", "parent": 304, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 53}}, {"id": 306, "type": "pointer_declarator", "text": "*cmap", "parent": 304, "children": [307, 308], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 59}}, {"id": 307, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 55}}, {"id": 308, "type": "identifier", "text": "cmap", "parent": 306, "children": [], "start_point": {"row": 59, "column": 55}, "end_point": {"row": 59, "column": 59}}, {"id": 309, "type": "parameter_declaration", "text": "int srclo", "parent": 298, "children": [310, 311], "start_point": {"row": 59, "column": 61}, "end_point": {"row": 59, "column": 70}}, {"id": 310, "type": "primitive_type", "text": "int", "parent": 309, "children": [], "start_point": {"row": 59, "column": 61}, "end_point": {"row": 59, "column": 64}}, {"id": 311, "type": "identifier", "text": "srclo", "parent": 309, "children": [], "start_point": {"row": 59, "column": 65}, "end_point": {"row": 59, "column": 70}}, {"id": 312, "type": "parameter_declaration", "text": "int srchi", "parent": 298, "children": [313, 314], "start_point": {"row": 59, "column": 72}, "end_point": {"row": 59, "column": 81}}, {"id": 313, "type": "primitive_type", "text": "int", "parent": 312, "children": [], "start_point": {"row": 59, "column": 72}, "end_point": {"row": 59, "column": 75}}, {"id": 314, "type": "identifier", "text": "srchi", "parent": 312, "children": [], "start_point": {"row": 59, "column": 76}, "end_point": {"row": 59, "column": 81}}, {"id": 315, "type": "parameter_declaration", "text": "int dstlo", "parent": 298, "children": [316, 317], "start_point": {"row": 59, "column": 83}, "end_point": {"row": 59, "column": 92}}, {"id": 316, "type": "primitive_type", "text": "int", "parent": 315, "children": [], "start_point": {"row": 59, "column": 83}, "end_point": {"row": 59, "column": 86}}, {"id": 317, "type": "identifier", "text": "dstlo", "parent": 315, "children": [], "start_point": {"row": 59, "column": 87}, "end_point": {"row": 59, "column": 92}}, {"id": 318, "type": "declaration", "text": "void pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);", "parent": 0, "children": [319, 320], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 87}}, {"id": 319, "type": "primitive_type", "text": "void", "parent": 318, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 320, "type": "function_declarator", "text": "pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len)", "parent": 318, "children": [321, 322], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 86}}, {"id": 321, "type": "identifier", "text": "pdf_map_one_to_many", "parent": 320, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 24}}, {"id": 322, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len)", "parent": 320, "children": [323, 328, 333, 336, 341], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 86}}, {"id": 323, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 322, "children": [324, 325], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 40}}, {"id": 324, "type": "type_identifier", "text": "fz_context", "parent": 323, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 35}}, {"id": 325, "type": "pointer_declarator", "text": "*ctx", "parent": 323, "children": [326, 327], "start_point": {"row": 60, "column": 36}, "end_point": {"row": 60, "column": 40}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 60, "column": 36}, "end_point": {"row": 60, "column": 37}}, {"id": 327, "type": "identifier", "text": "ctx", "parent": 325, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 40}}, {"id": 328, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 322, "children": [329, 330], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 56}}, {"id": 329, "type": "type_identifier", "text": "pdf_cmap", "parent": 328, "children": [], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 50}}, {"id": 330, "type": "pointer_declarator", "text": "*cmap", "parent": 328, "children": [331, 332], "start_point": {"row": 60, "column": 51}, "end_point": {"row": 60, "column": 56}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 60, "column": 51}, "end_point": {"row": 60, "column": 52}}, {"id": 332, "type": "identifier", "text": "cmap", "parent": 330, "children": [], "start_point": {"row": 60, "column": 52}, "end_point": {"row": 60, "column": 56}}, {"id": 333, "type": "parameter_declaration", "text": "int one", "parent": 322, "children": [334, 335], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 65}}, {"id": 334, "type": "primitive_type", "text": "int", "parent": 333, "children": [], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 61}}, {"id": 335, "type": "identifier", "text": "one", "parent": 333, "children": [], "start_point": {"row": 60, "column": 62}, "end_point": {"row": 60, "column": 65}}, {"id": 336, "type": "parameter_declaration", "text": "int *many", "parent": 322, "children": [337, 338], "start_point": {"row": 60, "column": 67}, "end_point": {"row": 60, "column": 76}}, {"id": 337, "type": "primitive_type", "text": "int", "parent": 336, "children": [], "start_point": {"row": 60, "column": 67}, "end_point": {"row": 60, "column": 70}}, {"id": 338, "type": "pointer_declarator", "text": "*many", "parent": 336, "children": [339, 340], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 76}}, {"id": 339, "type": "*", "text": "*", "parent": 338, "children": [], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 72}}, {"id": 340, "type": "identifier", "text": "many", "parent": 338, "children": [], "start_point": {"row": 60, "column": 72}, "end_point": {"row": 60, "column": 76}}, {"id": 341, "type": "parameter_declaration", "text": "int len", "parent": 322, "children": [342, 343], "start_point": {"row": 60, "column": 78}, "end_point": {"row": 60, "column": 85}}, {"id": 342, "type": "primitive_type", "text": "int", "parent": 341, "children": [], "start_point": {"row": 60, "column": 78}, "end_point": {"row": 60, "column": 81}}, {"id": 343, "type": "identifier", "text": "len", "parent": 341, "children": [], "start_point": {"row": 60, "column": 82}, "end_point": {"row": 60, "column": 85}}, {"id": 344, "type": "declaration", "text": "void pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);", "parent": 0, "children": [345, 346], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 52}}, {"id": 345, "type": "primitive_type", "text": "void", "parent": 344, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 346, "type": "function_declarator", "text": "pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap)", "parent": 344, "children": [347, 348], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 51}}, {"id": 347, "type": "identifier", "text": "pdf_sort_cmap", "parent": 346, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 18}}, {"id": 348, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 346, "children": [349, 354], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 51}}, {"id": 349, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 348, "children": [350, 351], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 34}}, {"id": 350, "type": "type_identifier", "text": "fz_context", "parent": 349, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 29}}, {"id": 351, "type": "pointer_declarator", "text": "*ctx", "parent": 349, "children": [352, 353], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 34}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 31}}, {"id": 353, "type": "identifier", "text": "ctx", "parent": 351, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 34}}, {"id": 354, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 348, "children": [355, 356], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 50}}, {"id": 355, "type": "type_identifier", "text": "pdf_cmap", "parent": 354, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 44}}, {"id": 356, "type": "pointer_declarator", "text": "*cmap", "parent": 354, "children": [357, 358], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 50}}, {"id": 357, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 46}}, {"id": 358, "type": "identifier", "text": "cmap", "parent": 356, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 50}}, {"id": 359, "type": "declaration", "text": "int pdf_lookup_cmap(pdf_cmap *cmap, int cpt);", "parent": 0, "children": [360, 361], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 45}}, {"id": 360, "type": "primitive_type", "text": "int", "parent": 359, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 3}}, {"id": 361, "type": "function_declarator", "text": "pdf_lookup_cmap(pdf_cmap *cmap, int cpt)", "parent": 359, "children": [362, 363], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 44}}, {"id": 362, "type": "identifier", "text": "pdf_lookup_cmap", "parent": 361, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 19}}, {"id": 363, "type": "parameter_list", "text": "(pdf_cmap *cmap, int cpt)", "parent": 361, "children": [364, 369], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 44}}, {"id": 364, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 363, "children": [365, 366], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 34}}, {"id": 365, "type": "type_identifier", "text": "pdf_cmap", "parent": 364, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 28}}, {"id": 366, "type": "pointer_declarator", "text": "*cmap", "parent": 364, "children": [367, 368], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 34}}, {"id": 367, "type": "*", "text": "*", "parent": 366, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 30}}, {"id": 368, "type": "identifier", "text": "cmap", "parent": 366, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 34}}, {"id": 369, "type": "parameter_declaration", "text": "int cpt", "parent": 363, "children": [370, 371], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 43}}, {"id": 370, "type": "primitive_type", "text": "int", "parent": 369, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 39}}, {"id": 371, "type": "identifier", "text": "cpt", "parent": 369, "children": [], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 43}}, {"id": 372, "type": "declaration", "text": "int pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);", "parent": 0, "children": [373, 374], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 60}}, {"id": 373, "type": "primitive_type", "text": "int", "parent": 372, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 3}}, {"id": 374, "type": "function_declarator", "text": "pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out)", "parent": 372, "children": [375, 376], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 59}}, {"id": 375, "type": "identifier", "text": "pdf_lookup_cmap_full", "parent": 374, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 24}}, {"id": 376, "type": "parameter_list", "text": "(pdf_cmap *cmap, int cpt, int *out)", "parent": 374, "children": [377, 382, 385], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 59}}, {"id": 377, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 376, "children": [378, 379], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 39}}, {"id": 378, "type": "type_identifier", "text": "pdf_cmap", "parent": 377, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 33}}, {"id": 379, "type": "pointer_declarator", "text": "*cmap", "parent": 377, "children": [380, 381], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 39}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 35}}, {"id": 381, "type": "identifier", "text": "cmap", "parent": 379, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 39}}, {"id": 382, "type": "parameter_declaration", "text": "int cpt", "parent": 376, "children": [383, 384], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 48}}, {"id": 383, "type": "primitive_type", "text": "int", "parent": 382, "children": [], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 44}}, {"id": 384, "type": "identifier", "text": "cpt", "parent": 382, "children": [], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 48}}, {"id": 385, "type": "parameter_declaration", "text": "int *out", "parent": 376, "children": [386, 387], "start_point": {"row": 64, "column": 50}, "end_point": {"row": 64, "column": 58}}, {"id": 386, "type": "primitive_type", "text": "int", "parent": 385, "children": [], "start_point": {"row": 64, "column": 50}, "end_point": {"row": 64, "column": 53}}, {"id": 387, "type": "pointer_declarator", "text": "*out", "parent": 385, "children": [388, 389], "start_point": {"row": 64, "column": 54}, "end_point": {"row": 64, "column": 58}}, {"id": 388, "type": "*", "text": "*", "parent": 387, "children": [], "start_point": {"row": 64, "column": 54}, "end_point": {"row": 64, "column": 55}}, {"id": 389, "type": "identifier", "text": "out", "parent": 387, "children": [], "start_point": {"row": 64, "column": 55}, "end_point": {"row": 64, "column": 58}}, {"id": 390, "type": "declaration", "text": "int pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);", "parent": 0, "children": [391, 392], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 64}}, {"id": 391, "type": "primitive_type", "text": "int", "parent": 390, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 392, "type": "function_declarator", "text": "pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt)", "parent": 390, "children": [393, 394], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 63}}, {"id": 393, "type": "identifier", "text": "pdf_decode_cmap", "parent": 392, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 19}}, {"id": 394, "type": "parameter_list", "text": "(pdf_cmap *cmap, unsigned char *s, int *cpt)", "parent": 392, "children": [395, 400, 407], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 63}}, {"id": 395, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 394, "children": [396, 397], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 34}}, {"id": 396, "type": "type_identifier", "text": "pdf_cmap", "parent": 395, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 28}}, {"id": 397, "type": "pointer_declarator", "text": "*cmap", "parent": 395, "children": [398, 399], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 34}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 399, "type": "identifier", "text": "cmap", "parent": 397, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 34}}, {"id": 400, "type": "parameter_declaration", "text": "unsigned char *s", "parent": 394, "children": [401, 404], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 52}}, {"id": 401, "type": "sized_type_specifier", "text": "unsigned char", "parent": 400, "children": [402, 403], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 49}}, {"id": 402, "type": "unsigned", "text": "unsigned", "parent": 401, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 44}}, {"id": 403, "type": "primitive_type", "text": "char", "parent": 401, "children": [], "start_point": {"row": 65, "column": 45}, "end_point": {"row": 65, "column": 49}}, {"id": 404, "type": "pointer_declarator", "text": "*s", "parent": 400, "children": [405, 406], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 52}}, {"id": 405, "type": "*", "text": "*", "parent": 404, "children": [], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 51}}, {"id": 406, "type": "identifier", "text": "s", "parent": 404, "children": [], "start_point": {"row": 65, "column": 51}, "end_point": {"row": 65, "column": 52}}, {"id": 407, "type": "parameter_declaration", "text": "int *cpt", "parent": 394, "children": [408, 409], "start_point": {"row": 65, "column": 54}, "end_point": {"row": 65, "column": 62}}, {"id": 408, "type": "primitive_type", "text": "int", "parent": 407, "children": [], "start_point": {"row": 65, "column": 54}, "end_point": {"row": 65, "column": 57}}, {"id": 409, "type": "pointer_declarator", "text": "*cpt", "parent": 407, "children": [410, 411], "start_point": {"row": 65, "column": 58}, "end_point": {"row": 65, "column": 62}}, {"id": 410, "type": "*", "text": "*", "parent": 409, "children": [], "start_point": {"row": 65, "column": 58}, "end_point": {"row": 65, "column": 59}}, {"id": 411, "type": "identifier", "text": "cpt", "parent": 409, "children": [], "start_point": {"row": 65, "column": 59}, "end_point": {"row": 65, "column": 62}}, {"id": 412, "type": "declaration", "text": "pdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);", "parent": 0, "children": [413, 414], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 71}}, {"id": 413, "type": "type_identifier", "text": "pdf_cmap", "parent": 412, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 414, "type": "pointer_declarator", "text": "*pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)", "parent": 412, "children": [415, 416], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 70}}, {"id": 415, "type": "*", "text": "*", "parent": 414, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 416, "type": "function_declarator", "text": "pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)", "parent": 414, "children": [417, 418], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 70}}, {"id": 417, "type": "identifier", "text": "pdf_new_identity_cmap", "parent": 416, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 31}}, {"id": 418, "type": "parameter_list", "text": "(fz_context *ctx, int wmode, int bytes)", "parent": 416, "children": [419, 424, 427], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 70}}, {"id": 419, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 418, "children": [420, 421], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 47}}, {"id": 420, "type": "type_identifier", "text": "fz_context", "parent": 419, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 42}}, {"id": 421, "type": "pointer_declarator", "text": "*ctx", "parent": 419, "children": [422, 423], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 47}}, {"id": 422, "type": "*", "text": "*", "parent": 421, "children": [], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 44}}, {"id": 423, "type": "identifier", "text": "ctx", "parent": 421, "children": [], "start_point": {"row": 67, "column": 44}, "end_point": {"row": 67, "column": 47}}, {"id": 424, "type": "parameter_declaration", "text": "int wmode", "parent": 418, "children": [425, 426], "start_point": {"row": 67, "column": 49}, "end_point": {"row": 67, "column": 58}}, {"id": 425, "type": "primitive_type", "text": "int", "parent": 424, "children": [], "start_point": {"row": 67, "column": 49}, "end_point": {"row": 67, "column": 52}}, {"id": 426, "type": "identifier", "text": "wmode", "parent": 424, "children": [], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 58}}, {"id": 427, "type": "parameter_declaration", "text": "int bytes", "parent": 418, "children": [428, 429], "start_point": {"row": 67, "column": 60}, "end_point": {"row": 67, "column": 69}}, {"id": 428, "type": "primitive_type", "text": "int", "parent": 427, "children": [], "start_point": {"row": 67, "column": 60}, "end_point": {"row": 67, "column": 63}}, {"id": 429, "type": "identifier", "text": "bytes", "parent": 427, "children": [], "start_point": {"row": 67, "column": 64}, "end_point": {"row": 67, "column": 69}}, {"id": 430, "type": "declaration", "text": "pdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);", "parent": 0, "children": [431, 432], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 58}}, {"id": 431, "type": "type_identifier", "text": "pdf_cmap", "parent": 430, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 432, "type": "pointer_declarator", "text": "*pdf_load_cmap(fz_context *ctx, fz_stream *file)", "parent": 430, "children": [433, 434], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 57}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 10}}, {"id": 434, "type": "function_declarator", "text": "pdf_load_cmap(fz_context *ctx, fz_stream *file)", "parent": 432, "children": [435, 436], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 57}}, {"id": 435, "type": "identifier", "text": "pdf_load_cmap", "parent": 434, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 23}}, {"id": 436, "type": "parameter_list", "text": "(fz_context *ctx, fz_stream *file)", "parent": 434, "children": [437, 442], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 57}}, {"id": 437, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 436, "children": [438, 439], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 39}}, {"id": 438, "type": "type_identifier", "text": "fz_context", "parent": 437, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 34}}, {"id": 439, "type": "pointer_declarator", "text": "*ctx", "parent": 437, "children": [440, 441], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 39}}, {"id": 440, "type": "*", "text": "*", "parent": 439, "children": [], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 36}}, {"id": 441, "type": "identifier", "text": "ctx", "parent": 439, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 39}}, {"id": 442, "type": "parameter_declaration", "text": "fz_stream *file", "parent": 436, "children": [443, 444], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 56}}, {"id": 443, "type": "type_identifier", "text": "fz_stream", "parent": 442, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 50}}, {"id": 444, "type": "pointer_declarator", "text": "*file", "parent": 442, "children": [445, 446], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 56}}, {"id": 445, "type": "*", "text": "*", "parent": 444, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 52}}, {"id": 446, "type": "identifier", "text": "file", "parent": 444, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 56}}, {"id": 447, "type": "declaration", "text": "pdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);", "parent": 0, "children": [448, 449], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 60}}, {"id": 448, "type": "type_identifier", "text": "pdf_cmap", "parent": 447, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 8}}, {"id": 449, "type": "pointer_declarator", "text": "*pdf_load_system_cmap(fz_context *ctx, char *name)", "parent": 447, "children": [450, 451], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 59}}, {"id": 450, "type": "*", "text": "*", "parent": 449, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 451, "type": "function_declarator", "text": "pdf_load_system_cmap(fz_context *ctx, char *name)", "parent": 449, "children": [452, 453], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 59}}, {"id": 452, "type": "identifier", "text": "pdf_load_system_cmap", "parent": 451, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 30}}, {"id": 453, "type": "parameter_list", "text": "(fz_context *ctx, char *name)", "parent": 451, "children": [454, 459], "start_point": {"row": 69, "column": 30}, "end_point": {"row": 69, "column": 59}}, {"id": 454, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 453, "children": [455, 456], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 46}}, {"id": 455, "type": "type_identifier", "text": "fz_context", "parent": 454, "children": [], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 41}}, {"id": 456, "type": "pointer_declarator", "text": "*ctx", "parent": 454, "children": [457, 458], "start_point": {"row": 69, "column": 42}, "end_point": {"row": 69, "column": 46}}, {"id": 457, "type": "*", "text": "*", "parent": 456, "children": [], "start_point": {"row": 69, "column": 42}, "end_point": {"row": 69, "column": 43}}, {"id": 458, "type": "identifier", "text": "ctx", "parent": 456, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 46}}, {"id": 459, "type": "parameter_declaration", "text": "char *name", "parent": 453, "children": [460, 461], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 58}}, {"id": 460, "type": "primitive_type", "text": "char", "parent": 459, "children": [], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 52}}, {"id": 461, "type": "pointer_declarator", "text": "*name", "parent": 459, "children": [462, 463], "start_point": {"row": 69, "column": 53}, "end_point": {"row": 69, "column": 58}}, {"id": 462, "type": "*", "text": "*", "parent": 461, "children": [], "start_point": {"row": 69, "column": 53}, "end_point": {"row": 69, "column": 54}}, {"id": 463, "type": "identifier", "text": "name", "parent": 461, "children": [], "start_point": {"row": 69, "column": 54}, "end_point": {"row": 69, "column": 58}}, {"id": 464, "type": "declaration", "text": "pdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);", "parent": 0, "children": [465, 466], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 61}}, {"id": 465, "type": "type_identifier", "text": "pdf_cmap", "parent": 464, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 8}}, {"id": 466, "type": "pointer_declarator", "text": "*pdf_load_builtin_cmap(fz_context *ctx, char *name)", "parent": 464, "children": [467, 468], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 60}}, {"id": 467, "type": "*", "text": "*", "parent": 466, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 468, "type": "function_declarator", "text": "pdf_load_builtin_cmap(fz_context *ctx, char *name)", "parent": 466, "children": [469, 470], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 60}}, {"id": 469, "type": "identifier", "text": "pdf_load_builtin_cmap", "parent": 468, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 31}}, {"id": 470, "type": "parameter_list", "text": "(fz_context *ctx, char *name)", "parent": 468, "children": [471, 476], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 60}}, {"id": 471, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 470, "children": [472, 473], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 47}}, {"id": 472, "type": "type_identifier", "text": "fz_context", "parent": 471, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 42}}, {"id": 473, "type": "pointer_declarator", "text": "*ctx", "parent": 471, "children": [474, 475], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 47}}, {"id": 474, "type": "*", "text": "*", "parent": 473, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 44}}, {"id": 475, "type": "identifier", "text": "ctx", "parent": 473, "children": [], "start_point": {"row": 70, "column": 44}, "end_point": {"row": 70, "column": 47}}, {"id": 476, "type": "parameter_declaration", "text": "char *name", "parent": 470, "children": [477, 478], "start_point": {"row": 70, "column": 49}, "end_point": {"row": 70, "column": 59}}, {"id": 477, "type": "primitive_type", "text": "char", "parent": 476, "children": [], "start_point": {"row": 70, "column": 49}, "end_point": {"row": 70, "column": 53}}, {"id": 478, "type": "pointer_declarator", "text": "*name", "parent": 476, "children": [479, 480], "start_point": {"row": 70, "column": 54}, "end_point": {"row": 70, "column": 59}}, {"id": 479, "type": "*", "text": "*", "parent": 478, "children": [], "start_point": {"row": 70, "column": 54}, "end_point": {"row": 70, "column": 55}}, {"id": 480, "type": "identifier", "text": "name", "parent": 478, "children": [], "start_point": {"row": 70, "column": 55}, "end_point": {"row": 70, "column": 59}}, {"id": 481, "type": "declaration", "text": "pdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);", "parent": 0, "children": [482, 483], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 66}}, {"id": 482, "type": "type_identifier", "text": "pdf_cmap", "parent": 481, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 483, "type": "pointer_declarator", "text": "*pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref)", "parent": 481, "children": [484, 485], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 65}}, {"id": 484, "type": "*", "text": "*", "parent": 483, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 485, "type": "function_declarator", "text": "pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref)", "parent": 483, "children": [486, 487], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 65}}, {"id": 486, "type": "identifier", "text": "pdf_load_embedded_cmap", "parent": 485, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 32}}, {"id": 487, "type": "parameter_list", "text": "(pdf_document *doc, pdf_obj *ref)", "parent": 485, "children": [488, 493], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 65}}, {"id": 488, "type": "parameter_declaration", "text": "pdf_document *doc", "parent": 487, "children": [489, 490], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 50}}, {"id": 489, "type": "type_identifier", "text": "pdf_document", "parent": 488, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 45}}, {"id": 490, "type": "pointer_declarator", "text": "*doc", "parent": 488, "children": [491, 492], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 50}}, {"id": 491, "type": "*", "text": "*", "parent": 490, "children": [], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 47}}, {"id": 492, "type": "identifier", "text": "doc", "parent": 490, "children": [], "start_point": {"row": 71, "column": 47}, "end_point": {"row": 71, "column": 50}}, {"id": 493, "type": "parameter_declaration", "text": "pdf_obj *ref", "parent": 487, "children": [494, 495], "start_point": {"row": 71, "column": 52}, "end_point": {"row": 71, "column": 64}}, {"id": 494, "type": "type_identifier", "text": "pdf_obj", "parent": 493, "children": [], "start_point": {"row": 71, "column": 52}, "end_point": {"row": 71, "column": 59}}, {"id": 495, "type": "pointer_declarator", "text": "*ref", "parent": 493, "children": [496, 497], "start_point": {"row": 71, "column": 60}, "end_point": {"row": 71, "column": 64}}, {"id": 496, "type": "*", "text": "*", "parent": 495, "children": [], "start_point": {"row": 71, "column": 60}, "end_point": {"row": 71, "column": 61}}, {"id": 497, "type": "identifier", "text": "ref", "parent": 495, "children": [], "start_point": {"row": 71, "column": 61}, "end_point": {"row": 71, "column": 64}}, {"id": 498, "type": "preproc_ifdef", "text": "#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif", "parent": 0, "children": [499, 500, 501, 516], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 499, "type": "#ifndef", "text": "#ifndef", "parent": 498, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 500, "type": "identifier", "text": "NDEBUG", "parent": 498, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 14}}, {"id": 501, "type": "declaration", "text": "void pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);", "parent": 498, "children": [502, 503], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 53}}, {"id": 502, "type": "primitive_type", "text": "void", "parent": 501, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 4}}, {"id": 503, "type": "function_declarator", "text": "pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap)", "parent": 501, "children": [504, 505], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 52}}, {"id": 504, "type": "identifier", "text": "pdf_print_cmap", "parent": 503, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 19}}, {"id": 505, "type": "parameter_list", "text": "(fz_context *ctx, pdf_cmap *cmap)", "parent": 503, "children": [506, 511], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 52}}, {"id": 506, "type": "parameter_declaration", "text": "fz_context *ctx", "parent": 505, "children": [507, 508], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 35}}, {"id": 507, "type": "type_identifier", "text": "fz_context", "parent": 506, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 30}}, {"id": 508, "type": "pointer_declarator", "text": "*ctx", "parent": 506, "children": [509, 510], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 35}}, {"id": 509, "type": "*", "text": "*", "parent": 508, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 32}}, {"id": 510, "type": "identifier", "text": "ctx", "parent": 508, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 35}}, {"id": 511, "type": "parameter_declaration", "text": "pdf_cmap *cmap", "parent": 505, "children": [512, 513], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 51}}, {"id": 512, "type": "type_identifier", "text": "pdf_cmap", "parent": 511, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 45}}, {"id": 513, "type": "pointer_declarator", "text": "*cmap", "parent": 511, "children": [514, 515], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 51}}, {"id": 514, "type": "*", "text": "*", "parent": 513, "children": [], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 47}}, {"id": 515, "type": "identifier", "text": "cmap", "parent": 513, "children": [], "start_point": {"row": 74, "column": 47}, "end_point": {"row": 74, "column": 51}}, {"id": 516, "type": "#endif", "text": "#endif", "parent": 498, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 517, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}]}, "node_categories": {"declarations": {"functions": [119, 131, 146, 161, 178, 193, 208, 226, 246, 270, 296, 320, 346, 361, 374, 392, 416, 434, 451, 468, 485, 503], "variables": [6, 12, 32, 37, 42, 50, 53, 58, 63, 68, 71, 74, 77, 82, 87, 95, 99, 104, 108, 115, 122, 127, 134, 139, 144, 149, 154, 159, 164, 169, 174, 181, 186, 191, 196, 201, 206, 211, 216, 221, 224, 229, 234, 239, 244, 249, 254, 259, 262, 265, 268, 273, 278, 283, 286, 291, 294, 299, 304, 309, 312, 315, 318, 323, 328, 333, 336, 341, 344, 349, 354, 359, 364, 369, 372, 377, 382, 385, 390, 395, 400, 407, 412, 419, 424, 427, 430, 437, 442, 447, 454, 459, 464, 471, 476, 481, 488, 493, 501, 506, 511], "classes": [8, 9, 14, 15, 29, 30, 47, 48, 75, 76], "imports": [], "modules": [], "enums": [18, 19, 20, 21, 23, 25, 27]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 16, 17, 22, 24, 26, 28, 31, 33, 36, 38, 41, 43, 46, 49, 51, 52, 56, 61, 64, 67, 70, 73, 78, 81, 83, 86, 88, 91, 93, 97, 98, 100, 103, 106, 107, 109, 114, 116, 120, 123, 126, 128, 132, 135, 138, 140, 143, 147, 150, 153, 155, 158, 162, 165, 168, 170, 173, 175, 179, 182, 185, 187, 190, 194, 197, 200, 202, 205, 209, 212, 215, 217, 220, 223, 227, 230, 233, 235, 238, 240, 243, 247, 250, 253, 255, 258, 261, 264, 267, 271, 274, 277, 279, 282, 285, 290, 293, 297, 300, 303, 305, 308, 311, 314, 317, 321, 324, 327, 329, 332, 335, 340, 343, 347, 350, 353, 355, 358, 362, 365, 368, 371, 375, 378, 381, 384, 389, 393, 396, 399, 401, 406, 411, 413, 417, 420, 423, 426, 429, 431, 435, 438, 441, 443, 446, 448, 452, 455, 458, 463, 465, 469, 472, 475, 480, 482, 486, 489, 492, 494, 497, 498, 499, 500, 504, 507, 510, 512, 515, 516, 517], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [57, 62, 94], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_new_cmap(fz_context *ctx)"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap)"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap)"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap)"}, {"node_id": 193, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap)"}, {"node_id": 208, "universal_type": "function", "name": "wmode)", "text_snippet": "pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode)"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap)"}, {"node_id": 246, "universal_type": "function", "name": "low,", "text_snippet": "pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n)"}, {"node_id": 270, "universal_type": "function", "name": "low,", "text_snippet": "pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len)"}, {"node_id": 296, "universal_type": "function", "name": "srclo,", "text_snippet": "pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo)"}, {"node_id": 320, "universal_type": "function", "name": "one,", "text_snippet": "pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len)"}, {"node_id": 346, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap)"}, {"node_id": 361, "universal_type": "function", "name": "cpt)", "text_snippet": "pdf_lookup_cmap(pdf_cmap *cmap, int cpt)"}, {"node_id": 374, "universal_type": "function", "name": "cpt,", "text_snippet": "pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out)"}, {"node_id": 392, "universal_type": "function", "name": "*cpt)", "text_snippet": "pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt)"}, {"node_id": 416, "universal_type": "function", "name": "wmode,", "text_snippet": "pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)"}, {"node_id": 434, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_load_cmap(fz_context *ctx, fz_stream *file)"}, {"node_id": 451, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_load_system_cmap(fz_context *ctx, char *name)"}, {"node_id": 468, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_load_builtin_cmap(fz_context *ctx, char *name)"}, {"node_id": 485, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref)"}, {"node_id": 503, "universal_type": "function", "name": "unknown", "text_snippet": "pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap)"}], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "pdf_cmap_s", "text_snippet": "struct pdf_cmap_s"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 14, "universal_type": "class", "name": "pdf_range_s", "text_snippet": "struct pdf_range_s"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 29, "universal_type": "class", "name": "pdf_range_s", "text_snippet": "struct pdf_range_s\n{\n\tunsigned short low;\n\t/* Next, we pack 2 fields into the same unsigned short. T"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "pdf_cmap_s", "text_snippet": "struct pdf_cmap_s\n{\n\tfz_storable storable;\n\tchar cmap_name[32];\n\n\tchar usecmap_name[32];\n\tpdf_cmap *"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 75, "universal_type": "class", "name": "{", "text_snippet": "struct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t}"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef MUPDF_PDF_CMAP_H\n#define MUPDF_PDF_CMAP_H\n\n/*\n * CMap\n */\n\ntypedef struct pdf_cmap_s pdf_cmap;\ntypedef struct pdf_range_s pdf_range;\n\nenum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI };\n\nstruct pdf_range_s\n{\n\tunsigned short low;\n\t/* Next, we pack 2 fields into the same unsigned short. Top 14 bits\n\t * are the extent, bottom 2 bits are flags: single, range, table,\n\t * multi */\n\tunsigned short extent_flags;\n\tunsigned short offset;\t/* range-delta or table-index */\n};\n\nstruct pdf_cmap_s\n{\n\tfz_storable storable;\n\tchar cmap_name[32];\n\n\tchar usecmap_name[32];\n\tpdf_cmap *usecmap;\n\n\tint wmode;\n\n\tint codespace_len;\n\tstruct\n\t{\n\t\tunsigned short n;\n\t\tunsigned short low;\n\t\tunsigned short high;\n\t} codespace[40];\n\n\tint rlen, rcap;\n\tpdf_range *ranges;\n\n\tint tlen, tcap;\n\tunsigned short *table;\n};\n\npdf_cmap *pdf_new_cmap(fz_context *ctx);\npdf_cmap *pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_drop_cmap(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_free_cmap_imp(fz_context *ctx, fz_storable *cmap);\nunsigned int pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_cmap_wmode(fz_context *ctx, pdf_cmap *cmap);\nvoid pdf_set_cmap_wmode(fz_context *ctx, pdf_cmap *cmap, int wmode);\nvoid pdf_set_usecmap(fz_context *ctx, pdf_cmap *cmap, pdf_cmap *usecmap);\n\nvoid pdf_add_codespace(fz_context *ctx, pdf_cmap *cmap, int low, int high, int n);\nvoid pdf_map_range_to_table(fz_context *ctx, pdf_cmap *cmap, int low, int *map, int len);\nvoid pdf_map_range_to_range(fz_context *ctx, pdf_cmap *cmap, int srclo, int srchi, int dstlo);\nvoid pdf_map_one_to_many(fz_context *ctx, pdf_cmap *cmap, int one, int *many, int len);\nvoid pdf_sort_cmap(fz_context *ctx, pdf_cmap *cmap);\n\nint pdf_lookup_cmap(pdf_cmap *cmap, int cpt);\nint pdf_lookup_cmap_full(pdf_cmap *cmap, int cpt, int *out);\nint pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, int *cpt);\n\npdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes);\npdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file);\npdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name);\npdf_cmap *pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *ref);\n\n#ifndef NDEBUG\nvoid pdf_print_cmap(fz_context *ctx, pdf_cmap *cmap);\n#endif\n\n#endif\n"}
81,060
c
// // ServerConfiguration.h // AsyncTCP // // Created by <NAME> on 05/12/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ServerConfiguration: NSObject @property (nonatomic) int port; @property (nonatomic) int maximalConnectionsCount; @property (nonatomic) ssize_t chunkSize; @property (nonatomic) useconds_t connectionTimeout; @property (nonatomic) useconds_t eventLoopMicrosecondsDelay; @property (nonatomic) ssize_t errorsBeforeConnectionClosing; -(instancetype)initWithPort: (int) port maximalConnectionsCount: (int) maximalConnectionsCount chunkSize: (ssize_t) chunkSize connectionTimeout: (useconds_t) connectionTimeout eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay errorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing; @end NS_ASSUME_NONNULL_END
36.83
24
(translation_unit) "//\n// ServerConfiguration.h\n// AsyncTCP\n//\n// Created by <NAME> on 05/12/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ServerConfiguration: NSObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// ServerConfiguration.h" (comment) "// AsyncTCP" (comment) "//" (comment) "// Created by <NAME> on 05/12/2019." (comment) "// Copyright © 2019 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Foundation/Foundation.h>\n\n" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "erverConfiguration: NSObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n" (statement_identifier) "erverConfiguration:" (:) " " (declaration) "SObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "SObject\n" (ERROR) "property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) int port;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "nt " (identifier) "ort;" (;) "\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) int maximalConnectionsCount;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "nt " (identifier) "aximalConnectionsCount;" (;) "\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) ssize_t chunkSize;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "size_t " (identifier) "hunkSize;" (;) "\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) useconds_t connectionTimeout;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "seconds_t " (identifier) "onnectionTimeout;" (;) "\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) useconds_t eventLoopMicrosecondsDelay;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "seconds_t " (identifier) "ventLoopMicrosecondsDelay;" (;) "\n" (ERROR) "p" (function_declarator) "roperty (nonatomic) ssize_t errorsBeforeConnectionClosing;" (identifier) "roperty " (parameter_list) "nonatomic) " (() "n" (parameter_declaration) "onatomic)" (type_identifier) "onatomic)" ()) " " (identifier) "size_t " (identifier) "rrorsBeforeConnectionClosing;" (;) "\n" (-) "(" (() "i" (identifier) "nstancetype)" ()) "i" (function_declarator) "nitWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;" (identifier) "nitWithPort:" (ERROR) " " (:) " " (parameter_list) "int) " (() "i" (parameter_declaration) "nt)" (primitive_type) "nt)" ()) " " (identifier) "ort\n" (call_expression) "aximalConnectionsCount: (int) " (identifier) "aximalConnectionsCount:" (ERROR) " " (:) " " (argument_list) "int) " (() "i" (identifier) "nt)" ()) " " (identifier) "aximalConnectionsCount\n" (call_expression) "hunkSize: (ssize_t) " (identifier) "hunkSize:" (ERROR) " " (:) " " (argument_list) "ssize_t) " (() "s" (identifier) "size_t)" ()) " " (identifier) "hunkSize\n" (call_expression) "onnectionTimeout: (useconds_t) " (identifier) "onnectionTimeout:" (ERROR) " " (:) " " (argument_list) "useconds_t) " (() "u" (identifier) "seconds_t)" ()) " " (identifier) "onnectionTimeout\n" (call_expression) "ventLoopMicrosecondsDelay: (useconds_t) " (identifier) "ventLoopMicrosecondsDelay:" (ERROR) " " (:) " " (argument_list) "useconds_t) " (() "u" (identifier) "seconds_t)" ()) " " (identifier) "ventLoopMicrosecondsDelay\n" (call_expression) "rrorsBeforeConnectionClosing: (ssize_t) " (identifier) "rrorsBeforeConnectionClosing:" (ERROR) " " (:) " " (argument_list) "ssize_t) " (() "s" (identifier) "size_t)" ()) " " (identifier) "rrorsBeforeConnectionClosing;" (;) "\n" (ERROR) "e" (identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
153
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.83, "nodes": 101, "errors": 0, "source_hash": "8a7524164baf705dae635c6fdc8ced6636556371828563e56ea6b89080913d7e", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Foundation/Foundation.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "Foundation/Foundation.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 2, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [3, 4, 6], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"id": 3, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 4, "type": "ERROR", "text": "i", "parent": 2, "children": [5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 7, "type": "labeled_statement", "text": "erverConfiguration: NSObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [8, 9], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 27, "column": 21}}, {"id": 8, "type": "statement_identifier", "text": "erverConfiguration:", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 30}}, {"id": 9, "type": "declaration", "text": "SObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": 7, "children": [10, 11, 100], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 27, "column": 21}}, {"id": 10, "type": "type_identifier", "text": "SObject\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 40}}, {"id": 11, "type": "ERROR", "text": "property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n", "parent": 9, "children": [12, 13, 20, 21, 28, 29, 36, 37, 44, 45, 52, 53, 60, 61, 98, 99], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 12, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 13, "type": "function_declarator", "text": "roperty (nonatomic) int port;", "parent": 11, "children": [14, 15, 18, 19], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 30}}, {"id": 14, "type": "identifier", "text": "roperty ", "parent": 13, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 15, "type": "parameter_list", "text": "nonatomic) ", "parent": 13, "children": [16], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 21}}, {"id": 16, "type": "parameter_declaration", "text": "onatomic)", "parent": 15, "children": [17], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 17, "type": "type_identifier", "text": "onatomic)", "parent": 16, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 18, "type": "identifier", "text": "nt ", "parent": 13, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 25}}, {"id": 19, "type": "identifier", "text": "ort;", "parent": 13, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 30}}, {"id": 20, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 21, "type": "function_declarator", "text": "roperty (nonatomic) int maximalConnectionsCount;", "parent": 11, "children": [22, 23, 26, 27], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 49}}, {"id": 22, "type": "identifier", "text": "roperty ", "parent": 21, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 23, "type": "parameter_list", "text": "nonatomic) ", "parent": 21, "children": [24], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 21}}, {"id": 24, "type": "parameter_declaration", "text": "onatomic)", "parent": 23, "children": [25], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 25, "type": "type_identifier", "text": "onatomic)", "parent": 24, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 26, "type": "identifier", "text": "nt ", "parent": 21, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 25}}, {"id": 27, "type": "identifier", "text": "aximalConnectionsCount;", "parent": 21, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 49}}, {"id": 28, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 29, "type": "function_declarator", "text": "roperty (nonatomic) ssize_t chunkSize;", "parent": 11, "children": [30, 31, 34, 35], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 39}}, {"id": 30, "type": "identifier", "text": "roperty ", "parent": 29, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 31, "type": "parameter_list", "text": "nonatomic) ", "parent": 29, "children": [32], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 21}}, {"id": 32, "type": "parameter_declaration", "text": "onatomic)", "parent": 31, "children": [33], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 33, "type": "type_identifier", "text": "onatomic)", "parent": 32, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 34, "type": "identifier", "text": "size_t ", "parent": 29, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 29}}, {"id": 35, "type": "identifier", "text": "hunkSize;", "parent": 29, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 39}}, {"id": 36, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 37, "type": "function_declarator", "text": "roperty (nonatomic) useconds_t connectionTimeout;", "parent": 11, "children": [38, 39, 42, 43], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 50}}, {"id": 38, "type": "identifier", "text": "roperty ", "parent": 37, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 39, "type": "parameter_list", "text": "nonatomic) ", "parent": 37, "children": [40], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 21}}, {"id": 40, "type": "parameter_declaration", "text": "onatomic)", "parent": 39, "children": [41], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 41, "type": "type_identifier", "text": "onatomic)", "parent": 40, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 42, "type": "identifier", "text": "seconds_t ", "parent": 37, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 32}}, {"id": 43, "type": "identifier", "text": "onnectionTimeout;", "parent": 37, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 50}}, {"id": 44, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 45, "type": "function_declarator", "text": "roperty (nonatomic) useconds_t eventLoopMicrosecondsDelay;", "parent": 11, "children": [46, 47, 50, 51], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 59}}, {"id": 46, "type": "identifier", "text": "roperty ", "parent": 45, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 47, "type": "parameter_list", "text": "nonatomic) ", "parent": 45, "children": [48], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 21}}, {"id": 48, "type": "parameter_declaration", "text": "onatomic)", "parent": 47, "children": [49], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 49, "type": "type_identifier", "text": "onatomic)", "parent": 48, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 50, "type": "identifier", "text": "seconds_t ", "parent": 45, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 32}}, {"id": 51, "type": "identifier", "text": "ventLoopMicrosecondsDelay;", "parent": 45, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 59}}, {"id": 52, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 53, "type": "function_declarator", "text": "roperty (nonatomic) ssize_t errorsBeforeConnectionClosing;", "parent": 11, "children": [54, 55, 58, 59], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 59}}, {"id": 54, "type": "identifier", "text": "roperty ", "parent": 53, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 55, "type": "parameter_list", "text": "nonatomic) ", "parent": 53, "children": [56], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 21}}, {"id": 56, "type": "parameter_declaration", "text": "onatomic)", "parent": 55, "children": [57], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 57, "type": "type_identifier", "text": "onatomic)", "parent": 56, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 58, "type": "identifier", "text": "size_t ", "parent": 53, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 29}}, {"id": 59, "type": "identifier", "text": "rrorsBeforeConnectionClosing;", "parent": 53, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 59}}, {"id": 60, "type": "identifier", "text": "nstancetype)", "parent": 11, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 14}}, {"id": 61, "type": "function_declarator", "text": "nitWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;", "parent": 11, "children": [62, 63, 64, 67, 68, 73, 74, 79, 80, 85, 86, 91, 92, 97], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 24, "column": 70}}, {"id": 62, "type": "identifier", "text": "nitWithPort:", "parent": 61, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 27}}, {"id": 63, "type": "ERROR", "text": " ", "parent": 61, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 28}}, {"id": 64, "type": "parameter_list", "text": "int) ", "parent": 61, "children": [65], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 34}}, {"id": 65, "type": "parameter_declaration", "text": "nt)", "parent": 64, "children": [66], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 33}}, {"id": 66, "type": "primitive_type", "text": "nt)", "parent": 65, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 33}}, {"id": 67, "type": "identifier", "text": "ort\n", "parent": 61, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 39}}, {"id": 68, "type": "call_expression", "text": "aximalConnectionsCount: (int) ", "parent": 61, "children": [69, 70, 71], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 34}}, {"id": 69, "type": "identifier", "text": "aximalConnectionsCount:", "parent": 68, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 27}}, {"id": 70, "type": "ERROR", "text": " ", "parent": 68, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 28}}, {"id": 71, "type": "argument_list", "text": "int) ", "parent": 68, "children": [72], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 34}}, {"id": 72, "type": "identifier", "text": "nt)", "parent": 71, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 33}}, {"id": 73, "type": "identifier", "text": "aximalConnectionsCount\n", "parent": 61, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 58}}, {"id": 74, "type": "call_expression", "text": "hunkSize: (ssize_t) ", "parent": 61, "children": [75, 76, 77], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 38}}, {"id": 75, "type": "identifier", "text": "hunkSize:", "parent": 74, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 27}}, {"id": 76, "type": "ERROR", "text": " ", "parent": 74, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 28}}, {"id": 77, "type": "argument_list", "text": "ssize_t) ", "parent": 74, "children": [78], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 38}}, {"id": 78, "type": "identifier", "text": "size_t)", "parent": 77, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 37}}, {"id": 79, "type": "identifier", "text": "hunkSize\n", "parent": 61, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 48}}, {"id": 80, "type": "call_expression", "text": "onnectionTimeout: (useconds_t) ", "parent": 61, "children": [81, 82, 83], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 41}}, {"id": 81, "type": "identifier", "text": "onnectionTimeout:", "parent": 80, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 27}}, {"id": 82, "type": "ERROR", "text": " ", "parent": 80, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 28}}, {"id": 83, "type": "argument_list", "text": "useconds_t) ", "parent": 80, "children": [84], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 41}}, {"id": 84, "type": "identifier", "text": "seconds_t)", "parent": 83, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 40}}, {"id": 85, "type": "identifier", "text": "onnectionTimeout\n", "parent": 61, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 59}}, {"id": 86, "type": "call_expression", "text": "ventLoopMicrosecondsDelay: (useconds_t) ", "parent": 61, "children": [87, 88, 89], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 41}}, {"id": 87, "type": "identifier", "text": "ventLoopMicrosecondsDelay:", "parent": 86, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 27}}, {"id": 88, "type": "ERROR", "text": " ", "parent": 86, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 28}}, {"id": 89, "type": "argument_list", "text": "useconds_t) ", "parent": 86, "children": [90], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 41}}, {"id": 90, "type": "identifier", "text": "seconds_t)", "parent": 89, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 40}}, {"id": 91, "type": "identifier", "text": "ventLoopMicrosecondsDelay\n", "parent": 61, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 68}}, {"id": 92, "type": "call_expression", "text": "rrorsBeforeConnectionClosing: (ssize_t) ", "parent": 61, "children": [93, 94, 95], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 40}}, {"id": 93, "type": "identifier", "text": "rrorsBeforeConnectionClosing:", "parent": 92, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 29}}, {"id": 94, "type": "ERROR", "text": " ", "parent": 92, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 30}}, {"id": 95, "type": "argument_list", "text": "ssize_t) ", "parent": 92, "children": [96], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 40}}, {"id": 96, "type": "identifier", "text": "size_t)", "parent": 95, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 39}}, {"id": 97, "type": "identifier", "text": "rrorsBeforeConnectionClosing;", "parent": 61, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 70}}, {"id": 98, "type": "ERROR", "text": "e", "parent": 11, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 99, "type": "identifier", "text": "nd\n", "parent": 11, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 4}}, {"id": 100, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 21}}]}, "node_categories": {"declarations": {"functions": [13, 21, 29, 37, 45, 53, 61], "variables": [2, 9, 16, 24, 32, 40, 48, 56, 65], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [68, 74, 80, 86, 92], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 14, 17, 18, 19, 22, 25, 26, 27, 30, 33, 34, 35, 38, 41, 42, 43, 46, 49, 50, 51, 54, 57, 58, 59, 60, 62, 67, 69, 72, 73, 75, 78, 79, 81, 84, 85, 87, 90, 91, 93, 96, 97, 99, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "port;", "text_snippet": "roperty (nonatomic) int port;"}, {"node_id": 21, "universal_type": "function", "name": "maximalConnectionsCount;", "text_snippet": "roperty (nonatomic) int maximalConnectionsCount;"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic) ssize_t chunkSize;"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic) useconds_t connectionTimeout;"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic) useconds_t eventLoopMicrosecondsDelay;"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic) ssize_t errorsBeforeConnectionClosing;"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "nitWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ServerConfiguration.h\n// AsyncTCP\n//\n// Created by <NAME> on 05/12/2019.\n// Copyright \u00a9 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ServerConfiguration: NSObject\n@property (nonatomic) int port;\n@property (nonatomic) int maximalConnectionsCount;\n@property (nonatomic) ssize_t chunkSize;\n@property (nonatomic) useconds_t connectionTimeout;\n@property (nonatomic) useconds_t eventLoopMicrosecondsDelay;\n@property (nonatomic) ssize_t errorsBeforeConnectionClosing;\n-(instancetype)initWithPort: (int) port\n maximalConnectionsCount: (int) maximalConnectionsCount\n chunkSize: (ssize_t) chunkSize\n connectionTimeout: (useconds_t) connectionTimeout\n eventLoopMicrosecondsDelay: (useconds_t) eventLoopMicrosecondsDelay\nerrorsBeforeConnectionClosing: (ssize_t) errorsBeforeConnectionClosing;\n@end\n\nNS_ASSUME_NONNULL_END\n"}
81,061
c
/** * * \copyright * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license */ #include <string> namespace MeshLib { class Mesh; } namespace FileIO { namespace GMSH { /** * checks if there is a GMSH mesh file header * @param fname the file name of the mesh (including the path) * @return true, if the file seems to be a valid GMSH file, else false */ bool isGMSHMeshFile(const std::string& fname); /** * reads a mesh created by GMSH - this implementation is based on the former * function GMSH2MSH * @param fname the file name of the mesh (including the path) * @return */ MeshLib::Mesh* readGMSHMesh(std::string const& fname); } // end namespace GMSH } // end namespace FileIO
26.41
32
(translation_unit) "/**\n *\n * \copyright\n * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/project/license\n */\n\n#include <string>\n\nnamespace MeshLib\n{\nclass Mesh;\n}\n\nnamespace FileIO\n{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n} // end namespace GMSH\n} // end namespace FileIO\n" (comment) "/**\n *\n * \copyright\n * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/project/license\n */" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (function_definition) "namespace MeshLib\n{\nclass Mesh;\n}" (type_identifier) "namespace" (identifier) "MeshLib" (compound_statement) "{\nclass Mesh;\n}" ({) "{" (declaration) "class Mesh;" (type_identifier) "class" (identifier) "Mesh" (;) ";" (}) "}" (function_definition) "namespace FileIO\n{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n} // end namespace GMSH\n}" (type_identifier) "namespace" (identifier) "FileIO" (compound_statement) "{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n} // end namespace GMSH\n}" ({) "{" (function_definition) "namespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n}" (type_identifier) "namespace" (identifier) "GMSH" (compound_statement) "{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n}" ({) "{" (comment) "/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */" (declaration) "bool isGMSHMeshFile(const std::string& fname);" (primitive_type) "bool" (function_declarator) "isGMSHMeshFile(const std::string& fname)" (identifier) "isGMSHMeshFile" (parameter_list) "(const std::string& fname)" (() "(" (parameter_declaration) "const std::string& fname" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "fname" ()) ")" (;) ";" (comment) "/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */" (labeled_statement) "MeshLib::Mesh* readGMSHMesh(std::string const& fname);" (statement_identifier) "MeshLib" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "Mesh* readGMSHMesh(std::string const& fname);" (binary_expression) "Mesh* readGMSHMesh(std::string const& fname)" (identifier) "Mesh" (*) "*" (call_expression) "readGMSHMesh(std::string const& fname)" (identifier) "readGMSHMesh" (argument_list) "(std::string const& fname)" (() "(" (ERROR) "std::string" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (binary_expression) "const& fname" (identifier) "const" (&) "&" (identifier) "fname" ()) ")" (;) ";" (}) "}" (comment) "// end namespace GMSH" (}) "}" (comment) "// end namespace FileIO"
73
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 26.41, "nodes": 37, "errors": 0, "source_hash": "e6971cd872ed18173690384551abc33cc3ce7e587d609a48f05e675287bd51ab", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<string>", "parent": 0, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 3, "type": "function_definition", "text": "namespace MeshLib\n{\nclass Mesh;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "namespace", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 5, "type": "identifier", "text": "MeshLib", "parent": 3, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 17}}, {"id": 6, "type": "declaration", "text": "class Mesh;", "parent": 3, "children": [7], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 11}}, {"id": 7, "type": "identifier", "text": "Mesh", "parent": 6, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 10}}, {"id": 8, "type": "function_definition", "text": "namespace FileIO\n{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n} // end namespace GMSH\n}", "parent": null, "children": [9, 10], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 9, "type": "type_identifier", "text": "namespace", "parent": 8, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 10, "type": "identifier", "text": "FileIO", "parent": 8, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 16}}, {"id": 11, "type": "function_definition", "text": "namespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n}", "parent": 8, "children": [12, 13], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "namespace", "parent": 11, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 13, "type": "identifier", "text": "GMSH", "parent": 11, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 14, "type": "declaration", "text": "bool isGMSHMeshFile(const std::string& fname);", "parent": 11, "children": [15, 16], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 46}}, {"id": 15, "type": "primitive_type", "text": "bool", "parent": 14, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 16, "type": "function_declarator", "text": "isGMSHMeshFile(const std::string& fname)", "parent": 14, "children": [17, 18], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 45}}, {"id": 17, "type": "identifier", "text": "isGMSHMeshFile", "parent": 16, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 19}}, {"id": 18, "type": "parameter_list", "text": "(const std::string& fname)", "parent": 16, "children": [19], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 45}}, {"id": 19, "type": "parameter_declaration", "text": "const std::string& fname", "parent": 18, "children": [20, 21, 23], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 44}}, {"id": 20, "type": "type_identifier", "text": "std", "parent": 19, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 29}}, {"id": 21, "type": "ERROR", "text": "::string&", "parent": 19, "children": [22], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 38}}, {"id": 22, "type": "identifier", "text": "string", "parent": 21, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 37}}, {"id": 23, "type": "identifier", "text": "fname", "parent": 19, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 44}}, {"id": 24, "type": "labeled_statement", "text": "MeshLib::Mesh* readGMSHMesh(std::string const& fname);", "parent": 11, "children": [25], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 54}}, {"id": 25, "type": "statement_identifier", "text": "MeshLib", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 26, "type": "binary_expression", "text": "Mesh* readGMSHMesh(std::string const& fname)", "parent": 24, "children": [27, 28, 29], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 53}}, {"id": 27, "type": "identifier", "text": "Mesh", "parent": 26, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 28, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 29, "type": "call_expression", "text": "readGMSHMesh(std::string const& fname)", "parent": 26, "children": [30, 31], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 53}}, {"id": 30, "type": "identifier", "text": "readGMSHMesh", "parent": 29, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 27}}, {"id": 31, "type": "argument_list", "text": "(std::string const& fname)", "parent": 29, "children": [32, 35], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 53}}, {"id": 32, "type": "ERROR", "text": "std::string", "parent": 31, "children": [33, 34], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 39}}, {"id": 33, "type": "identifier", "text": "std", "parent": 32, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 31}}, {"id": 34, "type": "identifier", "text": "string", "parent": 32, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 39}}, {"id": 35, "type": "binary_expression", "text": "const& fname", "parent": 31, "children": [36], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 52}}, {"id": 36, "type": "identifier", "text": "fname", "parent": 35, "children": [], "start_point": {"row": 34, "column": 47}, "end_point": {"row": 34, "column": 52}}]}, "node_categories": {"declarations": {"functions": [3, 8, 11, 16], "variables": [6, 14, 19], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [26, 29, 35], "assignments": [], "loops": [], "conditionals": [4, 5, 7, 9, 10, 12, 13, 17, 20, 22, 23, 25, 27, 30, 33, 34, 36], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "Mesh;", "text_snippet": "namespace MeshLib\n{\nclass Mesh;\n}"}, {"node_id": 8, "universal_type": "function", "name": "isGMSHMeshFile", "text_snippet": "namespace FileIO\n{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fna"}, {"node_id": 11, "universal_type": "function", "name": "isGMSHMeshFile", "text_snippet": "namespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "isGMSHMeshFile(const std::string& fname)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <string>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/**\n *\n * \\copyright\n * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/project/license\n */\n\n#include <string>\n\nnamespace MeshLib\n{\nclass Mesh;\n}\n\nnamespace FileIO\n{\nnamespace GMSH\n{\n\n/**\n * checks if there is a GMSH mesh file header\n * @param fname the file name of the mesh (including the path)\n * @return true, if the file seems to be a valid GMSH file, else false\n */\nbool isGMSHMeshFile(const std::string& fname);\n\n/**\n * reads a mesh created by GMSH - this implementation is based on the former\n * function GMSH2MSH\n * @param fname the file name of the mesh (including the path)\n * @return\n */\nMeshLib::Mesh* readGMSHMesh(std::string const& fname);\n\n} // end namespace GMSH\n} // end namespace FileIO\n"}
81,062
c
// // UIBarButtonItem+AKAIBBindingProperties_titleBinding.h // AKABeacon // // Created by <NAME> on 15.09.16. // Copyright © 2016 <NAME> & AKA Sarl. All rights reserved. // @import UIKit.UIBarButtonItem; IB_DESIGNABLE @interface UIBarButtonItem (AKAIBBindingProperties_titleBinding) @property(nonatomic, nullable)IBInspectable NSString* titleBinding_aka; @end
27.08
13
(translation_unit) "//\n// UIBarButtonItem+AKAIBBindingProperties_titleBinding.h\n// AKABeacon\n//\n// Created by <NAME> on 15.09.16.\n// Copyright © 2016 <NAME> & AKA Sarl. All rights reserved.\n//\n\n@import UIKit.UIBarButtonItem;\n\n\nIB_DESIGNABLE\n@interface UIBarButtonItem (AKAIBBindingProperties_titleBinding)\n\n@property(nonatomic, nullable)IBInspectable NSString* titleBinding_aka;\n\n@end\n" (comment) "//" (comment) "// UIBarButtonItem+AKAIBBindingProperties_titleBinding.h" (comment) "// AKABeacon" (comment) "//" (comment) "// Created by <NAME> on 15.09.16." (comment) "// Copyright © 2016 <NAME> & AKA Sarl. All rights reserved.\n" (comment) "/\n" (ERROR) "i" (ERROR) "i" (declaration) "mport UIKit.UIBarButtonItem;\n" (type_identifier) "mport " (ERROR) "IKit.U" (identifier) "IKit." (.) "U" (identifier) "IBarButtonItem;" (;) "\n" (ERROR) "B_DESIGNABLE\n@interface UIBarButtonItem (AKAIBBindingProperties_titleBinding)\n\n@property(nonatomic, nullable)IBInspectable NSString* titleBinding_aka;\n\n@end\n" (type_identifier) "B_DESIGNABLE\n" (ERROR) "interface " (ERROR) "i" (identifier) "nterface " (function_declarator) "IBarButtonItem (AKAIBBindingProperties_titleBinding)\n" (identifier) "IBarButtonItem " (parameter_list) "AKAIBBindingProperties_titleBinding)\n" (() "A" (identifier) "KAIBBindingProperties_titleBinding)" ()) "\n" (ERROR) "p" (ERROR) "p" (declaration) "roperty(nonatomic, nullable)IBInspectable " (macro_type_specifier) "roperty(nonatomic, nullable)I" (identifier) "roperty(" (() "n" (type_descriptor) "onatomic," (type_identifier) "onatomic," (ERROR) " nullable)" (,) " " (identifier) "ullable)" ()) "I" (identifier) "BInspectable " (;) "" (declaration) "SString* titleBinding_aka;\n" (type_identifier) "SString*" (pointer_declarator) " titleBinding_aka;" (*) " " (identifier) "itleBinding_aka;" (;) "\n" (ERROR) "e" (ERROR) "e" (identifier) "nd\n"
51
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.08, "nodes": 34, "errors": 0, "source_hash": "ab7f8610e86bd863ea3dad7cb75657f78bd2c5ee849a4da12a223299bf88414d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 1, "type": "ERROR", "text": "i", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 2, "type": "declaration", "text": "mport UIKit.UIBarButtonItem;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 30}}, {"id": 3, "type": "type_identifier", "text": "mport ", "parent": 2, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 4, "type": "ERROR", "text": "IKit.U", "parent": 2, "children": [5], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 5, "type": "identifier", "text": "IKit.", "parent": 4, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 6, "type": "identifier", "text": "IBarButtonItem;", "parent": 2, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 29}}, {"id": 7, "type": "ERROR", "text": "B_DESIGNABLE\n@interface UIBarButtonItem (AKAIBBindingProperties_titleBinding)\n\n@property(nonatomic, nullable)IBInspectable NSString* titleBinding_aka;\n\n@end\n", "parent": null, "children": [8, 9, 12, 16, 18, 26, 31, 33], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 8, "type": "type_identifier", "text": "B_DESIGNABLE\n", "parent": 7, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 13}}, {"id": 9, "type": "ERROR", "text": "interface ", "parent": 7, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"id": 10, "type": "ERROR", "text": "i", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "identifier", "text": "nterface ", "parent": 9, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 12, "type": "function_declarator", "text": "IBarButtonItem (AKAIBBindingProperties_titleBinding)\n", "parent": 7, "children": [13, 14], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 64}}, {"id": 13, "type": "identifier", "text": "IBarButtonItem ", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 26}}, {"id": 14, "type": "parameter_list", "text": "AKAIBBindingProperties_titleBinding)\n", "parent": 12, "children": [15], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 64}}, {"id": 15, "type": "identifier", "text": "KAIBBindingProperties_titleBinding)", "parent": 14, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 63}}, {"id": 16, "type": "ERROR", "text": "p", "parent": 7, "children": [17], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 17, "type": "ERROR", "text": "p", "parent": 16, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 18, "type": "declaration", "text": "roperty(nonatomic, nullable)IBInspectable ", "parent": 7, "children": [19, 25], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 43}}, {"id": 19, "type": "macro_type_specifier", "text": "roperty(nonatomic, nullable)I", "parent": 18, "children": [20, 21, 23], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 30}}, {"id": 20, "type": "identifier", "text": "roperty(", "parent": 19, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 21, "type": "type_descriptor", "text": "onatomic,", "parent": 19, "children": [22], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 22, "type": "type_identifier", "text": "onatomic,", "parent": 21, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 23, "type": "ERROR", "text": " nullable)", "parent": 19, "children": [24], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 29}}, {"id": 24, "type": "identifier", "text": "ullable)", "parent": 23, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 29}}, {"id": 25, "type": "identifier", "text": "BInspectable ", "parent": 18, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 43}}, {"id": 26, "type": "declaration", "text": "SString* titleBinding_aka;\n", "parent": 7, "children": [27, 28], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 71}}, {"id": 27, "type": "type_identifier", "text": "SString*", "parent": 26, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 52}}, {"id": 28, "type": "pointer_declarator", "text": " titleBinding_aka;", "parent": 26, "children": [29, 30], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 70}}, {"id": 29, "type": "*", "text": " ", "parent": 28, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 53}}, {"id": 30, "type": "identifier", "text": "itleBinding_aka;", "parent": 28, "children": [], "start_point": {"row": 14, "column": 54}, "end_point": {"row": 14, "column": 70}}, {"id": 31, "type": "ERROR", "text": "e", "parent": 7, "children": [32], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 32, "type": "ERROR", "text": "e", "parent": 31, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 33, "type": "identifier", "text": "nd\n", "parent": 7, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [2, 18, 26], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 11, 13, 15, 19, 20, 22, 24, 25, 27, 30, 33], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "IBarButtonItem (AKAIBBindingProperties_titleBinding)\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UIBarButtonItem+AKAIBBindingProperties_titleBinding.h\n// AKABeacon\n//\n// Created by <NAME> on 15.09.16.\n// Copyright \u00a9 2016 <NAME> & AKA Sarl. All rights reserved.\n//\n\n@import UIKit.UIBarButtonItem;\n\n\nIB_DESIGNABLE\n@interface UIBarButtonItem (AKAIBBindingProperties_titleBinding)\n\n@property(nonatomic, nullable)IBInspectable NSString* titleBinding_aka;\n\n@end\n"}
81,063
c
/* A test for keywords-> accept */ void main(void){ int i; int j; int k; i=0; j=1; k=0; while(k<10) { if(i<j) i=i+1; else j=k+1; k=k+1; } return; }
8.15
20
(translation_unit) "/* A test for keywords-> accept */\n\nvoid main(void){\n int i;\nint j;\nint k;\n i=0;\n j=1;\n \n k=0;\n while(k<10)\n { \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }\n return;\n} \n" (comment) "/* A test for keywords-> accept */" (function_definition) "void main(void){\n int i;\nint j;\nint k;\n i=0;\n j=1;\n \n k=0;\n while(k<10)\n { \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }\n return;\n}" (primitive_type) "void" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n int i;\nint j;\nint k;\n i=0;\n j=1;\n \n k=0;\n while(k<10)\n { \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }\n return;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int j;" (primitive_type) "int" (identifier) "j" (;) ";" (declaration) "int k;" (primitive_type) "int" (identifier) "k" (;) ";" (expression_statement) "i=0;" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "j=1;" (assignment_expression) "j=1" (identifier) "j" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "k=0;" (assignment_expression) "k=0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(k<10)\n { \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }" (while) "while" (parenthesized_expression) "(k<10)" (() "(" (binary_expression) "k<10" (identifier) "k" (<) "<" (number_literal) "10" ()) ")" (compound_statement) "{ \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }" ({) "{" (if_statement) "if(i<j)\n i=i+1;\n else \n j=k+1;" (if) "if" (parenthesized_expression) "(i<j)" (() "(" (binary_expression) "i<j" (identifier) "i" (<) "<" (identifier) "j" ()) ")" (expression_statement) "i=i+1;" (assignment_expression) "i=i+1" (identifier) "i" (=) "=" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (;) ";" (else_clause) "else \n j=k+1;" (else) "else" (expression_statement) "j=k+1;" (assignment_expression) "j=k+1" (identifier) "j" (=) "=" (binary_expression) "k+1" (identifier) "k" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "k=k+1;" (assignment_expression) "k=k+1" (identifier) "k" (=) "=" (binary_expression) "k+1" (identifier) "k" (+) "+" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return;" (return) "return" (;) ";" (}) "}"
97
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 8.15, "nodes": 63, "errors": 0, "source_hash": "df50921a7f7de6244cd478a9de4de2c27461ad582538281f4ec557bc5e22e644", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void main(void){\n\tint i;\nint j;\nint k;\n\ti=0;\n\tj=1;\n \n\tk=0;\n\twhile(k<10)\n\t{ \n\t\tif(i<j)\n\t\t\ti=i+1;\n\t\telse \n\t\t\tj=k+1;\n\t\tk=k+1;\n\t\t\n\t}\n\treturn;\n}", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 1, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "main(void)", "parent": 0, "children": [3, 4], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 15}}, {"id": 3, "type": "identifier", "text": "main", "parent": 2, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 9}}, {"id": 4, "type": "parameter_list", "text": "(void)", "parent": 2, "children": [5], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 15}}, {"id": 5, "type": "parameter_declaration", "text": "void", "parent": 4, "children": [6], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "primitive_type", "text": "void", "parent": 5, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "declaration", "text": "int i;", "parent": 0, "children": [8, 9], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "primitive_type", "text": "int", "parent": 7, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 4}}, {"id": 9, "type": "identifier", "text": "i", "parent": 7, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 6}}, {"id": 10, "type": "declaration", "text": "int j;", "parent": 0, "children": [11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 12, "type": "identifier", "text": "j", "parent": 10, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 5}}, {"id": 13, "type": "declaration", "text": "int k;", "parent": 0, "children": [14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 15, "type": "identifier", "text": "k", "parent": 13, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 5}}, {"id": 16, "type": "assignment_expression", "text": "i=0", "parent": 0, "children": [17, 18, 19], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 4}}, {"id": 17, "type": "identifier", "text": "i", "parent": 16, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 2}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 3}}, {"id": 19, "type": "number_literal", "text": "0", "parent": 16, "children": [], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 4}}, {"id": 20, "type": "assignment_expression", "text": "j=1", "parent": 0, "children": [21, 22, 23], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 21, "type": "identifier", "text": "j", "parent": 20, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 2}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 3}}, {"id": 23, "type": "number_literal", "text": "1", "parent": 20, "children": [], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 4}}, {"id": 24, "type": "assignment_expression", "text": "k=0", "parent": 0, "children": [25, 26, 27], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 4}}, {"id": 25, "type": "identifier", "text": "k", "parent": 24, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 2}}, {"id": 26, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 3}}, {"id": 27, "type": "number_literal", "text": "0", "parent": 24, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 4}}, {"id": 28, "type": "while_statement", "text": "while(k<10)\n\t{ \n\t\tif(i<j)\n\t\t\ti=i+1;\n\t\telse \n\t\t\tj=k+1;\n\t\tk=k+1;\n\t\t\n\t}", "parent": 0, "children": [29], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 18, "column": 2}}, {"id": 29, "type": "parenthesized_expression", "text": "(k<10)", "parent": 28, "children": [30], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 30, "type": "binary_expression", "text": "k<10", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 31, "type": "identifier", "text": "k", "parent": 30, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 32, "type": "<", "text": "<", "parent": 30, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 33, "type": "number_literal", "text": "10", "parent": 30, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 11}}, {"id": 34, "type": "if_statement", "text": "if(i<j)\n\t\t\ti=i+1;\n\t\telse \n\t\t\tj=k+1;", "parent": 28, "children": [35, 47], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 35, "type": "parenthesized_expression", "text": "(i<j)", "parent": 34, "children": [36], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 9}}, {"id": 36, "type": "binary_expression", "text": "i<j", "parent": 35, "children": [37, 38, 39], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 8}}, {"id": 37, "type": "identifier", "text": "i", "parent": 36, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 6}}, {"id": 38, "type": "<", "text": "<", "parent": 36, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 7}}, {"id": 39, "type": "identifier", "text": "j", "parent": 36, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 40, "type": "assignment_expression", "text": "i=i+1", "parent": 34, "children": [41, 42, 43], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 8}}, {"id": 41, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 4}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 5}}, {"id": 43, "type": "binary_expression", "text": "i+1", "parent": 40, "children": [44, 45, 46], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 8}}, {"id": 44, "type": "identifier", "text": "i", "parent": 43, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 6}}, {"id": 45, "type": "+", "text": "+", "parent": 43, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 46, "type": "number_literal", "text": "1", "parent": 43, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 47, "type": "else_clause", "text": "else \n\t\t\tj=k+1;", "parent": 34, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 48, "type": "assignment_expression", "text": "j=k+1", "parent": 47, "children": [49, 50, 51], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 8}}, {"id": 49, "type": "identifier", "text": "j", "parent": 48, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 4}}, {"id": 50, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 5}}, {"id": 51, "type": "binary_expression", "text": "k+1", "parent": 48, "children": [52, 53, 54], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 8}}, {"id": 52, "type": "identifier", "text": "k", "parent": 51, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 6}}, {"id": 53, "type": "+", "text": "+", "parent": 51, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 7}}, {"id": 54, "type": "number_literal", "text": "1", "parent": 51, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 8}}, {"id": 55, "type": "assignment_expression", "text": "k=k+1", "parent": 28, "children": [56, 57, 58], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 7}}, {"id": 56, "type": "identifier", "text": "k", "parent": 55, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 3}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 4}}, {"id": 58, "type": "binary_expression", "text": "k+1", "parent": 55, "children": [59, 60, 61], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 59, "type": "identifier", "text": "k", "parent": 58, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 60, "type": "+", "text": "+", "parent": 58, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 6}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 7}}, {"id": 62, "type": "return_statement", "text": "return;", "parent": 0, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}]}, "node_categories": {"declarations": {"functions": [0, 2], "variables": [5, 7, 10, 13], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [29, 30, 35, 36, 43, 51, 58], "assignments": [16, 20, 24, 40, 48, 55], "loops": [28], "conditionals": [3, 9, 12, 15, 17, 21, 25, 31, 34, 37, 39, 41, 44, 49, 52, 56, 59], "returns": [62], "exceptions": []}, "expressions": {"calls": [], "literals": [19, 23, 27, 33, 46, 54, 61], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "main", "text_snippet": "void main(void){\n\tint i;\nint j;\nint k;\n\ti=0;\n\tj=1;\n \n\tk=0;\n\twhile(k<10)\n\t{ \n\t\tif(i<j)\n\t\t\ti=i+"}, {"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* A test for keywords-> accept */\n\nvoid main(void){\n\tint i;\nint j;\nint k;\n\ti=0;\n\tj=1;\n \n\tk=0;\n\twhile(k<10)\n\t{ \n\t\tif(i<j)\n\t\t\ti=i+1;\n\t\telse \n\t\t\tj=k+1;\n\t\tk=k+1;\n\t\t\n\t}\n\treturn;\n}\t\n"}
81,064
c
#ifndef GWU22PC_H #define GWU22PC_H #include "lib/app.h" #include "lib/timef.h" #include "lib/acp/main.h" #include "lib/acp/app.h" #include "lib/udp.h" #include "lib/tsv.h" #include "lib/lcorrection.h" #include "lib/device/dht22.h" #include "lib/filter/common.h" #define APP_NAME gwu22pc #define APP_NAME_STR TOSTRING(APP_NAME) #ifdef MODE_FULL #define CONF_DIR "/etc/controller/" APP_NAME_STR "/" #endif #ifndef MODE_FULL #define CONF_DIR "./config/" #endif #define CONF_MAIN_FILE CONF_DIR "main.tsv" #define CONF_DEVICE_FILE CONF_DIR "device.tsv" #define CONF_THREAD_FILE CONF_DIR "thread.tsv" #define CONF_THREAD_DEVICE_FILE CONF_DIR "thread_device.tsv" #define CONF_LCORRECTION_FILE CONF_DIR "lcorrection.tsv" #define CONF_FILTER_MA_FILE CONF_DIR "filter_ma.tsv" #define CONF_FILTER_EXP_FILE CONF_DIR "filter_exp.tsv" #define CONF_CHANNEL_FILTER_FILE CONF_DIR "channel_filter.tsv" #define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR "channel_lcorrection.tsv" typedef struct { int id; FTS result; LCorrection *lcorrection; Filter *filter; Mutex mutex; } Channel; DEC_LIST ( Channel ) typedef struct { int pin; Channel *temp; Channel *hum; } Device; DEC_LIST ( Device ) DEC_PLIST ( Device ) struct thread_st { int id; DevicePList device_plist; pthread_t thread; struct timespec cycle_duration; }; typedef struct thread_st Thread; DEC_LIST ( Thread ) extern int readSettings(); extern void serverRun ( int *state, int init_state ); extern void *threadFunction ( void *arg ); extern int initApp(); extern int initData(); extern void freeData(); extern void freeApp(); extern void exit_nicely(); #endif
25.16
63
(translation_unit) "#ifndef GWU22PC_H\n#define GWU22PC_H\n\n#include "lib/app.h"\n#include "lib/timef.h"\n#include "lib/acp/main.h"\n#include "lib/acp/app.h"\n#include "lib/udp.h"\n#include "lib/tsv.h"\n#include "lib/lcorrection.h"\n#include "lib/device/dht22.h"\n#include "lib/filter/common.h"\n\n#define APP_NAME gwu22pc\n#define APP_NAME_STR TOSTRING(APP_NAME)\n\n#ifdef MODE_FULL\n#define CONF_DIR "/etc/controller/" APP_NAME_STR "/"\n#endif\n#ifndef MODE_FULL\n#define CONF_DIR "./config/"\n#endif\n#define CONF_MAIN_FILE CONF_DIR "main.tsv"\n#define CONF_DEVICE_FILE CONF_DIR "device.tsv"\n#define CONF_THREAD_FILE CONF_DIR "thread.tsv"\n#define CONF_THREAD_DEVICE_FILE CONF_DIR "thread_device.tsv"\n#define CONF_LCORRECTION_FILE CONF_DIR "lcorrection.tsv"\n#define CONF_FILTER_MA_FILE CONF_DIR "filter_ma.tsv"\n#define CONF_FILTER_EXP_FILE CONF_DIR "filter_exp.tsv"\n#define CONF_CHANNEL_FILTER_FILE CONF_DIR "channel_filter.tsv"\n#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR "channel_lcorrection.tsv"\n\n\ntypedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;\nDEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n} Device;\nDEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n};\ntypedef struct thread_st Thread;\nDEC_LIST ( Thread )\n\nextern int readSettings();\n\nextern void serverRun ( int *state, int init_state );\n\nextern void *threadFunction ( void *arg );\n\nextern int initApp();\n\nextern int initData();\n\nextern void freeData();\n\nextern void freeApp();\n\nextern void exit_nicely();\n\n#endif\n\n" (preproc_ifdef) "#ifndef GWU22PC_H\n#define GWU22PC_H\n\n#include "lib/app.h"\n#include "lib/timef.h"\n#include "lib/acp/main.h"\n#include "lib/acp/app.h"\n#include "lib/udp.h"\n#include "lib/tsv.h"\n#include "lib/lcorrection.h"\n#include "lib/device/dht22.h"\n#include "lib/filter/common.h"\n\n#define APP_NAME gwu22pc\n#define APP_NAME_STR TOSTRING(APP_NAME)\n\n#ifdef MODE_FULL\n#define CONF_DIR "/etc/controller/" APP_NAME_STR "/"\n#endif\n#ifndef MODE_FULL\n#define CONF_DIR "./config/"\n#endif\n#define CONF_MAIN_FILE CONF_DIR "main.tsv"\n#define CONF_DEVICE_FILE CONF_DIR "device.tsv"\n#define CONF_THREAD_FILE CONF_DIR "thread.tsv"\n#define CONF_THREAD_DEVICE_FILE CONF_DIR "thread_device.tsv"\n#define CONF_LCORRECTION_FILE CONF_DIR "lcorrection.tsv"\n#define CONF_FILTER_MA_FILE CONF_DIR "filter_ma.tsv"\n#define CONF_FILTER_EXP_FILE CONF_DIR "filter_exp.tsv"\n#define CONF_CHANNEL_FILTER_FILE CONF_DIR "channel_filter.tsv"\n#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR "channel_lcorrection.tsv"\n\n\ntypedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;\nDEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n} Device;\nDEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n};\ntypedef struct thread_st Thread;\nDEC_LIST ( Thread )\n\nextern int readSettings();\n\nextern void serverRun ( int *state, int init_state );\n\nextern void *threadFunction ( void *arg );\n\nextern int initApp();\n\nextern int initData();\n\nextern void freeData();\n\nextern void freeApp();\n\nextern void exit_nicely();\n\n#endif" (#ifndef) "#ifndef" (identifier) "GWU22PC_H" (preproc_def) "#define GWU22PC_H\n" (#define) "#define" (identifier) "GWU22PC_H" (preproc_include) "#include "lib/app.h"\n" (#include) "#include" (string_literal) ""lib/app.h"" (") """ (string_content) "lib/app.h" (") """ (preproc_include) "#include "lib/timef.h"\n" (#include) "#include" (string_literal) ""lib/timef.h"" (") """ (string_content) "lib/timef.h" (") """ (preproc_include) "#include "lib/acp/main.h"\n" (#include) "#include" (string_literal) ""lib/acp/main.h"" (") """ (string_content) "lib/acp/main.h" (") """ (preproc_include) "#include "lib/acp/app.h"\n" (#include) "#include" (string_literal) ""lib/acp/app.h"" (") """ (string_content) "lib/acp/app.h" (") """ (preproc_include) "#include "lib/udp.h"\n" (#include) "#include" (string_literal) ""lib/udp.h"" (") """ (string_content) "lib/udp.h" (") """ (preproc_include) "#include "lib/tsv.h"\n" (#include) "#include" (string_literal) ""lib/tsv.h"" (") """ (string_content) "lib/tsv.h" (") """ (preproc_include) "#include "lib/lcorrection.h"\n" (#include) "#include" (string_literal) ""lib/lcorrection.h"" (") """ (string_content) "lib/lcorrection.h" (") """ (preproc_include) "#include "lib/device/dht22.h"\n" (#include) "#include" (string_literal) ""lib/device/dht22.h"" (") """ (string_content) "lib/device/dht22.h" (") """ (preproc_include) "#include "lib/filter/common.h"\n" (#include) "#include" (string_literal) ""lib/filter/common.h"" (") """ (string_content) "lib/filter/common.h" (") """ (preproc_def) "#define APP_NAME gwu22pc\n" (#define) "#define" (identifier) "APP_NAME" (preproc_arg) "gwu22pc" (preproc_def) "#define APP_NAME_STR TOSTRING(APP_NAME)\n" (#define) "#define" (identifier) "APP_NAME_STR" (preproc_arg) "TOSTRING(APP_NAME)" (preproc_ifdef) "#ifdef MODE_FULL\n#define CONF_DIR "/etc/controller/" APP_NAME_STR "/"\n#endif" (#ifdef) "#ifdef" (identifier) "MODE_FULL" (preproc_def) "#define CONF_DIR "/etc/controller/" APP_NAME_STR "/"\n" (#define) "#define" (identifier) "CONF_DIR" (preproc_arg) ""/etc/controller/" APP_NAME_STR "/"" (#endif) "#endif" (preproc_ifdef) "#ifndef MODE_FULL\n#define CONF_DIR "./config/"\n#endif" (#ifndef) "#ifndef" (identifier) "MODE_FULL" (preproc_def) "#define CONF_DIR "./config/"\n" (#define) "#define" (identifier) "CONF_DIR" (preproc_arg) ""./config/"" (#endif) "#endif" (preproc_def) "#define CONF_MAIN_FILE CONF_DIR "main.tsv"\n" (#define) "#define" (identifier) "CONF_MAIN_FILE" (preproc_arg) "CONF_DIR "main.tsv"" (preproc_def) "#define CONF_DEVICE_FILE CONF_DIR "device.tsv"\n" (#define) "#define" (identifier) "CONF_DEVICE_FILE" (preproc_arg) "CONF_DIR "device.tsv"" (preproc_def) "#define CONF_THREAD_FILE CONF_DIR "thread.tsv"\n" (#define) "#define" (identifier) "CONF_THREAD_FILE" (preproc_arg) "CONF_DIR "thread.tsv"" (preproc_def) "#define CONF_THREAD_DEVICE_FILE CONF_DIR "thread_device.tsv"\n" (#define) "#define" (identifier) "CONF_THREAD_DEVICE_FILE" (preproc_arg) "CONF_DIR "thread_device.tsv"" (preproc_def) "#define CONF_LCORRECTION_FILE CONF_DIR "lcorrection.tsv"\n" (#define) "#define" (identifier) "CONF_LCORRECTION_FILE" (preproc_arg) "CONF_DIR "lcorrection.tsv"" (preproc_def) "#define CONF_FILTER_MA_FILE CONF_DIR "filter_ma.tsv"\n" (#define) "#define" (identifier) "CONF_FILTER_MA_FILE" (preproc_arg) "CONF_DIR "filter_ma.tsv"" (preproc_def) "#define CONF_FILTER_EXP_FILE CONF_DIR "filter_exp.tsv"\n" (#define) "#define" (identifier) "CONF_FILTER_EXP_FILE" (preproc_arg) "CONF_DIR "filter_exp.tsv"" (preproc_def) "#define CONF_CHANNEL_FILTER_FILE CONF_DIR "channel_filter.tsv"\n" (#define) "#define" (identifier) "CONF_CHANNEL_FILTER_FILE" (preproc_arg) "CONF_DIR "channel_filter.tsv"" (preproc_def) "#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR "channel_lcorrection.tsv"\n" (#define) "#define" (identifier) "CONF_CHANNEL_LCORRECTION_FILE" (preproc_arg) "CONF_DIR "channel_lcorrection.tsv"" (type_definition) "typedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;" (typedef) "typedef" (struct_specifier) "struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n}" (struct) "struct" (field_declaration_list) "{\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n}" ({) "{" (field_declaration) "int id;" (primitive_type) "int" (field_identifier) "id" (;) ";" (field_declaration) "FTS result;" (type_identifier) "FTS" (field_identifier) "result" (;) ";" (field_declaration) "LCorrection *lcorrection;" (type_identifier) "LCorrection" (pointer_declarator) "*lcorrection" (*) "*" (field_identifier) "lcorrection" (;) ";" (field_declaration) "Filter *filter;" (type_identifier) "Filter" (pointer_declarator) "*filter" (*) "*" (field_identifier) "filter" (;) ";" (field_declaration) "Mutex mutex;" (type_identifier) "Mutex" (field_identifier) "mutex" (;) ";" (}) "}" (type_identifier) "Channel" (;) ";" (function_definition) "DEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n}" (macro_type_specifier) "DEC_LIST ( Channel )" (identifier) "DEC_LIST" (() "(" (type_descriptor) "Channel" (type_identifier) "Channel" ()) ")" (identifier) "typedef" (ERROR) "struct" (identifier) "struct" (compound_statement) "{\n int pin;\n Channel *temp;\n Channel *hum;\n}" ({) "{" (declaration) "int pin;" (primitive_type) "int" (identifier) "pin" (;) ";" (declaration) "Channel *temp;" (type_identifier) "Channel" (pointer_declarator) "*temp" (*) "*" (identifier) "temp" (;) ";" (declaration) "Channel *hum;" (type_identifier) "Channel" (pointer_declarator) "*hum" (*) "*" (identifier) "hum" (;) ";" (}) "}" (expression_statement) "Device;" (identifier) "Device" (;) ";" (function_definition) "DEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n}" (macro_type_specifier) "DEC_LIST ( Device )" (identifier) "DEC_LIST" (() "(" (type_descriptor) "Device" (type_identifier) "Device" ()) ")" (function_declarator) "DEC_PLIST ( Device )\n\n\nstruct thread_st" (identifier) "DEC_PLIST" (parameter_list) "( Device )" (() "(" (parameter_declaration) "Device" (type_identifier) "Device" ()) ")" (identifier) "struct" (identifier) "thread_st" (compound_statement) "{\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n}" ({) "{" (declaration) "int id;" (primitive_type) "int" (identifier) "id" (;) ";" (declaration) "DevicePList device_plist;" (type_identifier) "DevicePList" (identifier) "device_plist" (;) ";" (declaration) "pthread_t thread;" (type_identifier) "pthread_t" (identifier) "thread" (;) ";" (declaration) "struct timespec cycle_duration;" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "cycle_duration" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef struct thread_st Thread;" (typedef) "typedef" (struct_specifier) "struct thread_st" (struct) "struct" (type_identifier) "thread_st" (type_identifier) "Thread" (;) ";" (declaration) "DEC_LIST ( Thread )\n\nextern int readSettings();" (macro_type_specifier) "DEC_LIST ( Thread )" (identifier) "DEC_LIST" (() "(" (type_descriptor) "Thread" (type_identifier) "Thread" ()) ")" (storage_class_specifier) "extern" (extern) "extern" (ERROR) "int" (identifier) "int" (function_declarator) "readSettings()" (identifier) "readSettings" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void serverRun ( int *state, int init_state );" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "serverRun ( int *state, int init_state )" (identifier) "serverRun" (parameter_list) "( int *state, int init_state )" (() "(" (parameter_declaration) "int *state" (primitive_type) "int" (pointer_declarator) "*state" (*) "*" (identifier) "state" (,) "," (parameter_declaration) "int init_state" (primitive_type) "int" (identifier) "init_state" ()) ")" (;) ";" (declaration) "extern void *threadFunction ( void *arg );" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (pointer_declarator) "*threadFunction ( void *arg )" (*) "*" (function_declarator) "threadFunction ( void *arg )" (identifier) "threadFunction" (parameter_list) "( void *arg )" (() "(" (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (;) ";" (declaration) "extern int initApp();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "initApp()" (identifier) "initApp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern int initData();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "initData()" (identifier) "initData" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void freeData();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "freeData()" (identifier) "freeData" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void freeApp();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "freeApp()" (identifier) "freeApp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void exit_nicely();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "exit_nicely()" (identifier) "exit_nicely" (parameter_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif"
336
2
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 25.16, "nodes": 248, "errors": 0, "source_hash": "5c5becaee07244b80ef8a24ff1716825f2eb45045b6a91596d4cd872cd92a8e9", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GWU22PC_H\n#define GWU22PC_H\n\n#include \"lib/app.h\"\n#include \"lib/timef.h\"\n#include \"lib/acp/main.h\"\n#include \"lib/acp/app.h\"\n#include \"lib/udp.h\"\n#include \"lib/tsv.h\"\n#include \"lib/lcorrection.h\"\n#include \"lib/device/dht22.h\"\n#include \"lib/filter/common.h\"\n\n#define APP_NAME gwu22pc\n#define APP_NAME_STR TOSTRING(APP_NAME)\n\n#ifdef MODE_FULL\n#define CONF_DIR \"/etc/controller/\" APP_NAME_STR \"/\"\n#endif\n#ifndef MODE_FULL\n#define CONF_DIR \"./config/\"\n#endif\n#define CONF_MAIN_FILE CONF_DIR \"main.tsv\"\n#define CONF_DEVICE_FILE CONF_DIR \"device.tsv\"\n#define CONF_THREAD_FILE CONF_DIR \"thread.tsv\"\n#define CONF_THREAD_DEVICE_FILE CONF_DIR \"thread_device.tsv\"\n#define CONF_LCORRECTION_FILE CONF_DIR \"lcorrection.tsv\"\n#define CONF_FILTER_MA_FILE CONF_DIR \"filter_ma.tsv\"\n#define CONF_FILTER_EXP_FILE CONF_DIR \"filter_exp.tsv\"\n#define CONF_CHANNEL_FILTER_FILE CONF_DIR \"channel_filter.tsv\"\n#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR \"channel_lcorrection.tsv\"\n\n\ntypedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;\nDEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n} Device;\nDEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n};\ntypedef struct thread_st Thread;\nDEC_LIST ( Thread )\n\nextern int readSettings();\n\nextern void serverRun ( int *state, int init_state );\n\nextern void *threadFunction ( void *arg );\n\nextern int initApp();\n\nextern int initData();\n\nextern void freeData();\n\nextern void freeApp();\n\nextern void exit_nicely();\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 37, 41, 49, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 117, 139, 165, 171, 183, 198, 212, 219, 226, 233, 240, 247], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "identifier", "text": "GWU22PC_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define GWU22PC_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "GWU22PC_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"lib/app.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"lib/app.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"lib/timef.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"lib/timef.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include \"lib/acp/main.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"lib/acp/main.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include \"lib/acp/app.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"lib/acp/app.h\"", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 24}}, {"id": 18, "type": "preproc_include", "text": "#include \"lib/udp.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"lib/udp.h\"", "parent": 18, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include \"lib/tsv.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"lib/tsv.h\"", "parent": 21, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 24, "type": "preproc_include", "text": "#include \"lib/lcorrection.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"lib/lcorrection.h\"", "parent": 24, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 28}}, {"id": 27, "type": "preproc_include", "text": "#include \"lib/device/dht22.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"lib/device/dht22.h\"", "parent": 27, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 29}}, {"id": 30, "type": "preproc_include", "text": "#include \"lib/filter/common.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"lib/filter/common.h\"", "parent": 30, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 30}}, {"id": 33, "type": "preproc_def", "text": "#define APP_NAME gwu22pc\n", "parent": 0, "children": [34, 35, 36], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 35, "type": "identifier", "text": "APP_NAME", "parent": 33, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 16}}, {"id": 36, "type": "preproc_arg", "text": "gwu22pc", "parent": 33, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 24}}, {"id": 37, "type": "preproc_def", "text": "#define APP_NAME_STR TOSTRING(APP_NAME)\n", "parent": 0, "children": [38, 39, 40], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 39, "type": "identifier", "text": "APP_NAME_STR", "parent": 37, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 20}}, {"id": 40, "type": "preproc_arg", "text": "TOSTRING(APP_NAME)", "parent": 37, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 39}}, {"id": 41, "type": "preproc_ifdef", "text": "#ifdef MODE_FULL\n#define CONF_DIR \"/etc/controller/\" APP_NAME_STR \"/\"\n#endif", "parent": 0, "children": [42, 43, 44, 48], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 42, "type": "#ifdef", "text": "#ifdef", "parent": 41, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 43, "type": "identifier", "text": "MODE_FULL", "parent": 41, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 44, "type": "preproc_def", "text": "#define CONF_DIR \"/etc/controller/\" APP_NAME_STR \"/\"\n", "parent": 41, "children": [45, 46, 47], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 46, "type": "identifier", "text": "CONF_DIR", "parent": 44, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 16}}, {"id": 47, "type": "preproc_arg", "text": "\"/etc/controller/\" APP_NAME_STR \"/\"", "parent": 44, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 52}}, {"id": 48, "type": "#endif", "text": "#endif", "parent": 41, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 49, "type": "preproc_ifdef", "text": "#ifndef MODE_FULL\n#define CONF_DIR \"./config/\"\n#endif", "parent": 0, "children": [50, 51, 52, 56], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 50, "type": "#ifndef", "text": "#ifndef", "parent": 49, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 51, "type": "identifier", "text": "MODE_FULL", "parent": 49, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 17}}, {"id": 52, "type": "preproc_def", "text": "#define CONF_DIR \"./config/\"\n", "parent": 49, "children": [53, 54, 55], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 54, "type": "identifier", "text": "CONF_DIR", "parent": 52, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 55, "type": "preproc_arg", "text": "\"./config/\"", "parent": 52, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 28}}, {"id": 56, "type": "#endif", "text": "#endif", "parent": 49, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 57, "type": "preproc_def", "text": "#define CONF_MAIN_FILE CONF_DIR \"main.tsv\"\n", "parent": 0, "children": [58, 59, 60], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 58, "type": "#define", "text": "#define", "parent": 57, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 59, "type": "identifier", "text": "CONF_MAIN_FILE", "parent": 57, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 22}}, {"id": 60, "type": "preproc_arg", "text": "CONF_DIR \"main.tsv\"", "parent": 57, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 42}}, {"id": 61, "type": "preproc_def", "text": "#define CONF_DEVICE_FILE CONF_DIR \"device.tsv\"\n", "parent": 0, "children": [62, 63, 64], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 62, "type": "#define", "text": "#define", "parent": 61, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 63, "type": "identifier", "text": "CONF_DEVICE_FILE", "parent": 61, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 24}}, {"id": 64, "type": "preproc_arg", "text": "CONF_DIR \"device.tsv\"", "parent": 61, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 46}}, {"id": 65, "type": "preproc_def", "text": "#define CONF_THREAD_FILE CONF_DIR \"thread.tsv\"\n", "parent": 0, "children": [66, 67, 68], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 66, "type": "#define", "text": "#define", "parent": 65, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 67, "type": "identifier", "text": "CONF_THREAD_FILE", "parent": 65, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 24}}, {"id": 68, "type": "preproc_arg", "text": "CONF_DIR \"thread.tsv\"", "parent": 65, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 46}}, {"id": 69, "type": "preproc_def", "text": "#define CONF_THREAD_DEVICE_FILE CONF_DIR \"thread_device.tsv\"\n", "parent": 0, "children": [70, 71, 72], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 71, "type": "identifier", "text": "CONF_THREAD_DEVICE_FILE", "parent": 69, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 31}}, {"id": 72, "type": "preproc_arg", "text": "CONF_DIR \"thread_device.tsv\"", "parent": 69, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 60}}, {"id": 73, "type": "preproc_def", "text": "#define CONF_LCORRECTION_FILE CONF_DIR \"lcorrection.tsv\"\n", "parent": 0, "children": [74, 75, 76], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 74, "type": "#define", "text": "#define", "parent": 73, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 75, "type": "identifier", "text": "CONF_LCORRECTION_FILE", "parent": 73, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 29}}, {"id": 76, "type": "preproc_arg", "text": "CONF_DIR \"lcorrection.tsv\"", "parent": 73, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 56}}, {"id": 77, "type": "preproc_def", "text": "#define CONF_FILTER_MA_FILE CONF_DIR \"filter_ma.tsv\"\n", "parent": 0, "children": [78, 79, 80], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 78, "type": "#define", "text": "#define", "parent": 77, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 79, "type": "identifier", "text": "CONF_FILTER_MA_FILE", "parent": 77, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 27}}, {"id": 80, "type": "preproc_arg", "text": "CONF_DIR \"filter_ma.tsv\"", "parent": 77, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 52}}, {"id": 81, "type": "preproc_def", "text": "#define CONF_FILTER_EXP_FILE CONF_DIR \"filter_exp.tsv\"\n", "parent": 0, "children": [82, 83, 84], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 82, "type": "#define", "text": "#define", "parent": 81, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 83, "type": "identifier", "text": "CONF_FILTER_EXP_FILE", "parent": 81, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 28}}, {"id": 84, "type": "preproc_arg", "text": "CONF_DIR \"filter_exp.tsv\"", "parent": 81, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 54}}, {"id": 85, "type": "preproc_def", "text": "#define CONF_CHANNEL_FILTER_FILE CONF_DIR \"channel_filter.tsv\"\n", "parent": 0, "children": [86, 87, 88], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 86, "type": "#define", "text": "#define", "parent": 85, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 87, "type": "identifier", "text": "CONF_CHANNEL_FILTER_FILE", "parent": 85, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 32}}, {"id": 88, "type": "preproc_arg", "text": "CONF_DIR \"channel_filter.tsv\"", "parent": 85, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 62}}, {"id": 89, "type": "preproc_def", "text": "#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR \"channel_lcorrection.tsv\"\n", "parent": 0, "children": [90, 91, 92], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 90, "type": "#define", "text": "#define", "parent": 89, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 91, "type": "identifier", "text": "CONF_CHANNEL_LCORRECTION_FILE", "parent": 89, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 37}}, {"id": 92, "type": "preproc_arg", "text": "CONF_DIR \"channel_lcorrection.tsv\"", "parent": 89, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 72}}, {"id": 93, "type": "type_definition", "text": "typedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;", "parent": 0, "children": [94, 95, 116], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 40, "column": 10}}, {"id": 94, "type": "typedef", "text": "typedef", "parent": 93, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 95, "type": "struct_specifier", "text": "struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n}", "parent": 93, "children": [96], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 40, "column": 1}}, {"id": 96, "type": "struct", "text": "struct", "parent": 95, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 97, "type": "field_declaration", "text": "int id;", "parent": 95, "children": [98, 99], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 98, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 99, "type": "field_identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 10}}, {"id": 100, "type": "field_declaration", "text": "FTS result;", "parent": 95, "children": [101, 102], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 15}}, {"id": 101, "type": "type_identifier", "text": "FTS", "parent": 100, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 102, "type": "field_identifier", "text": "result", "parent": 100, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 103, "type": "field_declaration", "text": "LCorrection *lcorrection;", "parent": 95, "children": [104, 105], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 29}}, {"id": 104, "type": "type_identifier", "text": "LCorrection", "parent": 103, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 105, "type": "pointer_declarator", "text": "*lcorrection", "parent": 103, "children": [106, 107], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 28}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 107, "type": "field_identifier", "text": "lcorrection", "parent": 105, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 28}}, {"id": 108, "type": "field_declaration", "text": "Filter *filter;", "parent": 95, "children": [109, 110], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 19}}, {"id": 109, "type": "type_identifier", "text": "Filter", "parent": 108, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 110, "type": "pointer_declarator", "text": "*filter", "parent": 108, "children": [111, 112], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 18}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 12}}, {"id": 112, "type": "field_identifier", "text": "filter", "parent": 110, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 113, "type": "field_declaration", "text": "Mutex mutex;", "parent": 95, "children": [114, 115], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 16}}, {"id": 114, "type": "type_identifier", "text": "Mutex", "parent": 113, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 9}}, {"id": 115, "type": "field_identifier", "text": "mutex", "parent": 113, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 15}}, {"id": 116, "type": "type_identifier", "text": "Channel", "parent": 93, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 9}}, {"id": 117, "type": "function_definition", "text": "DEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n}", "parent": 0, "children": [118, 122, 123], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 118, "type": "macro_type_specifier", "text": "DEC_LIST ( Channel )", "parent": 117, "children": [119, 120], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 20}}, {"id": 119, "type": "identifier", "text": "DEC_LIST", "parent": 118, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 120, "type": "type_descriptor", "text": "Channel", "parent": 118, "children": [121], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 18}}, {"id": 121, "type": "type_identifier", "text": "Channel", "parent": 120, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 18}}, {"id": 122, "type": "identifier", "text": "typedef", "parent": 117, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 123, "type": "ERROR", "text": "struct", "parent": 117, "children": [124], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 124, "type": "identifier", "text": "struct", "parent": 123, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 125, "type": "declaration", "text": "int pin;", "parent": 117, "children": [126, 127], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 12}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 7}}, {"id": 127, "type": "identifier", "text": "pin", "parent": 125, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 128, "type": "declaration", "text": "Channel *temp;", "parent": 117, "children": [129, 130], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 18}}, {"id": 129, "type": "type_identifier", "text": "Channel", "parent": 128, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 11}}, {"id": 130, "type": "pointer_declarator", "text": "*temp", "parent": 128, "children": [131, 132], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 17}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 132, "type": "identifier", "text": "temp", "parent": 130, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 17}}, {"id": 133, "type": "declaration", "text": "Channel *hum;", "parent": 117, "children": [134, 135], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 17}}, {"id": 134, "type": "type_identifier", "text": "Channel", "parent": 133, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 11}}, {"id": 135, "type": "pointer_declarator", "text": "*hum", "parent": 133, "children": [136, 137], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 16}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 137, "type": "identifier", "text": "hum", "parent": 135, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 16}}, {"id": 138, "type": "identifier", "text": "Device", "parent": 0, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 8}}, {"id": 139, "type": "function_definition", "text": "DEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n}", "parent": 0, "children": [140, 144], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 140, "type": "macro_type_specifier", "text": "DEC_LIST ( Device )", "parent": 139, "children": [141, 142], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 19}}, {"id": 141, "type": "identifier", "text": "DEC_LIST", "parent": 140, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 8}}, {"id": 142, "type": "type_descriptor", "text": "Device", "parent": 140, "children": [143], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 17}}, {"id": 143, "type": "type_identifier", "text": "Device", "parent": 142, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 17}}, {"id": 144, "type": "function_declarator", "text": "DEC_PLIST ( Device )\n\n\nstruct thread_st", "parent": 139, "children": [145, 146, 149, 150], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 53, "column": 16}}, {"id": 145, "type": "identifier", "text": "DEC_PLIST", "parent": 144, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 9}}, {"id": 146, "type": "parameter_list", "text": "( Device )", "parent": 144, "children": [147], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 20}}, {"id": 147, "type": "parameter_declaration", "text": "Device", "parent": 146, "children": [148], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 18}}, {"id": 148, "type": "type_identifier", "text": "Device", "parent": 147, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 18}}, {"id": 149, "type": "identifier", "text": "struct", "parent": 144, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 150, "type": "identifier", "text": "thread_st", "parent": 144, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 16}}, {"id": 151, "type": "declaration", "text": "int id;", "parent": 139, "children": [152, 153], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 152, "type": "primitive_type", "text": "int", "parent": 151, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 7}}, {"id": 153, "type": "identifier", "text": "id", "parent": 151, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 10}}, {"id": 154, "type": "declaration", "text": "DevicePList device_plist;", "parent": 139, "children": [155, 156], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 29}}, {"id": 155, "type": "type_identifier", "text": "DevicePList", "parent": 154, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 15}}, {"id": 156, "type": "identifier", "text": "device_plist", "parent": 154, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 28}}, {"id": 157, "type": "declaration", "text": "pthread_t thread;", "parent": 139, "children": [158, 159], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 21}}, {"id": 158, "type": "type_identifier", "text": "pthread_t", "parent": 157, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 13}}, {"id": 159, "type": "identifier", "text": "thread", "parent": 157, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 20}}, {"id": 160, "type": "declaration", "text": "struct timespec cycle_duration;", "parent": 139, "children": [161, 164], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 35}}, {"id": 161, "type": "struct_specifier", "text": "struct timespec", "parent": 160, "children": [162, 163], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 19}}, {"id": 162, "type": "struct", "text": "struct", "parent": 161, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 163, "type": "type_identifier", "text": "timespec", "parent": 161, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 19}}, {"id": 164, "type": "identifier", "text": "cycle_duration", "parent": 160, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 34}}, {"id": 165, "type": "type_definition", "text": "typedef struct thread_st Thread;", "parent": 0, "children": [166, 167, 170], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 32}}, {"id": 166, "type": "typedef", "text": "typedef", "parent": 165, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 167, "type": "struct_specifier", "text": "struct thread_st", "parent": 165, "children": [168, 169], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 24}}, {"id": 168, "type": "struct", "text": "struct", "parent": 167, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 169, "type": "type_identifier", "text": "thread_st", "parent": 167, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 24}}, {"id": 170, "type": "type_identifier", "text": "Thread", "parent": 165, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 31}}, {"id": 171, "type": "declaration", "text": "DEC_LIST ( Thread )\n\nextern int readSettings();", "parent": 0, "children": [172, 176, 178, 180], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 62, "column": 26}}, {"id": 172, "type": "macro_type_specifier", "text": "DEC_LIST ( Thread )", "parent": 171, "children": [173, 174], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 19}}, {"id": 173, "type": "identifier", "text": "DEC_LIST", "parent": 172, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 174, "type": "type_descriptor", "text": "Thread", "parent": 172, "children": [175], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 17}}, {"id": 175, "type": "type_identifier", "text": "Thread", "parent": 174, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 17}}, {"id": 176, "type": "storage_class_specifier", "text": "extern", "parent": 171, "children": [177], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}, {"id": 177, "type": "extern", "text": "extern", "parent": 176, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}, {"id": 178, "type": "ERROR", "text": "int", "parent": 171, "children": [179], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 10}}, {"id": 179, "type": "identifier", "text": "int", "parent": 178, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 10}}, {"id": 180, "type": "function_declarator", "text": "readSettings()", "parent": 171, "children": [181, 182], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 25}}, {"id": 181, "type": "identifier", "text": "readSettings", "parent": 180, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 23}}, {"id": 182, "type": "parameter_list", "text": "()", "parent": 180, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 25}}, {"id": 183, "type": "declaration", "text": "extern void serverRun ( int *state, int init_state );", "parent": 0, "children": [184, 186, 187], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 53}}, {"id": 184, "type": "storage_class_specifier", "text": "extern", "parent": 183, "children": [185], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 185, "type": "extern", "text": "extern", "parent": 184, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 186, "type": "primitive_type", "text": "void", "parent": 183, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 11}}, {"id": 187, "type": "function_declarator", "text": "serverRun ( int *state, int init_state )", "parent": 183, "children": [188, 189], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 52}}, {"id": 188, "type": "identifier", "text": "serverRun", "parent": 187, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 21}}, {"id": 189, "type": "parameter_list", "text": "( int *state, int init_state )", "parent": 187, "children": [190, 195], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 52}}, {"id": 190, "type": "parameter_declaration", "text": "int *state", "parent": 189, "children": [191, 192], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 34}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 190, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 27}}, {"id": 192, "type": "pointer_declarator", "text": "*state", "parent": 190, "children": [193, 194], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 34}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 29}}, {"id": 194, "type": "identifier", "text": "state", "parent": 192, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 34}}, {"id": 195, "type": "parameter_declaration", "text": "int init_state", "parent": 189, "children": [196, 197], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 50}}, {"id": 196, "type": "primitive_type", "text": "int", "parent": 195, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 39}}, {"id": 197, "type": "identifier", "text": "init_state", "parent": 195, "children": [], "start_point": {"row": 64, "column": 40}, "end_point": {"row": 64, "column": 50}}, {"id": 198, "type": "declaration", "text": "extern void *threadFunction ( void *arg );", "parent": 0, "children": [199, 201, 202], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 42}}, {"id": 199, "type": "storage_class_specifier", "text": "extern", "parent": 198, "children": [200], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 200, "type": "extern", "text": "extern", "parent": 199, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 201, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 11}}, {"id": 202, "type": "pointer_declarator", "text": "*threadFunction ( void *arg )", "parent": 198, "children": [203, 204], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 41}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 204, "type": "function_declarator", "text": "threadFunction ( void *arg )", "parent": 202, "children": [205, 206], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 41}}, {"id": 205, "type": "identifier", "text": "threadFunction", "parent": 204, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 27}}, {"id": 206, "type": "parameter_list", "text": "( void *arg )", "parent": 204, "children": [207], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 41}}, {"id": 207, "type": "parameter_declaration", "text": "void *arg", "parent": 206, "children": [208, 209], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 39}}, {"id": 208, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 34}}, {"id": 209, "type": "pointer_declarator", "text": "*arg", "parent": 207, "children": [210, 211], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 39}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 36}}, {"id": 211, "type": "identifier", "text": "arg", "parent": 209, "children": [], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 39}}, {"id": 212, "type": "declaration", "text": "extern int initApp();", "parent": 0, "children": [213, 215, 216], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 21}}, {"id": 213, "type": "storage_class_specifier", "text": "extern", "parent": 212, "children": [214], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 214, "type": "extern", "text": "extern", "parent": 213, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 215, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 10}}, {"id": 216, "type": "function_declarator", "text": "initApp()", "parent": 212, "children": [217, 218], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 20}}, {"id": 217, "type": "identifier", "text": "initApp", "parent": 216, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 18}}, {"id": 218, "type": "parameter_list", "text": "()", "parent": 216, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 20}}, {"id": 219, "type": "declaration", "text": "extern int initData();", "parent": 0, "children": [220, 222, 223], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 22}}, {"id": 220, "type": "storage_class_specifier", "text": "extern", "parent": 219, "children": [221], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 221, "type": "extern", "text": "extern", "parent": 220, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 219, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 10}}, {"id": 223, "type": "function_declarator", "text": "initData()", "parent": 219, "children": [224, 225], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 21}}, {"id": 224, "type": "identifier", "text": "initData", "parent": 223, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 19}}, {"id": 225, "type": "parameter_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 21}}, {"id": 226, "type": "declaration", "text": "extern void freeData();", "parent": 0, "children": [227, 229, 230], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 23}}, {"id": 227, "type": "storage_class_specifier", "text": "extern", "parent": 226, "children": [228], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 228, "type": "extern", "text": "extern", "parent": 227, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 229, "type": "primitive_type", "text": "void", "parent": 226, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 11}}, {"id": 230, "type": "function_declarator", "text": "freeData()", "parent": 226, "children": [231, 232], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 22}}, {"id": 231, "type": "identifier", "text": "freeData", "parent": 230, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 20}}, {"id": 232, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 22}}, {"id": 233, "type": "declaration", "text": "extern void freeApp();", "parent": 0, "children": [234, 236, 237], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 22}}, {"id": 234, "type": "storage_class_specifier", "text": "extern", "parent": 233, "children": [235], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 235, "type": "extern", "text": "extern", "parent": 234, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 236, "type": "primitive_type", "text": "void", "parent": 233, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 11}}, {"id": 237, "type": "function_declarator", "text": "freeApp()", "parent": 233, "children": [238, 239], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 21}}, {"id": 238, "type": "identifier", "text": "freeApp", "parent": 237, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 19}}, {"id": 239, "type": "parameter_list", "text": "()", "parent": 237, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 21}}, {"id": 240, "type": "declaration", "text": "extern void exit_nicely();", "parent": 0, "children": [241, 243, 244], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 26}}, {"id": 241, "type": "storage_class_specifier", "text": "extern", "parent": 240, "children": [242], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 242, "type": "extern", "text": "extern", "parent": 241, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 240, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 11}}, {"id": 244, "type": "function_declarator", "text": "exit_nicely()", "parent": 240, "children": [245, 246], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 25}}, {"id": 245, "type": "identifier", "text": "exit_nicely", "parent": 244, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 23}}, {"id": 246, "type": "parameter_list", "text": "()", "parent": 244, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 25}}, {"id": 247, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 6}}]}, "node_categories": {"declarations": {"functions": [117, 139, 144, 180, 187, 204, 216, 223, 230, 237, 244], "variables": [93, 97, 100, 103, 108, 113, 125, 128, 133, 147, 151, 154, 157, 160, 165, 171, 183, 190, 195, 198, 207, 212, 219, 226, 233, 240], "classes": [95, 96, 161, 162, 167, 168, 176, 184, 199, 213, 220, 227, 234, 241], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 35, 39, 41, 42, 43, 46, 48, 49, 50, 51, 54, 56, 59, 63, 67, 71, 75, 79, 83, 87, 91, 99, 101, 102, 104, 107, 109, 112, 114, 115, 116, 118, 119, 121, 122, 124, 127, 129, 132, 134, 137, 138, 140, 141, 143, 145, 148, 149, 150, 153, 155, 156, 158, 159, 163, 164, 169, 170, 172, 173, 175, 179, 181, 188, 194, 197, 205, 211, 217, 224, 231, 238, 245, 247], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 117, "universal_type": "function", "name": "{", "text_snippet": "DEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n}"}, {"node_id": 139, "universal_type": "function", "name": "thread_st", "text_snippet": "DEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_pli"}, {"node_id": 144, "universal_type": "function", "name": "thread_st", "text_snippet": "DEC_PLIST ( Device )\n\n\nstruct thread_st"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "readSettings()"}, {"node_id": 187, "universal_type": "function", "name": "*state,", "text_snippet": "serverRun ( int *state, int init_state )"}, {"node_id": 204, "universal_type": "function", "name": "*arg", "text_snippet": "threadFunction ( void *arg )"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "initApp()"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "initData()"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "freeData()"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "freeApp()"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "exit_nicely()"}], "class_declarations": [{"node_id": 95, "universal_type": "class", "name": "{", "text_snippet": "struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mut"}, {"node_id": 96, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 161, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 162, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 167, "universal_type": "class", "name": "thread_st", "text_snippet": "struct thread_st"}, {"node_id": 168, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 176, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 184, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 199, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 213, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 220, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 227, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 234, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 241, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"lib/app.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"lib/timef.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"lib/acp/main.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"lib/acp/app.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"lib/udp.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"lib/tsv.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"lib/lcorrection.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"lib/device/dht22.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"lib/filter/common.h\"\n"}, {"node_id": 31, "text": "#include"}]}, "original_source_code": "\n#ifndef GWU22PC_H\n#define GWU22PC_H\n\n#include \"lib/app.h\"\n#include \"lib/timef.h\"\n#include \"lib/acp/main.h\"\n#include \"lib/acp/app.h\"\n#include \"lib/udp.h\"\n#include \"lib/tsv.h\"\n#include \"lib/lcorrection.h\"\n#include \"lib/device/dht22.h\"\n#include \"lib/filter/common.h\"\n\n#define APP_NAME gwu22pc\n#define APP_NAME_STR TOSTRING(APP_NAME)\n\n#ifdef MODE_FULL\n#define CONF_DIR \"/etc/controller/\" APP_NAME_STR \"/\"\n#endif\n#ifndef MODE_FULL\n#define CONF_DIR \"./config/\"\n#endif\n#define CONF_MAIN_FILE CONF_DIR \"main.tsv\"\n#define CONF_DEVICE_FILE CONF_DIR \"device.tsv\"\n#define CONF_THREAD_FILE CONF_DIR \"thread.tsv\"\n#define CONF_THREAD_DEVICE_FILE CONF_DIR \"thread_device.tsv\"\n#define CONF_LCORRECTION_FILE CONF_DIR \"lcorrection.tsv\"\n#define CONF_FILTER_MA_FILE CONF_DIR \"filter_ma.tsv\"\n#define CONF_FILTER_EXP_FILE CONF_DIR \"filter_exp.tsv\"\n#define CONF_CHANNEL_FILTER_FILE CONF_DIR \"channel_filter.tsv\"\n#define CONF_CHANNEL_LCORRECTION_FILE CONF_DIR \"channel_lcorrection.tsv\"\n\n\ntypedef struct {\n int id;\n FTS result;\n LCorrection *lcorrection;\n Filter *filter;\n Mutex mutex;\n} Channel;\nDEC_LIST ( Channel )\n\n\ntypedef struct {\n int pin;\n Channel *temp;\n Channel *hum;\n} Device;\nDEC_LIST ( Device )\nDEC_PLIST ( Device )\n\n\nstruct thread_st {\n int id;\n DevicePList device_plist;\n pthread_t thread;\n struct timespec cycle_duration;\n};\ntypedef struct thread_st Thread;\nDEC_LIST ( Thread )\n\nextern int readSettings();\n\nextern void serverRun ( int *state, int init_state );\n\nextern void *threadFunction ( void *arg );\n\nextern int initApp();\n\nextern int initData();\n\nextern void freeData();\n\nextern void freeApp();\n\nextern void exit_nicely();\n\n#endif\n\n"}
81,065
c
/* @(#)s_expm1.c 1.5 04/04/22 */ /* * ==================================================== * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. * * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. * ==================================================== */ /* fd_expm1(x) * Returns exp(x)-1, the exponential of x minus 1. * * Method * 1. Argument reduction: * Given x, find r and integer k such that * * x = k*ln2 + r, |r| <= 0.5*ln2 ~ 0.34658 * * Here a correction term c will be computed to compensate * the error in r when rounded to a floating-point number. * * 2. Approximating expm1(r) by a special rational function on * the interval [0,0.34658]: * Since * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 - r^4/360 + ... * we define R1(r*r) by * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 * R1(r*r) * That is, * R1(r**2) = 6/r *((exp(r)+1)/(exp(r)-1) - 2/r) * = 6/r * ( 1 + 2.0*(1/(exp(r)-1) - 1/r)) * = 1 - r^2/60 + r^4/2520 - r^6/100800 + ... * We use a special Remes algorithm on [0,0.347] to generate * a polynomial of degree 5 in r*r to approximate R1. The * maximum error of this polynomial approximation is bounded * by 2**-61. In other words, * R1(z) ~ 1.0 + Q1*z + Q2*z**2 + Q3*z**3 + Q4*z**4 + Q5*z**5 * where Q1 = -1.6666666666666567384E-2, * Q2 = 3.9682539681370365873E-4, * Q3 = -9.9206344733435987357E-6, * Q4 = 2.5051361420808517002E-7, * Q5 = -6.2843505682382617102E-9; * (where z=r*r, and the values of Q1 to Q5 are listed below) * with error bounded by * | 5 | -61 * | 1.0+Q1*z+...+Q5*z - R1(z) | <= 2 * | | * * expm1(r) = exp(r)-1 is then computed by the following * specific way which minimize the accumulation rounding error: * 2 3 * r r [ 3 - (R1 + R1*r/2) ] * expm1(r) = r + --- + --- * [--------------------] * 2 2 [ 6 - r*(3 - R1*r/2) ] * * To compensate the error in the argument reduction, we use * expm1(r+c) = expm1(r) + c + expm1(r)*c * ~ expm1(r) + c + r*c * Thus c+r*c will be added in as the correction terms for * expm1(r+c). Now rearrange the term to avoid optimization * screw up: * ( 2 2 ) * ({ ( r [ R1 - (3 - R1*r/2) ] ) } r ) * expm1(r+c)~r - ({r*(--- * [--------------------]-c)-c} - --- ) * ({ ( 2 [ 6 - r*(3 - R1*r/2) ] ) } 2 ) * ( ) * * = r - E * 3. Scale back to obtain expm1(x): * From step 1, we have * expm1(x) = either 2^k*[expm1(r)+1] - 1 * = or 2^k*[expm1(r) + (1-2^-k)] * 4. Implementation notes: * (A). To save one multiplication, we scale the coefficient Qi * to Qi*2^i, and replace z by (x^2)/2. * (B). To achieve maximum accuracy, we compute expm1(x) by * (i) if x < -56*ln2, return -1.0, (raise inexact if x!=inf) * (ii) if k=0, return r-E * (iii) if k=-1, return 0.5*(r-E)-0.5 * (iv) if k=1 if r < -0.25, return 2*((r+0.5)- E) * else return 1.0+2.0*(r-E); * (v) if (k<-2||k>56) return 2^k(1-(E-r)) - 1 (or exp(x)-1) * (vi) if k <= 20, return 2^k((1-2^-k)-(E-r)), else * (vii) return 2^k(1-((E+2^-k)-r)) * * Special cases: * expm1(INF) is INF, expm1(NaN) is NaN; * expm1(-INF) is -1, and * for finite argument, only expm1(0)=0 is exact. * * Accuracy: * according to an error analysis, the error is always less than * 1 ulp (unit in the last place). * * Misc. info. * For IEEE double * if x > 7.09782712893383973096e+02 then expm1(x) overflow * * Constants: * The hexadecimal values are the intended ones for the following * constants. The decimal values may be used, provided that the * compiler will convert from decimal to binary accurately enough * to produce the hexadecimal values shown. */ #include "fdlibm.h" #ifdef __STDC__ static const double #else static double #endif one = 1.0, huge = 1.0e+300, tiny = 1.0e-300, o_threshold = 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */ ln2_hi = 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */ ln2_lo = 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */ invln2 = 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */ /* scaled coefficients related to expm1 */ Q1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */ Q2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */ Q3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */ Q4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */ Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */ #ifdef __STDC__ double fd_expm1(double x) #else double fd_expm1(x) double x; #endif { double y,hi,lo,c=0,t,e,hxs,hfx,r1; int k,xsb; unsigned hx; hx = fd___HI(x); /* high word of x */ xsb = hx&0x80000000; /* sign bit of x */ if(xsb==0) y=x; else y= -x; /* y = |x| */ hx &= 0x7fffffff; /* high word of |x| */ /* filter out huge and non-finite argument */ if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */ if(hx >= 0x40862E42) { /* if |x|>=709.78... */ if(hx>=0x7ff00000) { if(((hx&0xfffff)|fd___LO(x))!=0) return x+x; /* NaN */ else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */ } if(x > o_threshold) return huge*huge; /* overflow */ } if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */ if(x+tiny<0.0) /* raise inexact */ return tiny-one; /* return -1 */ } } /* argument reduction */ if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */ if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ if(xsb==0) {hi = x - ln2_hi; lo = ln2_lo; k = 1;} else {hi = x + ln2_hi; lo = -ln2_lo; k = -1;} } else { k = invln2*x+((xsb==0)?0.5:-0.5); t = k; hi = x - t*ln2_hi; /* t*ln2_hi is exact here */ lo = t*ln2_lo; } x = hi - lo; c = (hi-x)-lo; } else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */ t = huge+x; /* return x with inexact flags when x!=0 */ return x - (t-(huge+x)); } else k = 0; /* x is now in primary range */ hfx = 0.5*x; hxs = x*hfx; r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))); t = 3.0-r1*hfx; e = hxs*((r1-t)/(6.0 - x*t)); if(k==0) return x - (x*e-hxs); /* c is 0 */ else { e = (x*(e-c)-c); e -= hxs; if(k== -1) return 0.5*(x-e)-0.5; if(k==1) { if(x < -0.25) return -2.0*(e-(x+0.5)); else return one+2.0*(x-e); } if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */ y = one-(e-x); fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */ return y-one; } t = one; if(k<20) { fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */ y = t-(e-x); fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */ } else { fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */ y = x-(e+t); y += one; fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */ } } return y; }
34.19
207
(translation_unit) "/* @(#)s_expm1.c 1.5 04/04/22 */\n/*\n * ====================================================\n * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.\n *\n * Permission to use, copy, modify, and distribute this\n * software is freely granted, provided that this notice\n * is preserved.\n * ====================================================\n */\n\n/* fd_expm1(x)\n * Returns exp(x)-1, the exponential of x minus 1.\n *\n * Method\n * 1. Argument reduction:\n * Given x, find r and integer k such that\n *\n * x = k*ln2 + r, |r| <= 0.5*ln2 ~ 0.34658\n *\n * Here a correction term c will be computed to compensate\n * the error in r when rounded to a floating-point number.\n *\n * 2. Approximating expm1(r) by a special rational function on\n * the interval [0,0.34658]:\n * Since\n * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 - r^4/360 + ...\n * we define R1(r*r) by\n * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 * R1(r*r)\n * That is,\n * R1(r**2) = 6/r *((exp(r)+1)/(exp(r)-1) - 2/r)\n * = 6/r * ( 1 + 2.0*(1/(exp(r)-1) - 1/r))\n * = 1 - r^2/60 + r^4/2520 - r^6/100800 + ...\n * We use a special Remes algorithm on [0,0.347] to generate\n * a polynomial of degree 5 in r*r to approximate R1. The\n * maximum error of this polynomial approximation is bounded\n * by 2**-61. In other words,\n * R1(z) ~ 1.0 + Q1*z + Q2*z**2 + Q3*z**3 + Q4*z**4 + Q5*z**5\n * where Q1 = -1.6666666666666567384E-2,\n * Q2 = 3.9682539681370365873E-4,\n * Q3 = -9.9206344733435987357E-6,\n * Q4 = 2.5051361420808517002E-7,\n * Q5 = -6.2843505682382617102E-9;\n * (where z=r*r, and the values of Q1 to Q5 are listed below)\n * with error bounded by\n * | 5 | -61\n * | 1.0+Q1*z+...+Q5*z - R1(z) | <= 2\n * | |\n *\n * expm1(r) = exp(r)-1 is then computed by the following\n * specific way which minimize the accumulation rounding error:\n * 2 3\n * r r [ 3 - (R1 + R1*r/2) ]\n * expm1(r) = r + --- + --- * [--------------------]\n * 2 2 [ 6 - r*(3 - R1*r/2) ]\n *\n * To compensate the error in the argument reduction, we use\n * expm1(r+c) = expm1(r) + c + expm1(r)*c\n * ~ expm1(r) + c + r*c\n * Thus c+r*c will be added in as the correction terms for\n * expm1(r+c). Now rearrange the term to avoid optimization\n * screw up:\n * ( 2 2 )\n * ({ ( r [ R1 - (3 - R1*r/2) ] ) } r )\n * expm1(r+c)~r - ({r*(--- * [--------------------]-c)-c} - --- )\n * ({ ( 2 [ 6 - r*(3 - R1*r/2) ] ) } 2 )\n * ( )\n *\n * = r - E\n * 3. Scale back to obtain expm1(x):\n * From step 1, we have\n * expm1(x) = either 2^k*[expm1(r)+1] - 1\n * = or 2^k*[expm1(r) + (1-2^-k)]\n * 4. Implementation notes:\n * (A). To save one multiplication, we scale the coefficient Qi\n * to Qi*2^i, and replace z by (x^2)/2.\n * (B). To achieve maximum accuracy, we compute expm1(x) by\n * (i) if x < -56*ln2, return -1.0, (raise inexact if x!=inf)\n * (ii) if k=0, return r-E\n * (iii) if k=-1, return 0.5*(r-E)-0.5\n * (iv) if k=1 if r < -0.25, return 2*((r+0.5)- E)\n * else return 1.0+2.0*(r-E);\n * (v) if (k<-2||k>56) return 2^k(1-(E-r)) - 1 (or exp(x)-1)\n * (vi) if k <= 20, return 2^k((1-2^-k)-(E-r)), else\n * (vii) return 2^k(1-((E+2^-k)-r))\n *\n * Special cases:\n * expm1(INF) is INF, expm1(NaN) is NaN;\n * expm1(-INF) is -1, and\n * for finite argument, only expm1(0)=0 is exact.\n *\n * Accuracy:\n * according to an error analysis, the error is always less than\n * 1 ulp (unit in the last place).\n *\n * Misc. info.\n * For IEEE double\n * if x > 7.09782712893383973096e+02 then expm1(x) overflow\n *\n * Constants:\n * The hexadecimal values are the intended ones for the following\n * constants. The decimal values may be used, provided that the\n * compiler will convert from decimal to binary accurately enough\n * to produce the hexadecimal values shown.\n */\n\n#include "fdlibm.h"\n\n#ifdef __STDC__\nstatic const double\n#else\nstatic double\n#endif\none = 1.0,\nhuge = 1.0e+300,\ntiny = 1.0e-300,\no_threshold = 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi = 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo = 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2 = 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n /* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */\n\n#ifdef __STDC__\n double fd_expm1(double x)\n#else\n double fd_expm1(x)\n double x;\n#endif\n{\n double y,hi,lo,c=0,t,e,hxs,hfx,r1;\n int k,xsb;\n unsigned hx;\n\n hx = fd___HI(x); /* high word of x */\n xsb = hx&0x80000000; /* sign bit of x */\n if(xsb==0) y=x; else y= -x; /* y = |x| */\n hx &= 0x7fffffff; /* high word of |x| */\n\n /* filter out huge and non-finite argument */\n if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }\n\n /* argument reduction */\n if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;\n\n /* x is now in primary range */\n hfx = 0.5*x;\n hxs = x*hfx;\n r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n t = 3.0-r1*hfx;\n e = hxs*((r1-t)/(6.0 - x*t));\n if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }\n return y;\n}\n" (comment) "/* @(#)s_expm1.c 1.5 04/04/22 */" (comment) "/*\n * ====================================================\n * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.\n *\n * Permission to use, copy, modify, and distribute this\n * software is freely granted, provided that this notice\n * is preserved.\n * ====================================================\n */" (comment) "/* fd_expm1(x)\n * Returns exp(x)-1, the exponential of x minus 1.\n *\n * Method\n * 1. Argument reduction:\n * Given x, find r and integer k such that\n *\n * x = k*ln2 + r, |r| <= 0.5*ln2 ~ 0.34658\n *\n * Here a correction term c will be computed to compensate\n * the error in r when rounded to a floating-point number.\n *\n * 2. Approximating expm1(r) by a special rational function on\n * the interval [0,0.34658]:\n * Since\n * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 - r^4/360 + ...\n * we define R1(r*r) by\n * r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 * R1(r*r)\n * That is,\n * R1(r**2) = 6/r *((exp(r)+1)/(exp(r)-1) - 2/r)\n * = 6/r * ( 1 + 2.0*(1/(exp(r)-1) - 1/r))\n * = 1 - r^2/60 + r^4/2520 - r^6/100800 + ...\n * We use a special Remes algorithm on [0,0.347] to generate\n * a polynomial of degree 5 in r*r to approximate R1. The\n * maximum error of this polynomial approximation is bounded\n * by 2**-61. In other words,\n * R1(z) ~ 1.0 + Q1*z + Q2*z**2 + Q3*z**3 + Q4*z**4 + Q5*z**5\n * where Q1 = -1.6666666666666567384E-2,\n * Q2 = 3.9682539681370365873E-4,\n * Q3 = -9.9206344733435987357E-6,\n * Q4 = 2.5051361420808517002E-7,\n * Q5 = -6.2843505682382617102E-9;\n * (where z=r*r, and the values of Q1 to Q5 are listed below)\n * with error bounded by\n * | 5 | -61\n * | 1.0+Q1*z+...+Q5*z - R1(z) | <= 2\n * | |\n *\n * expm1(r) = exp(r)-1 is then computed by the following\n * specific way which minimize the accumulation rounding error:\n * 2 3\n * r r [ 3 - (R1 + R1*r/2) ]\n * expm1(r) = r + --- + --- * [--------------------]\n * 2 2 [ 6 - r*(3 - R1*r/2) ]\n *\n * To compensate the error in the argument reduction, we use\n * expm1(r+c) = expm1(r) + c + expm1(r)*c\n * ~ expm1(r) + c + r*c\n * Thus c+r*c will be added in as the correction terms for\n * expm1(r+c). Now rearrange the term to avoid optimization\n * screw up:\n * ( 2 2 )\n * ({ ( r [ R1 - (3 - R1*r/2) ] ) } r )\n * expm1(r+c)~r - ({r*(--- * [--------------------]-c)-c} - --- )\n * ({ ( 2 [ 6 - r*(3 - R1*r/2) ] ) } 2 )\n * ( )\n *\n * = r - E\n * 3. Scale back to obtain expm1(x):\n * From step 1, we have\n * expm1(x) = either 2^k*[expm1(r)+1] - 1\n * = or 2^k*[expm1(r) + (1-2^-k)]\n * 4. Implementation notes:\n * (A). To save one multiplication, we scale the coefficient Qi\n * to Qi*2^i, and replace z by (x^2)/2.\n * (B). To achieve maximum accuracy, we compute expm1(x) by\n * (i) if x < -56*ln2, return -1.0, (raise inexact if x!=inf)\n * (ii) if k=0, return r-E\n * (iii) if k=-1, return 0.5*(r-E)-0.5\n * (iv) if k=1 if r < -0.25, return 2*((r+0.5)- E)\n * else return 1.0+2.0*(r-E);\n * (v) if (k<-2||k>56) return 2^k(1-(E-r)) - 1 (or exp(x)-1)\n * (vi) if k <= 20, return 2^k((1-2^-k)-(E-r)), else\n * (vii) return 2^k(1-((E+2^-k)-r))\n *\n * Special cases:\n * expm1(INF) is INF, expm1(NaN) is NaN;\n * expm1(-INF) is -1, and\n * for finite argument, only expm1(0)=0 is exact.\n *\n * Accuracy:\n * according to an error analysis, the error is always less than\n * 1 ulp (unit in the last place).\n *\n * Misc. info.\n * For IEEE double\n * if x > 7.09782712893383973096e+02 then expm1(x) overflow\n *\n * Constants:\n * The hexadecimal values are the intended ones for the following\n * constants. The decimal values may be used, provided that the\n * compiler will convert from decimal to binary accurately enough\n * to produce the hexadecimal values shown.\n */" (preproc_include) "#include "fdlibm.h"\n" (#include) "#include" (string_literal) ""fdlibm.h"" (") """ (string_content) "fdlibm.h" (") """ (ERROR) "#ifdef __STDC__\nstatic const double\n#else\nstatic double\n#endif\none = 1.0,\nhuge = 1.0e+300,\ntiny = 1.0e-300,\no_threshold = 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi = 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo = 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2 = 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n /* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */\n\n#ifdef __STDC__\n double fd_expm1(double x)\n#else\n double fd_expm1(x)\n double x;\n#endif\n{\n double y,hi,lo,c=0,t,e,hxs,hfx,r1;\n int k,xsb;\n unsigned hx;\n\n hx = fd___HI(x); /* high word of x */\n xsb = hx&0x80000000; /* sign bit of x */\n if(xsb==0) y=x; else y= -x; /* y = |x| */\n hx &= 0x7fffffff; /* high word of |x| */\n\n /* filter out huge and non-finite argument */\n if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }\n\n /* argument reduction */\n if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;\n\n /* x is now in primary range */\n hfx = 0.5*x;\n hxs = x*hfx;\n r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n t = 3.0-r1*hfx;\n e = hxs*((r1-t)/(6.0 - x*t));\n if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }\n return y;\n}" (#ifdef) "#ifdef" (identifier) "__STDC__" (declaration) "static const double\n#else\nstatic double\n#endif\none = 1.0,\nhuge = 1.0e+300,\ntiny = 1.0e-300,\no_threshold = 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi = 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo = 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2 = 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n /* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "double" (ERROR) "#else" (#else) "#else" (storage_class_specifier) "static" (static) "static" (ERROR) "double\n#endif" (identifier) "double" (#endif) "#endif" (init_declarator) "one = 1.0" (identifier) "one" (=) "=" (number_literal) "1.0" (,) "," (init_declarator) "huge = 1.0e+300" (identifier) "huge" (=) "=" (number_literal) "1.0e+300" (,) "," (init_declarator) "tiny = 1.0e-300" (identifier) "tiny" (=) "=" (number_literal) "1.0e-300" (,) "," (init_declarator) "o_threshold = 7.09782712893383973096e+02" (identifier) "o_threshold" (=) "=" (number_literal) "7.09782712893383973096e+02" (,) "," (comment) "/* 0x40862E42, 0xFEFA39EF */" (init_declarator) "ln2_hi = 6.93147180369123816490e-01" (identifier) "ln2_hi" (=) "=" (number_literal) "6.93147180369123816490e-01" (,) "," (comment) "/* 0x3fe62e42, 0xfee00000 */" (init_declarator) "ln2_lo = 1.90821492927058770002e-10" (identifier) "ln2_lo" (=) "=" (number_literal) "1.90821492927058770002e-10" (,) "," (comment) "/* 0x3dea39ef, 0x35793c76 */" (init_declarator) "invln2 = 1.44269504088896338700e+00" (identifier) "invln2" (=) "=" (number_literal) "1.44269504088896338700e+00" (,) "," (comment) "/* 0x3ff71547, 0x652b82fe */" (comment) "/* scaled coefficients related to expm1 */" (init_declarator) "Q1 = -3.33333333333331316428e-02" (identifier) "Q1" (=) "=" (number_literal) "-3.33333333333331316428e-02" (,) "," (comment) "/* BFA11111 111110F4 */" (init_declarator) "Q2 = 1.58730158725481460165e-03" (identifier) "Q2" (=) "=" (number_literal) "1.58730158725481460165e-03" (,) "," (comment) "/* 3F5A01A0 19FE5585 */" (init_declarator) "Q3 = -7.93650757867487942473e-05" (identifier) "Q3" (=) "=" (number_literal) "-7.93650757867487942473e-05" (,) "," (comment) "/* BF14CE19 9EAADBB7 */" (init_declarator) "Q4 = 4.00821782732936239552e-06" (identifier) "Q4" (=) "=" (number_literal) "4.00821782732936239552e-06" (,) "," (comment) "/* 3ED0CFCA 86E65239 */" (init_declarator) "Q5 = -2.01099218183624371326e-07" (identifier) "Q5" (=) "=" (number_literal) "-2.01099218183624371326e-07" (;) ";" (comment) "/* BE8AFDB7 6E09C32D */" (#ifdef) "#ifdef" (identifier) "__STDC__" (declaration) "double fd_expm1(double x)" (primitive_type) "double" (function_declarator) "fd_expm1(double x)" (identifier) "fd_expm1" (parameter_list) "(double x)" (() "(" (parameter_declaration) "double x" (primitive_type) "double" (identifier) "x" ()) ")" (;) "" (preproc_else) "#else\n double fd_expm1(x)\n double x;\n#endif\n{\n double y,hi,lo,c=0,t,e,hxs,hfx,r1;\n int k,xsb;\n unsigned hx;\n\n hx = fd___HI(x); /* high word of x */\n xsb = hx&0x80000000; /* sign bit of x */\n if(xsb==0) y=x; else y= -x; /* y = |x| */\n hx &= 0x7fffffff; /* high word of |x| */\n\n /* filter out huge and non-finite argument */\n if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }\n\n /* argument reduction */\n if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;\n\n /* x is now in primary range */\n hfx = 0.5*x;\n hxs = x*hfx;\n r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n t = 3.0-r1*hfx;\n e = hxs*((r1-t)/(6.0 - x*t));\n if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }\n return y;\n}" (#else) "#else" (function_definition) "double fd_expm1(x)\n double x;\n#endif\n{\n double y,hi,lo,c=0,t,e,hxs,hfx,r1;\n int k,xsb;\n unsigned hx;\n\n hx = fd___HI(x); /* high word of x */\n xsb = hx&0x80000000; /* sign bit of x */\n if(xsb==0) y=x; else y= -x; /* y = |x| */\n hx &= 0x7fffffff; /* high word of |x| */\n\n /* filter out huge and non-finite argument */\n if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }\n\n /* argument reduction */\n if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;\n\n /* x is now in primary range */\n hfx = 0.5*x;\n hxs = x*hfx;\n r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n t = 3.0-r1*hfx;\n e = hxs*((r1-t)/(6.0 - x*t));\n if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }\n return y;\n}" (primitive_type) "double" (function_declarator) "fd_expm1(x)" (identifier) "fd_expm1" (parameter_list) "(x)" (() "(" (identifier) "x" ()) ")" (declaration) "double x;" (primitive_type) "double" (identifier) "x" (;) ";" (ERROR) "#endif" (#endif) "#endif" (compound_statement) "{\n double y,hi,lo,c=0,t,e,hxs,hfx,r1;\n int k,xsb;\n unsigned hx;\n\n hx = fd___HI(x); /* high word of x */\n xsb = hx&0x80000000; /* sign bit of x */\n if(xsb==0) y=x; else y= -x; /* y = |x| */\n hx &= 0x7fffffff; /* high word of |x| */\n\n /* filter out huge and non-finite argument */\n if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }\n\n /* argument reduction */\n if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;\n\n /* x is now in primary range */\n hfx = 0.5*x;\n hxs = x*hfx;\n r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n t = 3.0-r1*hfx;\n e = hxs*((r1-t)/(6.0 - x*t));\n if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }\n return y;\n}" ({) "{" (declaration) "double y,hi,lo,c=0,t,e,hxs,hfx,r1;" (primitive_type) "double" (identifier) "y" (,) "," (identifier) "hi" (,) "," (identifier) "lo" (,) "," (init_declarator) "c=0" (identifier) "c" (=) "=" (number_literal) "0" (,) "," (identifier) "t" (,) "," (identifier) "e" (,) "," (identifier) "hxs" (,) "," (identifier) "hfx" (,) "," (identifier) "r1" (;) ";" (declaration) "int k,xsb;" (primitive_type) "int" (identifier) "k" (,) "," (identifier) "xsb" (;) ";" (declaration) "unsigned hx;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "hx" (;) ";" (expression_statement) "hx = fd___HI(x);" (assignment_expression) "hx = fd___HI(x)" (identifier) "hx" (=) "=" (call_expression) "fd___HI(x)" (identifier) "fd___HI" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (comment) "/* high word of x */" (expression_statement) "xsb = hx&0x80000000;" (assignment_expression) "xsb = hx&0x80000000" (identifier) "xsb" (=) "=" (binary_expression) "hx&0x80000000" (identifier) "hx" (&) "&" (number_literal) "0x80000000" (;) ";" (comment) "/* sign bit of x */" (if_statement) "if(xsb==0) y=x; else y= -x;" (if) "if" (parenthesized_expression) "(xsb==0)" (() "(" (binary_expression) "xsb==0" (identifier) "xsb" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "y=x;" (assignment_expression) "y=x" (identifier) "y" (=) "=" (identifier) "x" (;) ";" (else_clause) "else y= -x;" (else) "else" (expression_statement) "y= -x;" (assignment_expression) "y= -x" (identifier) "y" (=) "=" (unary_expression) "-x" (-) "-" (identifier) "x" (;) ";" (comment) "/* y = |x| */" (expression_statement) "hx &= 0x7fffffff;" (assignment_expression) "hx &= 0x7fffffff" (identifier) "hx" (&=) "&=" (number_literal) "0x7fffffff" (;) ";" (comment) "/* high word of |x| */" (comment) "/* filter out huge and non-finite argument */" (if_statement) "if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }" (if) "if" (parenthesized_expression) "(hx >= 0x4043687A)" (() "(" (binary_expression) "hx >= 0x4043687A" (identifier) "hx" (>=) ">=" (number_literal) "0x4043687A" ()) ")" (compound_statement) "{ /* if |x|>=56*ln2 */\n if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }\n if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }\n }" ({) "{" (comment) "/* if |x|>=56*ln2 */" (if_statement) "if(hx >= 0x40862E42) { /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }" (if) "if" (parenthesized_expression) "(hx >= 0x40862E42)" (() "(" (binary_expression) "hx >= 0x40862E42" (identifier) "hx" (>=) ">=" (number_literal) "0x40862E42" ()) ")" (compound_statement) "{ /* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }\n if(x > o_threshold) return huge*huge; /* overflow */\n }" ({) "{" (comment) "/* if |x|>=709.78... */" (if_statement) "if(hx>=0x7ff00000) {\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }" (if) "if" (parenthesized_expression) "(hx>=0x7ff00000)" (() "(" (binary_expression) "hx>=0x7ff00000" (identifier) "hx" (>=) ">=" (number_literal) "0x7ff00000" ()) ")" (compound_statement) "{\n if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n }" ({) "{" (if_statement) "if(((hx&0xfffff)|fd___LO(x))!=0)\n return x+x; /* NaN */\n else return (xsb==0)? x:-1.0;" (if) "if" (parenthesized_expression) "(((hx&0xfffff)|fd___LO(x))!=0)" (() "(" (binary_expression) "((hx&0xfffff)|fd___LO(x))!=0" (parenthesized_expression) "((hx&0xfffff)|fd___LO(x))" (() "(" (binary_expression) "(hx&0xfffff)|fd___LO(x)" (parenthesized_expression) "(hx&0xfffff)" (() "(" (binary_expression) "hx&0xfffff" (identifier) "hx" (&) "&" (number_literal) "0xfffff" ()) ")" (|) "|" (call_expression) "fd___LO(x)" (identifier) "fd___LO" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return x+x;" (return) "return" (binary_expression) "x+x" (identifier) "x" (+) "+" (identifier) "x" (;) ";" (comment) "/* NaN */" (else_clause) "else return (xsb==0)? x:-1.0;" (else) "else" (return_statement) "return (xsb==0)? x:-1.0;" (return) "return" (conditional_expression) "(xsb==0)? x:-1.0" (parenthesized_expression) "(xsb==0)" (() "(" (binary_expression) "xsb==0" (identifier) "xsb" (==) "==" (number_literal) "0" ()) ")" (?) "?" (identifier) "x" (:) ":" (number_literal) "-1.0" (;) ";" (comment) "/* exp(+-inf)={inf,-1} */" (}) "}" (if_statement) "if(x > o_threshold) return huge*huge;" (if) "if" (parenthesized_expression) "(x > o_threshold)" (() "(" (binary_expression) "x > o_threshold" (identifier) "x" (>) ">" (identifier) "o_threshold" ()) ")" (return_statement) "return huge*huge;" (return) "return" (binary_expression) "huge*huge" (identifier) "huge" (*) "*" (identifier) "huge" (;) ";" (comment) "/* overflow */" (}) "}" (if_statement) "if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }" (if) "if" (parenthesized_expression) "(xsb!=0)" (() "(" (binary_expression) "xsb!=0" (identifier) "xsb" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{ /* x < -56*ln2, return -1.0 with inexact */\n if(x+tiny<0.0) /* raise inexact */\n return tiny-one; /* return -1 */\n }" ({) "{" (comment) "/* x < -56*ln2, return -1.0 with inexact */" (if_statement) "if(x+tiny<0.0) /* raise inexact */\n return tiny-one;" (if) "if" (parenthesized_expression) "(x+tiny<0.0)" (() "(" (binary_expression) "x+tiny<0.0" (binary_expression) "x+tiny" (identifier) "x" (+) "+" (identifier) "tiny" (<) "<" (number_literal) "0.0" ()) ")" (comment) "/* raise inexact */" (return_statement) "return tiny-one;" (return) "return" (binary_expression) "tiny-one" (identifier) "tiny" (-) "-" (identifier) "one" (;) ";" (comment) "/* return -1 */" (}) "}" (}) "}" (comment) "/* argument reduction */" (if_statement) "if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }\n else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;" (if) "if" (parenthesized_expression) "(hx > 0x3fd62e42)" (() "(" (binary_expression) "hx > 0x3fd62e42" (identifier) "hx" (>) ">" (number_literal) "0x3fd62e42" ()) ")" (compound_statement) "{ /* if |x| > 0.5 ln2 */\n if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }\n x = hi - lo;\n c = (hi-x)-lo;\n }" ({) "{" (comment) "/* if |x| > 0.5 ln2 */" (if_statement) "if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n } else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }" (if) "if" (parenthesized_expression) "(hx < 0x3FF0A2B2)" (() "(" (binary_expression) "hx < 0x3FF0A2B2" (identifier) "hx" (<) "<" (number_literal) "0x3FF0A2B2" ()) ")" (compound_statement) "{ /* and |x| < 1.5 ln2 */\n if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n }" ({) "{" (comment) "/* and |x| < 1.5 ln2 */" (if_statement) "if(xsb==0)\n {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}" (if) "if" (parenthesized_expression) "(xsb==0)" (() "(" (binary_expression) "xsb==0" (identifier) "xsb" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{hi = x - ln2_hi; lo = ln2_lo; k = 1;}" ({) "{" (expression_statement) "hi = x - ln2_hi;" (assignment_expression) "hi = x - ln2_hi" (identifier) "hi" (=) "=" (binary_expression) "x - ln2_hi" (identifier) "x" (-) "-" (identifier) "ln2_hi" (;) ";" (expression_statement) "lo = ln2_lo;" (assignment_expression) "lo = ln2_lo" (identifier) "lo" (=) "=" (identifier) "ln2_lo" (;) ";" (expression_statement) "k = 1;" (assignment_expression) "k = 1" (identifier) "k" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else\n {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}" (else) "else" (compound_statement) "{hi = x + ln2_hi; lo = -ln2_lo; k = -1;}" ({) "{" (expression_statement) "hi = x + ln2_hi;" (assignment_expression) "hi = x + ln2_hi" (identifier) "hi" (=) "=" (binary_expression) "x + ln2_hi" (identifier) "x" (+) "+" (identifier) "ln2_hi" (;) ";" (expression_statement) "lo = -ln2_lo;" (assignment_expression) "lo = -ln2_lo" (identifier) "lo" (=) "=" (unary_expression) "-ln2_lo" (-) "-" (identifier) "ln2_lo" (;) ";" (expression_statement) "k = -1;" (assignment_expression) "k = -1" (identifier) "k" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }" (else) "else" (compound_statement) "{\n k = invln2*x+((xsb==0)?0.5:-0.5);\n t = k;\n hi = x - t*ln2_hi; /* t*ln2_hi is exact here */\n lo = t*ln2_lo;\n }" ({) "{" (expression_statement) "k = invln2*x+((xsb==0)?0.5:-0.5);" (assignment_expression) "k = invln2*x+((xsb==0)?0.5:-0.5)" (identifier) "k" (=) "=" (binary_expression) "invln2*x+((xsb==0)?0.5:-0.5)" (binary_expression) "invln2*x" (identifier) "invln2" (*) "*" (identifier) "x" (+) "+" (parenthesized_expression) "((xsb==0)?0.5:-0.5)" (() "(" (conditional_expression) "(xsb==0)?0.5:-0.5" (parenthesized_expression) "(xsb==0)" (() "(" (binary_expression) "xsb==0" (identifier) "xsb" (==) "==" (number_literal) "0" ()) ")" (?) "?" (number_literal) "0.5" (:) ":" (number_literal) "-0.5" ()) ")" (;) ";" (expression_statement) "t = k;" (assignment_expression) "t = k" (identifier) "t" (=) "=" (identifier) "k" (;) ";" (expression_statement) "hi = x - t*ln2_hi;" (assignment_expression) "hi = x - t*ln2_hi" (identifier) "hi" (=) "=" (binary_expression) "x - t*ln2_hi" (identifier) "x" (-) "-" (binary_expression) "t*ln2_hi" (identifier) "t" (*) "*" (identifier) "ln2_hi" (;) ";" (comment) "/* t*ln2_hi is exact here */" (expression_statement) "lo = t*ln2_lo;" (assignment_expression) "lo = t*ln2_lo" (identifier) "lo" (=) "=" (binary_expression) "t*ln2_lo" (identifier) "t" (*) "*" (identifier) "ln2_lo" (;) ";" (}) "}" (expression_statement) "x = hi - lo;" (assignment_expression) "x = hi - lo" (identifier) "x" (=) "=" (binary_expression) "hi - lo" (identifier) "hi" (-) "-" (identifier) "lo" (;) ";" (expression_statement) "c = (hi-x)-lo;" (assignment_expression) "c = (hi-x)-lo" (identifier) "c" (=) "=" (binary_expression) "(hi-x)-lo" (parenthesized_expression) "(hi-x)" (() "(" (binary_expression) "hi-x" (identifier) "hi" (-) "-" (identifier) "x" ()) ")" (-) "-" (identifier) "lo" (;) ";" (}) "}" (else_clause) "else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;" (else) "else" (if_statement) "if(hx < 0x3c900000) { /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }\n else k = 0;" (if) "if" (parenthesized_expression) "(hx < 0x3c900000)" (() "(" (binary_expression) "hx < 0x3c900000" (identifier) "hx" (<) "<" (number_literal) "0x3c900000" ()) ")" (compound_statement) "{ /* when |x|<2**-54, return x */\n t = huge+x; /* return x with inexact flags when x!=0 */\n return x - (t-(huge+x));\n }" ({) "{" (comment) "/* when |x|<2**-54, return x */" (expression_statement) "t = huge+x;" (assignment_expression) "t = huge+x" (identifier) "t" (=) "=" (binary_expression) "huge+x" (identifier) "huge" (+) "+" (identifier) "x" (;) ";" (comment) "/* return x with inexact flags when x!=0 */" (return_statement) "return x - (t-(huge+x));" (return) "return" (binary_expression) "x - (t-(huge+x))" (identifier) "x" (-) "-" (parenthesized_expression) "(t-(huge+x))" (() "(" (binary_expression) "t-(huge+x)" (identifier) "t" (-) "-" (parenthesized_expression) "(huge+x)" (() "(" (binary_expression) "huge+x" (identifier) "huge" (+) "+" (identifier) "x" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else k = 0;" (else) "else" (expression_statement) "k = 0;" (assignment_expression) "k = 0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (comment) "/* x is now in primary range */" (expression_statement) "hfx = 0.5*x;" (assignment_expression) "hfx = 0.5*x" (identifier) "hfx" (=) "=" (binary_expression) "0.5*x" (number_literal) "0.5" (*) "*" (identifier) "x" (;) ";" (expression_statement) "hxs = x*hfx;" (assignment_expression) "hxs = x*hfx" (identifier) "hxs" (=) "=" (binary_expression) "x*hfx" (identifier) "x" (*) "*" (identifier) "hfx" (;) ";" (expression_statement) "r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));" (assignment_expression) "r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))" (identifier) "r1" (=) "=" (binary_expression) "one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))" (identifier) "one" (+) "+" (binary_expression) "hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))" (identifier) "hxs" (*) "*" (parenthesized_expression) "(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))" (() "(" (binary_expression) "Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))" (identifier) "Q1" (+) "+" (binary_expression) "hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))" (identifier) "hxs" (*) "*" (parenthesized_expression) "(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))" (() "(" (binary_expression) "Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))" (identifier) "Q2" (+) "+" (binary_expression) "hxs*(Q3+hxs*(Q4+hxs*Q5))" (identifier) "hxs" (*) "*" (parenthesized_expression) "(Q3+hxs*(Q4+hxs*Q5))" (() "(" (binary_expression) "Q3+hxs*(Q4+hxs*Q5)" (identifier) "Q3" (+) "+" (binary_expression) "hxs*(Q4+hxs*Q5)" (identifier) "hxs" (*) "*" (parenthesized_expression) "(Q4+hxs*Q5)" (() "(" (binary_expression) "Q4+hxs*Q5" (identifier) "Q4" (+) "+" (binary_expression) "hxs*Q5" (identifier) "hxs" (*) "*" (identifier) "Q5" ()) ")" ()) ")" ()) ")" ()) ")" (;) ";" (expression_statement) "t = 3.0-r1*hfx;" (assignment_expression) "t = 3.0-r1*hfx" (identifier) "t" (=) "=" (binary_expression) "3.0-r1*hfx" (number_literal) "3.0" (-) "-" (binary_expression) "r1*hfx" (identifier) "r1" (*) "*" (identifier) "hfx" (;) ";" (expression_statement) "e = hxs*((r1-t)/(6.0 - x*t));" (assignment_expression) "e = hxs*((r1-t)/(6.0 - x*t))" (identifier) "e" (=) "=" (binary_expression) "hxs*((r1-t)/(6.0 - x*t))" (identifier) "hxs" (*) "*" (parenthesized_expression) "((r1-t)/(6.0 - x*t))" (() "(" (binary_expression) "(r1-t)/(6.0 - x*t)" (parenthesized_expression) "(r1-t)" (() "(" (binary_expression) "r1-t" (identifier) "r1" (-) "-" (identifier) "t" ()) ")" (/) "/" (parenthesized_expression) "(6.0 - x*t)" (() "(" (binary_expression) "6.0 - x*t" (number_literal) "6.0" (-) "-" (binary_expression) "x*t" (identifier) "x" (*) "*" (identifier) "t" ()) ")" ()) ")" (;) ";" (if_statement) "if(k==0) return x - (x*e-hxs); /* c is 0 */\n else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }" (if) "if" (parenthesized_expression) "(k==0)" (() "(" (binary_expression) "k==0" (identifier) "k" (==) "==" (number_literal) "0" ()) ")" (return_statement) "return x - (x*e-hxs);" (return) "return" (binary_expression) "x - (x*e-hxs)" (identifier) "x" (-) "-" (parenthesized_expression) "(x*e-hxs)" (() "(" (binary_expression) "x*e-hxs" (binary_expression) "x*e" (identifier) "x" (*) "*" (identifier) "e" (-) "-" (identifier) "hxs" ()) ")" (;) ";" (comment) "/* c is 0 */" (else_clause) "else {\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }" (else) "else" (compound_statement) "{\n e = (x*(e-c)-c);\n e -= hxs;\n if(k== -1) return 0.5*(x-e)-0.5;\n if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }\n if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }\n t = one;\n if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }\n }" ({) "{" (expression_statement) "e = (x*(e-c)-c);" (assignment_expression) "e = (x*(e-c)-c)" (identifier) "e" (=) "=" (parenthesized_expression) "(x*(e-c)-c)" (() "(" (binary_expression) "x*(e-c)-c" (binary_expression) "x*(e-c)" (identifier) "x" (*) "*" (parenthesized_expression) "(e-c)" (() "(" (binary_expression) "e-c" (identifier) "e" (-) "-" (identifier) "c" ()) ")" (-) "-" (identifier) "c" ()) ")" (;) ";" (expression_statement) "e -= hxs;" (assignment_expression) "e -= hxs" (identifier) "e" (-=) "-=" (identifier) "hxs" (;) ";" (if_statement) "if(k== -1) return 0.5*(x-e)-0.5;" (if) "if" (parenthesized_expression) "(k== -1)" (() "(" (binary_expression) "k== -1" (identifier) "k" (==) "==" (number_literal) "-1" ()) ")" (return_statement) "return 0.5*(x-e)-0.5;" (return) "return" (binary_expression) "0.5*(x-e)-0.5" (binary_expression) "0.5*(x-e)" (number_literal) "0.5" (*) "*" (parenthesized_expression) "(x-e)" (() "(" (binary_expression) "x-e" (identifier) "x" (-) "-" (identifier) "e" ()) ")" (-) "-" (number_literal) "0.5" (;) ";" (if_statement) "if(k==1) {\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }" (if) "if" (parenthesized_expression) "(k==1)" (() "(" (binary_expression) "k==1" (identifier) "k" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);\n }" ({) "{" (if_statement) "if(x < -0.25) return -2.0*(e-(x+0.5));\n else return one+2.0*(x-e);" (if) "if" (parenthesized_expression) "(x < -0.25)" (() "(" (binary_expression) "x < -0.25" (identifier) "x" (<) "<" (number_literal) "-0.25" ()) ")" (return_statement) "return -2.0*(e-(x+0.5));" (return) "return" (binary_expression) "-2.0*(e-(x+0.5))" (number_literal) "-2.0" (*) "*" (parenthesized_expression) "(e-(x+0.5))" (() "(" (binary_expression) "e-(x+0.5)" (identifier) "e" (-) "-" (parenthesized_expression) "(x+0.5)" (() "(" (binary_expression) "x+0.5" (identifier) "x" (+) "+" (number_literal) "0.5" ()) ")" ()) ")" (;) ";" (else_clause) "else return one+2.0*(x-e);" (else) "else" (return_statement) "return one+2.0*(x-e);" (return) "return" (binary_expression) "one+2.0*(x-e)" (identifier) "one" (+) "+" (binary_expression) "2.0*(x-e)" (number_literal) "2.0" (*) "*" (parenthesized_expression) "(x-e)" (() "(" (binary_expression) "x-e" (identifier) "x" (-) "-" (identifier) "e" ()) ")" (;) ";" (}) "}" (if_statement) "if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }" (if) "if" (parenthesized_expression) "(k <= -2 || k>56)" (() "(" (binary_expression) "k <= -2 || k>56" (binary_expression) "k <= -2" (identifier) "k" (<=) "<=" (number_literal) "-2" (||) "||" (binary_expression) "k>56" (identifier) "k" (>) ">" (number_literal) "56" ()) ")" (compound_statement) "{ /* suffice to return exp(x)-1 */\n y = one-(e-x);\n fd__set_HI(&y,fd___HI(y) + (k<<20)); /* add k to y's exponent */\n return y-one;\n }" ({) "{" (comment) "/* suffice to return exp(x)-1 */" (expression_statement) "y = one-(e-x);" (assignment_expression) "y = one-(e-x)" (identifier) "y" (=) "=" (binary_expression) "one-(e-x)" (identifier) "one" (-) "-" (parenthesized_expression) "(e-x)" (() "(" (binary_expression) "e-x" (identifier) "e" (-) "-" (identifier) "x" ()) ")" (;) ";" (expression_statement) "fd__set_HI(&y,fd___HI(y) + (k<<20));" (call_expression) "fd__set_HI(&y,fd___HI(y) + (k<<20))" (identifier) "fd__set_HI" (argument_list) "(&y,fd___HI(y) + (k<<20))" (() "(" (pointer_expression) "&y" (&) "&" (identifier) "y" (,) "," (binary_expression) "fd___HI(y) + (k<<20)" (call_expression) "fd___HI(y)" (identifier) "fd___HI" (argument_list) "(y)" (() "(" (identifier) "y" ()) ")" (+) "+" (parenthesized_expression) "(k<<20)" (() "(" (binary_expression) "k<<20" (identifier) "k" (<<) "<<" (number_literal) "20" ()) ")" ()) ")" (;) ";" (comment) "/* add k to y's exponent */" (return_statement) "return y-one;" (return) "return" (binary_expression) "y-one" (identifier) "y" (-) "-" (identifier) "one" (;) ";" (}) "}" (expression_statement) "t = one;" (assignment_expression) "t = one" (identifier) "t" (=) "=" (identifier) "one" (;) ";" (if_statement) "if(k<20) {\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n } else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }" (if) "if" (parenthesized_expression) "(k<20)" (() "(" (binary_expression) "k<20" (identifier) "k" (<) "<" (number_literal) "20" ()) ")" (compound_statement) "{\n fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n y = t-(e-x);\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }" ({) "{" (expression_statement) "fd__set_HI(&t,0x3ff00000 - (0x200000>>k));" (call_expression) "fd__set_HI(&t,0x3ff00000 - (0x200000>>k))" (identifier) "fd__set_HI" (argument_list) "(&t,0x3ff00000 - (0x200000>>k))" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" (,) "," (binary_expression) "0x3ff00000 - (0x200000>>k)" (number_literal) "0x3ff00000" (-) "-" (parenthesized_expression) "(0x200000>>k)" (() "(" (binary_expression) "0x200000>>k" (number_literal) "0x200000" (>>) ">>" (identifier) "k" ()) ")" ()) ")" (;) ";" (comment) "/* t=1-2^-k */" (expression_statement) "y = t-(e-x);" (assignment_expression) "y = t-(e-x)" (identifier) "y" (=) "=" (binary_expression) "t-(e-x)" (identifier) "t" (-) "-" (parenthesized_expression) "(e-x)" (() "(" (binary_expression) "e-x" (identifier) "e" (-) "-" (identifier) "x" ()) ")" (;) ";" (expression_statement) "fd__set_HI(&y,fd___HI(y)+ (k<<20));" (call_expression) "fd__set_HI(&y,fd___HI(y)+ (k<<20))" (identifier) "fd__set_HI" (argument_list) "(&y,fd___HI(y)+ (k<<20))" (() "(" (pointer_expression) "&y" (&) "&" (identifier) "y" (,) "," (binary_expression) "fd___HI(y)+ (k<<20)" (call_expression) "fd___HI(y)" (identifier) "fd___HI" (argument_list) "(y)" (() "(" (identifier) "y" ()) ")" (+) "+" (parenthesized_expression) "(k<<20)" (() "(" (binary_expression) "k<<20" (identifier) "k" (<<) "<<" (number_literal) "20" ()) ")" ()) ")" (;) ";" (comment) "/* add k to y's exponent */" (}) "}" (else_clause) "else {\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }" (else) "else" (compound_statement) "{\n fd__set_HI(&t, ((0x3ff-k)<<20)); /* 2^-k */\n y = x-(e+t);\n y += one;\n fd__set_HI(&y,fd___HI(y)+ (k<<20)); /* add k to y's exponent */\n }" ({) "{" (expression_statement) "fd__set_HI(&t, ((0x3ff-k)<<20));" (call_expression) "fd__set_HI(&t, ((0x3ff-k)<<20))" (identifier) "fd__set_HI" (argument_list) "(&t, ((0x3ff-k)<<20))" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" (,) "," (parenthesized_expression) "((0x3ff-k)<<20)" (() "(" (binary_expression) "(0x3ff-k)<<20" (parenthesized_expression) "(0x3ff-k)" (() "(" (binary_expression) "0x3ff-k" (number_literal) "0x3ff" (-) "-" (identifier) "k" ()) ")" (<<) "<<" (number_literal) "20" ()) ")" ()) ")" (;) ";" (comment) "/* 2^-k */" (expression_statement) "y = x-(e+t);" (assignment_expression) "y = x-(e+t)" (identifier) "y" (=) "=" (binary_expression) "x-(e+t)" (identifier) "x" (-) "-" (parenthesized_expression) "(e+t)" (() "(" (binary_expression) "e+t" (identifier) "e" (+) "+" (identifier) "t" ()) ")" (;) ";" (expression_statement) "y += one;" (assignment_expression) "y += one" (identifier) "y" (+=) "+=" (identifier) "one" (;) ";" (expression_statement) "fd__set_HI(&y,fd___HI(y)+ (k<<20));" (call_expression) "fd__set_HI(&y,fd___HI(y)+ (k<<20))" (identifier) "fd__set_HI" (argument_list) "(&y,fd___HI(y)+ (k<<20))" (() "(" (pointer_expression) "&y" (&) "&" (identifier) "y" (,) "," (binary_expression) "fd___HI(y)+ (k<<20)" (call_expression) "fd___HI(y)" (identifier) "fd___HI" (argument_list) "(y)" (() "(" (identifier) "y" ()) ")" (+) "+" (parenthesized_expression) "(k<<20)" (() "(" (binary_expression) "k<<20" (identifier) "k" (<<) "<<" (number_literal) "20" ()) ")" ()) ")" (;) ";" (comment) "/* add k to y's exponent */" (}) "}" (}) "}" (return_statement) "return y;" (return) "return" (identifier) "y" (;) ";" (}) "}"
1,064
4
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 34.19, "nodes": 682, "errors": 0, "source_hash": "664d06ae8355a519e56774108b8a9576e2230133f58ffa83fa7fe071fb7fa588", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"fdlibm.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"fdlibm.h\"", "parent": 0, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 19}}, {"id": 3, "type": "ERROR", "text": "#ifdef __STDC__\nstatic const double\n#else\nstatic double\n#endif\none\t\t= 1.0,\nhuge\t\t= 1.0e+300,\ntiny\t\t= 1.0e-300,\no_threshold\t= 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi\t\t= 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo\t\t= 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2\t\t= 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n\t/* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */\n\n#ifdef __STDC__\n\tdouble fd_expm1(double x)\n#else\n\tdouble fd_expm1(x)\n\tdouble x;\n#endif\n{\n\tdouble y,hi,lo,c=0,t,e,hxs,hfx,r1;\n\tint k,xsb;\n\tunsigned hx;\n\n\thx = fd___HI(x);\t/* high word of x */\n\txsb = hx&0x80000000;\t\t/* sign bit of x */\n\tif(xsb==0) y=x; else y= -x;\t/* y = |x| */\n\thx &= 0x7fffffff;\t\t/* high word of |x| */\n\n /* filter out huge and non-finite argument */\n\tif(hx >= 0x4043687A) {\t\t\t/* if |x|>=56*ln2 */\n\t if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }\n\t if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }\n\t}\n\n /* argument reduction */\n\tif(hx > 0x3fd62e42) {\t\t/* if |x| > 0.5 ln2 */\n\t if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }\n\t x = hi - lo;\n\t c = (hi-x)-lo;\n\t}\n\telse if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;\n\n /* x is now in primary range */\n\thfx = 0.5*x;\n\thxs = x*hfx;\n\tr1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n\tt = 3.0-r1*hfx;\n\te = hxs*((r1-t)/(6.0 - x*t));\n\tif(k==0) return x - (x*e-hxs);\t\t/* c is 0 */\n\telse {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}\n\treturn y;\n}", "parent": null, "children": [4, 5, 6, 61, 62, 63, 71], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 215, "column": 1}}, {"id": 4, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 5, "type": "identifier", "text": "__STDC__", "parent": 3, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 15}}, {"id": 6, "type": "declaration", "text": "static const double\n#else\nstatic double\n#endif\none\t\t= 1.0,\nhuge\t\t= 1.0e+300,\ntiny\t\t= 1.0e-300,\no_threshold\t= 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi\t\t= 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo\t\t= 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2\t\t= 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n\t/* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07;", "parent": 3, "children": [7, 8, 10, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 126, "column": 35}}, {"id": 7, "type": "primitive_type", "text": "double", "parent": 6, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 19}}, {"id": 8, "type": "ERROR", "text": "#else", "parent": 6, "children": [9], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 5}}, {"id": 9, "type": "#else", "text": "#else", "parent": 8, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 5}}, {"id": 10, "type": "ERROR", "text": "double\n#endif", "parent": 6, "children": [11, 12], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 113, "column": 6}}, {"id": 11, "type": "identifier", "text": "double", "parent": 10, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 13}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 10, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 6}}, {"id": 13, "type": "init_declarator", "text": "one\t\t= 1.0", "parent": 6, "children": [14, 15, 16], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 10}}, {"id": 14, "type": "identifier", "text": "one", "parent": 13, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 3}}, {"id": 15, "type": "=", "text": "=", "parent": 13, "children": [], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 6}}, {"id": 16, "type": "number_literal", "text": "1.0", "parent": 13, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 10}}, {"id": 17, "type": "init_declarator", "text": "huge\t\t= 1.0e+300", "parent": 6, "children": [18, 19, 20], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 16}}, {"id": 18, "type": "identifier", "text": "huge", "parent": 17, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 4}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 7}}, {"id": 20, "type": "number_literal", "text": "1.0e+300", "parent": 17, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 16}}, {"id": 21, "type": "init_declarator", "text": "tiny\t\t= 1.0e-300", "parent": 6, "children": [22, 23, 24], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 16}}, {"id": 22, "type": "identifier", "text": "tiny", "parent": 21, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 4}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 7}}, {"id": 24, "type": "number_literal", "text": "1.0e-300", "parent": 21, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 16}}, {"id": 25, "type": "init_declarator", "text": "o_threshold\t= 7.09782712893383973096e+02", "parent": 6, "children": [26, 27, 28], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 40}}, {"id": 26, "type": "identifier", "text": "o_threshold", "parent": 25, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 11}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 13}}, {"id": 28, "type": "number_literal", "text": "7.09782712893383973096e+02", "parent": 25, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 40}}, {"id": 29, "type": "init_declarator", "text": "ln2_hi\t\t= 6.93147180369123816490e-01", "parent": 6, "children": [30, 31, 32], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 36}}, {"id": 30, "type": "identifier", "text": "ln2_hi", "parent": 29, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 6}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 9}}, {"id": 32, "type": "number_literal", "text": "6.93147180369123816490e-01", "parent": 29, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 36}}, {"id": 33, "type": "init_declarator", "text": "ln2_lo\t\t= 1.90821492927058770002e-10", "parent": 6, "children": [34, 35, 36], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 36}}, {"id": 34, "type": "identifier", "text": "ln2_lo", "parent": 33, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 9}}, {"id": 36, "type": "number_literal", "text": "1.90821492927058770002e-10", "parent": 33, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 36}}, {"id": 37, "type": "init_declarator", "text": "invln2\t\t= 1.44269504088896338700e+00", "parent": 6, "children": [38, 39, 40], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 36}}, {"id": 38, "type": "identifier", "text": "invln2", "parent": 37, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 9}}, {"id": 40, "type": "number_literal", "text": "1.44269504088896338700e+00", "parent": 37, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 36}}, {"id": 41, "type": "init_declarator", "text": "Q1 = -3.33333333333331316428e-02", "parent": 6, "children": [42, 43, 44], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 34}}, {"id": 42, "type": "identifier", "text": "Q1", "parent": 41, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 2}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 5}}, {"id": 44, "type": "number_literal", "text": "-3.33333333333331316428e-02", "parent": 41, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 34}}, {"id": 45, "type": "init_declarator", "text": "Q2 = 1.58730158725481460165e-03", "parent": 6, "children": [46, 47, 48], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 34}}, {"id": 46, "type": "identifier", "text": "Q2", "parent": 45, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 2}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 5}}, {"id": 48, "type": "number_literal", "text": "1.58730158725481460165e-03", "parent": 45, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 34}}, {"id": 49, "type": "init_declarator", "text": "Q3 = -7.93650757867487942473e-05", "parent": 6, "children": [50, 51, 52], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 34}}, {"id": 50, "type": "identifier", "text": "Q3", "parent": 49, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 2}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 5}}, {"id": 52, "type": "number_literal", "text": "-7.93650757867487942473e-05", "parent": 49, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 34}}, {"id": 53, "type": "init_declarator", "text": "Q4 = 4.00821782732936239552e-06", "parent": 6, "children": [54, 55, 56], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 34}}, {"id": 54, "type": "identifier", "text": "Q4", "parent": 53, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 2}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 56, "type": "number_literal", "text": "4.00821782732936239552e-06", "parent": 53, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 34}}, {"id": 57, "type": "init_declarator", "text": "Q5 = -2.01099218183624371326e-07", "parent": 6, "children": [58, 59, 60], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 34}}, {"id": 58, "type": "identifier", "text": "Q5", "parent": 57, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 2}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 5}}, {"id": 60, "type": "number_literal", "text": "-2.01099218183624371326e-07", "parent": 57, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 34}}, {"id": 61, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 6}}, {"id": 62, "type": "identifier", "text": "__STDC__", "parent": 3, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 15}}, {"id": 63, "type": "declaration", "text": "double fd_expm1(double x)", "parent": 3, "children": [64, 65], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 26}}, {"id": 64, "type": "primitive_type", "text": "double", "parent": 63, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 7}}, {"id": 65, "type": "function_declarator", "text": "fd_expm1(double x)", "parent": 63, "children": [66, 67], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 26}}, {"id": 66, "type": "identifier", "text": "fd_expm1", "parent": 65, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 16}}, {"id": 67, "type": "parameter_list", "text": "(double x)", "parent": 65, "children": [68], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 26}}, {"id": 68, "type": "parameter_declaration", "text": "double x", "parent": 67, "children": [69, 70], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 25}}, {"id": 69, "type": "primitive_type", "text": "double", "parent": 68, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 23}}, {"id": 70, "type": "identifier", "text": "x", "parent": 68, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 25}}, {"id": 71, "type": "preproc_else", "text": "#else\n\tdouble fd_expm1(x)\n\tdouble x;\n#endif\n{\n\tdouble y,hi,lo,c=0,t,e,hxs,hfx,r1;\n\tint k,xsb;\n\tunsigned hx;\n\n\thx = fd___HI(x);\t/* high word of x */\n\txsb = hx&0x80000000;\t\t/* sign bit of x */\n\tif(xsb==0) y=x; else y= -x;\t/* y = |x| */\n\thx &= 0x7fffffff;\t\t/* high word of |x| */\n\n /* filter out huge and non-finite argument */\n\tif(hx >= 0x4043687A) {\t\t\t/* if |x|>=56*ln2 */\n\t if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }\n\t if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }\n\t}\n\n /* argument reduction */\n\tif(hx > 0x3fd62e42) {\t\t/* if |x| > 0.5 ln2 */\n\t if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }\n\t x = hi - lo;\n\t c = (hi-x)-lo;\n\t}\n\telse if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;\n\n /* x is now in primary range */\n\thfx = 0.5*x;\n\thxs = x*hfx;\n\tr1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n\tt = 3.0-r1*hfx;\n\te = hxs*((r1-t)/(6.0 - x*t));\n\tif(k==0) return x - (x*e-hxs);\t\t/* c is 0 */\n\telse {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}\n\treturn y;\n}", "parent": 3, "children": [72, 73], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 215, "column": 1}}, {"id": 72, "type": "#else", "text": "#else", "parent": 71, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 5}}, {"id": 73, "type": "function_definition", "text": "double fd_expm1(x)\n\tdouble x;\n#endif\n{\n\tdouble y,hi,lo,c=0,t,e,hxs,hfx,r1;\n\tint k,xsb;\n\tunsigned hx;\n\n\thx = fd___HI(x);\t/* high word of x */\n\txsb = hx&0x80000000;\t\t/* sign bit of x */\n\tif(xsb==0) y=x; else y= -x;\t/* y = |x| */\n\thx &= 0x7fffffff;\t\t/* high word of |x| */\n\n /* filter out huge and non-finite argument */\n\tif(hx >= 0x4043687A) {\t\t\t/* if |x|>=56*ln2 */\n\t if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }\n\t if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }\n\t}\n\n /* argument reduction */\n\tif(hx > 0x3fd62e42) {\t\t/* if |x| > 0.5 ln2 */\n\t if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }\n\t x = hi - lo;\n\t c = (hi-x)-lo;\n\t}\n\telse if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;\n\n /* x is now in primary range */\n\thfx = 0.5*x;\n\thxs = x*hfx;\n\tr1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n\tt = 3.0-r1*hfx;\n\te = hxs*((r1-t)/(6.0 - x*t));\n\tif(k==0) return x - (x*e-hxs);\t\t/* c is 0 */\n\telse {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}\n\treturn y;\n}", "parent": 71, "children": [74, 75, 79, 82], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 215, "column": 1}}, {"id": 74, "type": "primitive_type", "text": "double", "parent": 73, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 7}}, {"id": 75, "type": "function_declarator", "text": "fd_expm1(x)", "parent": 73, "children": [76, 77], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 19}}, {"id": 76, "type": "identifier", "text": "fd_expm1", "parent": 75, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 16}}, {"id": 77, "type": "parameter_list", "text": "(x)", "parent": 75, "children": [78], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 19}}, {"id": 78, "type": "identifier", "text": "x", "parent": 77, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 18}}, {"id": 79, "type": "declaration", "text": "double x;", "parent": 73, "children": [80, 81], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 10}}, {"id": 80, "type": "primitive_type", "text": "double", "parent": 79, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 7}}, {"id": 81, "type": "identifier", "text": "x", "parent": 79, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 9}}, {"id": 82, "type": "ERROR", "text": "#endif", "parent": 73, "children": [83], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 6}}, {"id": 83, "type": "#endif", "text": "#endif", "parent": 82, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 6}}, {"id": 84, "type": "declaration", "text": "double y,hi,lo,c=0,t,e,hxs,hfx,r1;", "parent": 73, "children": [85, 86, 87, 88, 89, 93, 94, 95, 96, 97], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 35}}, {"id": 85, "type": "primitive_type", "text": "double", "parent": 84, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 7}}, {"id": 86, "type": "identifier", "text": "y", "parent": 84, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 9}}, {"id": 87, "type": "identifier", "text": "hi", "parent": 84, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 12}}, {"id": 88, "type": "identifier", "text": "lo", "parent": 84, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 15}}, {"id": 89, "type": "init_declarator", "text": "c=0", "parent": 84, "children": [90, 91, 92], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 19}}, {"id": 90, "type": "identifier", "text": "c", "parent": 89, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 17}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 18}}, {"id": 92, "type": "number_literal", "text": "0", "parent": 89, "children": [], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 19}}, {"id": 93, "type": "identifier", "text": "t", "parent": 84, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 21}}, {"id": 94, "type": "identifier", "text": "e", "parent": 84, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 23}}, {"id": 95, "type": "identifier", "text": "hxs", "parent": 84, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 27}}, {"id": 96, "type": "identifier", "text": "hfx", "parent": 84, "children": [], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 135, "column": 31}}, {"id": 97, "type": "identifier", "text": "r1", "parent": 84, "children": [], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 34}}, {"id": 98, "type": "declaration", "text": "int k,xsb;", "parent": 73, "children": [99, 100, 101], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 11}}, {"id": 99, "type": "primitive_type", "text": "int", "parent": 98, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 4}}, {"id": 100, "type": "identifier", "text": "k", "parent": 98, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 6}}, {"id": 101, "type": "identifier", "text": "xsb", "parent": 98, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 10}}, {"id": 102, "type": "declaration", "text": "unsigned hx;", "parent": 73, "children": [103, 105], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 13}}, {"id": 103, "type": "sized_type_specifier", "text": "unsigned", "parent": 102, "children": [104], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 9}}, {"id": 104, "type": "unsigned", "text": "unsigned", "parent": 103, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 9}}, {"id": 105, "type": "identifier", "text": "hx", "parent": 102, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 12}}, {"id": 106, "type": "assignment_expression", "text": "hx = fd___HI(x)", "parent": 73, "children": [107, 108, 109], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 17}}, {"id": 107, "type": "identifier", "text": "hx", "parent": 106, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 3}}, {"id": 108, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 6}}, {"id": 109, "type": "call_expression", "text": "fd___HI(x)", "parent": 106, "children": [110, 111], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 17}}, {"id": 110, "type": "identifier", "text": "fd___HI", "parent": 109, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 14}}, {"id": 111, "type": "argument_list", "text": "(x)", "parent": 109, "children": [112], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 17}}, {"id": 112, "type": "identifier", "text": "x", "parent": 111, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 16}}, {"id": 113, "type": "assignment_expression", "text": "xsb = hx&0x80000000", "parent": 73, "children": [114, 115, 116], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 20}}, {"id": 114, "type": "identifier", "text": "xsb", "parent": 113, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 4}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 140, "column": 5}, "end_point": {"row": 140, "column": 6}}, {"id": 116, "type": "binary_expression", "text": "hx&0x80000000", "parent": 113, "children": [117, 118], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 20}}, {"id": 117, "type": "identifier", "text": "hx", "parent": 116, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 9}}, {"id": 118, "type": "number_literal", "text": "0x80000000", "parent": 116, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 20}}, {"id": 119, "type": "if_statement", "text": "if(xsb==0) y=x; else y= -x;", "parent": 73, "children": [120, 129], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 28}}, {"id": 120, "type": "parenthesized_expression", "text": "(xsb==0)", "parent": 119, "children": [121], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 11}}, {"id": 121, "type": "binary_expression", "text": "xsb==0", "parent": 120, "children": [122, 123, 124], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 10}}, {"id": 122, "type": "identifier", "text": "xsb", "parent": 121, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 7}}, {"id": 123, "type": "==", "text": "==", "parent": 121, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 9}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 121, "children": [], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 10}}, {"id": 125, "type": "assignment_expression", "text": "y=x", "parent": 119, "children": [126, 127, 128], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 15}}, {"id": 126, "type": "identifier", "text": "y", "parent": 125, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 13}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 14}}, {"id": 128, "type": "identifier", "text": "x", "parent": 125, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 129, "type": "else_clause", "text": "else y= -x;", "parent": 119, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 28}}, {"id": 130, "type": "assignment_expression", "text": "y= -x", "parent": 129, "children": [131, 132, 133], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 27}}, {"id": 131, "type": "identifier", "text": "y", "parent": 130, "children": [], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 23}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 24}}, {"id": 133, "type": "unary_expression", "text": "-x", "parent": 130, "children": [134, 135], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 27}}, {"id": 134, "type": "-", "text": "-", "parent": 133, "children": [], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 26}}, {"id": 135, "type": "identifier", "text": "x", "parent": 133, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 27}}, {"id": 136, "type": "assignment_expression", "text": "hx &= 0x7fffffff", "parent": 73, "children": [137, 138, 139], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 17}}, {"id": 137, "type": "identifier", "text": "hx", "parent": 136, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 3}}, {"id": 138, "type": "&=", "text": "&=", "parent": 136, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 6}}, {"id": 139, "type": "number_literal", "text": "0x7fffffff", "parent": 136, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 17}}, {"id": 140, "type": "if_statement", "text": "if(hx >= 0x4043687A) {\t\t\t/* if |x|>=56*ln2 */\n\t if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }\n\t if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }\n\t}", "parent": 73, "children": [141], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 158, "column": 2}}, {"id": 141, "type": "parenthesized_expression", "text": "(hx >= 0x4043687A)", "parent": 140, "children": [142], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 21}}, {"id": 142, "type": "binary_expression", "text": "hx >= 0x4043687A", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 20}}, {"id": 143, "type": "identifier", "text": "hx", "parent": 142, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 6}}, {"id": 144, "type": ">=", "text": ">=", "parent": 142, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 9}}, {"id": 145, "type": "number_literal", "text": "0x4043687A", "parent": 142, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 20}}, {"id": 146, "type": "if_statement", "text": "if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }", "parent": 140, "children": [147], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 153, "column": 6}}, {"id": 147, "type": "parenthesized_expression", "text": "(hx >= 0x40862E42)", "parent": 146, "children": [148], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 25}}, {"id": 148, "type": "binary_expression", "text": "hx >= 0x40862E42", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 24}}, {"id": 149, "type": "identifier", "text": "hx", "parent": 148, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 10}}, {"id": 150, "type": ">=", "text": ">=", "parent": 148, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 13}}, {"id": 151, "type": "number_literal", "text": "0x40862E42", "parent": 148, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 24}}, {"id": 152, "type": "if_statement", "text": "if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }", "parent": 146, "children": [153], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 151, "column": 10}}, {"id": 153, "type": "parenthesized_expression", "text": "(hx>=0x7ff00000)", "parent": 152, "children": [154], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 34}}, {"id": 154, "type": "binary_expression", "text": "hx>=0x7ff00000", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 33}}, {"id": 155, "type": "identifier", "text": "hx", "parent": 154, "children": [], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 21}}, {"id": 156, "type": ">=", "text": ">=", "parent": 154, "children": [], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 23}}, {"id": 157, "type": "number_literal", "text": "0x7ff00000", "parent": 154, "children": [], "start_point": {"row": 147, "column": 23}, "end_point": {"row": 147, "column": 33}}, {"id": 158, "type": "if_statement", "text": "if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;", "parent": 152, "children": [159, 173, 178], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 150, "column": 35}}, {"id": 159, "type": "parenthesized_expression", "text": "(((hx&0xfffff)|fd___LO(x))!=0)", "parent": 158, "children": [160], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 38}}, {"id": 160, "type": "binary_expression", "text": "((hx&0xfffff)|fd___LO(x))!=0", "parent": 159, "children": [161, 171, 172], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 37}}, {"id": 161, "type": "parenthesized_expression", "text": "((hx&0xfffff)|fd___LO(x))", "parent": 160, "children": [162], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 34}}, {"id": 162, "type": "binary_expression", "text": "(hx&0xfffff)|fd___LO(x)", "parent": 161, "children": [163, 167], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 33}}, {"id": 163, "type": "parenthesized_expression", "text": "(hx&0xfffff)", "parent": 162, "children": [164], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 22}}, {"id": 164, "type": "binary_expression", "text": "hx&0xfffff", "parent": 163, "children": [165, 166], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 21}}, {"id": 165, "type": "identifier", "text": "hx", "parent": 164, "children": [], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 13}}, {"id": 166, "type": "number_literal", "text": "0xfffff", "parent": 164, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 21}}, {"id": 167, "type": "call_expression", "text": "fd___LO(x)", "parent": 162, "children": [168, 169], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 33}}, {"id": 168, "type": "identifier", "text": "fd___LO", "parent": 167, "children": [], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 30}}, {"id": 169, "type": "argument_list", "text": "(x)", "parent": 167, "children": [170], "start_point": {"row": 148, "column": 30}, "end_point": {"row": 148, "column": 33}}, {"id": 170, "type": "identifier", "text": "x", "parent": 169, "children": [], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 32}}, {"id": 171, "type": "!=", "text": "!=", "parent": 160, "children": [], "start_point": {"row": 148, "column": 34}, "end_point": {"row": 148, "column": 36}}, {"id": 172, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 37}}, {"id": 173, "type": "return_statement", "text": "return x+x;", "parent": 158, "children": [174], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 22}}, {"id": 174, "type": "binary_expression", "text": "x+x", "parent": 173, "children": [175, 176, 177], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 21}}, {"id": 175, "type": "identifier", "text": "x", "parent": 174, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 19}}, {"id": 176, "type": "+", "text": "+", "parent": 174, "children": [], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 20}}, {"id": 177, "type": "identifier", "text": "x", "parent": 174, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 21}}, {"id": 178, "type": "else_clause", "text": "else return (xsb==0)? x:-1.0;", "parent": 158, "children": [179], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 35}}, {"id": 179, "type": "return_statement", "text": "return (xsb==0)? x:-1.0;", "parent": 178, "children": [180], "start_point": {"row": 150, "column": 11}, "end_point": {"row": 150, "column": 35}}, {"id": 180, "type": "conditional_expression", "text": "(xsb==0)? x:-1.0", "parent": 179, "children": [181, 186, 187, 188], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 34}}, {"id": 181, "type": "parenthesized_expression", "text": "(xsb==0)", "parent": 180, "children": [182], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 26}}, {"id": 182, "type": "binary_expression", "text": "xsb==0", "parent": 181, "children": [183, 184, 185], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 25}}, {"id": 183, "type": "identifier", "text": "xsb", "parent": 182, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 22}}, {"id": 184, "type": "==", "text": "==", "parent": 182, "children": [], "start_point": {"row": 150, "column": 22}, "end_point": {"row": 150, "column": 24}}, {"id": 185, "type": "number_literal", "text": "0", "parent": 182, "children": [], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 25}}, {"id": 186, "type": "?", "text": "?", "parent": 180, "children": [], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 27}}, {"id": 187, "type": "identifier", "text": "x", "parent": 180, "children": [], "start_point": {"row": 150, "column": 28}, "end_point": {"row": 150, "column": 29}}, {"id": 188, "type": "number_literal", "text": "-1.0", "parent": 180, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 34}}, {"id": 189, "type": "if_statement", "text": "if(x > o_threshold) return huge*huge;", "parent": 146, "children": [190, 195], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 46}}, {"id": 190, "type": "parenthesized_expression", "text": "(x > o_threshold)", "parent": 189, "children": [191], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 28}}, {"id": 191, "type": "binary_expression", "text": "x > o_threshold", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 27}}, {"id": 192, "type": "identifier", "text": "x", "parent": 191, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 13}}, {"id": 193, "type": ">", "text": ">", "parent": 191, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 194, "type": "identifier", "text": "o_threshold", "parent": 191, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 27}}, {"id": 195, "type": "return_statement", "text": "return huge*huge;", "parent": 189, "children": [196], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 46}}, {"id": 196, "type": "binary_expression", "text": "huge*huge", "parent": 195, "children": [197, 198, 199], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 45}}, {"id": 197, "type": "identifier", "text": "huge", "parent": 196, "children": [], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 40}}, {"id": 198, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 152, "column": 40}, "end_point": {"row": 152, "column": 41}}, {"id": 199, "type": "identifier", "text": "huge", "parent": 196, "children": [], "start_point": {"row": 152, "column": 41}, "end_point": {"row": 152, "column": 45}}, {"id": 200, "type": "if_statement", "text": "if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }", "parent": 140, "children": [201], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 157, "column": 6}}, {"id": 201, "type": "parenthesized_expression", "text": "(xsb!=0)", "parent": 200, "children": [202], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 15}}, {"id": 202, "type": "binary_expression", "text": "xsb!=0", "parent": 201, "children": [203, 204, 205], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 14}}, {"id": 203, "type": "identifier", "text": "xsb", "parent": 202, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 11}}, {"id": 204, "type": "!=", "text": "!=", "parent": 202, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 13}}, {"id": 205, "type": "number_literal", "text": "0", "parent": 202, "children": [], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 14}}, {"id": 206, "type": "if_statement", "text": "if(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;", "parent": 200, "children": [207, 215], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 156, "column": 18}}, {"id": 207, "type": "parenthesized_expression", "text": "(x+tiny<0.0)", "parent": 206, "children": [208], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 16}}, {"id": 208, "type": "binary_expression", "text": "x+tiny<0.0", "parent": 207, "children": [209, 213, 214], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 15}}, {"id": 209, "type": "binary_expression", "text": "x+tiny", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 11}}, {"id": 210, "type": "identifier", "text": "x", "parent": 209, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 6}}, {"id": 211, "type": "+", "text": "+", "parent": 209, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 7}}, {"id": 212, "type": "identifier", "text": "tiny", "parent": 209, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 11}}, {"id": 213, "type": "<", "text": "<", "parent": 208, "children": [], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 12}}, {"id": 214, "type": "number_literal", "text": "0.0", "parent": 208, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 15}}, {"id": 215, "type": "return_statement", "text": "return tiny-one;", "parent": 206, "children": [216], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 18}}, {"id": 216, "type": "binary_expression", "text": "tiny-one", "parent": 215, "children": [217, 218, 219], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 17}}, {"id": 217, "type": "identifier", "text": "tiny", "parent": 216, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 13}}, {"id": 218, "type": "-", "text": "-", "parent": 216, "children": [], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 14}}, {"id": 219, "type": "identifier", "text": "one", "parent": 216, "children": [], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 17}}, {"id": 220, "type": "if_statement", "text": "if(hx > 0x3fd62e42) {\t\t/* if |x| > 0.5 ln2 */\n\t if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }\n\t x = hi - lo;\n\t c = (hi-x)-lo;\n\t}\n\telse if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;", "parent": 73, "children": [221, 330], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 180, "column": 12}}, {"id": 221, "type": "parenthesized_expression", "text": "(hx > 0x3fd62e42)", "parent": 220, "children": [222], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 20}}, {"id": 222, "type": "binary_expression", "text": "hx > 0x3fd62e42", "parent": 221, "children": [223, 224, 225], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 19}}, {"id": 223, "type": "identifier", "text": "hx", "parent": 222, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 6}}, {"id": 224, "type": ">", "text": ">", "parent": 222, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 8}}, {"id": 225, "type": "number_literal", "text": "0x3fd62e42", "parent": 222, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 19}}, {"id": 226, "type": "if_statement", "text": "if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }", "parent": 220, "children": [227, 271], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 172, "column": 6}}, {"id": 227, "type": "parenthesized_expression", "text": "(hx < 0x3FF0A2B2)", "parent": 226, "children": [228], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 24}}, {"id": 228, "type": "binary_expression", "text": "hx < 0x3FF0A2B2", "parent": 227, "children": [229, 230, 231], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 23}}, {"id": 229, "type": "identifier", "text": "hx", "parent": 228, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 10}}, {"id": 230, "type": "<", "text": "<", "parent": 228, "children": [], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 12}}, {"id": 231, "type": "number_literal", "text": "0x3FF0A2B2", "parent": 228, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 23}}, {"id": 232, "type": "if_statement", "text": "if(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}", "parent": 226, "children": [233, 253], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 166, "column": 47}}, {"id": 233, "type": "parenthesized_expression", "text": "(xsb==0)", "parent": 232, "children": [234], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 12}}, {"id": 234, "type": "binary_expression", "text": "xsb==0", "parent": 233, "children": [235, 236, 237], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 11}}, {"id": 235, "type": "identifier", "text": "xsb", "parent": 234, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 8}}, {"id": 236, "type": "==", "text": "==", "parent": 234, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 10}}, {"id": 237, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 11}}, {"id": 238, "type": "assignment_expression", "text": "hi = x - ln2_hi", "parent": 232, "children": [239, 240, 241], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 22}}, {"id": 239, "type": "identifier", "text": "hi", "parent": 238, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 9}}, {"id": 240, "type": "=", "text": "=", "parent": 238, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 241, "type": "binary_expression", "text": "x - ln2_hi", "parent": 238, "children": [242, 243, 244], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 22}}, {"id": 242, "type": "identifier", "text": "x", "parent": 241, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 13}}, {"id": 243, "type": "-", "text": "-", "parent": 241, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 15}}, {"id": 244, "type": "identifier", "text": "ln2_hi", "parent": 241, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 22}}, {"id": 245, "type": "assignment_expression", "text": "lo = ln2_lo", "parent": 232, "children": [246, 247, 248], "start_point": {"row": 164, "column": 24}, "end_point": {"row": 164, "column": 36}}, {"id": 246, "type": "identifier", "text": "lo", "parent": 245, "children": [], "start_point": {"row": 164, "column": 24}, "end_point": {"row": 164, "column": 26}}, {"id": 247, "type": "=", "text": "=", "parent": 245, "children": [], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 28}}, {"id": 248, "type": "identifier", "text": "ln2_lo", "parent": 245, "children": [], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 36}}, {"id": 249, "type": "assignment_expression", "text": "k = 1", "parent": 232, "children": [250, 251, 252], "start_point": {"row": 164, "column": 39}, "end_point": {"row": 164, "column": 45}}, {"id": 250, "type": "identifier", "text": "k", "parent": 249, "children": [], "start_point": {"row": 164, "column": 39}, "end_point": {"row": 164, "column": 40}}, {"id": 251, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 164, "column": 41}, "end_point": {"row": 164, "column": 42}}, {"id": 252, "type": "number_literal", "text": "1", "parent": 249, "children": [], "start_point": {"row": 164, "column": 44}, "end_point": {"row": 164, "column": 45}}, {"id": 253, "type": "else_clause", "text": "else\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}", "parent": 232, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 166, "column": 47}}, {"id": 254, "type": "assignment_expression", "text": "hi = x + ln2_hi", "parent": 253, "children": [255, 256, 257], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 22}}, {"id": 255, "type": "identifier", "text": "hi", "parent": 254, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 9}}, {"id": 256, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 11}}, {"id": 257, "type": "binary_expression", "text": "x + ln2_hi", "parent": 254, "children": [258, 259, 260], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 22}}, {"id": 258, "type": "identifier", "text": "x", "parent": 257, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 13}}, {"id": 259, "type": "+", "text": "+", "parent": 257, "children": [], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 15}}, {"id": 260, "type": "identifier", "text": "ln2_hi", "parent": 257, "children": [], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 22}}, {"id": 261, "type": "assignment_expression", "text": "lo = -ln2_lo", "parent": 253, "children": [262, 263, 264], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 36}}, {"id": 262, "type": "identifier", "text": "lo", "parent": 261, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 26}}, {"id": 263, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 166, "column": 27}, "end_point": {"row": 166, "column": 28}}, {"id": 264, "type": "unary_expression", "text": "-ln2_lo", "parent": 261, "children": [265, 266], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 36}}, {"id": 265, "type": "-", "text": "-", "parent": 264, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 30}}, {"id": 266, "type": "identifier", "text": "ln2_lo", "parent": 264, "children": [], "start_point": {"row": 166, "column": 30}, "end_point": {"row": 166, "column": 36}}, {"id": 267, "type": "assignment_expression", "text": "k = -1", "parent": 253, "children": [268, 269, 270], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 45}}, {"id": 268, "type": "identifier", "text": "k", "parent": 267, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 40}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 166, "column": 41}, "end_point": {"row": 166, "column": 42}}, {"id": 270, "type": "number_literal", "text": "-1", "parent": 267, "children": [], "start_point": {"row": 166, "column": 43}, "end_point": {"row": 166, "column": 45}}, {"id": 271, "type": "else_clause", "text": "else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }", "parent": 226, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 172, "column": 6}}, {"id": 272, "type": "assignment_expression", "text": "k = invln2*x+((xsb==0)?0.5:-0.5)", "parent": 271, "children": [273, 274, 275], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 35}}, {"id": 273, "type": "identifier", "text": "k", "parent": 272, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 3}}, {"id": 274, "type": "=", "text": "=", "parent": 272, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 6}}, {"id": 275, "type": "binary_expression", "text": "invln2*x+((xsb==0)?0.5:-0.5)", "parent": 272, "children": [276, 280, 281], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 35}}, {"id": 276, "type": "binary_expression", "text": "invln2*x", "parent": 275, "children": [277, 278, 279], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 15}}, {"id": 277, "type": "identifier", "text": "invln2", "parent": 276, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 13}}, {"id": 278, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 14}}, {"id": 279, "type": "identifier", "text": "x", "parent": 276, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 15}}, {"id": 280, "type": "+", "text": "+", "parent": 275, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 16}}, {"id": 281, "type": "parenthesized_expression", "text": "((xsb==0)?0.5:-0.5)", "parent": 275, "children": [282], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 35}}, {"id": 282, "type": "conditional_expression", "text": "(xsb==0)?0.5:-0.5", "parent": 281, "children": [283, 288, 289, 290], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 34}}, {"id": 283, "type": "parenthesized_expression", "text": "(xsb==0)", "parent": 282, "children": [284], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 25}}, {"id": 284, "type": "binary_expression", "text": "xsb==0", "parent": 283, "children": [285, 286, 287], "start_point": {"row": 168, "column": 18}, "end_point": {"row": 168, "column": 24}}, {"id": 285, "type": "identifier", "text": "xsb", "parent": 284, "children": [], "start_point": {"row": 168, "column": 18}, "end_point": {"row": 168, "column": 21}}, {"id": 286, "type": "==", "text": "==", "parent": 284, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 23}}, {"id": 287, "type": "number_literal", "text": "0", "parent": 284, "children": [], "start_point": {"row": 168, "column": 23}, "end_point": {"row": 168, "column": 24}}, {"id": 288, "type": "?", "text": "?", "parent": 282, "children": [], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 26}}, {"id": 289, "type": "number_literal", "text": "0.5", "parent": 282, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 29}}, {"id": 290, "type": "number_literal", "text": "-0.5", "parent": 282, "children": [], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 34}}, {"id": 291, "type": "assignment_expression", "text": "t = k", "parent": 271, "children": [292, 293, 294], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 8}}, {"id": 292, "type": "identifier", "text": "t", "parent": 291, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 3}}, {"id": 293, "type": "=", "text": "=", "parent": 291, "children": [], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 6}}, {"id": 294, "type": "identifier", "text": "k", "parent": 291, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 8}}, {"id": 295, "type": "assignment_expression", "text": "hi = x - t*ln2_hi", "parent": 271, "children": [296, 297, 298], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 19}}, {"id": 296, "type": "identifier", "text": "hi", "parent": 295, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 4}}, {"id": 297, "type": "=", "text": "=", "parent": 295, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 6}}, {"id": 298, "type": "binary_expression", "text": "x - t*ln2_hi", "parent": 295, "children": [299, 300, 301], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 19}}, {"id": 299, "type": "identifier", "text": "x", "parent": 298, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 8}}, {"id": 300, "type": "-", "text": "-", "parent": 298, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 10}}, {"id": 301, "type": "binary_expression", "text": "t*ln2_hi", "parent": 298, "children": [302, 303, 304], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 19}}, {"id": 302, "type": "identifier", "text": "t", "parent": 301, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 12}}, {"id": 303, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 13}}, {"id": 304, "type": "identifier", "text": "ln2_hi", "parent": 301, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 19}}, {"id": 305, "type": "assignment_expression", "text": "lo = t*ln2_lo", "parent": 271, "children": [306, 307, 308], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 15}}, {"id": 306, "type": "identifier", "text": "lo", "parent": 305, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 4}}, {"id": 307, "type": "=", "text": "=", "parent": 305, "children": [], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 6}}, {"id": 308, "type": "binary_expression", "text": "t*ln2_lo", "parent": 305, "children": [309, 310, 311], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 15}}, {"id": 309, "type": "identifier", "text": "t", "parent": 308, "children": [], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 8}}, {"id": 310, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 9}}, {"id": 311, "type": "identifier", "text": "ln2_lo", "parent": 308, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 15}}, {"id": 312, "type": "assignment_expression", "text": "x = hi - lo", "parent": 220, "children": [313, 314, 315], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 17}}, {"id": 313, "type": "identifier", "text": "x", "parent": 312, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 6}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 9}}, {"id": 315, "type": "binary_expression", "text": "hi - lo", "parent": 312, "children": [316, 317, 318], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 17}}, {"id": 316, "type": "identifier", "text": "hi", "parent": 315, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 12}}, {"id": 317, "type": "-", "text": "-", "parent": 315, "children": [], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 14}}, {"id": 318, "type": "identifier", "text": "lo", "parent": 315, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 17}}, {"id": 319, "type": "assignment_expression", "text": "c = (hi-x)-lo", "parent": 220, "children": [320, 321, 322], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 19}}, {"id": 320, "type": "identifier", "text": "c", "parent": 319, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 6}}, {"id": 321, "type": "=", "text": "=", "parent": 319, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 9}}, {"id": 322, "type": "binary_expression", "text": "(hi-x)-lo", "parent": 319, "children": [323, 328, 329], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 19}}, {"id": 323, "type": "parenthesized_expression", "text": "(hi-x)", "parent": 322, "children": [324], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 16}}, {"id": 324, "type": "binary_expression", "text": "hi-x", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 15}}, {"id": 325, "type": "identifier", "text": "hi", "parent": 324, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 13}}, {"id": 326, "type": "-", "text": "-", "parent": 324, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 327, "type": "identifier", "text": "x", "parent": 324, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 15}}, {"id": 328, "type": "-", "text": "-", "parent": 322, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 329, "type": "identifier", "text": "lo", "parent": 322, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 19}}, {"id": 330, "type": "else_clause", "text": "else if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;", "parent": 220, "children": [331], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 180, "column": 12}}, {"id": 331, "type": "if_statement", "text": "if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;", "parent": 330, "children": [332, 357], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 180, "column": 12}}, {"id": 332, "type": "parenthesized_expression", "text": "(hx < 0x3c900000)", "parent": 331, "children": [333], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 25}}, {"id": 333, "type": "binary_expression", "text": "hx < 0x3c900000", "parent": 332, "children": [334, 335, 336], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 24}}, {"id": 334, "type": "identifier", "text": "hx", "parent": 333, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 11}}, {"id": 335, "type": "<", "text": "<", "parent": 333, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 13}}, {"id": 336, "type": "number_literal", "text": "0x3c900000", "parent": 333, "children": [], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 24}}, {"id": 337, "type": "assignment_expression", "text": "t = huge+x", "parent": 331, "children": [338, 339, 340], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 15}}, {"id": 338, "type": "identifier", "text": "t", "parent": 337, "children": [], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 6}}, {"id": 339, "type": "=", "text": "=", "parent": 337, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 8}}, {"id": 340, "type": "binary_expression", "text": "huge+x", "parent": 337, "children": [341, 342, 343], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 15}}, {"id": 341, "type": "identifier", "text": "huge", "parent": 340, "children": [], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 13}}, {"id": 342, "type": "+", "text": "+", "parent": 340, "children": [], "start_point": {"row": 177, "column": 13}, "end_point": {"row": 177, "column": 14}}, {"id": 343, "type": "identifier", "text": "x", "parent": 340, "children": [], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 15}}, {"id": 344, "type": "return_statement", "text": "return x - (t-(huge+x));", "parent": 331, "children": [345], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 29}}, {"id": 345, "type": "binary_expression", "text": "x - (t-(huge+x))", "parent": 344, "children": [346, 347, 348], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 28}}, {"id": 346, "type": "identifier", "text": "x", "parent": 345, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 13}}, {"id": 347, "type": "-", "text": "-", "parent": 345, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 15}}, {"id": 348, "type": "parenthesized_expression", "text": "(t-(huge+x))", "parent": 345, "children": [349], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 28}}, {"id": 349, "type": "binary_expression", "text": "t-(huge+x)", "parent": 348, "children": [350, 351, 352], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 27}}, {"id": 350, "type": "identifier", "text": "t", "parent": 349, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 18}}, {"id": 351, "type": "-", "text": "-", "parent": 349, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 19}}, {"id": 352, "type": "parenthesized_expression", "text": "(huge+x)", "parent": 349, "children": [353], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 27}}, {"id": 353, "type": "binary_expression", "text": "huge+x", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 26}}, {"id": 354, "type": "identifier", "text": "huge", "parent": 353, "children": [], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 24}}, {"id": 355, "type": "+", "text": "+", "parent": 353, "children": [], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 25}}, {"id": 356, "type": "identifier", "text": "x", "parent": 353, "children": [], "start_point": {"row": 178, "column": 25}, "end_point": {"row": 178, "column": 26}}, {"id": 357, "type": "else_clause", "text": "else k = 0;", "parent": 331, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 12}}, {"id": 358, "type": "assignment_expression", "text": "k = 0", "parent": 357, "children": [359, 360, 361], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 11}}, {"id": 359, "type": "identifier", "text": "k", "parent": 358, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 7}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 9}}, {"id": 361, "type": "number_literal", "text": "0", "parent": 358, "children": [], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 11}}, {"id": 362, "type": "assignment_expression", "text": "hfx = 0.5*x", "parent": 73, "children": [363, 364, 365], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 12}}, {"id": 363, "type": "identifier", "text": "hfx", "parent": 362, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 4}}, {"id": 364, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 6}}, {"id": 365, "type": "binary_expression", "text": "0.5*x", "parent": 362, "children": [366, 367, 368], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 12}}, {"id": 366, "type": "number_literal", "text": "0.5", "parent": 365, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 10}}, {"id": 367, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 183, "column": 10}, "end_point": {"row": 183, "column": 11}}, {"id": 368, "type": "identifier", "text": "x", "parent": 365, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 12}}, {"id": 369, "type": "assignment_expression", "text": "hxs = x*hfx", "parent": 73, "children": [370, 371, 372], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 12}}, {"id": 370, "type": "identifier", "text": "hxs", "parent": 369, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 4}}, {"id": 371, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 6}}, {"id": 372, "type": "binary_expression", "text": "x*hfx", "parent": 369, "children": [373, 374, 375], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 12}}, {"id": 373, "type": "identifier", "text": "x", "parent": 372, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 8}}, {"id": 374, "type": "*", "text": "*", "parent": 372, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 9}}, {"id": 375, "type": "identifier", "text": "hfx", "parent": 372, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 12}}, {"id": 376, "type": "assignment_expression", "text": "r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))", "parent": 73, "children": [377, 378, 379], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 52}}, {"id": 377, "type": "identifier", "text": "r1", "parent": 376, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 3}}, {"id": 378, "type": "=", "text": "=", "parent": 376, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 5}}, {"id": 379, "type": "binary_expression", "text": "one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))", "parent": 376, "children": [380, 381, 382], "start_point": {"row": 185, "column": 6}, "end_point": {"row": 185, "column": 52}}, {"id": 380, "type": "identifier", "text": "one", "parent": 379, "children": [], "start_point": {"row": 185, "column": 6}, "end_point": {"row": 185, "column": 9}}, {"id": 381, "type": "+", "text": "+", "parent": 379, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 10}}, {"id": 382, "type": "binary_expression", "text": "hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))", "parent": 379, "children": [383, 384, 385], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 52}}, {"id": 383, "type": "identifier", "text": "hxs", "parent": 382, "children": [], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 13}}, {"id": 384, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 14}}, {"id": 385, "type": "parenthesized_expression", "text": "(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))))", "parent": 382, "children": [386], "start_point": {"row": 185, "column": 14}, "end_point": {"row": 185, "column": 52}}, {"id": 386, "type": "binary_expression", "text": "Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))", "parent": 385, "children": [387, 388, 389], "start_point": {"row": 185, "column": 15}, "end_point": {"row": 185, "column": 51}}, {"id": 387, "type": "identifier", "text": "Q1", "parent": 386, "children": [], "start_point": {"row": 185, "column": 15}, "end_point": {"row": 185, "column": 17}}, {"id": 388, "type": "+", "text": "+", "parent": 386, "children": [], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 18}}, {"id": 389, "type": "binary_expression", "text": "hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))", "parent": 386, "children": [390, 391, 392], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 51}}, {"id": 390, "type": "identifier", "text": "hxs", "parent": 389, "children": [], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 21}}, {"id": 391, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 185, "column": 21}, "end_point": {"row": 185, "column": 22}}, {"id": 392, "type": "parenthesized_expression", "text": "(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))", "parent": 389, "children": [393], "start_point": {"row": 185, "column": 22}, "end_point": {"row": 185, "column": 51}}, {"id": 393, "type": "binary_expression", "text": "Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))", "parent": 392, "children": [394, 395, 396], "start_point": {"row": 185, "column": 23}, "end_point": {"row": 185, "column": 50}}, {"id": 394, "type": "identifier", "text": "Q2", "parent": 393, "children": [], "start_point": {"row": 185, "column": 23}, "end_point": {"row": 185, "column": 25}}, {"id": 395, "type": "+", "text": "+", "parent": 393, "children": [], "start_point": {"row": 185, "column": 25}, "end_point": {"row": 185, "column": 26}}, {"id": 396, "type": "binary_expression", "text": "hxs*(Q3+hxs*(Q4+hxs*Q5))", "parent": 393, "children": [397, 398, 399], "start_point": {"row": 185, "column": 26}, "end_point": {"row": 185, "column": 50}}, {"id": 397, "type": "identifier", "text": "hxs", "parent": 396, "children": [], "start_point": {"row": 185, "column": 26}, "end_point": {"row": 185, "column": 29}}, {"id": 398, "type": "*", "text": "*", "parent": 396, "children": [], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 399, "type": "parenthesized_expression", "text": "(Q3+hxs*(Q4+hxs*Q5))", "parent": 396, "children": [400], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 50}}, {"id": 400, "type": "binary_expression", "text": "Q3+hxs*(Q4+hxs*Q5)", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 49}}, {"id": 401, "type": "identifier", "text": "Q3", "parent": 400, "children": [], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 33}}, {"id": 402, "type": "+", "text": "+", "parent": 400, "children": [], "start_point": {"row": 185, "column": 33}, "end_point": {"row": 185, "column": 34}}, {"id": 403, "type": "binary_expression", "text": "hxs*(Q4+hxs*Q5)", "parent": 400, "children": [404, 405, 406], "start_point": {"row": 185, "column": 34}, "end_point": {"row": 185, "column": 49}}, {"id": 404, "type": "identifier", "text": "hxs", "parent": 403, "children": [], "start_point": {"row": 185, "column": 34}, "end_point": {"row": 185, "column": 37}}, {"id": 405, "type": "*", "text": "*", "parent": 403, "children": [], "start_point": {"row": 185, "column": 37}, "end_point": {"row": 185, "column": 38}}, {"id": 406, "type": "parenthesized_expression", "text": "(Q4+hxs*Q5)", "parent": 403, "children": [407], "start_point": {"row": 185, "column": 38}, "end_point": {"row": 185, "column": 49}}, {"id": 407, "type": "binary_expression", "text": "Q4+hxs*Q5", "parent": 406, "children": [408, 409, 410], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 48}}, {"id": 408, "type": "identifier", "text": "Q4", "parent": 407, "children": [], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 41}}, {"id": 409, "type": "+", "text": "+", "parent": 407, "children": [], "start_point": {"row": 185, "column": 41}, "end_point": {"row": 185, "column": 42}}, {"id": 410, "type": "binary_expression", "text": "hxs*Q5", "parent": 407, "children": [411, 412, 413], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 48}}, {"id": 411, "type": "identifier", "text": "hxs", "parent": 410, "children": [], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 45}}, {"id": 412, "type": "*", "text": "*", "parent": 410, "children": [], "start_point": {"row": 185, "column": 45}, "end_point": {"row": 185, "column": 46}}, {"id": 413, "type": "identifier", "text": "Q5", "parent": 410, "children": [], "start_point": {"row": 185, "column": 46}, "end_point": {"row": 185, "column": 48}}, {"id": 414, "type": "assignment_expression", "text": "t = 3.0-r1*hfx", "parent": 73, "children": [415, 416, 417], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 16}}, {"id": 415, "type": "identifier", "text": "t", "parent": 414, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 2}}, {"id": 416, "type": "=", "text": "=", "parent": 414, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 5}}, {"id": 417, "type": "binary_expression", "text": "3.0-r1*hfx", "parent": 414, "children": [418, 419, 420], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 186, "column": 16}}, {"id": 418, "type": "number_literal", "text": "3.0", "parent": 417, "children": [], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 186, "column": 9}}, {"id": 419, "type": "-", "text": "-", "parent": 417, "children": [], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 10}}, {"id": 420, "type": "binary_expression", "text": "r1*hfx", "parent": 417, "children": [421, 422, 423], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 16}}, {"id": 421, "type": "identifier", "text": "r1", "parent": 420, "children": [], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 12}}, {"id": 422, "type": "*", "text": "*", "parent": 420, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 13}}, {"id": 423, "type": "identifier", "text": "hfx", "parent": 420, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 16}}, {"id": 424, "type": "assignment_expression", "text": "e = hxs*((r1-t)/(6.0 - x*t))", "parent": 73, "children": [425, 426, 427], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 30}}, {"id": 425, "type": "identifier", "text": "e", "parent": 424, "children": [], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 2}}, {"id": 426, "type": "=", "text": "=", "parent": 424, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 5}}, {"id": 427, "type": "binary_expression", "text": "hxs*((r1-t)/(6.0 - x*t))", "parent": 424, "children": [428, 429, 430], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 30}}, {"id": 428, "type": "identifier", "text": "hxs", "parent": 427, "children": [], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 9}}, {"id": 429, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 430, "type": "parenthesized_expression", "text": "((r1-t)/(6.0 - x*t))", "parent": 427, "children": [431], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 30}}, {"id": 431, "type": "binary_expression", "text": "(r1-t)/(6.0 - x*t)", "parent": 430, "children": [432, 437, 438], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 29}}, {"id": 432, "type": "parenthesized_expression", "text": "(r1-t)", "parent": 431, "children": [433], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 17}}, {"id": 433, "type": "binary_expression", "text": "r1-t", "parent": 432, "children": [434, 435, 436], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 16}}, {"id": 434, "type": "identifier", "text": "r1", "parent": 433, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 14}}, {"id": 435, "type": "-", "text": "-", "parent": 433, "children": [], "start_point": {"row": 187, "column": 14}, "end_point": {"row": 187, "column": 15}}, {"id": 436, "type": "identifier", "text": "t", "parent": 433, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 16}}, {"id": 437, "type": "/", "text": "/", "parent": 431, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 18}}, {"id": 438, "type": "parenthesized_expression", "text": "(6.0 - x*t)", "parent": 431, "children": [439], "start_point": {"row": 187, "column": 18}, "end_point": {"row": 187, "column": 29}}, {"id": 439, "type": "binary_expression", "text": "6.0 - x*t", "parent": 438, "children": [440, 441, 442], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 28}}, {"id": 440, "type": "number_literal", "text": "6.0", "parent": 439, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 22}}, {"id": 441, "type": "-", "text": "-", "parent": 439, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 24}}, {"id": 442, "type": "binary_expression", "text": "x*t", "parent": 439, "children": [443, 444, 445], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 28}}, {"id": 443, "type": "identifier", "text": "x", "parent": 442, "children": [], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 26}}, {"id": 444, "type": "*", "text": "*", "parent": 442, "children": [], "start_point": {"row": 187, "column": 26}, "end_point": {"row": 187, "column": 27}}, {"id": 445, "type": "identifier", "text": "t", "parent": 442, "children": [], "start_point": {"row": 187, "column": 27}, "end_point": {"row": 187, "column": 28}}, {"id": 446, "type": "if_statement", "text": "if(k==0) return x - (x*e-hxs);\t\t/* c is 0 */\n\telse {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}", "parent": 73, "children": [447, 452, 464], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 213, "column": 2}}, {"id": 447, "type": "parenthesized_expression", "text": "(k==0)", "parent": 446, "children": [448], "start_point": {"row": 188, "column": 3}, "end_point": {"row": 188, "column": 9}}, {"id": 448, "type": "binary_expression", "text": "k==0", "parent": 447, "children": [449, 450, 451], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 8}}, {"id": 449, "type": "identifier", "text": "k", "parent": 448, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 450, "type": "==", "text": "==", "parent": 448, "children": [], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 7}}, {"id": 451, "type": "number_literal", "text": "0", "parent": 448, "children": [], "start_point": {"row": 188, "column": 7}, "end_point": {"row": 188, "column": 8}}, {"id": 452, "type": "return_statement", "text": "return x - (x*e-hxs);", "parent": 446, "children": [453], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 31}}, {"id": 453, "type": "binary_expression", "text": "x - (x*e-hxs)", "parent": 452, "children": [454, 455, 456], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 30}}, {"id": 454, "type": "identifier", "text": "x", "parent": 453, "children": [], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 18}}, {"id": 455, "type": "-", "text": "-", "parent": 453, "children": [], "start_point": {"row": 188, "column": 19}, "end_point": {"row": 188, "column": 20}}, {"id": 456, "type": "parenthesized_expression", "text": "(x*e-hxs)", "parent": 453, "children": [457], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 30}}, {"id": 457, "type": "binary_expression", "text": "x*e-hxs", "parent": 456, "children": [458, 462, 463], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 29}}, {"id": 458, "type": "binary_expression", "text": "x*e", "parent": 457, "children": [459, 460, 461], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 25}}, {"id": 459, "type": "identifier", "text": "x", "parent": 458, "children": [], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 23}}, {"id": 460, "type": "*", "text": "*", "parent": 458, "children": [], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 24}}, {"id": 461, "type": "identifier", "text": "e", "parent": 458, "children": [], "start_point": {"row": 188, "column": 24}, "end_point": {"row": 188, "column": 25}}, {"id": 462, "type": "-", "text": "-", "parent": 457, "children": [], "start_point": {"row": 188, "column": 25}, "end_point": {"row": 188, "column": 26}}, {"id": 463, "type": "identifier", "text": "hxs", "parent": 457, "children": [], "start_point": {"row": 188, "column": 26}, "end_point": {"row": 188, "column": 29}}, {"id": 464, "type": "else_clause", "text": "else {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}", "parent": 446, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 213, "column": 2}}, {"id": 465, "type": "assignment_expression", "text": "e = (x*(e-c)-c)", "parent": 464, "children": [466, 467, 468], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 21}}, {"id": 466, "type": "identifier", "text": "e", "parent": 465, "children": [], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 6}}, {"id": 467, "type": "=", "text": "=", "parent": 465, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 9}}, {"id": 468, "type": "parenthesized_expression", "text": "(x*(e-c)-c)", "parent": 465, "children": [469], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 21}}, {"id": 469, "type": "binary_expression", "text": "x*(e-c)-c", "parent": 468, "children": [470, 478, 479], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 20}}, {"id": 470, "type": "binary_expression", "text": "x*(e-c)", "parent": 469, "children": [471, 472, 473], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 18}}, {"id": 471, "type": "identifier", "text": "x", "parent": 470, "children": [], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 12}}, {"id": 472, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 13}}, {"id": 473, "type": "parenthesized_expression", "text": "(e-c)", "parent": 470, "children": [474], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 18}}, {"id": 474, "type": "binary_expression", "text": "e-c", "parent": 473, "children": [475, 476, 477], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 17}}, {"id": 475, "type": "identifier", "text": "e", "parent": 474, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 15}}, {"id": 476, "type": "-", "text": "-", "parent": 474, "children": [], "start_point": {"row": 190, "column": 15}, "end_point": {"row": 190, "column": 16}}, {"id": 477, "type": "identifier", "text": "c", "parent": 474, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 17}}, {"id": 478, "type": "-", "text": "-", "parent": 469, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 19}}, {"id": 479, "type": "identifier", "text": "c", "parent": 469, "children": [], "start_point": {"row": 190, "column": 19}, "end_point": {"row": 190, "column": 20}}, {"id": 480, "type": "assignment_expression", "text": "e -= hxs", "parent": 464, "children": [481, 482, 483], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 13}}, {"id": 481, "type": "identifier", "text": "e", "parent": 480, "children": [], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 6}}, {"id": 482, "type": "-=", "text": "-=", "parent": 480, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 9}}, {"id": 483, "type": "identifier", "text": "hxs", "parent": 480, "children": [], "start_point": {"row": 191, "column": 10}, "end_point": {"row": 191, "column": 13}}, {"id": 484, "type": "if_statement", "text": "if(k== -1) return 0.5*(x-e)-0.5;", "parent": 464, "children": [485, 490], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 37}}, {"id": 485, "type": "parenthesized_expression", "text": "(k== -1)", "parent": 484, "children": [486], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 15}}, {"id": 486, "type": "binary_expression", "text": "k== -1", "parent": 485, "children": [487, 488, 489], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 14}}, {"id": 487, "type": "identifier", "text": "k", "parent": 486, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 9}}, {"id": 488, "type": "==", "text": "==", "parent": 486, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 11}}, {"id": 489, "type": "number_literal", "text": "-1", "parent": 486, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 14}}, {"id": 490, "type": "return_statement", "text": "return 0.5*(x-e)-0.5;", "parent": 484, "children": [491], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 37}}, {"id": 491, "type": "binary_expression", "text": "0.5*(x-e)-0.5", "parent": 490, "children": [492, 500, 501], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 36}}, {"id": 492, "type": "binary_expression", "text": "0.5*(x-e)", "parent": 491, "children": [493, 494, 495], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 32}}, {"id": 493, "type": "number_literal", "text": "0.5", "parent": 492, "children": [], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 26}}, {"id": 494, "type": "*", "text": "*", "parent": 492, "children": [], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 27}}, {"id": 495, "type": "parenthesized_expression", "text": "(x-e)", "parent": 492, "children": [496], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 32}}, {"id": 496, "type": "binary_expression", "text": "x-e", "parent": 495, "children": [497, 498, 499], "start_point": {"row": 192, "column": 28}, "end_point": {"row": 192, "column": 31}}, {"id": 497, "type": "identifier", "text": "x", "parent": 496, "children": [], "start_point": {"row": 192, "column": 28}, "end_point": {"row": 192, "column": 29}}, {"id": 498, "type": "-", "text": "-", "parent": 496, "children": [], "start_point": {"row": 192, "column": 29}, "end_point": {"row": 192, "column": 30}}, {"id": 499, "type": "identifier", "text": "e", "parent": 496, "children": [], "start_point": {"row": 192, "column": 30}, "end_point": {"row": 192, "column": 31}}, {"id": 500, "type": "-", "text": "-", "parent": 491, "children": [], "start_point": {"row": 192, "column": 32}, "end_point": {"row": 192, "column": 33}}, {"id": 501, "type": "number_literal", "text": "0.5", "parent": 491, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 36}}, {"id": 502, "type": "if_statement", "text": "if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }", "parent": 464, "children": [503], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 196, "column": 6}}, {"id": 503, "type": "parenthesized_expression", "text": "(k==1)", "parent": 502, "children": [504], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 193, "column": 13}}, {"id": 504, "type": "binary_expression", "text": "k==1", "parent": 503, "children": [505, 506, 507], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 12}}, {"id": 505, "type": "identifier", "text": "k", "parent": 504, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 9}}, {"id": 506, "type": "==", "text": "==", "parent": 504, "children": [], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 11}}, {"id": 507, "type": "number_literal", "text": "1", "parent": 504, "children": [], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 12}}, {"id": 508, "type": "if_statement", "text": "if(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);", "parent": 502, "children": [509, 514, 527], "start_point": {"row": 194, "column": 9}, "end_point": {"row": 195, "column": 43}}, {"id": 509, "type": "parenthesized_expression", "text": "(x < -0.25)", "parent": 508, "children": [510], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 22}}, {"id": 510, "type": "binary_expression", "text": "x < -0.25", "parent": 509, "children": [511, 512, 513], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 21}}, {"id": 511, "type": "identifier", "text": "x", "parent": 510, "children": [], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 13}}, {"id": 512, "type": "<", "text": "<", "parent": 510, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 15}}, {"id": 513, "type": "number_literal", "text": "-0.25", "parent": 510, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 21}}, {"id": 514, "type": "return_statement", "text": "return -2.0*(e-(x+0.5));", "parent": 508, "children": [515], "start_point": {"row": 194, "column": 23}, "end_point": {"row": 194, "column": 47}}, {"id": 515, "type": "binary_expression", "text": "-2.0*(e-(x+0.5))", "parent": 514, "children": [516, 517, 518], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 46}}, {"id": 516, "type": "number_literal", "text": "-2.0", "parent": 515, "children": [], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 34}}, {"id": 517, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 194, "column": 34}, "end_point": {"row": 194, "column": 35}}, {"id": 518, "type": "parenthesized_expression", "text": "(e-(x+0.5))", "parent": 515, "children": [519], "start_point": {"row": 194, "column": 35}, "end_point": {"row": 194, "column": 46}}, {"id": 519, "type": "binary_expression", "text": "e-(x+0.5)", "parent": 518, "children": [520, 521, 522], "start_point": {"row": 194, "column": 36}, "end_point": {"row": 194, "column": 45}}, {"id": 520, "type": "identifier", "text": "e", "parent": 519, "children": [], "start_point": {"row": 194, "column": 36}, "end_point": {"row": 194, "column": 37}}, {"id": 521, "type": "-", "text": "-", "parent": 519, "children": [], "start_point": {"row": 194, "column": 37}, "end_point": {"row": 194, "column": 38}}, {"id": 522, "type": "parenthesized_expression", "text": "(x+0.5)", "parent": 519, "children": [523], "start_point": {"row": 194, "column": 38}, "end_point": {"row": 194, "column": 45}}, {"id": 523, "type": "binary_expression", "text": "x+0.5", "parent": 522, "children": [524, 525, 526], "start_point": {"row": 194, "column": 39}, "end_point": {"row": 194, "column": 44}}, {"id": 524, "type": "identifier", "text": "x", "parent": 523, "children": [], "start_point": {"row": 194, "column": 39}, "end_point": {"row": 194, "column": 40}}, {"id": 525, "type": "+", "text": "+", "parent": 523, "children": [], "start_point": {"row": 194, "column": 40}, "end_point": {"row": 194, "column": 41}}, {"id": 526, "type": "number_literal", "text": "0.5", "parent": 523, "children": [], "start_point": {"row": 194, "column": 41}, "end_point": {"row": 194, "column": 44}}, {"id": 527, "type": "else_clause", "text": "else \t return one+2.0*(x-e);", "parent": 508, "children": [528], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 43}}, {"id": 528, "type": "return_statement", "text": "return one+2.0*(x-e);", "parent": 527, "children": [529], "start_point": {"row": 195, "column": 21}, "end_point": {"row": 195, "column": 43}}, {"id": 529, "type": "binary_expression", "text": "one+2.0*(x-e)", "parent": 528, "children": [530, 531, 532], "start_point": {"row": 195, "column": 29}, "end_point": {"row": 195, "column": 42}}, {"id": 530, "type": "identifier", "text": "one", "parent": 529, "children": [], "start_point": {"row": 195, "column": 29}, "end_point": {"row": 195, "column": 32}}, {"id": 531, "type": "+", "text": "+", "parent": 529, "children": [], "start_point": {"row": 195, "column": 32}, "end_point": {"row": 195, "column": 33}}, {"id": 532, "type": "binary_expression", "text": "2.0*(x-e)", "parent": 529, "children": [533, 534, 535], "start_point": {"row": 195, "column": 33}, "end_point": {"row": 195, "column": 42}}, {"id": 533, "type": "number_literal", "text": "2.0", "parent": 532, "children": [], "start_point": {"row": 195, "column": 33}, "end_point": {"row": 195, "column": 36}}, {"id": 534, "type": "*", "text": "*", "parent": 532, "children": [], "start_point": {"row": 195, "column": 36}, "end_point": {"row": 195, "column": 37}}, {"id": 535, "type": "parenthesized_expression", "text": "(x-e)", "parent": 532, "children": [536], "start_point": {"row": 195, "column": 37}, "end_point": {"row": 195, "column": 42}}, {"id": 536, "type": "binary_expression", "text": "x-e", "parent": 535, "children": [537, 538, 539], "start_point": {"row": 195, "column": 38}, "end_point": {"row": 195, "column": 41}}, {"id": 537, "type": "identifier", "text": "x", "parent": 536, "children": [], "start_point": {"row": 195, "column": 38}, "end_point": {"row": 195, "column": 39}}, {"id": 538, "type": "-", "text": "-", "parent": 536, "children": [], "start_point": {"row": 195, "column": 39}, "end_point": {"row": 195, "column": 40}}, {"id": 539, "type": "identifier", "text": "e", "parent": 536, "children": [], "start_point": {"row": 195, "column": 40}, "end_point": {"row": 195, "column": 41}}, {"id": 540, "type": "if_statement", "text": "if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }", "parent": 464, "children": [541], "start_point": {"row": 197, "column": 5}, "end_point": {"row": 201, "column": 6}}, {"id": 541, "type": "parenthesized_expression", "text": "(k <= -2 || k>56)", "parent": 540, "children": [542], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 25}}, {"id": 542, "type": "binary_expression", "text": "k <= -2 || k>56", "parent": 541, "children": [543, 547, 548], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 24}}, {"id": 543, "type": "binary_expression", "text": "k <= -2", "parent": 542, "children": [544, 545, 546], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 16}}, {"id": 544, "type": "identifier", "text": "k", "parent": 543, "children": [], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 10}}, {"id": 545, "type": "<=", "text": "<=", "parent": 543, "children": [], "start_point": {"row": 197, "column": 11}, "end_point": {"row": 197, "column": 13}}, {"id": 546, "type": "number_literal", "text": "-2", "parent": 543, "children": [], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 16}}, {"id": 547, "type": "||", "text": "||", "parent": 542, "children": [], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 19}}, {"id": 548, "type": "binary_expression", "text": "k>56", "parent": 542, "children": [549, 550, 551], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 24}}, {"id": 549, "type": "identifier", "text": "k", "parent": 548, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 21}}, {"id": 550, "type": ">", "text": ">", "parent": 548, "children": [], "start_point": {"row": 197, "column": 21}, "end_point": {"row": 197, "column": 22}}, {"id": 551, "type": "number_literal", "text": "56", "parent": 548, "children": [], "start_point": {"row": 197, "column": 22}, "end_point": {"row": 197, "column": 24}}, {"id": 552, "type": "assignment_expression", "text": "y = one-(e-x)", "parent": 540, "children": [553, 554, 555], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 22}}, {"id": 553, "type": "identifier", "text": "y", "parent": 552, "children": [], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 10}}, {"id": 554, "type": "=", "text": "=", "parent": 552, "children": [], "start_point": {"row": 198, "column": 11}, "end_point": {"row": 198, "column": 12}}, {"id": 555, "type": "binary_expression", "text": "one-(e-x)", "parent": 552, "children": [556, 557, 558], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 22}}, {"id": 556, "type": "identifier", "text": "one", "parent": 555, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 16}}, {"id": 557, "type": "-", "text": "-", "parent": 555, "children": [], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 17}}, {"id": 558, "type": "parenthesized_expression", "text": "(e-x)", "parent": 555, "children": [559], "start_point": {"row": 198, "column": 17}, "end_point": {"row": 198, "column": 22}}, {"id": 559, "type": "binary_expression", "text": "e-x", "parent": 558, "children": [560, 561, 562], "start_point": {"row": 198, "column": 18}, "end_point": {"row": 198, "column": 21}}, {"id": 560, "type": "identifier", "text": "e", "parent": 559, "children": [], "start_point": {"row": 198, "column": 18}, "end_point": {"row": 198, "column": 19}}, {"id": 561, "type": "-", "text": "-", "parent": 559, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 20}}, {"id": 562, "type": "identifier", "text": "x", "parent": 559, "children": [], "start_point": {"row": 198, "column": 20}, "end_point": {"row": 198, "column": 21}}, {"id": 563, "type": "call_expression", "text": "fd__set_HI(&y,fd___HI(y) + (k<<20))", "parent": 540, "children": [564, 565], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 44}}, {"id": 564, "type": "identifier", "text": "fd__set_HI", "parent": 563, "children": [], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 19}}, {"id": 565, "type": "argument_list", "text": "(&y,fd___HI(y) + (k<<20))", "parent": 563, "children": [566, 568], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 44}}, {"id": 566, "type": "pointer_expression", "text": "&y", "parent": 565, "children": [567], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 22}}, {"id": 567, "type": "identifier", "text": "y", "parent": 566, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 22}}, {"id": 568, "type": "binary_expression", "text": "fd___HI(y) + (k<<20)", "parent": 565, "children": [569, 573, 574], "start_point": {"row": 199, "column": 23}, "end_point": {"row": 199, "column": 43}}, {"id": 569, "type": "call_expression", "text": "fd___HI(y)", "parent": 568, "children": [570, 571], "start_point": {"row": 199, "column": 23}, "end_point": {"row": 199, "column": 33}}, {"id": 570, "type": "identifier", "text": "fd___HI", "parent": 569, "children": [], "start_point": {"row": 199, "column": 23}, "end_point": {"row": 199, "column": 30}}, {"id": 571, "type": "argument_list", "text": "(y)", "parent": 569, "children": [572], "start_point": {"row": 199, "column": 30}, "end_point": {"row": 199, "column": 33}}, {"id": 572, "type": "identifier", "text": "y", "parent": 571, "children": [], "start_point": {"row": 199, "column": 31}, "end_point": {"row": 199, "column": 32}}, {"id": 573, "type": "+", "text": "+", "parent": 568, "children": [], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 35}}, {"id": 574, "type": "parenthesized_expression", "text": "(k<<20)", "parent": 568, "children": [575], "start_point": {"row": 199, "column": 36}, "end_point": {"row": 199, "column": 43}}, {"id": 575, "type": "binary_expression", "text": "k<<20", "parent": 574, "children": [576, 577, 578], "start_point": {"row": 199, "column": 37}, "end_point": {"row": 199, "column": 42}}, {"id": 576, "type": "identifier", "text": "k", "parent": 575, "children": [], "start_point": {"row": 199, "column": 37}, "end_point": {"row": 199, "column": 38}}, {"id": 577, "type": "<<", "text": "<<", "parent": 575, "children": [], "start_point": {"row": 199, "column": 38}, "end_point": {"row": 199, "column": 40}}, {"id": 578, "type": "number_literal", "text": "20", "parent": 575, "children": [], "start_point": {"row": 199, "column": 40}, "end_point": {"row": 199, "column": 42}}, {"id": 579, "type": "return_statement", "text": "return y-one;", "parent": 540, "children": [580], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 22}}, {"id": 580, "type": "binary_expression", "text": "y-one", "parent": 579, "children": [581, 582, 583], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 21}}, {"id": 581, "type": "identifier", "text": "y", "parent": 580, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 17}}, {"id": 582, "type": "-", "text": "-", "parent": 580, "children": [], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 18}}, {"id": 583, "type": "identifier", "text": "one", "parent": 580, "children": [], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 21}}, {"id": 584, "type": "assignment_expression", "text": "t = one", "parent": 464, "children": [585, 586, 587], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 12}}, {"id": 585, "type": "identifier", "text": "t", "parent": 584, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 6}}, {"id": 586, "type": "=", "text": "=", "parent": 584, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 8}}, {"id": 587, "type": "identifier", "text": "one", "parent": 584, "children": [], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 12}}, {"id": 588, "type": "if_statement", "text": "if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }", "parent": 464, "children": [589, 634], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 212, "column": 6}}, {"id": 589, "type": "parenthesized_expression", "text": "(k<20)", "parent": 588, "children": [590], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 13}}, {"id": 590, "type": "binary_expression", "text": "k<20", "parent": 589, "children": [591, 592, 593], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 12}}, {"id": 591, "type": "identifier", "text": "k", "parent": 590, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 9}}, {"id": 592, "type": "<", "text": "<", "parent": 590, "children": [], "start_point": {"row": 203, "column": 9}, "end_point": {"row": 203, "column": 10}}, {"id": 593, "type": "number_literal", "text": "20", "parent": 590, "children": [], "start_point": {"row": 203, "column": 10}, "end_point": {"row": 203, "column": 12}}, {"id": 594, "type": "call_expression", "text": "fd__set_HI(&t,0x3ff00000 - (0x200000>>k))", "parent": 588, "children": [595, 596], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 48}}, {"id": 595, "type": "identifier", "text": "fd__set_HI", "parent": 594, "children": [], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 17}}, {"id": 596, "type": "argument_list", "text": "(&t,0x3ff00000 - (0x200000>>k))", "parent": 594, "children": [597, 599], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 48}}, {"id": 597, "type": "pointer_expression", "text": "&t", "parent": 596, "children": [598], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 20}}, {"id": 598, "type": "identifier", "text": "t", "parent": 597, "children": [], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 20}}, {"id": 599, "type": "binary_expression", "text": "0x3ff00000 - (0x200000>>k)", "parent": 596, "children": [600, 601, 602], "start_point": {"row": 204, "column": 21}, "end_point": {"row": 204, "column": 47}}, {"id": 600, "type": "number_literal", "text": "0x3ff00000", "parent": 599, "children": [], "start_point": {"row": 204, "column": 21}, "end_point": {"row": 204, "column": 31}}, {"id": 601, "type": "-", "text": "-", "parent": 599, "children": [], "start_point": {"row": 204, "column": 32}, "end_point": {"row": 204, "column": 33}}, {"id": 602, "type": "parenthesized_expression", "text": "(0x200000>>k)", "parent": 599, "children": [603], "start_point": {"row": 204, "column": 34}, "end_point": {"row": 204, "column": 47}}, {"id": 603, "type": "binary_expression", "text": "0x200000>>k", "parent": 602, "children": [604, 605, 606], "start_point": {"row": 204, "column": 35}, "end_point": {"row": 204, "column": 46}}, {"id": 604, "type": "number_literal", "text": "0x200000", "parent": 603, "children": [], "start_point": {"row": 204, "column": 35}, "end_point": {"row": 204, "column": 43}}, {"id": 605, "type": ">>", "text": ">>", "parent": 603, "children": [], "start_point": {"row": 204, "column": 43}, "end_point": {"row": 204, "column": 45}}, {"id": 606, "type": "identifier", "text": "k", "parent": 603, "children": [], "start_point": {"row": 204, "column": 45}, "end_point": {"row": 204, "column": 46}}, {"id": 607, "type": "assignment_expression", "text": "y = t-(e-x)", "parent": 588, "children": [608, 609, 610], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 20}}, {"id": 608, "type": "identifier", "text": "y", "parent": 607, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 10}}, {"id": 609, "type": "=", "text": "=", "parent": 607, "children": [], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 12}}, {"id": 610, "type": "binary_expression", "text": "t-(e-x)", "parent": 607, "children": [611, 612, 613], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 20}}, {"id": 611, "type": "identifier", "text": "t", "parent": 610, "children": [], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 14}}, {"id": 612, "type": "-", "text": "-", "parent": 610, "children": [], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 15}}, {"id": 613, "type": "parenthesized_expression", "text": "(e-x)", "parent": 610, "children": [614], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 20}}, {"id": 614, "type": "binary_expression", "text": "e-x", "parent": 613, "children": [615, 616, 617], "start_point": {"row": 205, "column": 16}, "end_point": {"row": 205, "column": 19}}, {"id": 615, "type": "identifier", "text": "e", "parent": 614, "children": [], "start_point": {"row": 205, "column": 16}, "end_point": {"row": 205, "column": 17}}, {"id": 616, "type": "-", "text": "-", "parent": 614, "children": [], "start_point": {"row": 205, "column": 17}, "end_point": {"row": 205, "column": 18}}, {"id": 617, "type": "identifier", "text": "x", "parent": 614, "children": [], "start_point": {"row": 205, "column": 18}, "end_point": {"row": 205, "column": 19}}, {"id": 618, "type": "call_expression", "text": "fd__set_HI(&y,fd___HI(y)+ (k<<20))", "parent": 588, "children": [619, 620], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 43}}, {"id": 619, "type": "identifier", "text": "fd__set_HI", "parent": 618, "children": [], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 19}}, {"id": 620, "type": "argument_list", "text": "(&y,fd___HI(y)+ (k<<20))", "parent": 618, "children": [621, 623], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 43}}, {"id": 621, "type": "pointer_expression", "text": "&y", "parent": 620, "children": [622], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 22}}, {"id": 622, "type": "identifier", "text": "y", "parent": 621, "children": [], "start_point": {"row": 206, "column": 21}, "end_point": {"row": 206, "column": 22}}, {"id": 623, "type": "binary_expression", "text": "fd___HI(y)+ (k<<20)", "parent": 620, "children": [624, 628, 629], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 42}}, {"id": 624, "type": "call_expression", "text": "fd___HI(y)", "parent": 623, "children": [625, 626], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 33}}, {"id": 625, "type": "identifier", "text": "fd___HI", "parent": 624, "children": [], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 30}}, {"id": 626, "type": "argument_list", "text": "(y)", "parent": 624, "children": [627], "start_point": {"row": 206, "column": 30}, "end_point": {"row": 206, "column": 33}}, {"id": 627, "type": "identifier", "text": "y", "parent": 626, "children": [], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 32}}, {"id": 628, "type": "+", "text": "+", "parent": 623, "children": [], "start_point": {"row": 206, "column": 33}, "end_point": {"row": 206, "column": 34}}, {"id": 629, "type": "parenthesized_expression", "text": "(k<<20)", "parent": 623, "children": [630], "start_point": {"row": 206, "column": 35}, "end_point": {"row": 206, "column": 42}}, {"id": 630, "type": "binary_expression", "text": "k<<20", "parent": 629, "children": [631, 632, 633], "start_point": {"row": 206, "column": 36}, "end_point": {"row": 206, "column": 41}}, {"id": 631, "type": "identifier", "text": "k", "parent": 630, "children": [], "start_point": {"row": 206, "column": 36}, "end_point": {"row": 206, "column": 37}}, {"id": 632, "type": "<<", "text": "<<", "parent": 630, "children": [], "start_point": {"row": 206, "column": 37}, "end_point": {"row": 206, "column": 39}}, {"id": 633, "type": "number_literal", "text": "20", "parent": 630, "children": [], "start_point": {"row": 206, "column": 39}, "end_point": {"row": 206, "column": 41}}, {"id": 634, "type": "else_clause", "text": "else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }", "parent": 588, "children": [], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 212, "column": 6}}, {"id": 635, "type": "call_expression", "text": "fd__set_HI(&t, ((0x3ff-k)<<20))", "parent": 634, "children": [636, 637], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 38}}, {"id": 636, "type": "identifier", "text": "fd__set_HI", "parent": 635, "children": [], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 17}}, {"id": 637, "type": "argument_list", "text": "(&t, ((0x3ff-k)<<20))", "parent": 635, "children": [638, 640], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 38}}, {"id": 638, "type": "pointer_expression", "text": "&t", "parent": 637, "children": [639], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 20}}, {"id": 639, "type": "identifier", "text": "t", "parent": 638, "children": [], "start_point": {"row": 208, "column": 19}, "end_point": {"row": 208, "column": 20}}, {"id": 640, "type": "parenthesized_expression", "text": "((0x3ff-k)<<20)", "parent": 637, "children": [641], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 37}}, {"id": 641, "type": "binary_expression", "text": "(0x3ff-k)<<20", "parent": 640, "children": [642, 647, 648], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 36}}, {"id": 642, "type": "parenthesized_expression", "text": "(0x3ff-k)", "parent": 641, "children": [643], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 32}}, {"id": 643, "type": "binary_expression", "text": "0x3ff-k", "parent": 642, "children": [644, 645, 646], "start_point": {"row": 208, "column": 24}, "end_point": {"row": 208, "column": 31}}, {"id": 644, "type": "number_literal", "text": "0x3ff", "parent": 643, "children": [], "start_point": {"row": 208, "column": 24}, "end_point": {"row": 208, "column": 29}}, {"id": 645, "type": "-", "text": "-", "parent": 643, "children": [], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 30}}, {"id": 646, "type": "identifier", "text": "k", "parent": 643, "children": [], "start_point": {"row": 208, "column": 30}, "end_point": {"row": 208, "column": 31}}, {"id": 647, "type": "<<", "text": "<<", "parent": 641, "children": [], "start_point": {"row": 208, "column": 32}, "end_point": {"row": 208, "column": 34}}, {"id": 648, "type": "number_literal", "text": "20", "parent": 641, "children": [], "start_point": {"row": 208, "column": 34}, "end_point": {"row": 208, "column": 36}}, {"id": 649, "type": "assignment_expression", "text": "y = x-(e+t)", "parent": 634, "children": [650, 651, 652], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 20}}, {"id": 650, "type": "identifier", "text": "y", "parent": 649, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 10}}, {"id": 651, "type": "=", "text": "=", "parent": 649, "children": [], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 12}}, {"id": 652, "type": "binary_expression", "text": "x-(e+t)", "parent": 649, "children": [653, 654, 655], "start_point": {"row": 209, "column": 13}, "end_point": {"row": 209, "column": 20}}, {"id": 653, "type": "identifier", "text": "x", "parent": 652, "children": [], "start_point": {"row": 209, "column": 13}, "end_point": {"row": 209, "column": 14}}, {"id": 654, "type": "-", "text": "-", "parent": 652, "children": [], "start_point": {"row": 209, "column": 14}, "end_point": {"row": 209, "column": 15}}, {"id": 655, "type": "parenthesized_expression", "text": "(e+t)", "parent": 652, "children": [656], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 20}}, {"id": 656, "type": "binary_expression", "text": "e+t", "parent": 655, "children": [657, 658, 659], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 19}}, {"id": 657, "type": "identifier", "text": "e", "parent": 656, "children": [], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 17}}, {"id": 658, "type": "+", "text": "+", "parent": 656, "children": [], "start_point": {"row": 209, "column": 17}, "end_point": {"row": 209, "column": 18}}, {"id": 659, "type": "identifier", "text": "t", "parent": 656, "children": [], "start_point": {"row": 209, "column": 18}, "end_point": {"row": 209, "column": 19}}, {"id": 660, "type": "assignment_expression", "text": "y += one", "parent": 634, "children": [661, 662, 663], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 17}}, {"id": 661, "type": "identifier", "text": "y", "parent": 660, "children": [], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 10}}, {"id": 662, "type": "+=", "text": "+=", "parent": 660, "children": [], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 13}}, {"id": 663, "type": "identifier", "text": "one", "parent": 660, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 17}}, {"id": 664, "type": "call_expression", "text": "fd__set_HI(&y,fd___HI(y)+ (k<<20))", "parent": 634, "children": [665, 666], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 43}}, {"id": 665, "type": "identifier", "text": "fd__set_HI", "parent": 664, "children": [], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 19}}, {"id": 666, "type": "argument_list", "text": "(&y,fd___HI(y)+ (k<<20))", "parent": 664, "children": [667, 669], "start_point": {"row": 211, "column": 19}, "end_point": {"row": 211, "column": 43}}, {"id": 667, "type": "pointer_expression", "text": "&y", "parent": 666, "children": [668], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 22}}, {"id": 668, "type": "identifier", "text": "y", "parent": 667, "children": [], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 22}}, {"id": 669, "type": "binary_expression", "text": "fd___HI(y)+ (k<<20)", "parent": 666, "children": [670, 674, 675], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 42}}, {"id": 670, "type": "call_expression", "text": "fd___HI(y)", "parent": 669, "children": [671, 672], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 33}}, {"id": 671, "type": "identifier", "text": "fd___HI", "parent": 670, "children": [], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 30}}, {"id": 672, "type": "argument_list", "text": "(y)", "parent": 670, "children": [673], "start_point": {"row": 211, "column": 30}, "end_point": {"row": 211, "column": 33}}, {"id": 673, "type": "identifier", "text": "y", "parent": 672, "children": [], "start_point": {"row": 211, "column": 31}, "end_point": {"row": 211, "column": 32}}, {"id": 674, "type": "+", "text": "+", "parent": 669, "children": [], "start_point": {"row": 211, "column": 33}, "end_point": {"row": 211, "column": 34}}, {"id": 675, "type": "parenthesized_expression", "text": "(k<<20)", "parent": 669, "children": [676], "start_point": {"row": 211, "column": 35}, "end_point": {"row": 211, "column": 42}}, {"id": 676, "type": "binary_expression", "text": "k<<20", "parent": 675, "children": [677, 678, 679], "start_point": {"row": 211, "column": 36}, "end_point": {"row": 211, "column": 41}}, {"id": 677, "type": "identifier", "text": "k", "parent": 676, "children": [], "start_point": {"row": 211, "column": 36}, "end_point": {"row": 211, "column": 37}}, {"id": 678, "type": "<<", "text": "<<", "parent": 676, "children": [], "start_point": {"row": 211, "column": 37}, "end_point": {"row": 211, "column": 39}}, {"id": 679, "type": "number_literal", "text": "20", "parent": 676, "children": [], "start_point": {"row": 211, "column": 39}, "end_point": {"row": 211, "column": 41}}, {"id": 680, "type": "return_statement", "text": "return y;", "parent": 73, "children": [681], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 10}}, {"id": 681, "type": "identifier", "text": "y", "parent": 680, "children": [], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 9}}]}, "node_categories": {"declarations": {"functions": [65, 73, 75], "variables": [6, 63, 68, 79, 84, 98, 102], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [109, 116, 120, 121, 133, 141, 142, 147, 148, 153, 154, 159, 160, 161, 162, 163, 164, 167, 174, 181, 182, 190, 191, 196, 201, 202, 207, 208, 209, 216, 221, 222, 227, 228, 233, 234, 241, 257, 264, 275, 276, 281, 283, 284, 298, 301, 308, 315, 322, 323, 324, 332, 333, 340, 345, 348, 349, 352, 353, 365, 372, 379, 382, 385, 386, 389, 392, 393, 396, 399, 400, 403, 406, 407, 410, 417, 420, 427, 430, 431, 432, 433, 438, 439, 442, 447, 448, 453, 456, 457, 458, 468, 469, 470, 473, 474, 485, 486, 491, 492, 495, 496, 503, 504, 509, 510, 515, 518, 519, 522, 523, 529, 532, 535, 536, 541, 542, 543, 548, 555, 558, 559, 563, 566, 568, 569, 574, 575, 580, 589, 590, 594, 597, 599, 602, 603, 610, 613, 614, 618, 621, 623, 624, 629, 630, 635, 638, 640, 641, 642, 643, 652, 655, 656, 664, 667, 669, 670, 675, 676], "assignments": [106, 113, 125, 130, 136, 238, 245, 249, 254, 261, 267, 272, 291, 295, 305, 312, 319, 337, 358, 362, 369, 376, 414, 424, 465, 480, 552, 584, 607, 649, 660], "loops": [], "conditionals": [4, 5, 11, 12, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 61, 62, 66, 70, 76, 78, 81, 83, 86, 87, 88, 90, 93, 94, 95, 96, 97, 100, 101, 103, 105, 107, 110, 112, 114, 117, 119, 122, 126, 128, 131, 135, 137, 140, 143, 146, 149, 152, 155, 158, 165, 168, 170, 175, 177, 180, 183, 187, 189, 192, 194, 197, 199, 200, 203, 206, 210, 212, 217, 219, 220, 223, 226, 229, 232, 235, 239, 242, 244, 246, 248, 250, 255, 258, 260, 262, 266, 268, 273, 277, 279, 282, 285, 292, 294, 296, 299, 302, 304, 306, 309, 311, 313, 316, 318, 320, 325, 327, 329, 331, 334, 338, 341, 343, 346, 350, 354, 356, 359, 363, 368, 370, 373, 375, 377, 380, 383, 387, 390, 394, 397, 401, 404, 408, 411, 413, 415, 421, 423, 425, 428, 434, 436, 443, 445, 446, 449, 454, 459, 461, 463, 466, 471, 475, 477, 479, 481, 483, 484, 487, 497, 499, 502, 505, 508, 511, 520, 524, 530, 537, 539, 540, 544, 549, 553, 556, 560, 562, 564, 567, 570, 572, 576, 581, 583, 585, 587, 588, 591, 595, 598, 606, 608, 611, 615, 617, 619, 622, 625, 627, 631, 636, 639, 646, 650, 653, 657, 659, 661, 663, 665, 668, 671, 673, 677, 681], "returns": [173, 179, 195, 215, 344, 452, 490, 514, 528, 579, 680], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 92, 118, 124, 139, 145, 151, 157, 166, 172, 185, 188, 205, 214, 225, 231, 237, 252, 270, 287, 289, 290, 336, 361, 366, 418, 440, 451, 489, 493, 501, 507, 513, 516, 526, 533, 546, 551, 578, 593, 600, 604, 633, 644, 648, 679], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "fd_expm1(double x)"}, {"node_id": 73, "universal_type": "function", "name": "k,xsb;", "text_snippet": "double fd_expm1(x)\n\tdouble x;\n#endif\n{\n\tdouble y,hi,lo,c=0,t,e,hxs,hfx,r1;\n\tint k,xsb;\n\tunsigned hx;"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "fd_expm1(x)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"fdlibm.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "\n/* @(#)s_expm1.c 1.5 04/04/22 */\n/*\n * ====================================================\n * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.\n *\n * Permission to use, copy, modify, and distribute this\n * software is freely granted, provided that this notice\n * is preserved.\n * ====================================================\n */\n\n/* fd_expm1(x)\n * Returns exp(x)-1, the exponential of x minus 1.\n *\n * Method\n * 1. Argument reduction:\n *\tGiven x, find r and integer k such that\n *\n * x = k*ln2 + r, |r| <= 0.5*ln2 ~ 0.34658\n *\n * Here a correction term c will be computed to compensate\n *\tthe error in r when rounded to a floating-point number.\n *\n * 2. Approximating expm1(r) by a special rational function on\n *\tthe interval [0,0.34658]:\n *\tSince\n *\t r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 - r^4/360 + ...\n *\twe define R1(r*r) by\n *\t r*(exp(r)+1)/(exp(r)-1) = 2+ r^2/6 * R1(r*r)\n *\tThat is,\n *\t R1(r**2) = 6/r *((exp(r)+1)/(exp(r)-1) - 2/r)\n *\t\t = 6/r * ( 1 + 2.0*(1/(exp(r)-1) - 1/r))\n *\t\t = 1 - r^2/60 + r^4/2520 - r^6/100800 + ...\n * We use a special Remes algorithm on [0,0.347] to generate\n * \ta polynomial of degree 5 in r*r to approximate R1. The\n *\tmaximum error of this polynomial approximation is bounded\n *\tby 2**-61. In other words,\n *\t R1(z) ~ 1.0 + Q1*z + Q2*z**2 + Q3*z**3 + Q4*z**4 + Q5*z**5\n *\twhere \tQ1 = -1.6666666666666567384E-2,\n * \t\tQ2 = 3.9682539681370365873E-4,\n * \t\tQ3 = -9.9206344733435987357E-6,\n * \t\tQ4 = 2.5051361420808517002E-7,\n * \t\tQ5 = -6.2843505682382617102E-9;\n * \t(where z=r*r, and the values of Q1 to Q5 are listed below)\n *\twith error bounded by\n *\t | 5 | -61\n *\t | 1.0+Q1*z+...+Q5*z - R1(z) | <= 2\n *\t | |\n *\n *\texpm1(r) = exp(r)-1 is then computed by the following\n * \tspecific way which minimize the accumulation rounding error:\n *\t\t\t 2 3\n *\t\t\t r r [ 3 - (R1 + R1*r/2) ]\n *\t expm1(r) = r + --- + --- * [--------------------]\n *\t\t 2 2 [ 6 - r*(3 - R1*r/2) ]\n *\n *\tTo compensate the error in the argument reduction, we use\n *\t\texpm1(r+c) = expm1(r) + c + expm1(r)*c\n *\t\t\t ~ expm1(r) + c + r*c\n *\tThus c+r*c will be added in as the correction terms for\n *\texpm1(r+c). Now rearrange the term to avoid optimization\n * \tscrew up:\n *\t\t ( 2 2 )\n *\t\t ({ ( r [ R1 - (3 - R1*r/2) ] ) } r )\n *\t expm1(r+c)~r - ({r*(--- * [--------------------]-c)-c} - --- )\n *\t ({ ( 2 [ 6 - r*(3 - R1*r/2) ] ) } 2 )\n * ( )\n *\n *\t\t = r - E\n * 3. Scale back to obtain expm1(x):\n *\tFrom step 1, we have\n *\t expm1(x) = either 2^k*[expm1(r)+1] - 1\n *\t\t = or 2^k*[expm1(r) + (1-2^-k)]\n * 4. Implementation notes:\n *\t(A). To save one multiplication, we scale the coefficient Qi\n *\t to Qi*2^i, and replace z by (x^2)/2.\n *\t(B). To achieve maximum accuracy, we compute expm1(x) by\n *\t (i) if x < -56*ln2, return -1.0, (raise inexact if x!=inf)\n *\t (ii) if k=0, return r-E\n *\t (iii) if k=-1, return 0.5*(r-E)-0.5\n * (iv)\tif k=1 if r < -0.25, return 2*((r+0.5)- E)\n *\t \t else\t return 1.0+2.0*(r-E);\n *\t (v) if (k<-2||k>56) return 2^k(1-(E-r)) - 1 (or exp(x)-1)\n *\t (vi) if k <= 20, return 2^k((1-2^-k)-(E-r)), else\n *\t (vii) return 2^k(1-((E+2^-k)-r))\n *\n * Special cases:\n *\texpm1(INF) is INF, expm1(NaN) is NaN;\n *\texpm1(-INF) is -1, and\n *\tfor finite argument, only expm1(0)=0 is exact.\n *\n * Accuracy:\n *\taccording to an error analysis, the error is always less than\n *\t1 ulp (unit in the last place).\n *\n * Misc. info.\n *\tFor IEEE double\n *\t if x > 7.09782712893383973096e+02 then expm1(x) overflow\n *\n * Constants:\n * The hexadecimal values are the intended ones for the following\n * constants. The decimal values may be used, provided that the\n * compiler will convert from decimal to binary accurately enough\n * to produce the hexadecimal values shown.\n */\n\n#include \"fdlibm.h\"\n\n#ifdef __STDC__\nstatic const double\n#else\nstatic double\n#endif\none\t\t= 1.0,\nhuge\t\t= 1.0e+300,\ntiny\t\t= 1.0e-300,\no_threshold\t= 7.09782712893383973096e+02,/* 0x40862E42, 0xFEFA39EF */\nln2_hi\t\t= 6.93147180369123816490e-01,/* 0x3fe62e42, 0xfee00000 */\nln2_lo\t\t= 1.90821492927058770002e-10,/* 0x3dea39ef, 0x35793c76 */\ninvln2\t\t= 1.44269504088896338700e+00,/* 0x3ff71547, 0x652b82fe */\n\t/* scaled coefficients related to expm1 */\nQ1 = -3.33333333333331316428e-02, /* BFA11111 111110F4 */\nQ2 = 1.58730158725481460165e-03, /* 3F5A01A0 19FE5585 */\nQ3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */\nQ4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */\nQ5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */\n\n#ifdef __STDC__\n\tdouble fd_expm1(double x)\n#else\n\tdouble fd_expm1(x)\n\tdouble x;\n#endif\n{\n\tdouble y,hi,lo,c=0,t,e,hxs,hfx,r1;\n\tint k,xsb;\n\tunsigned hx;\n\n\thx = fd___HI(x);\t/* high word of x */\n\txsb = hx&0x80000000;\t\t/* sign bit of x */\n\tif(xsb==0) y=x; else y= -x;\t/* y = |x| */\n\thx &= 0x7fffffff;\t\t/* high word of |x| */\n\n /* filter out huge and non-finite argument */\n\tif(hx >= 0x4043687A) {\t\t\t/* if |x|>=56*ln2 */\n\t if(hx >= 0x40862E42) {\t\t/* if |x|>=709.78... */\n if(hx>=0x7ff00000) {\n\t\t if(((hx&0xfffff)|fd___LO(x))!=0)\n\t\t return x+x; \t /* NaN */\n\t\t else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */\n\t }\n\t if(x > o_threshold) return huge*huge; /* overflow */\n\t }\n\t if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */\n\t\tif(x+tiny<0.0)\t\t/* raise inexact */\n\t\treturn tiny-one;\t/* return -1 */\n\t }\n\t}\n\n /* argument reduction */\n\tif(hx > 0x3fd62e42) {\t\t/* if |x| > 0.5 ln2 */\n\t if(hx < 0x3FF0A2B2) {\t/* and |x| < 1.5 ln2 */\n\t\tif(xsb==0)\n\t\t {hi = x - ln2_hi; lo = ln2_lo; k = 1;}\n\t\telse\n\t\t {hi = x + ln2_hi; lo = -ln2_lo; k = -1;}\n\t } else {\n\t\tk = invln2*x+((xsb==0)?0.5:-0.5);\n\t\tt = k;\n\t\thi = x - t*ln2_hi;\t/* t*ln2_hi is exact here */\n\t\tlo = t*ln2_lo;\n\t }\n\t x = hi - lo;\n\t c = (hi-x)-lo;\n\t}\n\telse if(hx < 0x3c900000) { \t/* when |x|<2**-54, return x */\n\t t = huge+x;\t/* return x with inexact flags when x!=0 */\n\t return x - (t-(huge+x));\n\t}\n\telse k = 0;\n\n /* x is now in primary range */\n\thfx = 0.5*x;\n\thxs = x*hfx;\n\tr1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5))));\n\tt = 3.0-r1*hfx;\n\te = hxs*((r1-t)/(6.0 - x*t));\n\tif(k==0) return x - (x*e-hxs);\t\t/* c is 0 */\n\telse {\n\t e = (x*(e-c)-c);\n\t e -= hxs;\n\t if(k== -1) return 0.5*(x-e)-0.5;\n\t if(k==1) {\n\t \tif(x < -0.25) return -2.0*(e-(x+0.5));\n\t \telse \t return one+2.0*(x-e);\n\t }\n\t if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */\n\t y = one-(e-x);\n\t fd__set_HI(&y,fd___HI(y) + (k<<20));\t/* add k to y's exponent */\n\t return y-one;\n\t }\n\t t = one;\n\t if(k<20) {\n\t fd__set_HI(&t,0x3ff00000 - (0x200000>>k)); /* t=1-2^-k */\n\t \ty = t-(e-x);\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t } else {\n\t fd__set_HI(&t, ((0x3ff-k)<<20));\t/* 2^-k */\n\t \ty = x-(e+t);\n\t \ty += one;\n\t \tfd__set_HI(&y,fd___HI(y)+ (k<<20));\t/* add k to y's exponent */\n\t }\n\t}\n\treturn y;\n}\n"}
81,066
c
// // ViewController.h // SKCatergoryView // // Created by macApple on 2019/12/18. // Copyright © 2019 KentSun. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.55
11
(translation_unit) "//\n// ViewController.h\n// SKCatergoryView\n//\n// Created by macApple on 2019/12/18.\n// Copyright © 2019 KentSun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// SKCatergoryView" (comment) "//" (comment) "// Created by macApple on 2019/12/18." (comment) "// Copyright © 2019 KentSun. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (ERROR) "i" (ERROR) "i" (declaration) "nterface ViewController : UIViewController\n\n\n@end\n" (type_identifier) "nterface " (ERROR) "iewController : UIViewController\n\n\n@e" (identifier) "iewController " (:) " " (identifier) "IViewController\n" (ERROR) "e" (identifier) "nd\n" (;) ""
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.55, "nodes": 11, "errors": 0, "source_hash": "5372365c01554bd0c37ddf149ab696aacde7de4cea6dcf25c4ce9773f8c1bf3c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "ERROR", "text": "i", "parent": null, "children": [3], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 3, "type": "ERROR", "text": "i", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "declaration", "text": "nterface ViewController : UIViewController\n\n\n@end\n", "parent": null, "children": [5, 6, 10], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 5, "type": "type_identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "ERROR", "text": "iewController : UIViewController\n\n\n@e", "parent": 4, "children": [7, 8, 9], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 13, "column": 1}}, {"id": 7, "type": "identifier", "text": "iewController ", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 8, "type": "identifier", "text": "IViewController\n", "parent": 6, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 44}}, {"id": 9, "type": "ERROR", "text": "e", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 10, "type": "identifier", "text": "nd\n", "parent": 4, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [4], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 8, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ViewController.h\n// SKCatergoryView\n//\n// Created by macApple on 2019/12/18.\n// Copyright \u00a9 2019 KentSun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"}
81,067
c
#include <mruby-aux/string.h> static mrb_value test_str_drop(mrb_state *mrb, mrb_value self) { mrb_value str; mrb_int off, size; mrb_get_args(mrb, "Sii", &str, &off, &size); return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size)); } void mruby_aux_test_string_init(mrb_state *mrb, struct RClass *test) { mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3)); }
28
14
(translation_unit) "#include <mruby-aux/string.h>\n\nstatic mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, "Sii", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}\n\nvoid\nmruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)\n{\n mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3));\n}\n" (preproc_include) "#include <mruby-aux/string.h>\n" (#include) "#include" (system_lib_string) "<mruby-aux/string.h>" (function_definition) "static mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, "Sii", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "mrb_value" (function_declarator) "test_str_drop(mrb_state *mrb, mrb_value self)" (identifier) "test_str_drop" (parameter_list) "(mrb_state *mrb, mrb_value self)" (() "(" (parameter_declaration) "mrb_state *mrb" (type_identifier) "mrb_state" (pointer_declarator) "*mrb" (*) "*" (identifier) "mrb" (,) "," (parameter_declaration) "mrb_value self" (type_identifier) "mrb_value" (identifier) "self" ()) ")" (compound_statement) "{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, "Sii", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}" ({) "{" (declaration) "mrb_value str;" (type_identifier) "mrb_value" (identifier) "str" (;) ";" (declaration) "mrb_int off, size;" (type_identifier) "mrb_int" (identifier) "off" (,) "," (identifier) "size" (;) ";" (expression_statement) "mrb_get_args(mrb, "Sii", &str, &off, &size);" (call_expression) "mrb_get_args(mrb, "Sii", &str, &off, &size)" (identifier) "mrb_get_args" (argument_list) "(mrb, "Sii", &str, &off, &size)" (() "(" (identifier) "mrb" (,) "," (string_literal) ""Sii"" (") """ (string_content) "Sii" (") """ (,) "," (pointer_expression) "&str" (&) "&" (identifier) "str" (,) "," (pointer_expression) "&off" (&) "&" (identifier) "off" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" ()) ")" (;) ";" (return_statement) "return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));" (return) "return" (call_expression) "mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size))" (identifier) "mrb_obj_value" (argument_list) "(mrbx_str_drop(mrb, RSTRING(str), off, size))" (() "(" (call_expression) "mrbx_str_drop(mrb, RSTRING(str), off, size)" (identifier) "mrbx_str_drop" (argument_list) "(mrb, RSTRING(str), off, size)" (() "(" (identifier) "mrb" (,) "," (call_expression) "RSTRING(str)" (identifier) "RSTRING" (argument_list) "(str)" (() "(" (identifier) "str" ()) ")" (,) "," (identifier) "off" (,) "," (identifier) "size" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void\nmruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)\n{\n mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3));\n}" (primitive_type) "void" (function_declarator) "mruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)" (identifier) "mruby_aux_test_string_init" (parameter_list) "(mrb_state *mrb, struct RClass *test)" (() "(" (parameter_declaration) "mrb_state *mrb" (type_identifier) "mrb_state" (pointer_declarator) "*mrb" (*) "*" (identifier) "mrb" (,) "," (parameter_declaration) "struct RClass *test" (struct_specifier) "struct RClass" (struct) "struct" (type_identifier) "RClass" (pointer_declarator) "*test" (*) "*" (identifier) "test" ()) ")" (compound_statement) "{\n mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3));\n}" ({) "{" (expression_statement) "mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3));" (call_expression) "mrb_define_class_method(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3))" (identifier) "mrb_define_class_method" (argument_list) "(mrb, test, "str_drop", test_str_drop, MRB_ARGS_REQ(3))" (() "(" (identifier) "mrb" (,) "," (identifier) "test" (,) "," (string_literal) ""str_drop"" (") """ (string_content) "str_drop" (") """ (,) "," (identifier) "test_str_drop" (,) "," (call_expression) "MRB_ARGS_REQ(3)" (identifier) "MRB_ARGS_REQ" (argument_list) "(3)" (() "(" (number_literal) "3" ()) ")" ()) ")" (;) ";" (}) "}"
132
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.0, "nodes": 76, "errors": 0, "source_hash": "c645cd8343efe33137b83fe0c5ad28c10b7b38a4b602c6d595393b5af1b0ea8b", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <mruby-aux/string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<mruby-aux/string.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 29}}, {"id": 3, "type": "function_definition", "text": "static mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, \"Sii\", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "mrb_value", "parent": 3, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 16}}, {"id": 5, "type": "function_declarator", "text": "test_str_drop(mrb_state *mrb, mrb_value self)", "parent": 3, "children": [6, 7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 45}}, {"id": 6, "type": "identifier", "text": "test_str_drop", "parent": 5, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 13}}, {"id": 7, "type": "parameter_list", "text": "(mrb_state *mrb, mrb_value self)", "parent": 5, "children": [8, 13], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 45}}, {"id": 8, "type": "parameter_declaration", "text": "mrb_state *mrb", "parent": 7, "children": [9, 10], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 28}}, {"id": 9, "type": "type_identifier", "text": "mrb_state", "parent": 8, "children": [], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 23}}, {"id": 10, "type": "pointer_declarator", "text": "*mrb", "parent": 8, "children": [11, 12], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 28}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 12, "type": "identifier", "text": "mrb", "parent": 10, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 28}}, {"id": 13, "type": "parameter_declaration", "text": "mrb_value self", "parent": 7, "children": [14, 15], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 44}}, {"id": 14, "type": "type_identifier", "text": "mrb_value", "parent": 13, "children": [], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 39}}, {"id": 15, "type": "identifier", "text": "self", "parent": 13, "children": [], "start_point": {"row": 3, "column": 40}, "end_point": {"row": 3, "column": 44}}, {"id": 16, "type": "declaration", "text": "mrb_value str;", "parent": 3, "children": [17, 18], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 16}}, {"id": 17, "type": "type_identifier", "text": "mrb_value", "parent": 16, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 11}}, {"id": 18, "type": "identifier", "text": "str", "parent": 16, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 15}}, {"id": 19, "type": "declaration", "text": "mrb_int off, size;", "parent": 3, "children": [20, 21, 22], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 20}}, {"id": 20, "type": "type_identifier", "text": "mrb_int", "parent": 19, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 9}}, {"id": 21, "type": "identifier", "text": "off", "parent": 19, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 22, "type": "identifier", "text": "size", "parent": 19, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 19}}, {"id": 23, "type": "call_expression", "text": "mrb_get_args(mrb, \"Sii\", &str, &off, &size)", "parent": 3, "children": [24, 25], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 45}}, {"id": 24, "type": "identifier", "text": "mrb_get_args", "parent": 23, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 14}}, {"id": 25, "type": "argument_list", "text": "(mrb, \"Sii\", &str, &off, &size)", "parent": 23, "children": [26, 27, 28, 30, 32], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 45}}, {"id": 26, "type": "identifier", "text": "mrb", "parent": 25, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 18}}, {"id": 27, "type": "string_literal", "text": "\"Sii\"", "parent": 25, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 25}}, {"id": 28, "type": "pointer_expression", "text": "&str", "parent": 25, "children": [29], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 31}}, {"id": 29, "type": "identifier", "text": "str", "parent": 28, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 31}}, {"id": 30, "type": "pointer_expression", "text": "&off", "parent": 25, "children": [31], "start_point": {"row": 7, "column": 33}, "end_point": {"row": 7, "column": 37}}, {"id": 31, "type": "identifier", "text": "off", "parent": 30, "children": [], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 37}}, {"id": 32, "type": "pointer_expression", "text": "&size", "parent": 25, "children": [33], "start_point": {"row": 7, "column": 39}, "end_point": {"row": 7, "column": 44}}, {"id": 33, "type": "identifier", "text": "size", "parent": 32, "children": [], "start_point": {"row": 7, "column": 40}, "end_point": {"row": 7, "column": 44}}, {"id": 34, "type": "return_statement", "text": "return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));", "parent": 3, "children": [35], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 68}}, {"id": 35, "type": "call_expression", "text": "mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size))", "parent": 34, "children": [36, 37], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 67}}, {"id": 36, "type": "identifier", "text": "mrb_obj_value", "parent": 35, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 22}}, {"id": 37, "type": "argument_list", "text": "(mrbx_str_drop(mrb, RSTRING(str), off, size))", "parent": 35, "children": [38], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 67}}, {"id": 38, "type": "call_expression", "text": "mrbx_str_drop(mrb, RSTRING(str), off, size)", "parent": 37, "children": [39, 40], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 66}}, {"id": 39, "type": "identifier", "text": "mrbx_str_drop", "parent": 38, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 36}}, {"id": 40, "type": "argument_list", "text": "(mrb, RSTRING(str), off, size)", "parent": 38, "children": [41, 42, 46, 47], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 66}}, {"id": 41, "type": "identifier", "text": "mrb", "parent": 40, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 40}}, {"id": 42, "type": "call_expression", "text": "RSTRING(str)", "parent": 40, "children": [43, 44], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 54}}, {"id": 43, "type": "identifier", "text": "RSTRING", "parent": 42, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 49}}, {"id": 44, "type": "argument_list", "text": "(str)", "parent": 42, "children": [45], "start_point": {"row": 9, "column": 49}, "end_point": {"row": 9, "column": 54}}, {"id": 45, "type": "identifier", "text": "str", "parent": 44, "children": [], "start_point": {"row": 9, "column": 50}, "end_point": {"row": 9, "column": 53}}, {"id": 46, "type": "identifier", "text": "off", "parent": 40, "children": [], "start_point": {"row": 9, "column": 56}, "end_point": {"row": 9, "column": 59}}, {"id": 47, "type": "identifier", "text": "size", "parent": 40, "children": [], "start_point": {"row": 9, "column": 61}, "end_point": {"row": 9, "column": 65}}, {"id": 48, "type": "function_definition", "text": "void\nmruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)\n{\n mrb_define_class_method(mrb, test, \"str_drop\", test_str_drop, MRB_ARGS_REQ(3));\n}", "parent": null, "children": [49, 50], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 50, "type": "function_declarator", "text": "mruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)", "parent": 48, "children": [51, 52], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 63}}, {"id": 51, "type": "identifier", "text": "mruby_aux_test_string_init", "parent": 50, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 26}}, {"id": 52, "type": "parameter_list", "text": "(mrb_state *mrb, struct RClass *test)", "parent": 50, "children": [53, 58], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 63}}, {"id": 53, "type": "parameter_declaration", "text": "mrb_state *mrb", "parent": 52, "children": [54, 55], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 41}}, {"id": 54, "type": "type_identifier", "text": "mrb_state", "parent": 53, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 36}}, {"id": 55, "type": "pointer_declarator", "text": "*mrb", "parent": 53, "children": [56, 57], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 41}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 38}}, {"id": 57, "type": "identifier", "text": "mrb", "parent": 55, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 41}}, {"id": 58, "type": "parameter_declaration", "text": "struct RClass *test", "parent": 52, "children": [59, 62], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 62}}, {"id": 59, "type": "struct_specifier", "text": "struct RClass", "parent": 58, "children": [60, 61], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 56}}, {"id": 60, "type": "struct", "text": "struct", "parent": 59, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 49}}, {"id": 61, "type": "type_identifier", "text": "RClass", "parent": 59, "children": [], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 56}}, {"id": 62, "type": "pointer_declarator", "text": "*test", "parent": 58, "children": [63, 64], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 62}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 58}}, {"id": 64, "type": "identifier", "text": "test", "parent": 62, "children": [], "start_point": {"row": 13, "column": 58}, "end_point": {"row": 13, "column": 62}}, {"id": 65, "type": "call_expression", "text": "mrb_define_class_method(mrb, test, \"str_drop\", test_str_drop, MRB_ARGS_REQ(3))", "parent": 48, "children": [66, 67], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 80}}, {"id": 66, "type": "identifier", "text": "mrb_define_class_method", "parent": 65, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 25}}, {"id": 67, "type": "argument_list", "text": "(mrb, test, \"str_drop\", test_str_drop, MRB_ARGS_REQ(3))", "parent": 65, "children": [68, 69, 70, 71, 72], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 80}}, {"id": 68, "type": "identifier", "text": "mrb", "parent": 67, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 29}}, {"id": 69, "type": "identifier", "text": "test", "parent": 67, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 35}}, {"id": 70, "type": "string_literal", "text": "\"str_drop\"", "parent": 67, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 47}}, {"id": 71, "type": "identifier", "text": "test_str_drop", "parent": 67, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 62}}, {"id": 72, "type": "call_expression", "text": "MRB_ARGS_REQ(3)", "parent": 67, "children": [73, 74], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 79}}, {"id": 73, "type": "identifier", "text": "MRB_ARGS_REQ", "parent": 72, "children": [], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 76}}, {"id": 74, "type": "argument_list", "text": "(3)", "parent": 72, "children": [75], "start_point": {"row": 15, "column": 76}, "end_point": {"row": 15, "column": 79}}, {"id": 75, "type": "number_literal", "text": "3", "parent": 74, "children": [], "start_point": {"row": 15, "column": 77}, "end_point": {"row": 15, "column": 78}}]}, "node_categories": {"declarations": {"functions": [3, 5, 48, 50], "variables": [8, 13, 16, 19, 53, 58], "classes": [59, 60], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [23, 28, 30, 32, 35, 38, 42, 65, 72], "assignments": [], "loops": [], "conditionals": [4, 6, 9, 12, 14, 15, 17, 18, 20, 21, 22, 24, 26, 29, 31, 33, 36, 39, 41, 43, 45, 46, 47, 51, 54, 57, 61, 64, 66, 68, 69, 71, 73], "returns": [34], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 27, 70, 75], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "static mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, siz"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "test_str_drop(mrb_state *mrb, mrb_value self)"}, {"node_id": 48, "universal_type": "function", "name": "mruby_aux_test_string_init", "text_snippet": "void\nmruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)\n{\n mrb_define_class_method(mrb"}, {"node_id": 50, "universal_type": "function", "name": "RClass", "text_snippet": "mruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)"}], "class_declarations": [{"node_id": 59, "universal_type": "class", "name": "RClass", "text_snippet": "struct RClass"}, {"node_id": 60, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <mruby-aux/string.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <mruby-aux/string.h>\n\nstatic mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, \"Sii\", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}\n\nvoid\nmruby_aux_test_string_init(mrb_state *mrb, struct RClass *test)\n{\n mrb_define_class_method(mrb, test, \"str_drop\", test_str_drop, MRB_ARGS_REQ(3));\n}\n"}
81,068
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "eEVM/account.h" #include <nlohmann/json.hpp> namespace eevm { /** * Simple implementation of Account */ class SimpleAccount : public Account { private: Address address = {}; uint256_t balance = {}; Code code = {}; Nonce nonce = {}; uint256_t last_hash = {}; public: SimpleAccount() = default; SimpleAccount(const Address& a, const uint256_t& b, const Code& c) : address(a), balance(b), code(c), nonce(0) {} SimpleAccount( const Address& a, const uint256_t& b, const Code& c, Nonce n) : address(a), balance(b), code(c), nonce(n) {} SimpleAccount( const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) : address(a), balance(b), code(c), last_hash(last_hash) {} virtual Address get_address() const override; void set_address(const Address& a); virtual uint256_t get_balance() const override; virtual void set_balance(const uint256_t& b) override; virtual Nonce get_nonce() const override; void set_nonce(Nonce n); virtual void increment_nonce() override; virtual Code get_code() const override; virtual void set_code(Code&& c) override; virtual bool has_code() override; bool operator==(const Account&) const; virtual uint256_t get_last_hash() const override; friend void to_json(nlohmann::json&, const SimpleAccount&); friend void from_json(const nlohmann::json&, SimpleAccount&); }; void to_json(nlohmann::json&, const SimpleAccount&); void from_json(const nlohmann::json&, SimpleAccount&); } // namespace eevm
29.47
58
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "eEVM/account.h"\n\n#include <nlohmann/json.hpp>\n\nnamespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n} // namespace eevm\n" (comment) "// Copyright (c) Microsoft Corporation. All rights reserved." (comment) "// Licensed under the MIT License." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "eEVM/account.h"\n" (#include) "#include" (string_literal) ""eEVM/account.h"" (") """ (string_content) "eEVM/account.h" (") """ (preproc_include) "#include <nlohmann/json.hpp>\n" (#include) "#include" (system_lib_string) "<nlohmann/json.hpp>" (function_definition) "namespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n} // namespace eevm" (type_identifier) "namespace" (identifier) "eevm" (compound_statement) "{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n} // namespace eevm" ({) "{" (comment) "/**\n * Simple implementation of Account\n */" (function_definition) "class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n}" (type_identifier) "class" (identifier) "SimpleAccount" (ERROR) ": public Account" (:) ":" (identifier) "public" (identifier) "Account" (compound_statement) "{\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n}" ({) "{" (labeled_statement) "private:\n Address address = {};" (statement_identifier) "private" (:) ":" (declaration) "Address address = {};" (type_identifier) "Address" (init_declarator) "address = {}" (identifier) "address" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "uint256_t balance = {};" (type_identifier) "uint256_t" (init_declarator) "balance = {}" (identifier) "balance" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "Code code = {};" (type_identifier) "Code" (init_declarator) "code = {}" (identifier) "code" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "Nonce nonce = {};" (type_identifier) "Nonce" (init_declarator) "nonce = {}" (identifier) "nonce" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "uint256_t last_hash = {};" (type_identifier) "uint256_t" (init_declarator) "last_hash = {}" (identifier) "last_hash" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (labeled_statement) "public:\n SimpleAccount() = default;" (statement_identifier) "public" (:) ":" (expression_statement) "SimpleAccount() = default;" (assignment_expression) "SimpleAccount() = default" (call_expression) "SimpleAccount()" (identifier) "SimpleAccount" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (ERROR) "SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :" (comma_expression) "SimpleAccount(const Address& a, const uint256_t& b, const Code& c" (binary_expression) "SimpleAccount(const Address& a" (identifier) "SimpleAccount" (ERROR) "(const Address" (() "(" (type_descriptor) "const Address" (type_qualifier) "const" (const) "const" (type_identifier) "Address" (&) "&" (identifier) "a" (,) "," (ERROR) "const" (identifier) "const" (comma_expression) "uint256_t& b, const Code& c" (binary_expression) "uint256_t& b" (identifier) "uint256_t" (&) "&" (identifier) "b" (,) "," (binary_expression) "const Code& c" (identifier) "const" (ERROR) "Code" (identifier) "Code" (&) "&" (identifier) "c" ()) ")" (:) ":" (expression_statement) "address(a),\n balance(b),\n code(c),\n nonce(0)" (comma_expression) "address(a),\n balance(b),\n code(c),\n nonce(0)" (call_expression) "address(a)" (identifier) "address" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (,) "," (comma_expression) "balance(b),\n code(c),\n nonce(0)" (call_expression) "balance(b)" (identifier) "balance" (argument_list) "(b)" (() "(" (identifier) "b" ()) ")" (,) "," (comma_expression) "code(c),\n nonce(0)" (call_expression) "code(c)" (identifier) "code" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (,) "," (call_expression) "nonce(0)" (identifier) "nonce" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (ERROR) "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :" (comma_expression) "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)" (binary_expression) "SimpleAccount(\n const Address& a" (identifier) "SimpleAccount" (ERROR) "(\n const Address" (() "(" (type_descriptor) "const Address" (type_qualifier) "const" (const) "const" (type_identifier) "Address" (&) "&" (identifier) "a" (,) "," (ERROR) "const" (identifier) "const" (comma_expression) "uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)" (binary_expression) "uint256_t& b" (identifier) "uint256_t" (&) "&" (identifier) "b" (,) "," (comma_expression) "const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)" (binary_expression) "const Code& c" (identifier) "const" (ERROR) "Code" (identifier) "Code" (&) "&" (identifier) "c" (,) "," (ERROR) "Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}" (identifier) "Nonce" (identifier) "n" ()) ")" (:) ":" (comma_expression) "address(a),\n balance(b),\n code(c),\n nonce(n)" (call_expression) "address(a)" (identifier) "address" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (,) "," (comma_expression) "balance(b),\n code(c),\n nonce(n)" (call_expression) "balance(b)" (identifier) "balance" (argument_list) "(b)" (() "(" (identifier) "b" ()) ")" (,) "," (comma_expression) "code(c),\n nonce(n)" (call_expression) "code(c)" (identifier) "code" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (,) "," (call_expression) "nonce(n)" (identifier) "nonce" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" ({) "{" (}) "}" (call_expression) "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)" (identifier) "SimpleAccount" (argument_list) "(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "Address& a" (identifier) "Address" (&) "&" (identifier) "a" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "uint256_t& b" (identifier) "uint256_t" (&) "&" (identifier) "b" (,) "," (binary_expression) "const Code& c" (identifier) "const" (ERROR) "Code" (identifier) "Code" (&) "&" (identifier) "c" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "uint256_t& last_hash" (identifier) "uint256_t" (&) "&" (identifier) "last_hash" ()) ")" (:) ":" (expression_statement) "address(a),\n balance(b),\n code(c),\n last_hash(last_hash)" (comma_expression) "address(a),\n balance(b),\n code(c),\n last_hash(last_hash)" (call_expression) "address(a)" (identifier) "address" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (,) "," (comma_expression) "balance(b),\n code(c),\n last_hash(last_hash)" (call_expression) "balance(b)" (identifier) "balance" (argument_list) "(b)" (() "(" (identifier) "b" ()) ")" (,) "," (comma_expression) "code(c),\n last_hash(last_hash)" (call_expression) "code(c)" (identifier) "code" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (,) "," (call_expression) "last_hash(last_hash)" (identifier) "last_hash" (argument_list) "(last_hash)" (() "(" (identifier) "last_hash" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (ERROR) "virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);" (type_identifier) "virtual" (ERROR) "Address" (identifier) "Address" (function_declarator) "get_address()" (identifier) "get_address" (parameter_list) "()" (() "(" ()) ")" (declaration) "const override;" (type_qualifier) "const" (const) "const" (type_identifier) "override" (identifier) "" (;) ";" (declaration) "void set_address(const Address& a);" (primitive_type) "void" (function_declarator) "set_address(const Address& a)" (identifier) "set_address" (parameter_list) "(const Address& a)" (() "(" (parameter_declaration) "const Address& a" (type_qualifier) "const" (const) "const" (type_identifier) "Address" (ERROR) "&" (&) "&" (identifier) "a" ()) ")" (;) ";" (declaration) "virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);" (type_identifier) "virtual" (ERROR) "uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void" (identifier) "uint256_t" (function_declarator) "get_balance() const override" (identifier) "get_balance" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "void" (function_declarator) "set_balance(const uint256_t& b) override" (identifier) "set_balance" (parameter_list) "(const uint256_t& b)" (() "(" (parameter_declaration) "const uint256_t& b" (type_qualifier) "const" (const) "const" (type_identifier) "uint256_t" (ERROR) "&" (&) "&" (identifier) "b" ()) ")" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "Nonce" (function_declarator) "get_nonce() const override" (identifier) "get_nonce" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (primitive_type) "void" (function_declarator) "set_nonce(Nonce n)" (identifier) "set_nonce" (parameter_list) "(Nonce n)" (() "(" (parameter_declaration) "Nonce n" (type_identifier) "Nonce" (identifier) "n" ()) ")" (;) ";" (declaration) "virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;" (type_identifier) "virtual" (ERROR) "void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const" (identifier) "void" (function_declarator) "increment_nonce() override" (identifier) "increment_nonce" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "Code" (function_declarator) "get_code() const override" (identifier) "get_code" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "void" (function_declarator) "set_code(Code&& c) override" (identifier) "set_code" (parameter_list) "(Code&& c)" (() "(" (parameter_declaration) "Code&& c" (type_identifier) "Code" (ERROR) "&&" (&&) "&&" (identifier) "c" ()) ")" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "bool" (function_declarator) "has_code() override" (identifier) "has_code" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (const) "const" (identifier) "Account" (ERROR) "&) const" (&) "&" ()) ")" (const) "const" (;) ";" (declaration) "virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);" (type_identifier) "virtual" (ERROR) "uint256_t get_last_hash() const override;\n\n friend void" (identifier) "uint256_t" (function_declarator) "get_last_hash() const override" (identifier) "get_last_hash" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (identifier) "friend" (identifier) "void" (function_declarator) "to_json(nlohmann::json&, const SimpleAccount&)" (identifier) "to_json" (parameter_list) "(nlohmann::json&, const SimpleAccount&)" (() "(" (parameter_declaration) "nlohmann::json" (type_identifier) "nlohmann" (ERROR) "::" (:) ":" (:) ":" (identifier) "json" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "const SimpleAccount" (type_qualifier) "const" (const) "const" (type_identifier) "SimpleAccount" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "friend void from_json(const nlohmann::json&, SimpleAccount&);" (type_identifier) "friend" (ERROR) "void" (identifier) "void" (function_declarator) "from_json(const nlohmann::json&, SimpleAccount&)" (identifier) "from_json" (parameter_list) "(const nlohmann::json&, SimpleAccount&)" (() "(" (parameter_declaration) "const nlohmann::json" (type_qualifier) "const" (const) "const" (type_identifier) "nlohmann" (ERROR) "::" (:) ":" (:) ":" (identifier) "json" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "SimpleAccount" (type_identifier) "SimpleAccount" (ERROR) "&" (&) "&" ()) ")" (;) ";" (ERROR) "};" (}) "}" (;) ";" (declaration) "void to_json(nlohmann::json&, const SimpleAccount&);" (primitive_type) "void" (function_declarator) "to_json(nlohmann::json&, const SimpleAccount&)" (identifier) "to_json" (parameter_list) "(nlohmann::json&, const SimpleAccount&)" (() "(" (parameter_declaration) "nlohmann::json" (type_identifier) "nlohmann" (ERROR) "::" (:) ":" (:) ":" (identifier) "json" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "const SimpleAccount" (type_qualifier) "const" (const) "const" (type_identifier) "SimpleAccount" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "void from_json(const nlohmann::json&, SimpleAccount&);" (primitive_type) "void" (function_declarator) "from_json(const nlohmann::json&, SimpleAccount&)" (identifier) "from_json" (parameter_list) "(const nlohmann::json&, SimpleAccount&)" (() "(" (parameter_declaration) "const nlohmann::json" (type_qualifier) "const" (const) "const" (type_identifier) "nlohmann" (ERROR) "::" (:) ":" (:) ":" (identifier) "json" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "SimpleAccount" (type_identifier) "SimpleAccount" (ERROR) "&" (&) "&" ()) ")" (;) ";" (}) "}" (comment) "// namespace eevm" (}) ""
534
37
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.47, "nodes": 298, "errors": 0, "source_hash": "f5d5645fade0b9835bc8984c782fa2a28e39be5ea2e964c9a15f3df61390765a", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"eEVM/account.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"eEVM/account.h\"", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <nlohmann/json.hpp>\n", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<nlohmann/json.hpp>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 28}}, {"id": 9, "type": "function_definition", "text": "namespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n} // namespace eevm", "parent": null, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 73, "column": 19}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 11, "type": "identifier", "text": "eevm", "parent": 9, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 14}}, {"id": 12, "type": "function_definition", "text": "class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 73, "column": 1}}, {"id": 13, "type": "identifier", "text": "SimpleAccount", "parent": 12, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 21}}, {"id": 14, "type": "ERROR", "text": ": public Account", "parent": 12, "children": [15], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 38}}, {"id": 15, "type": "identifier", "text": "Account", "parent": 14, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 38}}, {"id": 16, "type": "labeled_statement", "text": "private:\n Address address = {};", "parent": 12, "children": [17], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 17, "column": 25}}, {"id": 17, "type": "declaration", "text": "Address address = {};", "parent": 16, "children": [18, 19], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 25}}, {"id": 18, "type": "type_identifier", "text": "Address", "parent": 17, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 19, "type": "init_declarator", "text": "address = {}", "parent": 17, "children": [20, 21, 22], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 24}}, {"id": 20, "type": "identifier", "text": "address", "parent": 19, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 19}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 22, "type": "initializer_list", "text": "{}", "parent": 19, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 24}}, {"id": 23, "type": "declaration", "text": "uint256_t balance = {};", "parent": 12, "children": [24, 25], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 27}}, {"id": 24, "type": "type_identifier", "text": "uint256_t", "parent": 23, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 25, "type": "init_declarator", "text": "balance = {}", "parent": 23, "children": [26, 27, 28], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 26}}, {"id": 26, "type": "identifier", "text": "balance", "parent": 25, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 23}}, {"id": 28, "type": "initializer_list", "text": "{}", "parent": 25, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 26}}, {"id": 29, "type": "declaration", "text": "Code code = {};", "parent": 12, "children": [30, 31], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 19}}, {"id": 30, "type": "type_identifier", "text": "Code", "parent": 29, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 31, "type": "init_declarator", "text": "code = {}", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 32, "type": "identifier", "text": "code", "parent": 31, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 13}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 15}}, {"id": 34, "type": "initializer_list", "text": "{}", "parent": 31, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 18}}, {"id": 35, "type": "declaration", "text": "Nonce nonce = {};", "parent": 12, "children": [36, 37], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 21}}, {"id": 36, "type": "type_identifier", "text": "Nonce", "parent": 35, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 9}}, {"id": 37, "type": "init_declarator", "text": "nonce = {}", "parent": 35, "children": [38, 39, 40], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 20}}, {"id": 38, "type": "identifier", "text": "nonce", "parent": 37, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 15}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 40, "type": "initializer_list", "text": "{}", "parent": 37, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 20}}, {"id": 41, "type": "declaration", "text": "uint256_t last_hash = {};", "parent": 12, "children": [42, 43], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 29}}, {"id": 42, "type": "type_identifier", "text": "uint256_t", "parent": 41, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 13}}, {"id": 43, "type": "init_declarator", "text": "last_hash = {}", "parent": 41, "children": [44, 45, 46], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 28}}, {"id": 44, "type": "identifier", "text": "last_hash", "parent": 43, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 23}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 46, "type": "initializer_list", "text": "{}", "parent": 43, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 28}}, {"id": 47, "type": "labeled_statement", "text": "public:\n SimpleAccount() = default;", "parent": 12, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 24, "column": 30}}, {"id": 48, "type": "assignment_expression", "text": "SimpleAccount() = default", "parent": 47, "children": [49, 52, 53], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 29}}, {"id": 49, "type": "call_expression", "text": "SimpleAccount()", "parent": 48, "children": [50, 51], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 50, "type": "identifier", "text": "SimpleAccount", "parent": 49, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 17}}, {"id": 51, "type": "argument_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 19}}, {"id": 52, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 53, "type": "identifier", "text": "default", "parent": 48, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 29}}, {"id": 54, "type": "ERROR", "text": "SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :", "parent": 12, "children": [55], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 72}}, {"id": 55, "type": "comma_expression", "text": "SimpleAccount(const Address& a, const uint256_t& b, const Code& c", "parent": 54, "children": [56, 62], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 69}}, {"id": 56, "type": "binary_expression", "text": "SimpleAccount(const Address& a", "parent": 55, "children": [57, 58, 61], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 34}}, {"id": 57, "type": "identifier", "text": "SimpleAccount", "parent": 56, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 17}}, {"id": 58, "type": "ERROR", "text": "(const Address", "parent": 56, "children": [59], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 31}}, {"id": 59, "type": "type_descriptor", "text": "const Address", "parent": 58, "children": [60], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 31}}, {"id": 60, "type": "type_identifier", "text": "Address", "parent": 59, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 31}}, {"id": 61, "type": "identifier", "text": "a", "parent": 56, "children": [], "start_point": {"row": 26, "column": 33}, "end_point": {"row": 26, "column": 34}}, {"id": 62, "type": "comma_expression", "text": "uint256_t& b, const Code& c", "parent": 55, "children": [63, 66], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 69}}, {"id": 63, "type": "binary_expression", "text": "uint256_t& b", "parent": 62, "children": [64, 65], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 54}}, {"id": 64, "type": "identifier", "text": "uint256_t", "parent": 63, "children": [], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 51}}, {"id": 65, "type": "identifier", "text": "b", "parent": 63, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 54}}, {"id": 66, "type": "binary_expression", "text": "const Code& c", "parent": 62, "children": [67, 69], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 69}}, {"id": 67, "type": "ERROR", "text": "Code", "parent": 66, "children": [68], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 66}}, {"id": 68, "type": "identifier", "text": "Code", "parent": 67, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 66}}, {"id": 69, "type": "identifier", "text": "c", "parent": 66, "children": [], "start_point": {"row": 26, "column": 68}, "end_point": {"row": 26, "column": 69}}, {"id": 70, "type": "comma_expression", "text": "address(a),\n balance(b),\n code(c),\n nonce(0)", "parent": 12, "children": [71, 75], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 71, "type": "call_expression", "text": "address(a)", "parent": 70, "children": [72, 73], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 16}}, {"id": 72, "type": "identifier", "text": "address", "parent": 71, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 13}}, {"id": 73, "type": "argument_list", "text": "(a)", "parent": 71, "children": [74], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 16}}, {"id": 74, "type": "identifier", "text": "a", "parent": 73, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 75, "type": "comma_expression", "text": "balance(b),\n code(c),\n nonce(0)", "parent": 70, "children": [76, 80], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 76, "type": "call_expression", "text": "balance(b)", "parent": 75, "children": [77, 78], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 16}}, {"id": 77, "type": "identifier", "text": "balance", "parent": 76, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 78, "type": "argument_list", "text": "(b)", "parent": 76, "children": [79], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 16}}, {"id": 79, "type": "identifier", "text": "b", "parent": 78, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 80, "type": "comma_expression", "text": "code(c),\n nonce(0)", "parent": 75, "children": [81, 85], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 81, "type": "call_expression", "text": "code(c)", "parent": 80, "children": [82, 83], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 13}}, {"id": 82, "type": "identifier", "text": "code", "parent": 81, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 10}}, {"id": 83, "type": "argument_list", "text": "(c)", "parent": 81, "children": [84], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 13}}, {"id": 84, "type": "identifier", "text": "c", "parent": 83, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}, {"id": 85, "type": "call_expression", "text": "nonce(0)", "parent": 80, "children": [86, 87], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 86, "type": "identifier", "text": "nonce", "parent": 85, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 11}}, {"id": 87, "type": "argument_list", "text": "(0)", "parent": 85, "children": [88], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 14}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 89, "type": "ERROR", "text": "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :", "parent": 12, "children": [90], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 42, "column": 88}}, {"id": 90, "type": "comma_expression", "text": "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)", "parent": 89, "children": [91, 97], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 42, "column": 86}}, {"id": 91, "type": "binary_expression", "text": "SimpleAccount(\n const Address& a", "parent": 90, "children": [92, 93, 96], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 34, "column": 22}}, {"id": 92, "type": "identifier", "text": "SimpleAccount", "parent": 91, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 17}}, {"id": 93, "type": "ERROR", "text": "(\n const Address", "parent": 91, "children": [94], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 34, "column": 19}}, {"id": 94, "type": "type_descriptor", "text": "const Address", "parent": 93, "children": [95], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 19}}, {"id": 95, "type": "type_identifier", "text": "Address", "parent": 94, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 19}}, {"id": 96, "type": "identifier", "text": "a", "parent": 91, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 97, "type": "comma_expression", "text": "uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)", "parent": 90, "children": [98, 101], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 42, "column": 86}}, {"id": 98, "type": "binary_expression", "text": "uint256_t& b", "parent": 97, "children": [99, 100], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 42}}, {"id": 99, "type": "identifier", "text": "uint256_t", "parent": 98, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 39}}, {"id": 100, "type": "identifier", "text": "b", "parent": 98, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 42}}, {"id": 101, "type": "comma_expression", "text": "const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)", "parent": 97, "children": [102, 106, 128], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 42, "column": 86}}, {"id": 102, "type": "binary_expression", "text": "const Code& c", "parent": 101, "children": [103, 105], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 57}}, {"id": 103, "type": "ERROR", "text": "Code", "parent": 102, "children": [104], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 54}}, {"id": 104, "type": "identifier", "text": "Code", "parent": 103, "children": [], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 54}}, {"id": 105, "type": "identifier", "text": "c", "parent": 102, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 57}}, {"id": 106, "type": "ERROR", "text": "Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}", "parent": 101, "children": [107, 108, 109], "start_point": {"row": 34, "column": 59}, "end_point": {"row": 39, "column": 6}}, {"id": 107, "type": "identifier", "text": "Nonce", "parent": 106, "children": [], "start_point": {"row": 34, "column": 59}, "end_point": {"row": 34, "column": 64}}, {"id": 108, "type": "identifier", "text": "n", "parent": 106, "children": [], "start_point": {"row": 34, "column": 65}, "end_point": {"row": 34, "column": 66}}, {"id": 109, "type": "comma_expression", "text": "address(a),\n balance(b),\n code(c),\n nonce(n)", "parent": 106, "children": [110, 114], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 38, "column": 14}}, {"id": 110, "type": "call_expression", "text": "address(a)", "parent": 109, "children": [111, 112], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 16}}, {"id": 111, "type": "identifier", "text": "address", "parent": 110, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 13}}, {"id": 112, "type": "argument_list", "text": "(a)", "parent": 110, "children": [113], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 16}}, {"id": 113, "type": "identifier", "text": "a", "parent": 112, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 114, "type": "comma_expression", "text": "balance(b),\n code(c),\n nonce(n)", "parent": 109, "children": [115, 119], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 38, "column": 14}}, {"id": 115, "type": "call_expression", "text": "balance(b)", "parent": 114, "children": [116, 117], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 16}}, {"id": 116, "type": "identifier", "text": "balance", "parent": 115, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 13}}, {"id": 117, "type": "argument_list", "text": "(b)", "parent": 115, "children": [118], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 16}}, {"id": 118, "type": "identifier", "text": "b", "parent": 117, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 119, "type": "comma_expression", "text": "code(c),\n nonce(n)", "parent": 114, "children": [120, 124], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 38, "column": 14}}, {"id": 120, "type": "call_expression", "text": "code(c)", "parent": 119, "children": [121, 122], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 13}}, {"id": 121, "type": "identifier", "text": "code", "parent": 120, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 10}}, {"id": 122, "type": "argument_list", "text": "(c)", "parent": 120, "children": [123], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 13}}, {"id": 123, "type": "identifier", "text": "c", "parent": 122, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 124, "type": "call_expression", "text": "nonce(n)", "parent": 119, "children": [125, 126], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 14}}, {"id": 125, "type": "identifier", "text": "nonce", "parent": 124, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 11}}, {"id": 126, "type": "argument_list", "text": "(n)", "parent": 124, "children": [127], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 14}}, {"id": 127, "type": "identifier", "text": "n", "parent": 126, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 128, "type": "call_expression", "text": "SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)", "parent": 101, "children": [129, 130], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 42, "column": 86}}, {"id": 129, "type": "identifier", "text": "SimpleAccount", "parent": 128, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 18}}, {"id": 130, "type": "argument_list", "text": "(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash)", "parent": 128, "children": [131, 134, 137, 141], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 42, "column": 86}}, {"id": 131, "type": "binary_expression", "text": "Address& a", "parent": 130, "children": [132, 133], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 22}}, {"id": 132, "type": "identifier", "text": "Address", "parent": 131, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 19}}, {"id": 133, "type": "identifier", "text": "a", "parent": 131, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 134, "type": "binary_expression", "text": "uint256_t& b", "parent": 130, "children": [135, 136], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 42}}, {"id": 135, "type": "identifier", "text": "uint256_t", "parent": 134, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 39}}, {"id": 136, "type": "identifier", "text": "b", "parent": 134, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 42}}, {"id": 137, "type": "binary_expression", "text": "const Code& c", "parent": 130, "children": [138, 140], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 57}}, {"id": 138, "type": "ERROR", "text": "Code", "parent": 137, "children": [139], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 54}}, {"id": 139, "type": "identifier", "text": "Code", "parent": 138, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 54}}, {"id": 140, "type": "identifier", "text": "c", "parent": 137, "children": [], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 57}}, {"id": 141, "type": "binary_expression", "text": "uint256_t& last_hash", "parent": 130, "children": [142, 143], "start_point": {"row": 42, "column": 65}, "end_point": {"row": 42, "column": 85}}, {"id": 142, "type": "identifier", "text": "uint256_t", "parent": 141, "children": [], "start_point": {"row": 42, "column": 65}, "end_point": {"row": 42, "column": 74}}, {"id": 143, "type": "identifier", "text": "last_hash", "parent": 141, "children": [], "start_point": {"row": 42, "column": 76}, "end_point": {"row": 42, "column": 85}}, {"id": 144, "type": "comma_expression", "text": "address(a),\n balance(b),\n code(c),\n last_hash(last_hash)", "parent": 12, "children": [145, 149], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 46, "column": 26}}, {"id": 145, "type": "call_expression", "text": "address(a)", "parent": 144, "children": [146, 147], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 16}}, {"id": 146, "type": "identifier", "text": "address", "parent": 145, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 13}}, {"id": 147, "type": "argument_list", "text": "(a)", "parent": 145, "children": [148], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 16}}, {"id": 148, "type": "identifier", "text": "a", "parent": 147, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 149, "type": "comma_expression", "text": "balance(b),\n code(c),\n last_hash(last_hash)", "parent": 144, "children": [150, 154], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 46, "column": 26}}, {"id": 150, "type": "call_expression", "text": "balance(b)", "parent": 149, "children": [151, 152], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 16}}, {"id": 151, "type": "identifier", "text": "balance", "parent": 150, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 13}}, {"id": 152, "type": "argument_list", "text": "(b)", "parent": 150, "children": [153], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 16}}, {"id": 153, "type": "identifier", "text": "b", "parent": 152, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 154, "type": "comma_expression", "text": "code(c),\n last_hash(last_hash)", "parent": 149, "children": [155, 159], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 46, "column": 26}}, {"id": 155, "type": "call_expression", "text": "code(c)", "parent": 154, "children": [156, 157], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 13}}, {"id": 156, "type": "identifier", "text": "code", "parent": 155, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 10}}, {"id": 157, "type": "argument_list", "text": "(c)", "parent": 155, "children": [158], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 13}}, {"id": 158, "type": "identifier", "text": "c", "parent": 157, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 159, "type": "call_expression", "text": "last_hash(last_hash)", "parent": 154, "children": [160, 161], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 26}}, {"id": 160, "type": "identifier", "text": "last_hash", "parent": 159, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 15}}, {"id": 161, "type": "argument_list", "text": "(last_hash)", "parent": 159, "children": [162], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 26}}, {"id": 162, "type": "identifier", "text": "last_hash", "parent": 161, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 25}}, {"id": 163, "type": "ERROR", "text": "virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);", "parent": 12, "children": [164, 165, 167, 170, 173, 181, 211, 247, 265, 277, 278, 288], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 72, "column": 56}}, {"id": 164, "type": "type_identifier", "text": "virtual", "parent": 163, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 165, "type": "ERROR", "text": "Address", "parent": 163, "children": [166], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 19}}, {"id": 166, "type": "identifier", "text": "Address", "parent": 165, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 19}}, {"id": 167, "type": "function_declarator", "text": "get_address()", "parent": 163, "children": [168, 169], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 33}}, {"id": 168, "type": "identifier", "text": "get_address", "parent": 167, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 31}}, {"id": 169, "type": "parameter_list", "text": "()", "parent": 167, "children": [], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 33}}, {"id": 170, "type": "declaration", "text": "const override;", "parent": 163, "children": [171, 172], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 49}}, {"id": 171, "type": "type_identifier", "text": "override", "parent": 170, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 48}}, {"id": 172, "type": "identifier", "text": "", "parent": 170, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 48}}, {"id": 173, "type": "declaration", "text": "void set_address(const Address& a);", "parent": 163, "children": [174, 175], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 39}}, {"id": 174, "type": "primitive_type", "text": "void", "parent": 173, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 175, "type": "function_declarator", "text": "set_address(const Address& a)", "parent": 173, "children": [176, 177], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 38}}, {"id": 176, "type": "identifier", "text": "set_address", "parent": 175, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 20}}, {"id": 177, "type": "parameter_list", "text": "(const Address& a)", "parent": 175, "children": [178], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 38}}, {"id": 178, "type": "parameter_declaration", "text": "const Address& a", "parent": 177, "children": [179, 180], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 37}}, {"id": 179, "type": "type_identifier", "text": "Address", "parent": 178, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 34}}, {"id": 180, "type": "identifier", "text": "a", "parent": 178, "children": [], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 37}}, {"id": 181, "type": "declaration", "text": "virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);", "parent": 163, "children": [182, 183, 205], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 56, "column": 28}}, {"id": 182, "type": "type_identifier", "text": "virtual", "parent": 181, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 11}}, {"id": 183, "type": "ERROR", "text": "uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void", "parent": 181, "children": [184, 185, 189, 190, 191, 198, 199, 200, 204], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 56, "column": 8}}, {"id": 184, "type": "identifier", "text": "uint256_t", "parent": 183, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 21}}, {"id": 185, "type": "function_declarator", "text": "get_balance() const override", "parent": 183, "children": [186, 187, 188], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 50}}, {"id": 186, "type": "identifier", "text": "get_balance", "parent": 185, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 33}}, {"id": 187, "type": "parameter_list", "text": "()", "parent": 185, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 35}}, {"id": 188, "type": "identifier", "text": "override", "parent": 185, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 50}}, {"id": 189, "type": "identifier", "text": "virtual", "parent": 183, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 190, "type": "identifier", "text": "void", "parent": 183, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 191, "type": "function_declarator", "text": "set_balance(const uint256_t& b) override", "parent": 183, "children": [192, 193, 197], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 57}}, {"id": 192, "type": "identifier", "text": "set_balance", "parent": 191, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 28}}, {"id": 193, "type": "parameter_list", "text": "(const uint256_t& b)", "parent": 191, "children": [194], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 48}}, {"id": 194, "type": "parameter_declaration", "text": "const uint256_t& b", "parent": 193, "children": [195, 196], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 47}}, {"id": 195, "type": "type_identifier", "text": "uint256_t", "parent": 194, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 44}}, {"id": 196, "type": "identifier", "text": "b", "parent": 194, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 47}}, {"id": 197, "type": "identifier", "text": "override", "parent": 191, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 57}}, {"id": 198, "type": "identifier", "text": "virtual", "parent": 183, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 11}}, {"id": 199, "type": "identifier", "text": "Nonce", "parent": 183, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 17}}, {"id": 200, "type": "function_declarator", "text": "get_nonce() const override", "parent": 183, "children": [201, 202, 203], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 44}}, {"id": 201, "type": "identifier", "text": "get_nonce", "parent": 200, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 27}}, {"id": 202, "type": "parameter_list", "text": "()", "parent": 200, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 29}}, {"id": 203, "type": "identifier", "text": "override", "parent": 200, "children": [], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 44}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 183, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 205, "type": "function_declarator", "text": "set_nonce(Nonce n)", "parent": 181, "children": [206, 207], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 27}}, {"id": 206, "type": "identifier", "text": "set_nonce", "parent": 205, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 18}}, {"id": 207, "type": "parameter_list", "text": "(Nonce n)", "parent": 205, "children": [208], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 27}}, {"id": 208, "type": "parameter_declaration", "text": "Nonce n", "parent": 207, "children": [209, 210], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 26}}, {"id": 209, "type": "type_identifier", "text": "Nonce", "parent": 208, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 24}}, {"id": 210, "type": "identifier", "text": "n", "parent": 208, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 26}}, {"id": 211, "type": "declaration", "text": "virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;", "parent": 163, "children": [212, 213, 245, 246], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 63, "column": 42}}, {"id": 212, "type": "type_identifier", "text": "virtual", "parent": 211, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 213, "type": "ERROR", "text": "void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const", "parent": 211, "children": [214, 215, 219, 220, 221, 225, 226, 227, 236, 237, 238, 242, 243, 244], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 63, "column": 25}}, {"id": 214, "type": "identifier", "text": "void", "parent": 213, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 16}}, {"id": 215, "type": "function_declarator", "text": "increment_nonce() override", "parent": 213, "children": [216, 217, 218], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 43}}, {"id": 216, "type": "identifier", "text": "increment_nonce", "parent": 215, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 32}}, {"id": 217, "type": "parameter_list", "text": "()", "parent": 215, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 34}}, {"id": 218, "type": "identifier", "text": "override", "parent": 215, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 43}}, {"id": 219, "type": "identifier", "text": "virtual", "parent": 213, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 11}}, {"id": 220, "type": "identifier", "text": "Code", "parent": 213, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 16}}, {"id": 221, "type": "function_declarator", "text": "get_code() const override", "parent": 213, "children": [222, 223, 224], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 42}}, {"id": 222, "type": "identifier", "text": "get_code", "parent": 221, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 25}}, {"id": 223, "type": "parameter_list", "text": "()", "parent": 221, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 27}}, {"id": 224, "type": "identifier", "text": "override", "parent": 221, "children": [], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 42}}, {"id": 225, "type": "identifier", "text": "virtual", "parent": 213, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 11}}, {"id": 226, "type": "identifier", "text": "void", "parent": 213, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 16}}, {"id": 227, "type": "function_declarator", "text": "set_code(Code&& c) override", "parent": 213, "children": [228, 229, 235], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 44}}, {"id": 228, "type": "identifier", "text": "set_code", "parent": 227, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 25}}, {"id": 229, "type": "parameter_list", "text": "(Code&& c)", "parent": 227, "children": [230], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 35}}, {"id": 230, "type": "parameter_declaration", "text": "Code&& c", "parent": 229, "children": [231, 232, 234], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 34}}, {"id": 231, "type": "type_identifier", "text": "Code", "parent": 230, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 30}}, {"id": 232, "type": "ERROR", "text": "&&", "parent": 230, "children": [233], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 32}}, {"id": 233, "type": "&&", "text": "&&", "parent": 232, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 32}}, {"id": 234, "type": "identifier", "text": "c", "parent": 230, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 34}}, {"id": 235, "type": "identifier", "text": "override", "parent": 227, "children": [], "start_point": {"row": 60, "column": 36}, "end_point": {"row": 60, "column": 44}}, {"id": 236, "type": "identifier", "text": "virtual", "parent": 213, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 11}}, {"id": 237, "type": "identifier", "text": "bool", "parent": 213, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 16}}, {"id": 238, "type": "function_declarator", "text": "has_code() override", "parent": 213, "children": [239, 240, 241], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 36}}, {"id": 239, "type": "identifier", "text": "has_code", "parent": 238, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 25}}, {"id": 240, "type": "parameter_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 27}}, {"id": 241, "type": "identifier", "text": "override", "parent": 238, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 36}}, {"id": 242, "type": "primitive_type", "text": "bool", "parent": 213, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 243, "type": "identifier", "text": "operator", "parent": 213, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 17}}, {"id": 244, "type": "==", "text": "==", "parent": 213, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 19}}, {"id": 245, "type": "identifier", "text": "Account", "parent": 211, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 33}}, {"id": 246, "type": "ERROR", "text": "&) const", "parent": 211, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 41}}, {"id": 247, "type": "declaration", "text": "virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);", "parent": 163, "children": [248, 249, 257], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 67, "column": 63}}, {"id": 248, "type": "type_identifier", "text": "virtual", "parent": 247, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 11}}, {"id": 249, "type": "ERROR", "text": "uint256_t get_last_hash() const override;\n\n friend void", "parent": 247, "children": [250, 251, 255, 256], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 67, "column": 15}}, {"id": 250, "type": "identifier", "text": "uint256_t", "parent": 249, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 21}}, {"id": 251, "type": "function_declarator", "text": "get_last_hash() const override", "parent": 249, "children": [252, 253, 254], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 52}}, {"id": 252, "type": "identifier", "text": "get_last_hash", "parent": 251, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 35}}, {"id": 253, "type": "parameter_list", "text": "()", "parent": 251, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 37}}, {"id": 254, "type": "identifier", "text": "override", "parent": 251, "children": [], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 52}}, {"id": 255, "type": "identifier", "text": "friend", "parent": 249, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 256, "type": "identifier", "text": "void", "parent": 249, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 15}}, {"id": 257, "type": "function_declarator", "text": "to_json(nlohmann::json&, const SimpleAccount&)", "parent": 247, "children": [258, 259], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 62}}, {"id": 258, "type": "identifier", "text": "to_json", "parent": 257, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 23}}, {"id": 259, "type": "parameter_list", "text": "(nlohmann::json&, const SimpleAccount&)", "parent": 257, "children": [260, 263], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 62}}, {"id": 260, "type": "parameter_declaration", "text": "nlohmann::json", "parent": 259, "children": [261, 262], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 38}}, {"id": 261, "type": "type_identifier", "text": "nlohmann", "parent": 260, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 32}}, {"id": 262, "type": "identifier", "text": "json", "parent": 260, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 38}}, {"id": 263, "type": "parameter_declaration", "text": "const SimpleAccount", "parent": 259, "children": [264], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 60}}, {"id": 264, "type": "type_identifier", "text": "SimpleAccount", "parent": 263, "children": [], "start_point": {"row": 67, "column": 47}, "end_point": {"row": 67, "column": 60}}, {"id": 265, "type": "declaration", "text": "friend void from_json(const nlohmann::json&, SimpleAccount&);", "parent": 163, "children": [266, 267, 269], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 65}}, {"id": 266, "type": "type_identifier", "text": "friend", "parent": 265, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 267, "type": "ERROR", "text": "void", "parent": 265, "children": [268], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 15}}, {"id": 268, "type": "identifier", "text": "void", "parent": 267, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 15}}, {"id": 269, "type": "function_declarator", "text": "from_json(const nlohmann::json&, SimpleAccount&)", "parent": 265, "children": [270, 271], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 64}}, {"id": 270, "type": "identifier", "text": "from_json", "parent": 269, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 25}}, {"id": 271, "type": "parameter_list", "text": "(const nlohmann::json&, SimpleAccount&)", "parent": 269, "children": [272, 275], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 64}}, {"id": 272, "type": "parameter_declaration", "text": "const nlohmann::json", "parent": 271, "children": [273, 274], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 46}}, {"id": 273, "type": "type_identifier", "text": "nlohmann", "parent": 272, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 40}}, {"id": 274, "type": "identifier", "text": "json", "parent": 272, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 46}}, {"id": 275, "type": "parameter_declaration", "text": "SimpleAccount", "parent": 271, "children": [276], "start_point": {"row": 68, "column": 49}, "end_point": {"row": 68, "column": 62}}, {"id": 276, "type": "type_identifier", "text": "SimpleAccount", "parent": 275, "children": [], "start_point": {"row": 68, "column": 49}, "end_point": {"row": 68, "column": 62}}, {"id": 277, "type": "ERROR", "text": "};", "parent": 163, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 4}}, {"id": 278, "type": "declaration", "text": "void to_json(nlohmann::json&, const SimpleAccount&);", "parent": 163, "children": [279, 280], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 54}}, {"id": 279, "type": "primitive_type", "text": "void", "parent": 278, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 280, "type": "function_declarator", "text": "to_json(nlohmann::json&, const SimpleAccount&)", "parent": 278, "children": [281, 282], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 53}}, {"id": 281, "type": "identifier", "text": "to_json", "parent": 280, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 14}}, {"id": 282, "type": "parameter_list", "text": "(nlohmann::json&, const SimpleAccount&)", "parent": 280, "children": [283, 286], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 53}}, {"id": 283, "type": "parameter_declaration", "text": "nlohmann::json", "parent": 282, "children": [284, 285], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 29}}, {"id": 284, "type": "type_identifier", "text": "nlohmann", "parent": 283, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 23}}, {"id": 285, "type": "identifier", "text": "json", "parent": 283, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 29}}, {"id": 286, "type": "parameter_declaration", "text": "const SimpleAccount", "parent": 282, "children": [287], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 51}}, {"id": 287, "type": "type_identifier", "text": "SimpleAccount", "parent": 286, "children": [], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 51}}, {"id": 288, "type": "declaration", "text": "void from_json(const nlohmann::json&, SimpleAccount&);", "parent": 163, "children": [289, 290], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 56}}, {"id": 289, "type": "primitive_type", "text": "void", "parent": 288, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 6}}, {"id": 290, "type": "function_declarator", "text": "from_json(const nlohmann::json&, SimpleAccount&)", "parent": 288, "children": [291, 292], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 55}}, {"id": 291, "type": "identifier", "text": "from_json", "parent": 290, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 16}}, {"id": 292, "type": "parameter_list", "text": "(const nlohmann::json&, SimpleAccount&)", "parent": 290, "children": [293, 296], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 55}}, {"id": 293, "type": "parameter_declaration", "text": "const nlohmann::json", "parent": 292, "children": [294, 295], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 37}}, {"id": 294, "type": "type_identifier", "text": "nlohmann", "parent": 293, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 31}}, {"id": 295, "type": "identifier", "text": "json", "parent": 293, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 37}}, {"id": 296, "type": "parameter_declaration", "text": "SimpleAccount", "parent": 292, "children": [297], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 53}}, {"id": 297, "type": "type_identifier", "text": "SimpleAccount", "parent": 296, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 53}}]}, "node_categories": {"declarations": {"functions": [9, 12, 167, 175, 185, 191, 200, 205, 215, 221, 227, 238, 251, 257, 269, 280, 290], "variables": [17, 23, 29, 35, 41, 170, 173, 178, 181, 194, 208, 211, 230, 247, 260, 263, 265, 272, 275, 278, 283, 286, 288, 293, 296], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [49, 55, 56, 62, 63, 66, 70, 71, 75, 76, 80, 81, 85, 90, 91, 97, 98, 101, 102, 109, 110, 114, 115, 119, 120, 124, 128, 131, 134, 137, 141, 144, 145, 149, 150, 154, 155, 159], "assignments": [48], "loops": [], "conditionals": [10, 11, 13, 15, 18, 20, 24, 26, 30, 32, 36, 38, 42, 44, 50, 53, 57, 60, 61, 64, 65, 68, 69, 72, 74, 77, 79, 82, 84, 86, 92, 95, 96, 99, 100, 104, 105, 107, 108, 111, 113, 116, 118, 121, 123, 125, 127, 129, 132, 133, 135, 136, 139, 140, 142, 143, 146, 148, 151, 153, 156, 158, 160, 162, 164, 166, 168, 171, 172, 176, 179, 180, 182, 184, 186, 188, 189, 190, 192, 195, 196, 197, 198, 199, 201, 203, 206, 209, 210, 212, 214, 216, 218, 219, 220, 222, 224, 225, 226, 228, 231, 234, 235, 236, 237, 239, 241, 243, 245, 248, 250, 252, 254, 255, 256, 258, 261, 262, 264, 266, 268, 270, 273, 274, 276, 281, 284, 285, 287, 291, 294, 295, 297], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 88], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "SimpleAccount", "text_snippet": "namespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Ac"}, {"node_id": 12, "universal_type": "function", "name": "SimpleAccount", "text_snippet": "class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance "}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "get_address()"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "set_address(const Address& a)"}, {"node_id": 185, "universal_type": "function", "name": "unknown", "text_snippet": "get_balance() const override"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "set_balance(const uint256_t& b) override"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "get_nonce() const override"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "set_nonce(Nonce n)"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "increment_nonce() override"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "get_code() const override"}, {"node_id": 227, "universal_type": "function", "name": "unknown", "text_snippet": "set_code(Code&& c) override"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "has_code() override"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "get_last_hash() const override"}, {"node_id": 257, "universal_type": "function", "name": "unknown", "text_snippet": "to_json(nlohmann::json&, const SimpleAccount&)"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "from_json(const nlohmann::json&, SimpleAccount&)"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "to_json(nlohmann::json&, const SimpleAccount&)"}, {"node_id": 290, "universal_type": "function", "name": "unknown", "text_snippet": "from_json(const nlohmann::json&, SimpleAccount&)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"eEVM/account.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <nlohmann/json.hpp>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include \"eEVM/account.h\"\n\n#include <nlohmann/json.hpp>\n\nnamespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n private:\n Address address = {};\n uint256_t balance = {};\n Code code = {};\n Nonce nonce = {};\n uint256_t last_hash = {};\n\n public:\n SimpleAccount() = default;\n\n SimpleAccount(const Address& a, const uint256_t& b, const Code& c) :\n address(a),\n balance(b),\n code(c),\n nonce(0)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, Nonce n) :\n address(a),\n balance(b),\n code(c),\n nonce(n)\n {}\n\n SimpleAccount(\n const Address& a, const uint256_t& b, const Code& c, const uint256_t& last_hash) :\n address(a),\n balance(b),\n code(c),\n last_hash(last_hash)\n {}\n\n virtual Address get_address() const override;\n void set_address(const Address& a);\n\n virtual uint256_t get_balance() const override;\n virtual void set_balance(const uint256_t& b) override;\n\n virtual Nonce get_nonce() const override;\n void set_nonce(Nonce n);\n virtual void increment_nonce() override;\n\n virtual Code get_code() const override;\n virtual void set_code(Code&& c) override;\n virtual bool has_code() override;\n\n bool operator==(const Account&) const;\n\n virtual uint256_t get_last_hash() const override;\n\n friend void to_json(nlohmann::json&, const SimpleAccount&);\n friend void from_json(const nlohmann::json&, SimpleAccount&);\n };\n\n void to_json(nlohmann::json&, const SimpleAccount&);\n void from_json(const nlohmann::json&, SimpleAccount&);\n} // namespace eevm\n"}
81,069
c
/////////////////////////////////////////////////////////////////////////////// // Copyright <NAME> 2014. // Distributed under the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef _FPU_LEGENDRE_2014_04_30_H_ #define _FPU_LEGENDRE_2014_04_30_H_ #include <cmath> #if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700)) #include <cstdfloat> namespace std { std::float32_t tgamma(std::float32_t); } #endif #include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h> namespace app { namespace benchmark { template<typename T> T legendre_p(T v, T u, T x) { // Compute the Taylor series representation of legendre_p. // There are no checks on input range or parameter boundaries. const T my_one(1); const T one_plus_x = my_one + x; const T one_minus_x = my_one - x; using std::pow; using std::tgamma; const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2); const T gamma_of_one_minus_u = tgamma(my_one - u); const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v, v + my_one, my_one - u, (my_one - x) / 2); return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u; } } } // namespace app::benchmark #endif // _FPU_LEGENDRE_2014_04_30_H_
42.49
39
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// Copyright <NAME> 2014.\n// Distributed under the Boost Software License,\n// Version 1.0. (See accompanying file LICENSE_1_0.txt\n// or copy at http://www.boost.org/LICENSE_1_0.txt)\n//\n\n#ifndef _FPU_LEGENDRE_2014_04_30_H_\n #define _FPU_LEGENDRE_2014_04_30_H_\n\n #include <cmath>\n #if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif\n #include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n\n namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n } // namespace app::benchmark\n\n#endif // _FPU_LEGENDRE_2014_04_30_H_\n" (comment) "///////////////////////////////////////////////////////////////////////////////" (comment) "// Copyright <NAME> 2014." (comment) "// Distributed under the Boost Software License," (comment) "// Version 1.0. (See accompanying file LICENSE_1_0.txt" (comment) "// or copy at http://www.boost.org/LICENSE_1_0.txt)" (comment) "//" (preproc_ifdef) "#ifndef _FPU_LEGENDRE_2014_04_30_H_\n #define _FPU_LEGENDRE_2014_04_30_H_\n\n #include <cmath>\n #if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif\n #include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n\n namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n } // namespace app::benchmark\n\n#endif" (#ifndef) "#ifndef" (identifier) "_FPU_LEGENDRE_2014_04_30_H_" (preproc_def) "#define _FPU_LEGENDRE_2014_04_30_H_\n" (#define) "#define" (identifier) "_FPU_LEGENDRE_2014_04_30_H_" (preproc_include) "#include <cmath>\n" (#include) "#include" (system_lib_string) "<cmath>" (preproc_if) "#if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif" (#if) "#if" (binary_expression) "defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (||) "||" (parenthesized_expression) "(defined(_WIN32) && (_MSC_VER <= 1700))" (() "(" (binary_expression) "defined(_WIN32) && (_MSC_VER <= 1700)" (preproc_defined) "defined(_WIN32)" (defined) "defined" (() "(" (identifier) "_WIN32" ()) ")" (&&) "&&" (parenthesized_expression) "(_MSC_VER <= 1700)" (() "(" (binary_expression) "_MSC_VER <= 1700" (identifier) "_MSC_VER" (<=) "<=" (number_literal) "1700" ()) ")" ()) ")" ( ) "\n" (preproc_include) "#include <cstdfloat>\n" (#include) "#include" (system_lib_string) "<cstdfloat>" (function_definition) "namespace std { std::float32_t tgamma(std::float32_t); }" (type_identifier) "namespace" (identifier) "std" (compound_statement) "{ std::float32_t tgamma(std::float32_t); }" ({) "{" (labeled_statement) "std::float32_t tgamma(std::float32_t);" (statement_identifier) "std" (ERROR) "::float32_t tgamma(std:" (:) ":" (:) ":" (type_identifier) "float32_t" (identifier) "tgamma" (() "(" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "float32_t);" (identifier) "float32_t" (ERROR) ")" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (preproc_include) "#include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n" (#include) "#include" (system_lib_string) "<Bsw/Util/Math/Fpu/fpu_hypergeometric.h>" (function_definition) "namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n }" (type_identifier) "namespace" (identifier) "app" (compound_statement) "{\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n }" ({) "{" (function_definition) "namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }" (type_identifier) "namespace" (identifier) "benchmark" (compound_statement) "{\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }" ({) "{" (expression_statement) "template<typename T>\n T legendre_p(T v, T u, T x)" (binary_expression) "template<typename T>\n T legendre_p(T v, T u, T x)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "T" (identifier) "T" (call_expression) "legendre_p(T v, T u, T x)" (identifier) "legendre_p" (argument_list) "(T v, T u, T x)" (() "(" (identifier) "T" (ERROR) "v" (identifier) "v" (,) "," (identifier) "T" (ERROR) "u" (identifier) "u" (,) "," (identifier) "T" (ERROR) "x" (identifier) "x" ()) ")" (;) "" (compound_statement) "{\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }" ({) "{" (comment) "// Compute the Taylor series representation of legendre_p." (comment) "// There are no checks on input range or parameter boundaries." (declaration) "const T my_one(1);" (type_qualifier) "const" (const) "const" (type_identifier) "T" (function_declarator) "my_one(1)" (identifier) "my_one" (parameter_list) "(1)" (() "(" (ERROR) "1" (number_literal) "1" ()) ")" (;) ";" (declaration) "const T one_plus_x = my_one + x;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "one_plus_x = my_one + x" (identifier) "one_plus_x" (=) "=" (binary_expression) "my_one + x" (identifier) "my_one" (+) "+" (identifier) "x" (;) ";" (declaration) "const T one_minus_x = my_one - x;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "one_minus_x = my_one - x" (identifier) "one_minus_x" (=) "=" (binary_expression) "my_one - x" (identifier) "my_one" (-) "-" (identifier) "x" (;) ";" (declaration) "using std::pow;" (type_identifier) "using" (identifier) "std" (ERROR) "::pow" (:) ":" (:) ":" (identifier) "pow" (;) ";" (declaration) "using std::tgamma;" (type_identifier) "using" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "tgamma" (;) ";" (declaration) "const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2)" (identifier) "one_plus_x_over_one_minus_x_pow_u_half" (=) "=" (call_expression) "pow(one_plus_x / one_minus_x, u / 2)" (identifier) "pow" (argument_list) "(one_plus_x / one_minus_x, u / 2)" (() "(" (binary_expression) "one_plus_x / one_minus_x" (identifier) "one_plus_x" (/) "/" (identifier) "one_minus_x" (,) "," (binary_expression) "u / 2" (identifier) "u" (/) "/" (number_literal) "2" ()) ")" (;) ";" (declaration) "const T gamma_of_one_minus_u = tgamma(my_one - u);" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "gamma_of_one_minus_u = tgamma(my_one - u)" (identifier) "gamma_of_one_minus_u" (=) "=" (call_expression) "tgamma(my_one - u)" (identifier) "tgamma" (argument_list) "(my_one - u)" (() "(" (binary_expression) "my_one - u" (identifier) "my_one" (-) "-" (identifier) "u" ()) ")" (;) ";" (declaration) "const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)" (identifier) "hypergeometric_2f1_term" (=) "=" (ERROR) "app::benchmark::" (identifier) "app" (:) ":" (:) ":" (identifier) "benchmark" (:) ":" (:) ":" (call_expression) "hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)" (identifier) "hypergeometric_2f1" (argument_list) "(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)" (() "(" (unary_expression) "-v" (-) "-" (identifier) "v" (,) "," (binary_expression) "v + my_one" (identifier) "v" (+) "+" (identifier) "my_one" (,) "," (binary_expression) "my_one - u" (identifier) "my_one" (-) "-" (identifier) "u" (,) "," (binary_expression) "(my_one - x) / 2" (parenthesized_expression) "(my_one - x)" (() "(" (binary_expression) "my_one - x" (identifier) "my_one" (-) "-" (identifier) "x" ()) ")" (/) "/" (number_literal) "2" ()) ")" (;) ";" (return_statement) "return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;" (return) "return" (binary_expression) "(one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u" (parenthesized_expression) "(one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term)" (() "(" (binary_expression) "one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term" (identifier) "one_plus_x_over_one_minus_x_pow_u_half" (*) "*" (identifier) "hypergeometric_2f1_term" ()) ")" (/) "/" (identifier) "gamma_of_one_minus_u" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "// namespace app::benchmark" (#endif) "#endif" (comment) "// _FPU_LEGENDRE_2014_04_30_H_"
268
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 42.49, "nodes": 176, "errors": 0, "source_hash": "79ab2193cd056aefa7ef32aacc4d097a50017665ed7e19cff395e40fa9364f09", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _FPU_LEGENDRE_2014_04_30_H_\n #define _FPU_LEGENDRE_2014_04_30_H_\n\n #include <cmath>\n #if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif\n #include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n\n namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n } // namespace app::benchmark\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 42, 45, 175], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "_FPU_LEGENDRE_2014_04_30_H_", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "#define _FPU_LEGENDRE_2014_04_30_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 9}}, {"id": 5, "type": "identifier", "text": "_FPU_LEGENDRE_2014_04_30_H_", "parent": 3, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 37}}, {"id": 6, "type": "preproc_include", "text": "#include <cmath>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 10}}, {"id": 8, "type": "system_lib_string", "text": "<cmath>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 18}}, {"id": 9, "type": "preproc_if", "text": "#if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif", "parent": 0, "children": [10, 11, 27, 28, 31, 41], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 10, "type": "#if", "text": "#if", "parent": 9, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 5}}, {"id": 11, "type": "binary_expression", "text": "defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))", "parent": 9, "children": [12, 15, 16], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 66}}, {"id": 12, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 11, "children": [13, 14], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 23}}, {"id": 13, "type": "defined", "text": "defined", "parent": 12, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 13}}, {"id": 14, "type": "identifier", "text": "__GNUC__", "parent": 12, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 22}}, {"id": 15, "type": "||", "text": "||", "parent": 11, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 26}}, {"id": 16, "type": "parenthesized_expression", "text": "(defined(_WIN32) && (_MSC_VER <= 1700))", "parent": 11, "children": [17], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 66}}, {"id": 17, "type": "binary_expression", "text": "defined(_WIN32) && (_MSC_VER <= 1700)", "parent": 16, "children": [18, 21, 22], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 65}}, {"id": 18, "type": "preproc_defined", "text": "defined(_WIN32)", "parent": 17, "children": [19, 20], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 43}}, {"id": 19, "type": "defined", "text": "defined", "parent": 18, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 35}}, {"id": 20, "type": "identifier", "text": "_WIN32", "parent": 18, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 42}}, {"id": 21, "type": "&&", "text": "&&", "parent": 17, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 46}}, {"id": 22, "type": "parenthesized_expression", "text": "(_MSC_VER <= 1700)", "parent": 17, "children": [23], "start_point": {"row": 11, "column": 47}, "end_point": {"row": 11, "column": 65}}, {"id": 23, "type": "binary_expression", "text": "_MSC_VER <= 1700", "parent": 22, "children": [24, 25, 26], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 64}}, {"id": 24, "type": "identifier", "text": "_MSC_VER", "parent": 23, "children": [], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 56}}, {"id": 25, "type": "<=", "text": "<=", "parent": 23, "children": [], "start_point": {"row": 11, "column": 57}, "end_point": {"row": 11, "column": 59}}, {"id": 26, "type": "number_literal", "text": "1700", "parent": 23, "children": [], "start_point": {"row": 11, "column": 60}, "end_point": {"row": 11, "column": 64}}, {"id": 27, "type": "\n", "text": "\n", "parent": 9, "children": [], "start_point": {"row": 11, "column": 66}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "preproc_include", "text": "#include <cstdfloat>\n", "parent": 9, "children": [29, 30], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 13, "column": 0}}, {"id": 29, "type": "#include", "text": "#include", "parent": 28, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 30, "type": "system_lib_string", "text": "<cstdfloat>", "parent": 28, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 24}}, {"id": 31, "type": "function_definition", "text": "namespace std { std::float32_t tgamma(std::float32_t); }", "parent": 9, "children": [32, 33], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 60}}, {"id": 32, "type": "type_identifier", "text": "namespace", "parent": 31, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 13}}, {"id": 33, "type": "identifier", "text": "std", "parent": 31, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 17}}, {"id": 34, "type": "labeled_statement", "text": "std::float32_t tgamma(std::float32_t);", "parent": 31, "children": [35, 36], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 58}}, {"id": 35, "type": "statement_identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 23}}, {"id": 36, "type": "ERROR", "text": "::float32_t tgamma(std:", "parent": 34, "children": [37, 38, 39], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 46}}, {"id": 37, "type": "type_identifier", "text": "float32_t", "parent": 36, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 34}}, {"id": 38, "type": "identifier", "text": "tgamma", "parent": 36, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 41}}, {"id": 39, "type": "type_identifier", "text": "std", "parent": 36, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 45}}, {"id": 40, "type": "identifier", "text": "float32_t", "parent": 34, "children": [], "start_point": {"row": 13, "column": 47}, "end_point": {"row": 13, "column": 56}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 42, "type": "preproc_include", "text": "#include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n", "parent": 0, "children": [43, 44], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 16, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 10}}, {"id": 44, "type": "system_lib_string", "text": "<Bsw/Util/Math/Fpu/fpu_hypergeometric.h>", "parent": 42, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 51}}, {"id": 45, "type": "function_definition", "text": "namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n }", "parent": 0, "children": [46, 47], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 47, "column": 3}}, {"id": 46, "type": "type_identifier", "text": "namespace", "parent": 45, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 11}}, {"id": 47, "type": "identifier", "text": "app", "parent": 45, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 15}}, {"id": 48, "type": "function_definition", "text": "namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }", "parent": 45, "children": [49, 50], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 49, "type": "type_identifier", "text": "namespace", "parent": 48, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 13}}, {"id": 50, "type": "identifier", "text": "benchmark", "parent": 48, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 23}}, {"id": 51, "type": "binary_expression", "text": "template<typename T>\n T legendre_p(T v, T u, T x)", "parent": 48, "children": [52, 56, 58, 59, 61], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 22, "column": 33}}, {"id": 52, "type": "binary_expression", "text": "template<typename", "parent": 51, "children": [53, 54, 55], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 23}}, {"id": 53, "type": "identifier", "text": "template", "parent": 52, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 14}}, {"id": 54, "type": "<", "text": "<", "parent": 52, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 55, "type": "identifier", "text": "typename", "parent": 52, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 23}}, {"id": 56, "type": "ERROR", "text": "T", "parent": 51, "children": [57], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 57, "type": "identifier", "text": "T", "parent": 56, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 58, "type": ">", "text": ">", "parent": 51, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 59, "type": "ERROR", "text": "T", "parent": 51, "children": [60], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 60, "type": "identifier", "text": "T", "parent": 59, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 61, "type": "call_expression", "text": "legendre_p(T v, T u, T x)", "parent": 51, "children": [62, 63], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 33}}, {"id": 62, "type": "identifier", "text": "legendre_p", "parent": 61, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 18}}, {"id": 63, "type": "argument_list", "text": "(T v, T u, T x)", "parent": 61, "children": [64, 65, 67, 68, 70, 71], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 33}}, {"id": 64, "type": "identifier", "text": "T", "parent": 63, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 65, "type": "ERROR", "text": "v", "parent": 63, "children": [66], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 66, "type": "identifier", "text": "v", "parent": 65, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 67, "type": "identifier", "text": "T", "parent": 63, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 25}}, {"id": 68, "type": "ERROR", "text": "u", "parent": 63, "children": [69], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 69, "type": "identifier", "text": "u", "parent": 68, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 70, "type": "identifier", "text": "T", "parent": 63, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 71, "type": "ERROR", "text": "x", "parent": 63, "children": [72], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 72, "type": "identifier", "text": "x", "parent": 71, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 73, "type": "declaration", "text": "const T my_one(1);", "parent": 48, "children": [74, 75], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 26}}, {"id": 74, "type": "type_identifier", "text": "T", "parent": 73, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 75, "type": "function_declarator", "text": "my_one(1)", "parent": 73, "children": [76, 77], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 25}}, {"id": 76, "type": "identifier", "text": "my_one", "parent": 75, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 22}}, {"id": 77, "type": "parameter_list", "text": "(1)", "parent": 75, "children": [78], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 78, "type": "ERROR", "text": "1", "parent": 77, "children": [79], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 79, "type": "number_literal", "text": "1", "parent": 78, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 80, "type": "declaration", "text": "const T one_plus_x = my_one + x;", "parent": 48, "children": [81, 82], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 41}}, {"id": 81, "type": "type_identifier", "text": "T", "parent": 80, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 82, "type": "init_declarator", "text": "one_plus_x = my_one + x", "parent": 80, "children": [83, 84, 85], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 40}}, {"id": 83, "type": "identifier", "text": "one_plus_x", "parent": 82, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 26}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 29}}, {"id": 85, "type": "binary_expression", "text": "my_one + x", "parent": 82, "children": [86, 87, 88], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 40}}, {"id": 86, "type": "identifier", "text": "my_one", "parent": 85, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 36}}, {"id": 87, "type": "+", "text": "+", "parent": 85, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 88, "type": "identifier", "text": "x", "parent": 85, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 40}}, {"id": 89, "type": "declaration", "text": "const T one_minus_x = my_one - x;", "parent": 48, "children": [90, 91], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 41}}, {"id": 90, "type": "type_identifier", "text": "T", "parent": 89, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 15}}, {"id": 91, "type": "init_declarator", "text": "one_minus_x = my_one - x", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 40}}, {"id": 92, "type": "identifier", "text": "one_minus_x", "parent": 91, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 27}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 29}}, {"id": 94, "type": "binary_expression", "text": "my_one - x", "parent": 91, "children": [95, 96, 97], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 40}}, {"id": 95, "type": "identifier", "text": "my_one", "parent": 94, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 36}}, {"id": 96, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 38}}, {"id": 97, "type": "identifier", "text": "x", "parent": 94, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 40}}, {"id": 98, "type": "declaration", "text": "using std::pow;", "parent": 48, "children": [99, 100, 101], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 23}}, {"id": 99, "type": "type_identifier", "text": "using", "parent": 98, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 13}}, {"id": 100, "type": "identifier", "text": "std", "parent": 98, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 17}}, {"id": 101, "type": "ERROR", "text": "::pow", "parent": 98, "children": [102], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 22}}, {"id": 102, "type": "identifier", "text": "pow", "parent": 101, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 22}}, {"id": 103, "type": "declaration", "text": "using std::tgamma;", "parent": 48, "children": [104, 105, 107], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 26}}, {"id": 104, "type": "type_identifier", "text": "using", "parent": 103, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 13}}, {"id": 105, "type": "ERROR", "text": "std::", "parent": 103, "children": [106], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 19}}, {"id": 106, "type": "identifier", "text": "std", "parent": 105, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 17}}, {"id": 107, "type": "identifier", "text": "tgamma", "parent": 103, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 25}}, {"id": 108, "type": "declaration", "text": "const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);", "parent": 48, "children": [109, 110], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 94}}, {"id": 109, "type": "type_identifier", "text": "T", "parent": 108, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 110, "type": "init_declarator", "text": "one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2)", "parent": 108, "children": [111, 112, 113], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 93}}, {"id": 111, "type": "identifier", "text": "one_plus_x_over_one_minus_x_pow_u_half", "parent": 110, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 54}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 35, "column": 55}, "end_point": {"row": 35, "column": 56}}, {"id": 113, "type": "call_expression", "text": "pow(one_plus_x / one_minus_x, u / 2)", "parent": 110, "children": [114, 115], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 93}}, {"id": 114, "type": "identifier", "text": "pow", "parent": 113, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 60}}, {"id": 115, "type": "argument_list", "text": "(one_plus_x / one_minus_x, u / 2)", "parent": 113, "children": [116, 120], "start_point": {"row": 35, "column": 60}, "end_point": {"row": 35, "column": 93}}, {"id": 116, "type": "binary_expression", "text": "one_plus_x / one_minus_x", "parent": 115, "children": [117, 118, 119], "start_point": {"row": 35, "column": 61}, "end_point": {"row": 35, "column": 85}}, {"id": 117, "type": "identifier", "text": "one_plus_x", "parent": 116, "children": [], "start_point": {"row": 35, "column": 61}, "end_point": {"row": 35, "column": 71}}, {"id": 118, "type": "/", "text": "/", "parent": 116, "children": [], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 73}}, {"id": 119, "type": "identifier", "text": "one_minus_x", "parent": 116, "children": [], "start_point": {"row": 35, "column": 74}, "end_point": {"row": 35, "column": 85}}, {"id": 120, "type": "binary_expression", "text": "u / 2", "parent": 115, "children": [121, 122, 123], "start_point": {"row": 35, "column": 87}, "end_point": {"row": 35, "column": 92}}, {"id": 121, "type": "identifier", "text": "u", "parent": 120, "children": [], "start_point": {"row": 35, "column": 87}, "end_point": {"row": 35, "column": 88}}, {"id": 122, "type": "/", "text": "/", "parent": 120, "children": [], "start_point": {"row": 35, "column": 89}, "end_point": {"row": 35, "column": 90}}, {"id": 123, "type": "number_literal", "text": "2", "parent": 120, "children": [], "start_point": {"row": 35, "column": 91}, "end_point": {"row": 35, "column": 92}}, {"id": 124, "type": "declaration", "text": "const T gamma_of_one_minus_u = tgamma(my_one - u);", "parent": 48, "children": [125, 126], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 58}}, {"id": 125, "type": "type_identifier", "text": "T", "parent": 124, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 126, "type": "init_declarator", "text": "gamma_of_one_minus_u = tgamma(my_one - u)", "parent": 124, "children": [127, 128, 129], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 57}}, {"id": 127, "type": "identifier", "text": "gamma_of_one_minus_u", "parent": 126, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 36}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 38}}, {"id": 129, "type": "call_expression", "text": "tgamma(my_one - u)", "parent": 126, "children": [130, 131], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 57}}, {"id": 130, "type": "identifier", "text": "tgamma", "parent": 129, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 45}}, {"id": 131, "type": "argument_list", "text": "(my_one - u)", "parent": 129, "children": [132], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 57}}, {"id": 132, "type": "binary_expression", "text": "my_one - u", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 56}}, {"id": 133, "type": "identifier", "text": "my_one", "parent": 132, "children": [], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 52}}, {"id": 134, "type": "-", "text": "-", "parent": 132, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 54}}, {"id": 135, "type": "identifier", "text": "u", "parent": 132, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 56}}, {"id": 136, "type": "declaration", "text": "const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);", "parent": 48, "children": [137, 138], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 42, "column": 95}}, {"id": 137, "type": "type_identifier", "text": "T", "parent": 136, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 15}}, {"id": 138, "type": "init_declarator", "text": "hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)", "parent": 136, "children": [139, 140, 141, 144], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 42, "column": 94}}, {"id": 139, "type": "identifier", "text": "hypergeometric_2f1_term", "parent": 138, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 39}}, {"id": 140, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 41}}, {"id": 141, "type": "ERROR", "text": "app::benchmark::", "parent": 138, "children": [142, 143], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 58}}, {"id": 142, "type": "identifier", "text": "app", "parent": 141, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 45}}, {"id": 143, "type": "identifier", "text": "benchmark", "parent": 141, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 56}}, {"id": 144, "type": "call_expression", "text": "hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)", "parent": 138, "children": [145, 146], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 42, "column": 94}}, {"id": 145, "type": "identifier", "text": "hypergeometric_2f1", "parent": 144, "children": [], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 39, "column": 76}}, {"id": 146, "type": "argument_list", "text": "(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2)", "parent": 144, "children": [147, 150, 154, 158], "start_point": {"row": 39, "column": 76}, "end_point": {"row": 42, "column": 94}}, {"id": 147, "type": "unary_expression", "text": "-v", "parent": 146, "children": [148, 149], "start_point": {"row": 39, "column": 77}, "end_point": {"row": 39, "column": 79}}, {"id": 148, "type": "-", "text": "-", "parent": 147, "children": [], "start_point": {"row": 39, "column": 77}, "end_point": {"row": 39, "column": 78}}, {"id": 149, "type": "identifier", "text": "v", "parent": 147, "children": [], "start_point": {"row": 39, "column": 78}, "end_point": {"row": 39, "column": 79}}, {"id": 150, "type": "binary_expression", "text": "v + my_one", "parent": 146, "children": [151, 152, 153], "start_point": {"row": 40, "column": 78}, "end_point": {"row": 40, "column": 88}}, {"id": 151, "type": "identifier", "text": "v", "parent": 150, "children": [], "start_point": {"row": 40, "column": 78}, "end_point": {"row": 40, "column": 79}}, {"id": 152, "type": "+", "text": "+", "parent": 150, "children": [], "start_point": {"row": 40, "column": 80}, "end_point": {"row": 40, "column": 81}}, {"id": 153, "type": "identifier", "text": "my_one", "parent": 150, "children": [], "start_point": {"row": 40, "column": 82}, "end_point": {"row": 40, "column": 88}}, {"id": 154, "type": "binary_expression", "text": "my_one - u", "parent": 146, "children": [155, 156, 157], "start_point": {"row": 41, "column": 78}, "end_point": {"row": 41, "column": 88}}, {"id": 155, "type": "identifier", "text": "my_one", "parent": 154, "children": [], "start_point": {"row": 41, "column": 78}, "end_point": {"row": 41, "column": 84}}, {"id": 156, "type": "-", "text": "-", "parent": 154, "children": [], "start_point": {"row": 41, "column": 85}, "end_point": {"row": 41, "column": 86}}, {"id": 157, "type": "identifier", "text": "u", "parent": 154, "children": [], "start_point": {"row": 41, "column": 87}, "end_point": {"row": 41, "column": 88}}, {"id": 158, "type": "binary_expression", "text": "(my_one - x) / 2", "parent": 146, "children": [159, 164, 165], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 93}}, {"id": 159, "type": "parenthesized_expression", "text": "(my_one - x)", "parent": 158, "children": [160], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 89}}, {"id": 160, "type": "binary_expression", "text": "my_one - x", "parent": 159, "children": [161, 162, 163], "start_point": {"row": 42, "column": 78}, "end_point": {"row": 42, "column": 88}}, {"id": 161, "type": "identifier", "text": "my_one", "parent": 160, "children": [], "start_point": {"row": 42, "column": 78}, "end_point": {"row": 42, "column": 84}}, {"id": 162, "type": "-", "text": "-", "parent": 160, "children": [], "start_point": {"row": 42, "column": 85}, "end_point": {"row": 42, "column": 86}}, {"id": 163, "type": "identifier", "text": "x", "parent": 160, "children": [], "start_point": {"row": 42, "column": 87}, "end_point": {"row": 42, "column": 88}}, {"id": 164, "type": "/", "text": "/", "parent": 158, "children": [], "start_point": {"row": 42, "column": 90}, "end_point": {"row": 42, "column": 91}}, {"id": 165, "type": "number_literal", "text": "2", "parent": 158, "children": [], "start_point": {"row": 42, "column": 92}, "end_point": {"row": 42, "column": 93}}, {"id": 166, "type": "return_statement", "text": "return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;", "parent": 48, "children": [167], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 105}}, {"id": 167, "type": "binary_expression", "text": "(one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u", "parent": 166, "children": [168, 173, 174], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 104}}, {"id": 168, "type": "parenthesized_expression", "text": "(one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term)", "parent": 167, "children": [169], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 81}}, {"id": 169, "type": "binary_expression", "text": "one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term", "parent": 168, "children": [170, 171, 172], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 80}}, {"id": 170, "type": "identifier", "text": "one_plus_x_over_one_minus_x_pow_u_half", "parent": 169, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 54}}, {"id": 171, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 56}}, {"id": 172, "type": "identifier", "text": "hypergeometric_2f1_term", "parent": 169, "children": [], "start_point": {"row": 44, "column": 57}, "end_point": {"row": 44, "column": 80}}, {"id": 173, "type": "/", "text": "/", "parent": 167, "children": [], "start_point": {"row": 44, "column": 82}, "end_point": {"row": 44, "column": 83}}, {"id": 174, "type": "identifier", "text": "gamma_of_one_minus_u", "parent": 167, "children": [], "start_point": {"row": 44, "column": 84}, "end_point": {"row": 44, "column": 104}}, {"id": 175, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}]}, "node_categories": {"declarations": {"functions": [31, 45, 48, 75], "variables": [73, 80, 89, 98, 103, 108, 124, 136], "classes": [], "imports": [6, 7, 28, 29, 42, 43], "modules": [], "enums": []}, "statements": {"expressions": [11, 16, 17, 22, 23, 51, 52, 61, 85, 94, 113, 116, 120, 129, 132, 144, 147, 150, 154, 158, 159, 160, 167, 168, 169], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 14, 20, 24, 32, 33, 35, 37, 38, 39, 40, 41, 46, 47, 49, 50, 53, 55, 57, 60, 62, 64, 66, 67, 69, 70, 72, 74, 76, 81, 83, 86, 88, 90, 92, 95, 97, 99, 100, 102, 104, 106, 107, 109, 111, 114, 117, 119, 121, 125, 127, 130, 133, 135, 137, 139, 142, 143, 145, 149, 151, 153, 155, 157, 161, 163, 170, 172, 174, 175], "returns": [166], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 26, 30, 44, 79, 123, 165], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "namespace std { std::float32_t tgamma(std::float32_t); }"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n "}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "my_one(1)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <cmath>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 28, "text": "#include <cstdfloat>\n"}, {"node_id": 29, "text": "#include"}, {"node_id": 42, "text": "#include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n"}, {"node_id": 43, "text": "#include"}]}, "original_source_code": "///////////////////////////////////////////////////////////////////////////////\n// Copyright <NAME> 2014.\n// Distributed under the Boost Software License,\n// Version 1.0. (See accompanying file LICENSE_1_0.txt\n// or copy at http://www.boost.org/LICENSE_1_0.txt)\n//\n\n#ifndef _FPU_LEGENDRE_2014_04_30_H_\n #define _FPU_LEGENDRE_2014_04_30_H_\n\n #include <cmath>\n #if defined(__GNUC__) || (defined(_WIN32) && (_MSC_VER <= 1700))\n #include <cstdfloat>\n namespace std { std::float32_t tgamma(std::float32_t); }\n #endif\n #include <Bsw/Util/Math/Fpu/fpu_hypergeometric.h>\n\n namespace app\n {\n namespace benchmark\n {\n template<typename T>\n T legendre_p(T v, T u, T x)\n {\n // Compute the Taylor series representation of legendre_p.\n // There are no checks on input range or parameter boundaries.\n\n const T my_one(1);\n\n const T one_plus_x = my_one + x;\n const T one_minus_x = my_one - x;\n\n using std::pow;\n using std::tgamma;\n\n const T one_plus_x_over_one_minus_x_pow_u_half = pow(one_plus_x / one_minus_x, u / 2);\n\n const T gamma_of_one_minus_u = tgamma(my_one - u);\n\n const T hypergeometric_2f1_term = app::benchmark::hypergeometric_2f1(-v,\n v + my_one,\n my_one - u,\n (my_one - x) / 2);\n\n return (one_plus_x_over_one_minus_x_pow_u_half * hypergeometric_2f1_term) / gamma_of_one_minus_u;\n }\n }\n } // namespace app::benchmark\n\n#endif // _FPU_LEGENDRE_2014_04_30_H_\n"}
81,070
c
/* * Copyright (C) 2010 <NAME> <<EMAIL>>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. * * You can also choose to distribute this program under the terms of * the Unmodified Binary Distribution Licence (as given in the file * COPYING.UBDL), provided that you have satisfied its requirements. */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stdint.h> #include <stdio.h> #include <errno.h> #include <assert.h> #include <ipxe/string.h> #include <ipxe/vsprintf.h> #include <ipxe/base16.h> /** @file * * Base16 encoding * */ /** * Encode hexadecimal string (with optional byte separator character) * * @v separator Byte separator character, or 0 for no separator * @v raw Raw data * @v raw_len Length of raw data * @v data Buffer * @v len Length of buffer * @ret len Encoded length */ size_t hex_encode ( char separator, const void *raw, size_t raw_len, char *data, size_t len ) { const uint8_t *bytes = raw; const char delimiter[2] = { separator, '\0' }; size_t used = 0; unsigned int i; if ( len ) data[0] = 0; /* Ensure that a terminating NUL exists */ for ( i = 0 ; i < raw_len ; i++ ) { used += ssnprintf ( ( data + used ), ( len - used ), "%s%02x", ( used ? delimiter : "" ), bytes[i] ); } return used; } /** * Decode hexadecimal string (with optional byte separator character) * * @v separator Byte separator character, or 0 for no separator * @v encoded Encoded string * @v data Buffer * @v len Length of buffer * @ret len Length of data, or negative error */ int hex_decode ( char separator, const char *encoded, void *data, size_t len ) { uint8_t *out = data; unsigned int count = 0; unsigned int sixteens; unsigned int units; while ( *encoded ) { /* Check separator, if applicable */ if ( count && separator && ( ( *(encoded++) != separator ) ) ) return -EINVAL; /* Extract digits. Note that either digit may be NUL, * which would be interpreted as an invalid value by * digit_value(); there is therefore no need for an * explicit end-of-string check. */ sixteens = digit_value ( *(encoded++) ); if ( sixteens >= 16 ) return -EINVAL; units = digit_value ( *(encoded++) ); if ( units >= 16 ) return -EINVAL; /* Store result */ if ( count < len ) out[count] = ( ( sixteens << 4 ) | units ); count++; } return count; }
30.39
96
(translation_unit) "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of the\n * License, or any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\n * 02110-1301, USA.\n *\n * You can also choose to distribute this program under the terms of\n * the Unmodified Binary Distribution Licence (as given in the file\n * COPYING.UBDL), provided that you have satisfied its requirements.\n */\n\nFILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );\n\n#include <stdint.h>\n#include <stdio.h>\n#include <errno.h>\n#include <assert.h>\n#include <ipxe/string.h>\n#include <ipxe/vsprintf.h>\n#include <ipxe/base16.h>\n\n/** @file\n *\n * Base16 encoding\n *\n */\n\n/**\n * Encode hexadecimal string (with optional byte separator character)\n *\n * @v separator Byte separator character, or 0 for no separator\n * @v raw Raw data\n * @v raw_len Length of raw data\n * @v data Buffer\n * @v len Length of buffer\n * @ret len Encoded length\n */\nsize_t hex_encode ( char separator, const void *raw, size_t raw_len,\n char *data, size_t len ) {\n const uint8_t *bytes = raw;\n const char delimiter[2] = { separator, '\0' };\n size_t used = 0;\n unsigned int i;\n\n if ( len )\n data[0] = 0; /* Ensure that a terminating NUL exists */\n for ( i = 0 ; i < raw_len ; i++ ) {\n used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );\n }\n return used;\n}\n\n/**\n * Decode hexadecimal string (with optional byte separator character)\n *\n * @v separator Byte separator character, or 0 for no separator\n * @v encoded Encoded string\n * @v data Buffer\n * @v len Length of buffer\n * @ret len Length of data, or negative error\n */\nint hex_decode ( char separator, const char *encoded, void *data, size_t len ) {\n uint8_t *out = data;\n unsigned int count = 0;\n unsigned int sixteens;\n unsigned int units;\n\n while ( *encoded ) {\n\n /* Check separator, if applicable */\n if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;\n\n /* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */\n sixteens = digit_value ( *(encoded++) );\n if ( sixteens >= 16 )\n return -EINVAL;\n units = digit_value ( *(encoded++) );\n if ( units >= 16 )\n return -EINVAL;\n\n /* Store result */\n if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );\n count++;\n\n }\n return count;\n}\n" (comment) "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of the\n * License, or any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\n * 02110-1301, USA.\n *\n * You can also choose to distribute this program under the terms of\n * the Unmodified Binary Distribution Licence (as given in the file\n * COPYING.UBDL), provided that you have satisfied its requirements.\n */" (expression_statement) "FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );" (call_expression) "FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )" (identifier) "FILE_LICENCE" (argument_list) "( GPL2_OR_LATER_OR_UBDL )" (() "(" (identifier) "GPL2_OR_LATER_OR_UBDL" ()) ")" (;) ";" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <ipxe/string.h>\n" (#include) "#include" (system_lib_string) "<ipxe/string.h>" (preproc_include) "#include <ipxe/vsprintf.h>\n" (#include) "#include" (system_lib_string) "<ipxe/vsprintf.h>" (preproc_include) "#include <ipxe/base16.h>\n" (#include) "#include" (system_lib_string) "<ipxe/base16.h>" (comment) "/** @file\n *\n * Base16 encoding\n *\n */" (comment) "/**\n * Encode hexadecimal string (with optional byte separator character)\n *\n * @v separator Byte separator character, or 0 for no separator\n * @v raw Raw data\n * @v raw_len Length of raw data\n * @v data Buffer\n * @v len Length of buffer\n * @ret len Encoded length\n */" (function_definition) "size_t hex_encode ( char separator, const void *raw, size_t raw_len,\n char *data, size_t len ) {\n const uint8_t *bytes = raw;\n const char delimiter[2] = { separator, '\0' };\n size_t used = 0;\n unsigned int i;\n\n if ( len )\n data[0] = 0; /* Ensure that a terminating NUL exists */\n for ( i = 0 ; i < raw_len ; i++ ) {\n used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );\n }\n return used;\n}" (primitive_type) "size_t" (function_declarator) "hex_encode ( char separator, const void *raw, size_t raw_len,\n char *data, size_t len )" (identifier) "hex_encode" (parameter_list) "( char separator, const void *raw, size_t raw_len,\n char *data, size_t len )" (() "(" (parameter_declaration) "char separator" (primitive_type) "char" (identifier) "separator" (,) "," (parameter_declaration) "const void *raw" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*raw" (*) "*" (identifier) "raw" (,) "," (parameter_declaration) "size_t raw_len" (primitive_type) "size_t" (identifier) "raw_len" (,) "," (parameter_declaration) "char *data" (primitive_type) "char" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n const uint8_t *bytes = raw;\n const char delimiter[2] = { separator, '\0' };\n size_t used = 0;\n unsigned int i;\n\n if ( len )\n data[0] = 0; /* Ensure that a terminating NUL exists */\n for ( i = 0 ; i < raw_len ; i++ ) {\n used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );\n }\n return used;\n}" ({) "{" (declaration) "const uint8_t *bytes = raw;" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "*bytes = raw" (pointer_declarator) "*bytes" (*) "*" (identifier) "bytes" (=) "=" (identifier) "raw" (;) ";" (declaration) "const char delimiter[2] = { separator, '\0' };" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "delimiter[2] = { separator, '\0' }" (array_declarator) "delimiter[2]" (identifier) "delimiter" ([) "[" (number_literal) "2" (]) "]" (=) "=" (initializer_list) "{ separator, '\0' }" ({) "{" (identifier) "separator" (,) "," (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (}) "}" (;) ";" (declaration) "size_t used = 0;" (primitive_type) "size_t" (init_declarator) "used = 0" (identifier) "used" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned int i;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (;) ";" (if_statement) "if ( len )\n data[0] = 0;" (if) "if" (parenthesized_expression) "( len )" (() "(" (identifier) "len" ()) ")" (expression_statement) "data[0] = 0;" (assignment_expression) "data[0] = 0" (subscript_expression) "data[0]" (identifier) "data" ([) "[" (number_literal) "0" (]) "]" (=) "=" (number_literal) "0" (;) ";" (comment) "/* Ensure that a terminating NUL exists */" (for_statement) "for ( i = 0 ; i < raw_len ; i++ ) {\n used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < raw_len" (identifier) "i" (<) "<" (identifier) "raw_len" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );\n }" ({) "{" (expression_statement) "used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] );" (assignment_expression) "used += ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] )" (identifier) "used" (+=) "+=" (call_expression) "ssnprintf ( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] )" (identifier) "ssnprintf" (argument_list) "( ( data + used ), ( len - used ),\n "%s%02x", ( used ? delimiter : "" ),\n bytes[i] )" (() "(" (parenthesized_expression) "( data + used )" (() "(" (binary_expression) "data + used" (identifier) "data" (+) "+" (identifier) "used" ()) ")" (,) "," (parenthesized_expression) "( len - used )" (() "(" (binary_expression) "len - used" (identifier) "len" (-) "-" (identifier) "used" ()) ")" (,) "," (string_literal) ""%s%02x"" (") """ (string_content) "%s%02x" (") """ (,) "," (parenthesized_expression) "( used ? delimiter : "" )" (() "(" (conditional_expression) "used ? delimiter : """ (identifier) "used" (?) "?" (identifier) "delimiter" (:) ":" (string_literal) """" (") """ (") """ ()) ")" (,) "," (subscript_expression) "bytes[i]" (identifier) "bytes" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (return_statement) "return used;" (return) "return" (identifier) "used" (;) ";" (}) "}" (comment) "/**\n * Decode hexadecimal string (with optional byte separator character)\n *\n * @v separator Byte separator character, or 0 for no separator\n * @v encoded Encoded string\n * @v data Buffer\n * @v len Length of buffer\n * @ret len Length of data, or negative error\n */" (function_definition) "int hex_decode ( char separator, const char *encoded, void *data, size_t len ) {\n uint8_t *out = data;\n unsigned int count = 0;\n unsigned int sixteens;\n unsigned int units;\n\n while ( *encoded ) {\n\n /* Check separator, if applicable */\n if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;\n\n /* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */\n sixteens = digit_value ( *(encoded++) );\n if ( sixteens >= 16 )\n return -EINVAL;\n units = digit_value ( *(encoded++) );\n if ( units >= 16 )\n return -EINVAL;\n\n /* Store result */\n if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );\n count++;\n\n }\n return count;\n}" (primitive_type) "int" (function_declarator) "hex_decode ( char separator, const char *encoded, void *data, size_t len )" (identifier) "hex_decode" (parameter_list) "( char separator, const char *encoded, void *data, size_t len )" (() "(" (parameter_declaration) "char separator" (primitive_type) "char" (identifier) "separator" (,) "," (parameter_declaration) "const char *encoded" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*encoded" (*) "*" (identifier) "encoded" (,) "," (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n uint8_t *out = data;\n unsigned int count = 0;\n unsigned int sixteens;\n unsigned int units;\n\n while ( *encoded ) {\n\n /* Check separator, if applicable */\n if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;\n\n /* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */\n sixteens = digit_value ( *(encoded++) );\n if ( sixteens >= 16 )\n return -EINVAL;\n units = digit_value ( *(encoded++) );\n if ( units >= 16 )\n return -EINVAL;\n\n /* Store result */\n if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );\n count++;\n\n }\n return count;\n}" ({) "{" (declaration) "uint8_t *out = data;" (primitive_type) "uint8_t" (init_declarator) "*out = data" (pointer_declarator) "*out" (*) "*" (identifier) "out" (=) "=" (identifier) "data" (;) ";" (declaration) "unsigned int count = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned int sixteens;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "sixteens" (;) ";" (declaration) "unsigned int units;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "units" (;) ";" (while_statement) "while ( *encoded ) {\n\n /* Check separator, if applicable */\n if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;\n\n /* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */\n sixteens = digit_value ( *(encoded++) );\n if ( sixteens >= 16 )\n return -EINVAL;\n units = digit_value ( *(encoded++) );\n if ( units >= 16 )\n return -EINVAL;\n\n /* Store result */\n if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );\n count++;\n\n }" (while) "while" (parenthesized_expression) "( *encoded )" (() "(" (pointer_expression) "*encoded" (*) "*" (identifier) "encoded" ()) ")" (compound_statement) "{\n\n /* Check separator, if applicable */\n if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;\n\n /* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */\n sixteens = digit_value ( *(encoded++) );\n if ( sixteens >= 16 )\n return -EINVAL;\n units = digit_value ( *(encoded++) );\n if ( units >= 16 )\n return -EINVAL;\n\n /* Store result */\n if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );\n count++;\n\n }" ({) "{" (comment) "/* Check separator, if applicable */" (if_statement) "if ( count && separator && ( ( *(encoded++) != separator ) ) )\n return -EINVAL;" (if) "if" (parenthesized_expression) "( count && separator && ( ( *(encoded++) != separator ) ) )" (() "(" (binary_expression) "count && separator && ( ( *(encoded++) != separator ) )" (binary_expression) "count && separator" (identifier) "count" (&&) "&&" (identifier) "separator" (&&) "&&" (parenthesized_expression) "( ( *(encoded++) != separator ) )" (() "(" (parenthesized_expression) "( *(encoded++) != separator )" (() "(" (binary_expression) "*(encoded++) != separator" (pointer_expression) "*(encoded++)" (*) "*" (parenthesized_expression) "(encoded++)" (() "(" (update_expression) "encoded++" (identifier) "encoded" (++) "++" ()) ")" (!=) "!=" (identifier) "separator" ()) ")" ()) ")" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (comment) "/* Extract digits. Note that either digit may be NUL,\n * which would be interpreted as an invalid value by\n * digit_value(); there is therefore no need for an\n * explicit end-of-string check.\n */" (expression_statement) "sixteens = digit_value ( *(encoded++) );" (assignment_expression) "sixteens = digit_value ( *(encoded++) )" (identifier) "sixteens" (=) "=" (call_expression) "digit_value ( *(encoded++) )" (identifier) "digit_value" (argument_list) "( *(encoded++) )" (() "(" (pointer_expression) "*(encoded++)" (*) "*" (parenthesized_expression) "(encoded++)" (() "(" (update_expression) "encoded++" (identifier) "encoded" (++) "++" ()) ")" ()) ")" (;) ";" (if_statement) "if ( sixteens >= 16 )\n return -EINVAL;" (if) "if" (parenthesized_expression) "( sixteens >= 16 )" (() "(" (binary_expression) "sixteens >= 16" (identifier) "sixteens" (>=) ">=" (number_literal) "16" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "units = digit_value ( *(encoded++) );" (assignment_expression) "units = digit_value ( *(encoded++) )" (identifier) "units" (=) "=" (call_expression) "digit_value ( *(encoded++) )" (identifier) "digit_value" (argument_list) "( *(encoded++) )" (() "(" (pointer_expression) "*(encoded++)" (*) "*" (parenthesized_expression) "(encoded++)" (() "(" (update_expression) "encoded++" (identifier) "encoded" (++) "++" ()) ")" ()) ")" (;) ";" (if_statement) "if ( units >= 16 )\n return -EINVAL;" (if) "if" (parenthesized_expression) "( units >= 16 )" (() "(" (binary_expression) "units >= 16" (identifier) "units" (>=) ">=" (number_literal) "16" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (comment) "/* Store result */" (if_statement) "if ( count < len )\n out[count] = ( ( sixteens << 4 ) | units );" (if) "if" (parenthesized_expression) "( count < len )" (() "(" (binary_expression) "count < len" (identifier) "count" (<) "<" (identifier) "len" ()) ")" (expression_statement) "out[count] = ( ( sixteens << 4 ) | units );" (assignment_expression) "out[count] = ( ( sixteens << 4 ) | units )" (subscript_expression) "out[count]" (identifier) "out" ([) "[" (identifier) "count" (]) "]" (=) "=" (parenthesized_expression) "( ( sixteens << 4 ) | units )" (() "(" (binary_expression) "( sixteens << 4 ) | units" (parenthesized_expression) "( sixteens << 4 )" (() "(" (binary_expression) "sixteens << 4" (identifier) "sixteens" (<<) "<<" (number_literal) "4" ()) ")" (|) "|" (identifier) "units" ()) ")" (;) ";" (expression_statement) "count++;" (update_expression) "count++" (identifier) "count" (++) "++" (;) ";" (}) "}" (return_statement) "return count;" (return) "return" (identifier) "count" (;) ";" (}) "}"
418
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 30.39, "nodes": 273, "errors": 0, "source_hash": "9aa053990a48eb26c9c240c43e6b489ff8432085f2d634899b682cfcdb337f06", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )", "parent": null, "children": [1, 2], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 38}}, {"id": 1, "type": "identifier", "text": "FILE_LICENCE", "parent": 0, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 12}}, {"id": 2, "type": "argument_list", "text": "( GPL2_OR_LATER_OR_UBDL )", "parent": 0, "children": [3], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 38}}, {"id": 3, "type": "identifier", "text": "GPL2_OR_LATER_OR_UBDL", "parent": 2, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 36}}, {"id": 4, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": null, "children": [5, 6], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 5, "type": "#include", "text": "#include", "parent": 4, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 6, "type": "system_lib_string", "text": "<stdint.h>", "parent": 4, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 7, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [8, 9], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<stdio.h>", "parent": 7, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 10, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [11, 12], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 12, "type": "system_lib_string", "text": "<errno.h>", "parent": 10, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 18}}, {"id": 13, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [14, 15], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 15, "type": "system_lib_string", "text": "<assert.h>", "parent": 13, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 16, "type": "preproc_include", "text": "#include <ipxe/string.h>\n", "parent": null, "children": [17, 18], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 18, "type": "system_lib_string", "text": "<ipxe/string.h>", "parent": 16, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 24}}, {"id": 19, "type": "preproc_include", "text": "#include <ipxe/vsprintf.h>\n", "parent": null, "children": [20, 21], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 21, "type": "system_lib_string", "text": "<ipxe/vsprintf.h>", "parent": 19, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 26}}, {"id": 22, "type": "preproc_include", "text": "#include <ipxe/base16.h>\n", "parent": null, "children": [23, 24], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 24, "type": "system_lib_string", "text": "<ipxe/base16.h>", "parent": 22, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 24}}, {"id": 25, "type": "function_definition", "text": "size_t hex_encode ( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len ) {\n\tconst uint8_t *bytes = raw;\n\tconst char delimiter[2] = { separator, '\\0' };\n\tsize_t used = 0;\n\tunsigned int i;\n\n\tif ( len )\n\t\tdata[0] = 0; /* Ensure that a terminating NUL exists */\n\tfor ( i = 0 ; i < raw_len ; i++ ) {\n\t\tused += ssnprintf ( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] );\n\t}\n\treturn used;\n}", "parent": null, "children": [26, 27], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 26, "type": "primitive_type", "text": "size_t", "parent": 25, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 27, "type": "function_declarator", "text": "hex_encode ( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len )", "parent": 25, "children": [28, 29], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 50, "column": 30}}, {"id": 28, "type": "identifier", "text": "hex_encode", "parent": 27, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 17}}, {"id": 29, "type": "parameter_list", "text": "( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len )", "parent": 27, "children": [30, 33, 38, 41, 46], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 50, "column": 30}}, {"id": 30, "type": "parameter_declaration", "text": "char separator", "parent": 29, "children": [31, 32], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 34}}, {"id": 31, "type": "primitive_type", "text": "char", "parent": 30, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 24}}, {"id": 32, "type": "identifier", "text": "separator", "parent": 30, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 34}}, {"id": 33, "type": "parameter_declaration", "text": "const void *raw", "parent": 29, "children": [34, 35], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 51}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 49, "column": 42}, "end_point": {"row": 49, "column": 46}}, {"id": 35, "type": "pointer_declarator", "text": "*raw", "parent": 33, "children": [36, 37], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 51}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 48}}, {"id": 37, "type": "identifier", "text": "raw", "parent": 35, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 51}}, {"id": 38, "type": "parameter_declaration", "text": "size_t raw_len", "parent": 29, "children": [39, 40], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 67}}, {"id": 39, "type": "primitive_type", "text": "size_t", "parent": 38, "children": [], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 59}}, {"id": 40, "type": "identifier", "text": "raw_len", "parent": 38, "children": [], "start_point": {"row": 49, "column": 60}, "end_point": {"row": 49, "column": 67}}, {"id": 41, "type": "parameter_declaration", "text": "char *data", "parent": 29, "children": [42, 43], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 16}}, {"id": 42, "type": "primitive_type", "text": "char", "parent": 41, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 10}}, {"id": 43, "type": "pointer_declarator", "text": "*data", "parent": 41, "children": [44, 45], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 16}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 45, "type": "identifier", "text": "data", "parent": 43, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 16}}, {"id": 46, "type": "parameter_declaration", "text": "size_t len", "parent": 29, "children": [47, 48], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 28}}, {"id": 47, "type": "primitive_type", "text": "size_t", "parent": 46, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 24}}, {"id": 48, "type": "identifier", "text": "len", "parent": 46, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 28}}, {"id": 49, "type": "declaration", "text": "const uint8_t *bytes = raw;", "parent": 25, "children": [50, 51], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 28}}, {"id": 50, "type": "primitive_type", "text": "uint8_t", "parent": 49, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 14}}, {"id": 51, "type": "init_declarator", "text": "*bytes = raw", "parent": 49, "children": [52, 55, 56], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 27}}, {"id": 52, "type": "pointer_declarator", "text": "*bytes", "parent": 51, "children": [53, 54], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 21}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 54, "type": "identifier", "text": "bytes", "parent": 52, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 21}}, {"id": 55, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 23}}, {"id": 56, "type": "identifier", "text": "raw", "parent": 51, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 27}}, {"id": 57, "type": "declaration", "text": "const char delimiter[2] = { separator, '\\0' };", "parent": 25, "children": [58, 59], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 47}}, {"id": 58, "type": "primitive_type", "text": "char", "parent": 57, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 11}}, {"id": 59, "type": "init_declarator", "text": "delimiter[2] = { separator, '\\0' }", "parent": 57, "children": [60, 63, 64], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 46}}, {"id": 60, "type": "array_declarator", "text": "delimiter[2]", "parent": 59, "children": [61, 62], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 24}}, {"id": 61, "type": "identifier", "text": "delimiter", "parent": 60, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 21}}, {"id": 62, "type": "number_literal", "text": "2", "parent": 60, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 63, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 26}}, {"id": 64, "type": "initializer_list", "text": "{ separator, '\\0' }", "parent": 59, "children": [65, 66], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 46}}, {"id": 65, "type": "identifier", "text": "separator", "parent": 64, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 38}}, {"id": 66, "type": "char_literal", "text": "'\\0'", "parent": 64, "children": [67, 68, 69], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 44}}, {"id": 67, "type": "'", "text": "'", "parent": 66, "children": [], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 41}}, {"id": 68, "type": "escape_sequence", "text": "\\0", "parent": 66, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 43}}, {"id": 69, "type": "'", "text": "'", "parent": 66, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 44}}, {"id": 70, "type": "declaration", "text": "size_t used = 0;", "parent": 25, "children": [71, 72], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 17}}, {"id": 71, "type": "primitive_type", "text": "size_t", "parent": 70, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 7}}, {"id": 72, "type": "init_declarator", "text": "used = 0", "parent": 70, "children": [73, 74, 75], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 16}}, {"id": 73, "type": "identifier", "text": "used", "parent": 72, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 12}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 75, "type": "number_literal", "text": "0", "parent": 72, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 76, "type": "declaration", "text": "unsigned int i;", "parent": 25, "children": [77, 80], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 16}}, {"id": 77, "type": "sized_type_specifier", "text": "unsigned int", "parent": 76, "children": [78, 79], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 13}}, {"id": 78, "type": "unsigned", "text": "unsigned", "parent": 77, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 9}}, {"id": 79, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 13}}, {"id": 80, "type": "identifier", "text": "i", "parent": 76, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 81, "type": "if_statement", "text": "if ( len )\n\t\tdata[0] = 0;", "parent": 25, "children": [82], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 82, "type": "parenthesized_expression", "text": "( len )", "parent": 81, "children": [83], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 83, "type": "identifier", "text": "len", "parent": 82, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 9}}, {"id": 84, "type": "assignment_expression", "text": "data[0] = 0", "parent": 81, "children": [85, 88, 89], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 13}}, {"id": 85, "type": "subscript_expression", "text": "data[0]", "parent": 84, "children": [86, 87], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 9}}, {"id": 86, "type": "identifier", "text": "data", "parent": 85, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 87, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 8}}, {"id": 88, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 90, "type": "for_statement", "text": "for ( i = 0 ; i < raw_len ; i++ ) {\n\t\tused += ssnprintf ( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] );\n\t}", "parent": 25, "children": [91, 95, 99], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 62, "column": 2}}, {"id": 91, "type": "assignment_expression", "text": "i = 0", "parent": 90, "children": [92, 93, 94], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 12}}, {"id": 92, "type": "identifier", "text": "i", "parent": 91, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 8}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 91, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 12}}, {"id": 95, "type": "binary_expression", "text": "i < raw_len", "parent": 90, "children": [96, 97, 98], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 26}}, {"id": 96, "type": "identifier", "text": "i", "parent": 95, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 97, "type": "<", "text": "<", "parent": 95, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 98, "type": "identifier", "text": "raw_len", "parent": 95, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 26}}, {"id": 99, "type": "update_expression", "text": "i++", "parent": 90, "children": [100, 101], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 32}}, {"id": 100, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 30}}, {"id": 101, "type": "++", "text": "++", "parent": 99, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 32}}, {"id": 102, "type": "assignment_expression", "text": "used += ssnprintf ( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] )", "parent": 90, "children": [103, 104, 105], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 61, "column": 18}}, {"id": 103, "type": "identifier", "text": "used", "parent": 102, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 104, "type": "+=", "text": "+=", "parent": 102, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 105, "type": "call_expression", "text": "ssnprintf ( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] )", "parent": 102, "children": [106, 107], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 61, "column": 18}}, {"id": 106, "type": "identifier", "text": "ssnprintf", "parent": 105, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 19}}, {"id": 107, "type": "argument_list", "text": "( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] )", "parent": 105, "children": [108, 113, 118, 119, 125], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 61, "column": 18}}, {"id": 108, "type": "parenthesized_expression", "text": "( data + used )", "parent": 107, "children": [109], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 37}}, {"id": 109, "type": "binary_expression", "text": "data + used", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 35}}, {"id": 110, "type": "identifier", "text": "data", "parent": 109, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 28}}, {"id": 111, "type": "+", "text": "+", "parent": 109, "children": [], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 30}}, {"id": 112, "type": "identifier", "text": "used", "parent": 109, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 35}}, {"id": 113, "type": "parenthesized_expression", "text": "( len - used )", "parent": 107, "children": [114], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 53}}, {"id": 114, "type": "binary_expression", "text": "len - used", "parent": 113, "children": [115, 116, 117], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 51}}, {"id": 115, "type": "identifier", "text": "len", "parent": 114, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 44}}, {"id": 116, "type": "-", "text": "-", "parent": 114, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 46}}, {"id": 117, "type": "identifier", "text": "used", "parent": 114, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 51}}, {"id": 118, "type": "string_literal", "text": "\"%s%02x\"", "parent": 107, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 16}}, {"id": 119, "type": "parenthesized_expression", "text": "( used ? delimiter : \"\" )", "parent": 107, "children": [120], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 43}}, {"id": 120, "type": "conditional_expression", "text": "used ? delimiter : \"\"", "parent": 119, "children": [121, 122, 123, 124], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 41}}, {"id": 121, "type": "identifier", "text": "used", "parent": 120, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 24}}, {"id": 122, "type": "?", "text": "?", "parent": 120, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 26}}, {"id": 123, "type": "identifier", "text": "delimiter", "parent": 120, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 36}}, {"id": 124, "type": "string_literal", "text": "\"\"", "parent": 120, "children": [], "start_point": {"row": 60, "column": 39}, "end_point": {"row": 60, "column": 41}}, {"id": 125, "type": "subscript_expression", "text": "bytes[i]", "parent": 107, "children": [126, 127], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 16}}, {"id": 126, "type": "identifier", "text": "bytes", "parent": 125, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 13}}, {"id": 127, "type": "identifier", "text": "i", "parent": 125, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 128, "type": "return_statement", "text": "return used;", "parent": 25, "children": [129], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 13}}, {"id": 129, "type": "identifier", "text": "used", "parent": 128, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 12}}, {"id": 130, "type": "function_definition", "text": "int hex_decode ( char separator, const char *encoded, void *data, size_t len ) {\n\tuint8_t *out = data;\n\tunsigned int count = 0;\n\tunsigned int sixteens;\n\tunsigned int units;\n\n\twhile ( *encoded ) {\n\n\t\t/* Check separator, if applicable */\n\t\tif ( count && separator && ( ( *(encoded++) != separator ) ) )\n\t\t\treturn -EINVAL;\n\n\t\t/* Extract digits. Note that either digit may be NUL,\n\t\t * which would be interpreted as an invalid value by\n\t\t * digit_value(); there is therefore no need for an\n\t\t * explicit end-of-string check.\n\t\t */\n\t\tsixteens = digit_value ( *(encoded++) );\n\t\tif ( sixteens >= 16 )\n\t\t\treturn -EINVAL;\n\t\tunits = digit_value ( *(encoded++) );\n\t\tif ( units >= 16 )\n\t\t\treturn -EINVAL;\n\n\t\t/* Store result */\n\t\tif ( count < len )\n\t\t\tout[count] = ( ( sixteens << 4 ) | units );\n\t\tcount++;\n\n\t}\n\treturn count;\n}", "parent": null, "children": [131, 132], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 3}}, {"id": 132, "type": "function_declarator", "text": "hex_decode ( char separator, const char *encoded, void *data, size_t len )", "parent": 130, "children": [133, 134], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 78}}, {"id": 133, "type": "identifier", "text": "hex_decode", "parent": 132, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 14}}, {"id": 134, "type": "parameter_list", "text": "( char separator, const char *encoded, void *data, size_t len )", "parent": 132, "children": [135, 138, 143, 148], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 78}}, {"id": 135, "type": "parameter_declaration", "text": "char separator", "parent": 134, "children": [136, 137], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 31}}, {"id": 136, "type": "primitive_type", "text": "char", "parent": 135, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 21}}, {"id": 137, "type": "identifier", "text": "separator", "parent": 135, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 31}}, {"id": 138, "type": "parameter_declaration", "text": "const char *encoded", "parent": 134, "children": [139, 140], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 52}}, {"id": 139, "type": "primitive_type", "text": "char", "parent": 138, "children": [], "start_point": {"row": 75, "column": 39}, "end_point": {"row": 75, "column": 43}}, {"id": 140, "type": "pointer_declarator", "text": "*encoded", "parent": 138, "children": [141, 142], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 52}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 45}}, {"id": 142, "type": "identifier", "text": "encoded", "parent": 140, "children": [], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 52}}, {"id": 143, "type": "parameter_declaration", "text": "void *data", "parent": 134, "children": [144, 145], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 64}}, {"id": 144, "type": "primitive_type", "text": "void", "parent": 143, "children": [], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 58}}, {"id": 145, "type": "pointer_declarator", "text": "*data", "parent": 143, "children": [146, 147], "start_point": {"row": 75, "column": 59}, "end_point": {"row": 75, "column": 64}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 75, "column": 59}, "end_point": {"row": 75, "column": 60}}, {"id": 147, "type": "identifier", "text": "data", "parent": 145, "children": [], "start_point": {"row": 75, "column": 60}, "end_point": {"row": 75, "column": 64}}, {"id": 148, "type": "parameter_declaration", "text": "size_t len", "parent": 134, "children": [149, 150], "start_point": {"row": 75, "column": 66}, "end_point": {"row": 75, "column": 76}}, {"id": 149, "type": "primitive_type", "text": "size_t", "parent": 148, "children": [], "start_point": {"row": 75, "column": 66}, "end_point": {"row": 75, "column": 72}}, {"id": 150, "type": "identifier", "text": "len", "parent": 148, "children": [], "start_point": {"row": 75, "column": 73}, "end_point": {"row": 75, "column": 76}}, {"id": 151, "type": "declaration", "text": "uint8_t *out = data;", "parent": 130, "children": [152, 153], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 21}}, {"id": 152, "type": "primitive_type", "text": "uint8_t", "parent": 151, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 8}}, {"id": 153, "type": "init_declarator", "text": "*out = data", "parent": 151, "children": [154, 157, 158], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 20}}, {"id": 154, "type": "pointer_declarator", "text": "*out", "parent": 153, "children": [155, 156], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 13}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 10}}, {"id": 156, "type": "identifier", "text": "out", "parent": 154, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 13}}, {"id": 157, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 15}}, {"id": 158, "type": "identifier", "text": "data", "parent": 153, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 20}}, {"id": 159, "type": "declaration", "text": "unsigned int count = 0;", "parent": 130, "children": [160, 163], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 24}}, {"id": 160, "type": "sized_type_specifier", "text": "unsigned int", "parent": 159, "children": [161, 162], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 13}}, {"id": 161, "type": "unsigned", "text": "unsigned", "parent": 160, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 9}}, {"id": 162, "type": "primitive_type", "text": "int", "parent": 160, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 13}}, {"id": 163, "type": "init_declarator", "text": "count = 0", "parent": 159, "children": [164, 165, 166], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 23}}, {"id": 164, "type": "identifier", "text": "count", "parent": 163, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 19}}, {"id": 165, "type": "=", "text": "=", "parent": 163, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 21}}, {"id": 166, "type": "number_literal", "text": "0", "parent": 163, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 23}}, {"id": 167, "type": "declaration", "text": "unsigned int sixteens;", "parent": 130, "children": [168, 171], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 23}}, {"id": 168, "type": "sized_type_specifier", "text": "unsigned int", "parent": 167, "children": [169, 170], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 13}}, {"id": 169, "type": "unsigned", "text": "unsigned", "parent": 168, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 9}}, {"id": 170, "type": "primitive_type", "text": "int", "parent": 168, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 13}}, {"id": 171, "type": "identifier", "text": "sixteens", "parent": 167, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 22}}, {"id": 172, "type": "declaration", "text": "unsigned int units;", "parent": 130, "children": [173, 176], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 20}}, {"id": 173, "type": "sized_type_specifier", "text": "unsigned int", "parent": 172, "children": [174, 175], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 13}}, {"id": 174, "type": "unsigned", "text": "unsigned", "parent": 173, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 9}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 13}}, {"id": 176, "type": "identifier", "text": "units", "parent": 172, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 19}}, {"id": 177, "type": "while_statement", "text": "while ( *encoded ) {\n\n\t\t/* Check separator, if applicable */\n\t\tif ( count && separator && ( ( *(encoded++) != separator ) ) )\n\t\t\treturn -EINVAL;\n\n\t\t/* Extract digits. Note that either digit may be NUL,\n\t\t * which would be interpreted as an invalid value by\n\t\t * digit_value(); there is therefore no need for an\n\t\t * explicit end-of-string check.\n\t\t */\n\t\tsixteens = digit_value ( *(encoded++) );\n\t\tif ( sixteens >= 16 )\n\t\t\treturn -EINVAL;\n\t\tunits = digit_value ( *(encoded++) );\n\t\tif ( units >= 16 )\n\t\t\treturn -EINVAL;\n\n\t\t/* Store result */\n\t\tif ( count < len )\n\t\t\tout[count] = ( ( sixteens << 4 ) | units );\n\t\tcount++;\n\n\t}", "parent": 130, "children": [178], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 104, "column": 2}}, {"id": 178, "type": "parenthesized_expression", "text": "( *encoded )", "parent": 177, "children": [179], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 179, "type": "pointer_expression", "text": "*encoded", "parent": 178, "children": [180, 181], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 17}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 181, "type": "identifier", "text": "encoded", "parent": 179, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 17}}, {"id": 182, "type": "if_statement", "text": "if ( count && separator && ( ( *(encoded++) != separator ) ) )\n\t\t\treturn -EINVAL;", "parent": 177, "children": [183, 201], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 85, "column": 18}}, {"id": 183, "type": "parenthesized_expression", "text": "( count && separator && ( ( *(encoded++) != separator ) ) )", "parent": 182, "children": [184], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 64}}, {"id": 184, "type": "binary_expression", "text": "count && separator && ( ( *(encoded++) != separator ) )", "parent": 183, "children": [185, 189, 190], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 62}}, {"id": 185, "type": "binary_expression", "text": "count && separator", "parent": 184, "children": [186, 187, 188], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 25}}, {"id": 186, "type": "identifier", "text": "count", "parent": 185, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 12}}, {"id": 187, "type": "&&", "text": "&&", "parent": 185, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 15}}, {"id": 188, "type": "identifier", "text": "separator", "parent": 185, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 25}}, {"id": 189, "type": "&&", "text": "&&", "parent": 184, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 28}}, {"id": 190, "type": "parenthesized_expression", "text": "( ( *(encoded++) != separator ) )", "parent": 184, "children": [191], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 62}}, {"id": 191, "type": "parenthesized_expression", "text": "( *(encoded++) != separator )", "parent": 190, "children": [192], "start_point": {"row": 84, "column": 31}, "end_point": {"row": 84, "column": 60}}, {"id": 192, "type": "binary_expression", "text": "*(encoded++) != separator", "parent": 191, "children": [193, 199, 200], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 58}}, {"id": 193, "type": "pointer_expression", "text": "*(encoded++)", "parent": 192, "children": [194, 195], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 45}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 34}}, {"id": 195, "type": "parenthesized_expression", "text": "(encoded++)", "parent": 193, "children": [196], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 45}}, {"id": 196, "type": "update_expression", "text": "encoded++", "parent": 195, "children": [197, 198], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 44}}, {"id": 197, "type": "identifier", "text": "encoded", "parent": 196, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 42}}, {"id": 198, "type": "++", "text": "++", "parent": 196, "children": [], "start_point": {"row": 84, "column": 42}, "end_point": {"row": 84, "column": 44}}, {"id": 199, "type": "!=", "text": "!=", "parent": 192, "children": [], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 48}}, {"id": 200, "type": "identifier", "text": "separator", "parent": 192, "children": [], "start_point": {"row": 84, "column": 49}, "end_point": {"row": 84, "column": 58}}, {"id": 201, "type": "return_statement", "text": "return -EINVAL;", "parent": 182, "children": [202], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 18}}, {"id": 202, "type": "unary_expression", "text": "-EINVAL", "parent": 201, "children": [203, 204], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 17}}, {"id": 203, "type": "-", "text": "-", "parent": 202, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 11}}, {"id": 204, "type": "identifier", "text": "EINVAL", "parent": 202, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 17}}, {"id": 205, "type": "assignment_expression", "text": "sixteens = digit_value ( *(encoded++) )", "parent": 177, "children": [206, 207, 208], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 41}}, {"id": 206, "type": "identifier", "text": "sixteens", "parent": 205, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 10}}, {"id": 207, "type": "=", "text": "=", "parent": 205, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 12}}, {"id": 208, "type": "call_expression", "text": "digit_value ( *(encoded++) )", "parent": 205, "children": [209, 210], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 41}}, {"id": 209, "type": "identifier", "text": "digit_value", "parent": 208, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 24}}, {"id": 210, "type": "argument_list", "text": "( *(encoded++) )", "parent": 208, "children": [211], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 41}}, {"id": 211, "type": "pointer_expression", "text": "*(encoded++)", "parent": 210, "children": [212, 213], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 39}}, {"id": 212, "type": "*", "text": "*", "parent": 211, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 28}}, {"id": 213, "type": "parenthesized_expression", "text": "(encoded++)", "parent": 211, "children": [214], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 39}}, {"id": 214, "type": "update_expression", "text": "encoded++", "parent": 213, "children": [215, 216], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 38}}, {"id": 215, "type": "identifier", "text": "encoded", "parent": 214, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 36}}, {"id": 216, "type": "++", "text": "++", "parent": 214, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 38}}, {"id": 217, "type": "if_statement", "text": "if ( sixteens >= 16 )\n\t\t\treturn -EINVAL;", "parent": 177, "children": [218, 223], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 94, "column": 18}}, {"id": 218, "type": "parenthesized_expression", "text": "( sixteens >= 16 )", "parent": 217, "children": [219], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 23}}, {"id": 219, "type": "binary_expression", "text": "sixteens >= 16", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 21}}, {"id": 220, "type": "identifier", "text": "sixteens", "parent": 219, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 15}}, {"id": 221, "type": ">=", "text": ">=", "parent": 219, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 18}}, {"id": 222, "type": "number_literal", "text": "16", "parent": 219, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 21}}, {"id": 223, "type": "return_statement", "text": "return -EINVAL;", "parent": 217, "children": [224], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 18}}, {"id": 224, "type": "unary_expression", "text": "-EINVAL", "parent": 223, "children": [225, 226], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 17}}, {"id": 225, "type": "-", "text": "-", "parent": 224, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 226, "type": "identifier", "text": "EINVAL", "parent": 224, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 17}}, {"id": 227, "type": "assignment_expression", "text": "units = digit_value ( *(encoded++) )", "parent": 177, "children": [228, 229, 230], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 38}}, {"id": 228, "type": "identifier", "text": "units", "parent": 227, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 7}}, {"id": 229, "type": "=", "text": "=", "parent": 227, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 230, "type": "call_expression", "text": "digit_value ( *(encoded++) )", "parent": 227, "children": [231, 232], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 38}}, {"id": 231, "type": "identifier", "text": "digit_value", "parent": 230, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 21}}, {"id": 232, "type": "argument_list", "text": "( *(encoded++) )", "parent": 230, "children": [233], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 38}}, {"id": 233, "type": "pointer_expression", "text": "*(encoded++)", "parent": 232, "children": [234, 235], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 36}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 25}}, {"id": 235, "type": "parenthesized_expression", "text": "(encoded++)", "parent": 233, "children": [236], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 36}}, {"id": 236, "type": "update_expression", "text": "encoded++", "parent": 235, "children": [237, 238], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 35}}, {"id": 237, "type": "identifier", "text": "encoded", "parent": 236, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 33}}, {"id": 238, "type": "++", "text": "++", "parent": 236, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 35}}, {"id": 239, "type": "if_statement", "text": "if ( units >= 16 )\n\t\t\treturn -EINVAL;", "parent": 177, "children": [240, 245], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 97, "column": 18}}, {"id": 240, "type": "parenthesized_expression", "text": "( units >= 16 )", "parent": 239, "children": [241], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 20}}, {"id": 241, "type": "binary_expression", "text": "units >= 16", "parent": 240, "children": [242, 243, 244], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 18}}, {"id": 242, "type": "identifier", "text": "units", "parent": 241, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 12}}, {"id": 243, "type": ">=", "text": ">=", "parent": 241, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 15}}, {"id": 244, "type": "number_literal", "text": "16", "parent": 241, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 18}}, {"id": 245, "type": "return_statement", "text": "return -EINVAL;", "parent": 239, "children": [246], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 18}}, {"id": 246, "type": "unary_expression", "text": "-EINVAL", "parent": 245, "children": [247, 248], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 17}}, {"id": 247, "type": "-", "text": "-", "parent": 246, "children": [], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 11}}, {"id": 248, "type": "identifier", "text": "EINVAL", "parent": 246, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 17}}, {"id": 249, "type": "if_statement", "text": "if ( count < len )\n\t\t\tout[count] = ( ( sixteens << 4 ) | units );", "parent": 177, "children": [250], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 101, "column": 46}}, {"id": 250, "type": "parenthesized_expression", "text": "( count < len )", "parent": 249, "children": [251], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 20}}, {"id": 251, "type": "binary_expression", "text": "count < len", "parent": 250, "children": [252, 253, 254], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 18}}, {"id": 252, "type": "identifier", "text": "count", "parent": 251, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 12}}, {"id": 253, "type": "<", "text": "<", "parent": 251, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 14}}, {"id": 254, "type": "identifier", "text": "len", "parent": 251, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 18}}, {"id": 255, "type": "assignment_expression", "text": "out[count] = ( ( sixteens << 4 ) | units )", "parent": 249, "children": [256, 259, 260], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 45}}, {"id": 256, "type": "subscript_expression", "text": "out[count]", "parent": 255, "children": [257, 258], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 13}}, {"id": 257, "type": "identifier", "text": "out", "parent": 256, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 6}}, {"id": 258, "type": "identifier", "text": "count", "parent": 256, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 12}}, {"id": 259, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 15}}, {"id": 260, "type": "parenthesized_expression", "text": "( ( sixteens << 4 ) | units )", "parent": 255, "children": [261], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 45}}, {"id": 261, "type": "binary_expression", "text": "( sixteens << 4 ) | units", "parent": 260, "children": [262, 267], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 43}}, {"id": 262, "type": "parenthesized_expression", "text": "( sixteens << 4 )", "parent": 261, "children": [263], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 35}}, {"id": 263, "type": "binary_expression", "text": "sixteens << 4", "parent": 262, "children": [264, 265, 266], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 33}}, {"id": 264, "type": "identifier", "text": "sixteens", "parent": 263, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 28}}, {"id": 265, "type": "<<", "text": "<<", "parent": 263, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 31}}, {"id": 266, "type": "number_literal", "text": "4", "parent": 263, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 33}}, {"id": 267, "type": "identifier", "text": "units", "parent": 261, "children": [], "start_point": {"row": 101, "column": 38}, "end_point": {"row": 101, "column": 43}}, {"id": 268, "type": "update_expression", "text": "count++", "parent": 177, "children": [269, 270], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 9}}, {"id": 269, "type": "identifier", "text": "count", "parent": 268, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 7}}, {"id": 270, "type": "++", "text": "++", "parent": 268, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 9}}, {"id": 271, "type": "return_statement", "text": "return count;", "parent": 130, "children": [272], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 14}}, {"id": 272, "type": "identifier", "text": "count", "parent": 271, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 13}}]}, "node_categories": {"declarations": {"functions": [25, 27, 130, 132], "variables": [30, 33, 38, 41, 46, 49, 57, 70, 76, 135, 138, 143, 148, 151, 159, 167, 172], "classes": [], "imports": [4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23], "modules": [], "enums": []}, "statements": {"expressions": [0, 82, 85, 95, 99, 105, 108, 109, 113, 114, 119, 125, 178, 179, 183, 184, 185, 190, 191, 192, 193, 195, 196, 202, 208, 211, 213, 214, 218, 219, 224, 230, 233, 235, 236, 240, 241, 246, 250, 251, 256, 260, 261, 262, 263, 268], "assignments": [84, 91, 102, 205, 227, 255], "loops": [90, 177], "conditionals": [1, 3, 28, 32, 37, 40, 45, 48, 54, 56, 61, 65, 73, 77, 80, 81, 83, 86, 92, 96, 98, 100, 103, 106, 110, 112, 115, 117, 120, 121, 123, 126, 127, 129, 133, 137, 142, 147, 150, 156, 158, 160, 164, 168, 171, 173, 176, 181, 182, 186, 188, 197, 200, 204, 206, 209, 215, 217, 220, 226, 228, 231, 237, 239, 242, 248, 249, 252, 254, 257, 258, 264, 267, 269, 272], "returns": [128, 201, 223, 245, 271], "exceptions": []}, "expressions": {"calls": [], "literals": [6, 9, 12, 15, 18, 21, 24, 62, 66, 75, 87, 89, 94, 118, 124, 166, 222, 244, 266], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "*raw,", "text_snippet": "size_t hex_encode ( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len ) "}, {"node_id": 27, "universal_type": "function", "name": "*raw,", "text_snippet": "hex_encode ( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len )"}, {"node_id": 130, "universal_type": "function", "name": "hex_decode", "text_snippet": "int hex_decode ( char separator, const char *encoded, void *data, size_t len ) {\n\tuint8_t *out = dat"}, {"node_id": 132, "universal_type": "function", "name": "*data,", "text_snippet": "hex_decode ( char separator, const char *encoded, void *data, size_t len )"}], "class_declarations": [], "import_statements": [{"node_id": 4, "text": "#include <stdint.h>\n"}, {"node_id": 5, "text": "#include"}, {"node_id": 7, "text": "#include <stdio.h>\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 10, "text": "#include <errno.h>\n"}, {"node_id": 11, "text": "#include"}, {"node_id": 13, "text": "#include <assert.h>\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include <ipxe/string.h>\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include <ipxe/vsprintf.h>\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include <ipxe/base16.h>\n"}, {"node_id": 23, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of the\n * License, or any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\n * 02110-1301, USA.\n *\n * You can also choose to distribute this program under the terms of\n * the Unmodified Binary Distribution Licence (as given in the file\n * COPYING.UBDL), provided that you have satisfied its requirements.\n */\n\nFILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );\n\n#include <stdint.h>\n#include <stdio.h>\n#include <errno.h>\n#include <assert.h>\n#include <ipxe/string.h>\n#include <ipxe/vsprintf.h>\n#include <ipxe/base16.h>\n\n/** @file\n *\n * Base16 encoding\n *\n */\n\n/**\n * Encode hexadecimal string (with optional byte separator character)\n *\n * @v separator\t\tByte separator character, or 0 for no separator\n * @v raw\t\tRaw data\n * @v raw_len\t\tLength of raw data\n * @v data\t\tBuffer\n * @v len\t\tLength of buffer\n * @ret len\t\tEncoded length\n */\nsize_t hex_encode ( char separator, const void *raw, size_t raw_len,\n\t\t char *data, size_t len ) {\n\tconst uint8_t *bytes = raw;\n\tconst char delimiter[2] = { separator, '\\0' };\n\tsize_t used = 0;\n\tunsigned int i;\n\n\tif ( len )\n\t\tdata[0] = 0; /* Ensure that a terminating NUL exists */\n\tfor ( i = 0 ; i < raw_len ; i++ ) {\n\t\tused += ssnprintf ( ( data + used ), ( len - used ),\n\t\t\t\t \"%s%02x\", ( used ? delimiter : \"\" ),\n\t\t\t\t bytes[i] );\n\t}\n\treturn used;\n}\n\n/**\n * Decode hexadecimal string (with optional byte separator character)\n *\n * @v separator\t\tByte separator character, or 0 for no separator\n * @v encoded\t\tEncoded string\n * @v data\t\tBuffer\n * @v len\t\tLength of buffer\n * @ret len\t\tLength of data, or negative error\n */\nint hex_decode ( char separator, const char *encoded, void *data, size_t len ) {\n\tuint8_t *out = data;\n\tunsigned int count = 0;\n\tunsigned int sixteens;\n\tunsigned int units;\n\n\twhile ( *encoded ) {\n\n\t\t/* Check separator, if applicable */\n\t\tif ( count && separator && ( ( *(encoded++) != separator ) ) )\n\t\t\treturn -EINVAL;\n\n\t\t/* Extract digits. Note that either digit may be NUL,\n\t\t * which would be interpreted as an invalid value by\n\t\t * digit_value(); there is therefore no need for an\n\t\t * explicit end-of-string check.\n\t\t */\n\t\tsixteens = digit_value ( *(encoded++) );\n\t\tif ( sixteens >= 16 )\n\t\t\treturn -EINVAL;\n\t\tunits = digit_value ( *(encoded++) );\n\t\tif ( units >= 16 )\n\t\t\treturn -EINVAL;\n\n\t\t/* Store result */\n\t\tif ( count < len )\n\t\t\tout[count] = ( ( sixteens << 4 ) | units );\n\t\tcount++;\n\n\t}\n\treturn count;\n}\n"}
81,071
c
/* * decryptor500.c * * Created on: Jun 21, 2012 * Author: MLISKOV */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gmp.h> int unhex(char h) { if ('0' <= h && h <= '9') return (h - '0'); else if ('a' <= h && h <= 'f') return (10+h-'a'); else return (10+h-'A'); } int main (int argc, char ** argv) { if (argc != 4) { printf ("Usage: %s modulus e input\n", argv[0]); return 0; } /* FILE *skfile = fopen (argv[1], "rb"); */ FILE *Nfile = fopen (argv[1], "r"); FILE *efile = fopen (argv[2], "r"); FILE *infile = fopen (argv[3], "rb"); // Read in the private key mpz_t N; mpz_t e; mpz_init(N); mpz_init(e); mpz_inp_str(N,Nfile,16); mpz_inp_str(e,efile,16); size_t siglen = 1024; unsigned char flagme[siglen]; memset(flagme, 0, siglen); // "FlagMe" as the last 6 characters with all preceding digits = 0. flagme[siglen-6] = 'F'; flagme[siglen-5] = 'l'; flagme[siglen-4] = 'a'; flagme[siglen-3] = 'g'; flagme[siglen-2] = 'M'; flagme[siglen-1] = 'e'; mpz_t tmp; mpz_init(tmp); // Convert input to mpz. mpz_t flagme_mpz; mpz_init (flagme_mpz); for (int i = 0; i < siglen; i++) { mpz_mul_ui(tmp, flagme_mpz, 256); mpz_add_ui(flagme_mpz, tmp, flagme[i]); } // Get the signature from the input file mpz_t sig; mpz_init(sig); mpz_inp_str(sig,infile,16); // Calculate sig^e mod N mpz_powm(tmp, sig, e, N); // correct signature if (!mpz_cmp(tmp, flagme_mpz)) { printf ("MCA-5C8AEC67\n"); } else printf ("Not a valid signature of \"FlagMe\". Request denied.\n"); }
20.93
74
(translation_unit) "/* \n * decryptor500.c \n * \n * Created on: Jun 21, 2012 \n * Author: MLISKOV \n */ \n \n#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n#include <gmp.h> \n \nint unhex(char h) { \n if ('0' <= h && h <= '9') return (h - '0'); \n else if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A'); \n} \n \nint main (int argc, char ** argv) { \n \n if (argc != 4) { \n printf ("Usage: %s modulus e input\n", argv[0]); \n return 0; \n } \n \n /* FILE *skfile = fopen (argv[1], "rb"); */ \n FILE *Nfile = fopen (argv[1], "r"); \n FILE *efile = fopen (argv[2], "r"); \n FILE *infile = fopen (argv[3], "rb"); \n \n // Read in the private key \n mpz_t N; \n mpz_t e; \n \n mpz_init(N); \n mpz_init(e); \n mpz_inp_str(N,Nfile,16); \n mpz_inp_str(e,efile,16); \n \n size_t siglen = 1024; \n unsigned char flagme[siglen]; \n memset(flagme, 0, siglen); \n // "FlagMe" as the last 6 characters with all preceding digits = 0. \n flagme[siglen-6] = 'F'; \n flagme[siglen-5] = 'l'; \n flagme[siglen-4] = 'a'; \n flagme[siglen-3] = 'g'; \n flagme[siglen-2] = 'M'; \n flagme[siglen-1] = 'e'; \n \n mpz_t tmp; \n mpz_init(tmp); \n // Convert input to mpz. \n mpz_t flagme_mpz; \n mpz_init (flagme_mpz); \n for (int i = 0; i < siglen; i++) { \n mpz_mul_ui(tmp, flagme_mpz, 256); \n mpz_add_ui(flagme_mpz, tmp, flagme[i]); \n } \n \n // Get the signature from the input file \n mpz_t sig; \n mpz_init(sig); \n mpz_inp_str(sig,infile,16); \n \n // Calculate sig^e mod N \n mpz_powm(tmp, sig, e, N); \n // correct signature \n if (!mpz_cmp(tmp, flagme_mpz)) { \n printf ("MCA-5C8AEC67\n"); \n } else \n printf ("Not a valid signature of \"FlagMe\". Request denied.\n"); \n \n} \n" (comment) "/* \n * decryptor500.c \n * \n * Created on: Jun 21, 2012 \n * Author: MLISKOV \n */" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h> \n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h> \n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <gmp.h> \n" (#include) "#include" (system_lib_string) "<gmp.h>" (function_definition) "int unhex(char h) { \n if ('0' <= h && h <= '9') return (h - '0'); \n else if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A'); \n}" (primitive_type) "int" (function_declarator) "unhex(char h)" (identifier) "unhex" (parameter_list) "(char h)" (() "(" (parameter_declaration) "char h" (primitive_type) "char" (identifier) "h" ()) ")" (compound_statement) "{ \n if ('0' <= h && h <= '9') return (h - '0'); \n else if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A'); \n}" ({) "{" (if_statement) "if ('0' <= h && h <= '9') return (h - '0'); \n else if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A');" (if) "if" (parenthesized_expression) "('0' <= h && h <= '9')" (() "(" (binary_expression) "'0' <= h && h <= '9'" (binary_expression) "'0' <= h" (char_literal) "'0'" (') "'" (character) "0" (') "'" (<=) "<=" (identifier) "h" (&&) "&&" (binary_expression) "h <= '9'" (identifier) "h" (<=) "<=" (char_literal) "'9'" (') "'" (character) "9" (') "'" ()) ")" (return_statement) "return (h - '0');" (return) "return" (parenthesized_expression) "(h - '0')" (() "(" (binary_expression) "h - '0'" (identifier) "h" (-) "-" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" (;) ";" (else_clause) "else if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A');" (else) "else" (if_statement) "if ('a' <= h && h <= 'f') return (10+h-'a'); \n else return (10+h-'A');" (if) "if" (parenthesized_expression) "('a' <= h && h <= 'f')" (() "(" (binary_expression) "'a' <= h && h <= 'f'" (binary_expression) "'a' <= h" (char_literal) "'a'" (') "'" (character) "a" (') "'" (<=) "<=" (identifier) "h" (&&) "&&" (binary_expression) "h <= 'f'" (identifier) "h" (<=) "<=" (char_literal) "'f'" (') "'" (character) "f" (') "'" ()) ")" (return_statement) "return (10+h-'a');" (return) "return" (parenthesized_expression) "(10+h-'a')" (() "(" (binary_expression) "10+h-'a'" (binary_expression) "10+h" (number_literal) "10" (+) "+" (identifier) "h" (-) "-" (char_literal) "'a'" (') "'" (character) "a" (') "'" ()) ")" (;) ";" (else_clause) "else return (10+h-'A');" (else) "else" (return_statement) "return (10+h-'A');" (return) "return" (parenthesized_expression) "(10+h-'A')" (() "(" (binary_expression) "10+h-'A'" (binary_expression) "10+h" (number_literal) "10" (+) "+" (identifier) "h" (-) "-" (char_literal) "'A'" (') "'" (character) "A" (') "'" ()) ")" (;) ";" (}) "}" (function_definition) "int main (int argc, char ** argv) { \n \n if (argc != 4) { \n printf ("Usage: %s modulus e input\n", argv[0]); \n return 0; \n } \n \n /* FILE *skfile = fopen (argv[1], "rb"); */ \n FILE *Nfile = fopen (argv[1], "r"); \n FILE *efile = fopen (argv[2], "r"); \n FILE *infile = fopen (argv[3], "rb"); \n \n // Read in the private key \n mpz_t N; \n mpz_t e; \n \n mpz_init(N); \n mpz_init(e); \n mpz_inp_str(N,Nfile,16); \n mpz_inp_str(e,efile,16); \n \n size_t siglen = 1024; \n unsigned char flagme[siglen]; \n memset(flagme, 0, siglen); \n // "FlagMe" as the last 6 characters with all preceding digits = 0. \n flagme[siglen-6] = 'F'; \n flagme[siglen-5] = 'l'; \n flagme[siglen-4] = 'a'; \n flagme[siglen-3] = 'g'; \n flagme[siglen-2] = 'M'; \n flagme[siglen-1] = 'e'; \n \n mpz_t tmp; \n mpz_init(tmp); \n // Convert input to mpz. \n mpz_t flagme_mpz; \n mpz_init (flagme_mpz); \n for (int i = 0; i < siglen; i++) { \n mpz_mul_ui(tmp, flagme_mpz, 256); \n mpz_add_ui(flagme_mpz, tmp, flagme[i]); \n } \n \n // Get the signature from the input file \n mpz_t sig; \n mpz_init(sig); \n mpz_inp_str(sig,infile,16); \n \n // Calculate sig^e mod N \n mpz_powm(tmp, sig, e, N); \n // correct signature \n if (!mpz_cmp(tmp, flagme_mpz)) { \n printf ("MCA-5C8AEC67\n"); \n } else \n printf ("Not a valid signature of \"FlagMe\". Request denied.\n"); \n \n}" (primitive_type) "int" (function_declarator) "main (int argc, char ** argv)" (identifier) "main" (parameter_list) "(int argc, char ** argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char ** argv" (primitive_type) "char" (pointer_declarator) "** argv" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{ \n \n if (argc != 4) { \n printf ("Usage: %s modulus e input\n", argv[0]); \n return 0; \n } \n \n /* FILE *skfile = fopen (argv[1], "rb"); */ \n FILE *Nfile = fopen (argv[1], "r"); \n FILE *efile = fopen (argv[2], "r"); \n FILE *infile = fopen (argv[3], "rb"); \n \n // Read in the private key \n mpz_t N; \n mpz_t e; \n \n mpz_init(N); \n mpz_init(e); \n mpz_inp_str(N,Nfile,16); \n mpz_inp_str(e,efile,16); \n \n size_t siglen = 1024; \n unsigned char flagme[siglen]; \n memset(flagme, 0, siglen); \n // "FlagMe" as the last 6 characters with all preceding digits = 0. \n flagme[siglen-6] = 'F'; \n flagme[siglen-5] = 'l'; \n flagme[siglen-4] = 'a'; \n flagme[siglen-3] = 'g'; \n flagme[siglen-2] = 'M'; \n flagme[siglen-1] = 'e'; \n \n mpz_t tmp; \n mpz_init(tmp); \n // Convert input to mpz. \n mpz_t flagme_mpz; \n mpz_init (flagme_mpz); \n for (int i = 0; i < siglen; i++) { \n mpz_mul_ui(tmp, flagme_mpz, 256); \n mpz_add_ui(flagme_mpz, tmp, flagme[i]); \n } \n \n // Get the signature from the input file \n mpz_t sig; \n mpz_init(sig); \n mpz_inp_str(sig,infile,16); \n \n // Calculate sig^e mod N \n mpz_powm(tmp, sig, e, N); \n // correct signature \n if (!mpz_cmp(tmp, flagme_mpz)) { \n printf ("MCA-5C8AEC67\n"); \n } else \n printf ("Not a valid signature of \"FlagMe\". Request denied.\n"); \n \n}" ({) "{" (if_statement) "if (argc != 4) { \n printf ("Usage: %s modulus e input\n", argv[0]); \n return 0; \n }" (if) "if" (parenthesized_expression) "(argc != 4)" (() "(" (binary_expression) "argc != 4" (identifier) "argc" (!=) "!=" (number_literal) "4" ()) ")" (compound_statement) "{ \n printf ("Usage: %s modulus e input\n", argv[0]); \n return 0; \n }" ({) "{" (expression_statement) "printf ("Usage: %s modulus e input\n", argv[0]);" (call_expression) "printf ("Usage: %s modulus e input\n", argv[0])" (identifier) "printf" (argument_list) "("Usage: %s modulus e input\n", argv[0])" (() "(" (string_literal) ""Usage: %s modulus e input\n"" (") """ (string_content) "Usage: %s modulus e input" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/* FILE *skfile = fopen (argv[1], "rb"); */" (declaration) "FILE *Nfile = fopen (argv[1], "r");" (type_identifier) "FILE" (init_declarator) "*Nfile = fopen (argv[1], "r")" (pointer_declarator) "*Nfile" (*) "*" (identifier) "Nfile" (=) "=" (call_expression) "fopen (argv[1], "r")" (identifier) "fopen" (argument_list) "(argv[1], "r")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (declaration) "FILE *efile = fopen (argv[2], "r");" (type_identifier) "FILE" (init_declarator) "*efile = fopen (argv[2], "r")" (pointer_declarator) "*efile" (*) "*" (identifier) "efile" (=) "=" (call_expression) "fopen (argv[2], "r")" (identifier) "fopen" (argument_list) "(argv[2], "r")" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (declaration) "FILE *infile = fopen (argv[3], "rb");" (type_identifier) "FILE" (init_declarator) "*infile = fopen (argv[3], "rb")" (pointer_declarator) "*infile" (*) "*" (identifier) "infile" (=) "=" (call_expression) "fopen (argv[3], "rb")" (identifier) "fopen" (argument_list) "(argv[3], "rb")" (() "(" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" (,) "," (string_literal) ""rb"" (") """ (string_content) "rb" (") """ ()) ")" (;) ";" (comment) "// Read in the private key " (declaration) "mpz_t N;" (type_identifier) "mpz_t" (identifier) "N" (;) ";" (declaration) "mpz_t e;" (type_identifier) "mpz_t" (identifier) "e" (;) ";" (expression_statement) "mpz_init(N);" (call_expression) "mpz_init(N)" (identifier) "mpz_init" (argument_list) "(N)" (() "(" (identifier) "N" ()) ")" (;) ";" (expression_statement) "mpz_init(e);" (call_expression) "mpz_init(e)" (identifier) "mpz_init" (argument_list) "(e)" (() "(" (identifier) "e" ()) ")" (;) ";" (expression_statement) "mpz_inp_str(N,Nfile,16);" (call_expression) "mpz_inp_str(N,Nfile,16)" (identifier) "mpz_inp_str" (argument_list) "(N,Nfile,16)" (() "(" (identifier) "N" (,) "," (identifier) "Nfile" (,) "," (number_literal) "16" ()) ")" (;) ";" (expression_statement) "mpz_inp_str(e,efile,16);" (call_expression) "mpz_inp_str(e,efile,16)" (identifier) "mpz_inp_str" (argument_list) "(e,efile,16)" (() "(" (identifier) "e" (,) "," (identifier) "efile" (,) "," (number_literal) "16" ()) ")" (;) ";" (declaration) "size_t siglen = 1024;" (primitive_type) "size_t" (init_declarator) "siglen = 1024" (identifier) "siglen" (=) "=" (number_literal) "1024" (;) ";" (declaration) "unsigned char flagme[siglen];" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (array_declarator) "flagme[siglen]" (identifier) "flagme" ([) "[" (identifier) "siglen" (]) "]" (;) ";" (expression_statement) "memset(flagme, 0, siglen);" (call_expression) "memset(flagme, 0, siglen)" (identifier) "memset" (argument_list) "(flagme, 0, siglen)" (() "(" (identifier) "flagme" (,) "," (number_literal) "0" (,) "," (identifier) "siglen" ()) ")" (;) ";" (comment) "// "FlagMe" as the last 6 characters with all preceding digits = 0. " (expression_statement) "flagme[siglen-6] = 'F';" (assignment_expression) "flagme[siglen-6] = 'F'" (subscript_expression) "flagme[siglen-6]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-6" (identifier) "siglen" (-) "-" (number_literal) "6" (]) "]" (=) "=" (char_literal) "'F'" (') "'" (character) "F" (') "'" (;) ";" (expression_statement) "flagme[siglen-5] = 'l';" (assignment_expression) "flagme[siglen-5] = 'l'" (subscript_expression) "flagme[siglen-5]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-5" (identifier) "siglen" (-) "-" (number_literal) "5" (]) "]" (=) "=" (char_literal) "'l'" (') "'" (character) "l" (') "'" (;) ";" (expression_statement) "flagme[siglen-4] = 'a';" (assignment_expression) "flagme[siglen-4] = 'a'" (subscript_expression) "flagme[siglen-4]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-4" (identifier) "siglen" (-) "-" (number_literal) "4" (]) "]" (=) "=" (char_literal) "'a'" (') "'" (character) "a" (') "'" (;) ";" (expression_statement) "flagme[siglen-3] = 'g';" (assignment_expression) "flagme[siglen-3] = 'g'" (subscript_expression) "flagme[siglen-3]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-3" (identifier) "siglen" (-) "-" (number_literal) "3" (]) "]" (=) "=" (char_literal) "'g'" (') "'" (character) "g" (') "'" (;) ";" (expression_statement) "flagme[siglen-2] = 'M';" (assignment_expression) "flagme[siglen-2] = 'M'" (subscript_expression) "flagme[siglen-2]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-2" (identifier) "siglen" (-) "-" (number_literal) "2" (]) "]" (=) "=" (char_literal) "'M'" (') "'" (character) "M" (') "'" (;) ";" (expression_statement) "flagme[siglen-1] = 'e';" (assignment_expression) "flagme[siglen-1] = 'e'" (subscript_expression) "flagme[siglen-1]" (identifier) "flagme" ([) "[" (binary_expression) "siglen-1" (identifier) "siglen" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'e'" (') "'" (character) "e" (') "'" (;) ";" (declaration) "mpz_t tmp;" (type_identifier) "mpz_t" (identifier) "tmp" (;) ";" (expression_statement) "mpz_init(tmp);" (call_expression) "mpz_init(tmp)" (identifier) "mpz_init" (argument_list) "(tmp)" (() "(" (identifier) "tmp" ()) ")" (;) ";" (comment) "// Convert input to mpz. " (declaration) "mpz_t flagme_mpz;" (type_identifier) "mpz_t" (identifier) "flagme_mpz" (;) ";" (expression_statement) "mpz_init (flagme_mpz);" (call_expression) "mpz_init (flagme_mpz)" (identifier) "mpz_init" (argument_list) "(flagme_mpz)" (() "(" (identifier) "flagme_mpz" ()) ")" (;) ";" (for_statement) "for (int i = 0; i < siglen; i++) { \n mpz_mul_ui(tmp, flagme_mpz, 256); \n mpz_add_ui(flagme_mpz, tmp, flagme[i]); \n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < siglen" (identifier) "i" (<) "<" (identifier) "siglen" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n mpz_mul_ui(tmp, flagme_mpz, 256); \n mpz_add_ui(flagme_mpz, tmp, flagme[i]); \n }" ({) "{" (expression_statement) "mpz_mul_ui(tmp, flagme_mpz, 256);" (call_expression) "mpz_mul_ui(tmp, flagme_mpz, 256)" (identifier) "mpz_mul_ui" (argument_list) "(tmp, flagme_mpz, 256)" (() "(" (identifier) "tmp" (,) "," (identifier) "flagme_mpz" (,) "," (number_literal) "256" ()) ")" (;) ";" (expression_statement) "mpz_add_ui(flagme_mpz, tmp, flagme[i]);" (call_expression) "mpz_add_ui(flagme_mpz, tmp, flagme[i])" (identifier) "mpz_add_ui" (argument_list) "(flagme_mpz, tmp, flagme[i])" (() "(" (identifier) "flagme_mpz" (,) "," (identifier) "tmp" (,) "," (subscript_expression) "flagme[i]" (identifier) "flagme" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (comment) "// Get the signature from the input file " (declaration) "mpz_t sig;" (type_identifier) "mpz_t" (identifier) "sig" (;) ";" (expression_statement) "mpz_init(sig);" (call_expression) "mpz_init(sig)" (identifier) "mpz_init" (argument_list) "(sig)" (() "(" (identifier) "sig" ()) ")" (;) ";" (expression_statement) "mpz_inp_str(sig,infile,16);" (call_expression) "mpz_inp_str(sig,infile,16)" (identifier) "mpz_inp_str" (argument_list) "(sig,infile,16)" (() "(" (identifier) "sig" (,) "," (identifier) "infile" (,) "," (number_literal) "16" ()) ")" (;) ";" (comment) "// Calculate sig^e mod N " (expression_statement) "mpz_powm(tmp, sig, e, N);" (call_expression) "mpz_powm(tmp, sig, e, N)" (identifier) "mpz_powm" (argument_list) "(tmp, sig, e, N)" (() "(" (identifier) "tmp" (,) "," (identifier) "sig" (,) "," (identifier) "e" (,) "," (identifier) "N" ()) ")" (;) ";" (comment) "// correct signature " (if_statement) "if (!mpz_cmp(tmp, flagme_mpz)) { \n printf ("MCA-5C8AEC67\n"); \n } else \n printf ("Not a valid signature of \"FlagMe\". Request denied.\n");" (if) "if" (parenthesized_expression) "(!mpz_cmp(tmp, flagme_mpz))" (() "(" (unary_expression) "!mpz_cmp(tmp, flagme_mpz)" (!) "!" (call_expression) "mpz_cmp(tmp, flagme_mpz)" (identifier) "mpz_cmp" (argument_list) "(tmp, flagme_mpz)" (() "(" (identifier) "tmp" (,) "," (identifier) "flagme_mpz" ()) ")" ()) ")" (compound_statement) "{ \n printf ("MCA-5C8AEC67\n"); \n }" ({) "{" (expression_statement) "printf ("MCA-5C8AEC67\n");" (call_expression) "printf ("MCA-5C8AEC67\n")" (identifier) "printf" (argument_list) "("MCA-5C8AEC67\n")" (() "(" (string_literal) ""MCA-5C8AEC67\n"" (") """ (string_content) "MCA-5C8AEC67" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else \n printf ("Not a valid signature of \"FlagMe\". Request denied.\n");" (else) "else" (expression_statement) "printf ("Not a valid signature of \"FlagMe\". Request denied.\n");" (call_expression) "printf ("Not a valid signature of \"FlagMe\". Request denied.\n")" (identifier) "printf" (argument_list) "("Not a valid signature of \"FlagMe\". Request denied.\n")" (() "(" (string_literal) ""Not a valid signature of \"FlagMe\". Request denied.\n"" (") """ (string_content) "Not a valid signature of " (escape_sequence) "\"" (string_content) "FlagMe" (escape_sequence) "\"" (string_content) ". Request denied." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}"
582
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 20.93, "nodes": 365, "errors": 0, "source_hash": "d233bfa7690f4640064151c4ee87843412ba4f8b6ae6ff9cdf9c4a14f9ca29c9", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <string.h>\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <gmp.h>\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<gmp.h>", "parent": 9, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 16}}, {"id": 12, "type": "function_definition", "text": "int unhex(char h) {\r\n\tif ('0' <= h && h <= '9') return (h - '0');\r\n\telse if ('a' <= h && h <= 'f') return (10+h-'a');\r\n\telse return (10+h-'A');\r\n}", "parent": null, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 3}}, {"id": 14, "type": "function_declarator", "text": "unhex(char h)", "parent": 12, "children": [15, 16], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 17}}, {"id": 15, "type": "identifier", "text": "unhex", "parent": 14, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 9}}, {"id": 16, "type": "parameter_list", "text": "(char h)", "parent": 14, "children": [17], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 17, "type": "parameter_declaration", "text": "char h", "parent": 16, "children": [18, 19], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 16}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 19, "type": "identifier", "text": "h", "parent": 17, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 20, "type": "if_statement", "text": "if ('0' <= h && h <= '9') return (h - '0');\r\n\telse if ('a' <= h && h <= 'f') return (10+h-'a');\r\n\telse return (10+h-'A');", "parent": 12, "children": [21, 38, 47], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 15, "column": 24}}, {"id": 21, "type": "parenthesized_expression", "text": "('0' <= h && h <= '9')", "parent": 20, "children": [22], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 26}}, {"id": 22, "type": "binary_expression", "text": "'0' <= h && h <= '9'", "parent": 21, "children": [23, 30, 31], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 25}}, {"id": 23, "type": "binary_expression", "text": "'0' <= h", "parent": 22, "children": [24, 28, 29], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 13}}, {"id": 24, "type": "char_literal", "text": "'0'", "parent": 23, "children": [25, 26, 27], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 8}}, {"id": 25, "type": "'", "text": "'", "parent": 24, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 6}}, {"id": 26, "type": "character", "text": "0", "parent": 24, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 27, "type": "'", "text": "'", "parent": 24, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 28, "type": "<=", "text": "<=", "parent": 23, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 11}}, {"id": 29, "type": "identifier", "text": "h", "parent": 23, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 30, "type": "&&", "text": "&&", "parent": 22, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 31, "type": "binary_expression", "text": "h <= '9'", "parent": 22, "children": [32, 33, 34], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 25}}, {"id": 32, "type": "identifier", "text": "h", "parent": 31, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 33, "type": "<=", "text": "<=", "parent": 31, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 34, "type": "char_literal", "text": "'9'", "parent": 31, "children": [35, 36, 37], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 25}}, {"id": 35, "type": "'", "text": "'", "parent": 34, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 36, "type": "character", "text": "9", "parent": 34, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 24}}, {"id": 37, "type": "'", "text": "'", "parent": 34, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 25}}, {"id": 38, "type": "return_statement", "text": "return (h - '0');", "parent": 20, "children": [39], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 44}}, {"id": 39, "type": "parenthesized_expression", "text": "(h - '0')", "parent": 38, "children": [40], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 43}}, {"id": 40, "type": "binary_expression", "text": "h - '0'", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 42}}, {"id": 41, "type": "identifier", "text": "h", "parent": 40, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 36}}, {"id": 42, "type": "-", "text": "-", "parent": 40, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 38}}, {"id": 43, "type": "char_literal", "text": "'0'", "parent": 40, "children": [44, 45, 46], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 42}}, {"id": 44, "type": "'", "text": "'", "parent": 43, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 40}}, {"id": 45, "type": "character", "text": "0", "parent": 43, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 41}}, {"id": 46, "type": "'", "text": "'", "parent": 43, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 42}}, {"id": 47, "type": "else_clause", "text": "else if ('a' <= h && h <= 'f') return (10+h-'a');\r\n\telse return (10+h-'A');", "parent": 20, "children": [48], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 15, "column": 24}}, {"id": 48, "type": "if_statement", "text": "if ('a' <= h && h <= 'f') return (10+h-'a');\r\n\telse return (10+h-'A');", "parent": 47, "children": [49, 66, 78], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 15, "column": 24}}, {"id": 49, "type": "parenthesized_expression", "text": "('a' <= h && h <= 'f')", "parent": 48, "children": [50], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 31}}, {"id": 50, "type": "binary_expression", "text": "'a' <= h && h <= 'f'", "parent": 49, "children": [51, 58, 59], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 30}}, {"id": 51, "type": "binary_expression", "text": "'a' <= h", "parent": 50, "children": [52, 56, 57], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 18}}, {"id": 52, "type": "char_literal", "text": "'a'", "parent": 51, "children": [53, 54, 55], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 13}}, {"id": 53, "type": "'", "text": "'", "parent": 52, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 11}}, {"id": 54, "type": "character", "text": "a", "parent": 52, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 55, "type": "'", "text": "'", "parent": 52, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 56, "type": "<=", "text": "<=", "parent": 51, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 16}}, {"id": 57, "type": "identifier", "text": "h", "parent": 51, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 58, "type": "&&", "text": "&&", "parent": 50, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 21}}, {"id": 59, "type": "binary_expression", "text": "h <= 'f'", "parent": 50, "children": [60, 61, 62], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 30}}, {"id": 60, "type": "identifier", "text": "h", "parent": 59, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 61, "type": "<=", "text": "<=", "parent": 59, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 26}}, {"id": 62, "type": "char_literal", "text": "'f'", "parent": 59, "children": [63, 64, 65], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 30}}, {"id": 63, "type": "'", "text": "'", "parent": 62, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 28}}, {"id": 64, "type": "character", "text": "f", "parent": 62, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 29}}, {"id": 65, "type": "'", "text": "'", "parent": 62, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 30}}, {"id": 66, "type": "return_statement", "text": "return (10+h-'a');", "parent": 48, "children": [67], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 50}}, {"id": 67, "type": "parenthesized_expression", "text": "(10+h-'a')", "parent": 66, "children": [68], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 49}}, {"id": 68, "type": "binary_expression", "text": "10+h-'a'", "parent": 67, "children": [69, 73, 74], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 48}}, {"id": 69, "type": "binary_expression", "text": "10+h", "parent": 68, "children": [70, 71, 72], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 44}}, {"id": 70, "type": "number_literal", "text": "10", "parent": 69, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 42}}, {"id": 71, "type": "+", "text": "+", "parent": 69, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 43}}, {"id": 72, "type": "identifier", "text": "h", "parent": 69, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 44}}, {"id": 73, "type": "-", "text": "-", "parent": 68, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 45}}, {"id": 74, "type": "char_literal", "text": "'a'", "parent": 68, "children": [75, 76, 77], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 48}}, {"id": 75, "type": "'", "text": "'", "parent": 74, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 46}}, {"id": 76, "type": "character", "text": "a", "parent": 74, "children": [], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 47}}, {"id": 77, "type": "'", "text": "'", "parent": 74, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 48}}, {"id": 78, "type": "else_clause", "text": "else return (10+h-'A');", "parent": 48, "children": [79], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 24}}, {"id": 79, "type": "return_statement", "text": "return (10+h-'A');", "parent": 78, "children": [80], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 24}}, {"id": 80, "type": "parenthesized_expression", "text": "(10+h-'A')", "parent": 79, "children": [81], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 23}}, {"id": 81, "type": "binary_expression", "text": "10+h-'A'", "parent": 80, "children": [82, 86, 87], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 22}}, {"id": 82, "type": "binary_expression", "text": "10+h", "parent": 81, "children": [83, 84, 85], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 18}}, {"id": 83, "type": "number_literal", "text": "10", "parent": 82, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 16}}, {"id": 84, "type": "+", "text": "+", "parent": 82, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 17}}, {"id": 85, "type": "identifier", "text": "h", "parent": 82, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 86, "type": "-", "text": "-", "parent": 81, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 87, "type": "char_literal", "text": "'A'", "parent": 81, "children": [88, 89, 90], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 22}}, {"id": 88, "type": "'", "text": "'", "parent": 87, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 89, "type": "character", "text": "A", "parent": 87, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 90, "type": "'", "text": "'", "parent": 87, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 91, "type": "function_definition", "text": "int main (int argc, char ** argv) {\r\n\r\n\tif (argc != 4) {\r\n\t\tprintf (\"Usage: %s modulus e input\\n\", argv[0]);\r\n\t\treturn 0;\r\n\t}\r\n\r\n\t/* FILE *skfile = fopen (argv[1], \"rb\"); */\r\n\tFILE *Nfile = fopen (argv[1], \"r\");\r\n\tFILE *efile = fopen (argv[2], \"r\");\r\n\tFILE *infile = fopen (argv[3], \"rb\");\r\n\r\n\t// Read in the private key\r\n\tmpz_t N;\r\n\tmpz_t e;\r\n\r\n\tmpz_init(N);\r\n\tmpz_init(e);\r\n\tmpz_inp_str(N,Nfile,16);\r\n\tmpz_inp_str(e,efile,16);\r\n\r\n\tsize_t siglen = 1024;\r\n\tunsigned char flagme[siglen];\r\n\tmemset(flagme, 0, siglen);\r\n\t// \"FlagMe\" as the last 6 characters with all preceding digits = 0.\r\n\tflagme[siglen-6] = 'F';\r\n\tflagme[siglen-5] = 'l';\r\n\tflagme[siglen-4] = 'a';\r\n\tflagme[siglen-3] = 'g';\r\n\tflagme[siglen-2] = 'M';\r\n\tflagme[siglen-1] = 'e';\r\n\r\n\tmpz_t tmp;\r\n\tmpz_init(tmp);\r\n\t// Convert input to mpz.\r\n\tmpz_t flagme_mpz;\r\n\tmpz_init (flagme_mpz);\r\n\tfor (int i = 0; i < siglen; i++) {\r\n\t\tmpz_mul_ui(tmp, flagme_mpz, 256);\r\n\t\tmpz_add_ui(flagme_mpz, tmp, flagme[i]);\r\n\t}\r\n\r\n\t// Get the signature from the input file\r\n\tmpz_t sig;\r\n\tmpz_init(sig);\r\n\tmpz_inp_str(sig,infile,16);\r\n\r\n\t// Calculate sig^e mod N\r\n\tmpz_powm(tmp, sig, e, N);\r\n\t// correct signature\r\n\tif (!mpz_cmp(tmp, flagme_mpz)) {\r\n\t\tprintf (\"MCA-5C8AEC67\\n\");\r\n\t} else\r\n\t\tprintf (\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\");\r\n\r\n}", "parent": null, "children": [92, 93], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 93, "type": "function_declarator", "text": "main (int argc, char ** argv)", "parent": 91, "children": [94, 95], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 33}}, {"id": 94, "type": "identifier", "text": "main", "parent": 93, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 95, "type": "parameter_list", "text": "(int argc, char ** argv)", "parent": 93, "children": [96, 99], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 33}}, {"id": 96, "type": "parameter_declaration", "text": "int argc", "parent": 95, "children": [97, 98], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 18}}, {"id": 97, "type": "primitive_type", "text": "int", "parent": 96, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 13}}, {"id": 98, "type": "identifier", "text": "argc", "parent": 96, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 18}}, {"id": 99, "type": "parameter_declaration", "text": "char ** argv", "parent": 95, "children": [100, 101], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 32}}, {"id": 100, "type": "primitive_type", "text": "char", "parent": 99, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 24}}, {"id": 101, "type": "pointer_declarator", "text": "** argv", "parent": 99, "children": [102, 103], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 32}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 26}}, {"id": 103, "type": "pointer_declarator", "text": "* argv", "parent": 101, "children": [104, 105], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 32}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 27}}, {"id": 105, "type": "identifier", "text": "argv", "parent": 103, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 32}}, {"id": 106, "type": "if_statement", "text": "if (argc != 4) {\r\n\t\tprintf (\"Usage: %s modulus e input\\n\", argv[0]);\r\n\t\treturn 0;\r\n\t}", "parent": 91, "children": [107], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 23, "column": 2}}, {"id": 107, "type": "parenthesized_expression", "text": "(argc != 4)", "parent": 106, "children": [108], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 15}}, {"id": 108, "type": "binary_expression", "text": "argc != 4", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 14}}, {"id": 109, "type": "identifier", "text": "argc", "parent": 108, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 9}}, {"id": 110, "type": "!=", "text": "!=", "parent": 108, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 111, "type": "number_literal", "text": "4", "parent": 108, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 112, "type": "call_expression", "text": "printf (\"Usage: %s modulus e input\\n\", argv[0])", "parent": 106, "children": [113, 114], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 49}}, {"id": 113, "type": "identifier", "text": "printf", "parent": 112, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 114, "type": "argument_list", "text": "(\"Usage: %s modulus e input\\n\", argv[0])", "parent": 112, "children": [115, 117], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 49}}, {"id": 115, "type": "string_literal", "text": "\"Usage: %s modulus e input\\n\"", "parent": 114, "children": [116], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 39}}, {"id": 116, "type": "escape_sequence", "text": "\\n", "parent": 115, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 38}}, {"id": 117, "type": "subscript_expression", "text": "argv[0]", "parent": 114, "children": [118, 119], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 48}}, {"id": 118, "type": "identifier", "text": "argv", "parent": 117, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 45}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 117, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 47}}, {"id": 120, "type": "return_statement", "text": "return 0;", "parent": 106, "children": [121], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 11}}, {"id": 121, "type": "number_literal", "text": "0", "parent": 120, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 122, "type": "declaration", "text": "FILE *Nfile = fopen (argv[1], \"r\");", "parent": 91, "children": [123, 124], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 36}}, {"id": 123, "type": "type_identifier", "text": "FILE", "parent": 122, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 5}}, {"id": 124, "type": "init_declarator", "text": "*Nfile = fopen (argv[1], \"r\")", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 35}}, {"id": 125, "type": "pointer_declarator", "text": "*Nfile", "parent": 124, "children": [126, 127], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 12}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 127, "type": "identifier", "text": "Nfile", "parent": 125, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 12}}, {"id": 128, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 129, "type": "call_expression", "text": "fopen (argv[1], \"r\")", "parent": 124, "children": [130, 131], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 35}}, {"id": 130, "type": "identifier", "text": "fopen", "parent": 129, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 20}}, {"id": 131, "type": "argument_list", "text": "(argv[1], \"r\")", "parent": 129, "children": [132, 135], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 35}}, {"id": 132, "type": "subscript_expression", "text": "argv[1]", "parent": 131, "children": [133, 134], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 29}}, {"id": 133, "type": "identifier", "text": "argv", "parent": 132, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 26}}, {"id": 134, "type": "number_literal", "text": "1", "parent": 132, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 28}}, {"id": 135, "type": "string_literal", "text": "\"r\"", "parent": 131, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 34}}, {"id": 136, "type": "declaration", "text": "FILE *efile = fopen (argv[2], \"r\");", "parent": 91, "children": [137, 138], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 36}}, {"id": 137, "type": "type_identifier", "text": "FILE", "parent": 136, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 138, "type": "init_declarator", "text": "*efile = fopen (argv[2], \"r\")", "parent": 136, "children": [139, 142, 143], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 35}}, {"id": 139, "type": "pointer_declarator", "text": "*efile", "parent": 138, "children": [140, 141], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 12}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 7}}, {"id": 141, "type": "identifier", "text": "efile", "parent": 139, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 12}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 143, "type": "call_expression", "text": "fopen (argv[2], \"r\")", "parent": 138, "children": [144, 145], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 35}}, {"id": 144, "type": "identifier", "text": "fopen", "parent": 143, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 20}}, {"id": 145, "type": "argument_list", "text": "(argv[2], \"r\")", "parent": 143, "children": [146, 149], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 35}}, {"id": 146, "type": "subscript_expression", "text": "argv[2]", "parent": 145, "children": [147, 148], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 29}}, {"id": 147, "type": "identifier", "text": "argv", "parent": 146, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 26}}, {"id": 148, "type": "number_literal", "text": "2", "parent": 146, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 28}}, {"id": 149, "type": "string_literal", "text": "\"r\"", "parent": 145, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 34}}, {"id": 150, "type": "declaration", "text": "FILE *infile = fopen (argv[3], \"rb\");", "parent": 91, "children": [151, 152], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 38}}, {"id": 151, "type": "type_identifier", "text": "FILE", "parent": 150, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 5}}, {"id": 152, "type": "init_declarator", "text": "*infile = fopen (argv[3], \"rb\")", "parent": 150, "children": [153, 156, 157], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 37}}, {"id": 153, "type": "pointer_declarator", "text": "*infile", "parent": 152, "children": [154, 155], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 155, "type": "identifier", "text": "infile", "parent": 153, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 156, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 157, "type": "call_expression", "text": "fopen (argv[3], \"rb\")", "parent": 152, "children": [158, 159], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 37}}, {"id": 158, "type": "identifier", "text": "fopen", "parent": 157, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 21}}, {"id": 159, "type": "argument_list", "text": "(argv[3], \"rb\")", "parent": 157, "children": [160, 163], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 37}}, {"id": 160, "type": "subscript_expression", "text": "argv[3]", "parent": 159, "children": [161, 162], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 30}}, {"id": 161, "type": "identifier", "text": "argv", "parent": 160, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 27}}, {"id": 162, "type": "number_literal", "text": "3", "parent": 160, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 29}}, {"id": 163, "type": "string_literal", "text": "\"rb\"", "parent": 159, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 36}}, {"id": 164, "type": "declaration", "text": "mpz_t N;", "parent": 91, "children": [165, 166], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 165, "type": "type_identifier", "text": "mpz_t", "parent": 164, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 6}}, {"id": 166, "type": "identifier", "text": "N", "parent": 164, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 8}}, {"id": 167, "type": "declaration", "text": "mpz_t e;", "parent": 91, "children": [168, 169], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 9}}, {"id": 168, "type": "type_identifier", "text": "mpz_t", "parent": 167, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 6}}, {"id": 169, "type": "identifier", "text": "e", "parent": 167, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 8}}, {"id": 170, "type": "call_expression", "text": "mpz_init(N)", "parent": 91, "children": [171, 172], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 12}}, {"id": 171, "type": "identifier", "text": "mpz_init", "parent": 170, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 9}}, {"id": 172, "type": "argument_list", "text": "(N)", "parent": 170, "children": [173], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 12}}, {"id": 173, "type": "identifier", "text": "N", "parent": 172, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 11}}, {"id": 174, "type": "call_expression", "text": "mpz_init(e)", "parent": 91, "children": [175, 176], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 12}}, {"id": 175, "type": "identifier", "text": "mpz_init", "parent": 174, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 176, "type": "argument_list", "text": "(e)", "parent": 174, "children": [177], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 12}}, {"id": 177, "type": "identifier", "text": "e", "parent": 176, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 11}}, {"id": 178, "type": "call_expression", "text": "mpz_inp_str(N,Nfile,16)", "parent": 91, "children": [179, 180], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 24}}, {"id": 179, "type": "identifier", "text": "mpz_inp_str", "parent": 178, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 12}}, {"id": 180, "type": "argument_list", "text": "(N,Nfile,16)", "parent": 178, "children": [181, 182, 183], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 24}}, {"id": 181, "type": "identifier", "text": "N", "parent": 180, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 182, "type": "identifier", "text": "Nfile", "parent": 180, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 20}}, {"id": 183, "type": "number_literal", "text": "16", "parent": 180, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 23}}, {"id": 184, "type": "call_expression", "text": "mpz_inp_str(e,efile,16)", "parent": 91, "children": [185, 186], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 24}}, {"id": 185, "type": "identifier", "text": "mpz_inp_str", "parent": 184, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 12}}, {"id": 186, "type": "argument_list", "text": "(e,efile,16)", "parent": 184, "children": [187, 188, 189], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 24}}, {"id": 187, "type": "identifier", "text": "e", "parent": 186, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 188, "type": "identifier", "text": "efile", "parent": 186, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 20}}, {"id": 189, "type": "number_literal", "text": "16", "parent": 186, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 23}}, {"id": 190, "type": "declaration", "text": "size_t siglen = 1024;", "parent": 91, "children": [191, 192], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 22}}, {"id": 191, "type": "primitive_type", "text": "size_t", "parent": 190, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 192, "type": "init_declarator", "text": "siglen = 1024", "parent": 190, "children": [193, 194, 195], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 21}}, {"id": 193, "type": "identifier", "text": "siglen", "parent": 192, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 195, "type": "number_literal", "text": "1024", "parent": 192, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 21}}, {"id": 196, "type": "declaration", "text": "unsigned char flagme[siglen];", "parent": 91, "children": [197, 200], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 30}}, {"id": 197, "type": "sized_type_specifier", "text": "unsigned char", "parent": 196, "children": [198, 199], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 14}}, {"id": 198, "type": "unsigned", "text": "unsigned", "parent": 197, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 9}}, {"id": 199, "type": "primitive_type", "text": "char", "parent": 197, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 14}}, {"id": 200, "type": "array_declarator", "text": "flagme[siglen]", "parent": 196, "children": [201, 202], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 29}}, {"id": 201, "type": "identifier", "text": "flagme", "parent": 200, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 21}}, {"id": 202, "type": "identifier", "text": "siglen", "parent": 200, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 28}}, {"id": 203, "type": "call_expression", "text": "memset(flagme, 0, siglen)", "parent": 91, "children": [204, 205], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 26}}, {"id": 204, "type": "identifier", "text": "memset", "parent": 203, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 205, "type": "argument_list", "text": "(flagme, 0, siglen)", "parent": 203, "children": [206, 207, 208], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 26}}, {"id": 206, "type": "identifier", "text": "flagme", "parent": 205, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 207, "type": "number_literal", "text": "0", "parent": 205, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 17}}, {"id": 208, "type": "identifier", "text": "siglen", "parent": 205, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 25}}, {"id": 209, "type": "assignment_expression", "text": "flagme[siglen-6] = 'F'", "parent": 91, "children": [210, 216, 217], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 23}}, {"id": 210, "type": "subscript_expression", "text": "flagme[siglen-6]", "parent": 209, "children": [211, 212], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 17}}, {"id": 211, "type": "identifier", "text": "flagme", "parent": 210, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 7}}, {"id": 212, "type": "binary_expression", "text": "siglen-6", "parent": 210, "children": [213, 214, 215], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 213, "type": "identifier", "text": "siglen", "parent": 212, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 14}}, {"id": 214, "type": "-", "text": "-", "parent": 212, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 215, "type": "number_literal", "text": "6", "parent": 212, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 216, "type": "=", "text": "=", "parent": 209, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 217, "type": "char_literal", "text": "'F'", "parent": 209, "children": [218, 219, 220], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 23}}, {"id": 218, "type": "'", "text": "'", "parent": 217, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 219, "type": "character", "text": "F", "parent": 217, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 22}}, {"id": 220, "type": "'", "text": "'", "parent": 217, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 23}}, {"id": 221, "type": "assignment_expression", "text": "flagme[siglen-5] = 'l'", "parent": 91, "children": [222, 228, 229], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 23}}, {"id": 222, "type": "subscript_expression", "text": "flagme[siglen-5]", "parent": 221, "children": [223, 224], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 17}}, {"id": 223, "type": "identifier", "text": "flagme", "parent": 222, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 224, "type": "binary_expression", "text": "siglen-5", "parent": 222, "children": [225, 226, 227], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 16}}, {"id": 225, "type": "identifier", "text": "siglen", "parent": 224, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 226, "type": "-", "text": "-", "parent": 224, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 227, "type": "number_literal", "text": "5", "parent": 224, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 228, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 229, "type": "char_literal", "text": "'l'", "parent": 221, "children": [230, 231, 232], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 23}}, {"id": 230, "type": "'", "text": "'", "parent": 229, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 21}}, {"id": 231, "type": "character", "text": "l", "parent": 229, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 232, "type": "'", "text": "'", "parent": 229, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 233, "type": "assignment_expression", "text": "flagme[siglen-4] = 'a'", "parent": 91, "children": [234, 240, 241], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 23}}, {"id": 234, "type": "subscript_expression", "text": "flagme[siglen-4]", "parent": 233, "children": [235, 236], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 17}}, {"id": 235, "type": "identifier", "text": "flagme", "parent": 234, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 7}}, {"id": 236, "type": "binary_expression", "text": "siglen-4", "parent": 234, "children": [237, 238, 239], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 16}}, {"id": 237, "type": "identifier", "text": "siglen", "parent": 236, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 238, "type": "-", "text": "-", "parent": 236, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 239, "type": "number_literal", "text": "4", "parent": 236, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 16}}, {"id": 240, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 241, "type": "char_literal", "text": "'a'", "parent": 233, "children": [242, 243, 244], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 23}}, {"id": 242, "type": "'", "text": "'", "parent": 241, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 243, "type": "character", "text": "a", "parent": 241, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 22}}, {"id": 244, "type": "'", "text": "'", "parent": 241, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 245, "type": "assignment_expression", "text": "flagme[siglen-3] = 'g'", "parent": 91, "children": [246, 252, 253], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 23}}, {"id": 246, "type": "subscript_expression", "text": "flagme[siglen-3]", "parent": 245, "children": [247, 248], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 17}}, {"id": 247, "type": "identifier", "text": "flagme", "parent": 246, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 248, "type": "binary_expression", "text": "siglen-3", "parent": 246, "children": [249, 250, 251], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 249, "type": "identifier", "text": "siglen", "parent": 248, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 14}}, {"id": 250, "type": "-", "text": "-", "parent": 248, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 251, "type": "number_literal", "text": "3", "parent": 248, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 16}}, {"id": 252, "type": "=", "text": "=", "parent": 245, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 19}}, {"id": 253, "type": "char_literal", "text": "'g'", "parent": 245, "children": [254, 255, 256], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 23}}, {"id": 254, "type": "'", "text": "'", "parent": 253, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 21}}, {"id": 255, "type": "character", "text": "g", "parent": 253, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 22}}, {"id": 256, "type": "'", "text": "'", "parent": 253, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 23}}, {"id": 257, "type": "assignment_expression", "text": "flagme[siglen-2] = 'M'", "parent": 91, "children": [258, 264, 265], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 23}}, {"id": 258, "type": "subscript_expression", "text": "flagme[siglen-2]", "parent": 257, "children": [259, 260], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 17}}, {"id": 259, "type": "identifier", "text": "flagme", "parent": 258, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 7}}, {"id": 260, "type": "binary_expression", "text": "siglen-2", "parent": 258, "children": [261, 262, 263], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 16}}, {"id": 261, "type": "identifier", "text": "siglen", "parent": 260, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 262, "type": "-", "text": "-", "parent": 260, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 263, "type": "number_literal", "text": "2", "parent": 260, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 264, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 265, "type": "char_literal", "text": "'M'", "parent": 257, "children": [266, 267, 268], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 23}}, {"id": 266, "type": "'", "text": "'", "parent": 265, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 267, "type": "character", "text": "M", "parent": 265, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 268, "type": "'", "text": "'", "parent": 265, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 269, "type": "assignment_expression", "text": "flagme[siglen-1] = 'e'", "parent": 91, "children": [270, 276, 277], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 23}}, {"id": 270, "type": "subscript_expression", "text": "flagme[siglen-1]", "parent": 269, "children": [271, 272], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 17}}, {"id": 271, "type": "identifier", "text": "flagme", "parent": 270, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 7}}, {"id": 272, "type": "binary_expression", "text": "siglen-1", "parent": 270, "children": [273, 274, 275], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 16}}, {"id": 273, "type": "identifier", "text": "siglen", "parent": 272, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 14}}, {"id": 274, "type": "-", "text": "-", "parent": 272, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 15}}, {"id": 275, "type": "number_literal", "text": "1", "parent": 272, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 276, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 277, "type": "char_literal", "text": "'e'", "parent": 269, "children": [278, 279, 280], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 23}}, {"id": 278, "type": "'", "text": "'", "parent": 277, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 21}}, {"id": 279, "type": "character", "text": "e", "parent": 277, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 22}}, {"id": 280, "type": "'", "text": "'", "parent": 277, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 23}}, {"id": 281, "type": "declaration", "text": "mpz_t tmp;", "parent": 91, "children": [282, 283], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 11}}, {"id": 282, "type": "type_identifier", "text": "mpz_t", "parent": 281, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 6}}, {"id": 283, "type": "identifier", "text": "tmp", "parent": 281, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 10}}, {"id": 284, "type": "call_expression", "text": "mpz_init(tmp)", "parent": 91, "children": [285, 286], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 14}}, {"id": 285, "type": "identifier", "text": "mpz_init", "parent": 284, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 9}}, {"id": 286, "type": "argument_list", "text": "(tmp)", "parent": 284, "children": [287], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 14}}, {"id": 287, "type": "identifier", "text": "tmp", "parent": 286, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 288, "type": "declaration", "text": "mpz_t flagme_mpz;", "parent": 91, "children": [289, 290], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 18}}, {"id": 289, "type": "type_identifier", "text": "mpz_t", "parent": 288, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 6}}, {"id": 290, "type": "identifier", "text": "flagme_mpz", "parent": 288, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 17}}, {"id": 291, "type": "call_expression", "text": "mpz_init (flagme_mpz)", "parent": 91, "children": [292, 293], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 22}}, {"id": 292, "type": "identifier", "text": "mpz_init", "parent": 291, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 9}}, {"id": 293, "type": "argument_list", "text": "(flagme_mpz)", "parent": 291, "children": [294], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 22}}, {"id": 294, "type": "identifier", "text": "flagme_mpz", "parent": 293, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 21}}, {"id": 295, "type": "for_statement", "text": "for (int i = 0; i < siglen; i++) {\r\n\t\tmpz_mul_ui(tmp, flagme_mpz, 256);\r\n\t\tmpz_add_ui(flagme_mpz, tmp, flagme[i]);\r\n\t}", "parent": 91, "children": [296, 302, 306], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 58, "column": 2}}, {"id": 296, "type": "declaration", "text": "int i = 0;", "parent": 295, "children": [297, 298], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 16}}, {"id": 297, "type": "primitive_type", "text": "int", "parent": 296, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 9}}, {"id": 298, "type": "init_declarator", "text": "i = 0", "parent": 296, "children": [299, 300, 301], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 15}}, {"id": 299, "type": "identifier", "text": "i", "parent": 298, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 11}}, {"id": 300, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 301, "type": "number_literal", "text": "0", "parent": 298, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 302, "type": "binary_expression", "text": "i < siglen", "parent": 295, "children": [303, 304, 305], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 27}}, {"id": 303, "type": "identifier", "text": "i", "parent": 302, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 18}}, {"id": 304, "type": "<", "text": "<", "parent": 302, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 20}}, {"id": 305, "type": "identifier", "text": "siglen", "parent": 302, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 27}}, {"id": 306, "type": "update_expression", "text": "i++", "parent": 295, "children": [307, 308], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 32}}, {"id": 307, "type": "identifier", "text": "i", "parent": 306, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 30}}, {"id": 308, "type": "++", "text": "++", "parent": 306, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 32}}, {"id": 309, "type": "call_expression", "text": "mpz_mul_ui(tmp, flagme_mpz, 256)", "parent": 295, "children": [310, 311], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 34}}, {"id": 310, "type": "identifier", "text": "mpz_mul_ui", "parent": 309, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 12}}, {"id": 311, "type": "argument_list", "text": "(tmp, flagme_mpz, 256)", "parent": 309, "children": [312, 313, 314], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 34}}, {"id": 312, "type": "identifier", "text": "tmp", "parent": 311, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 16}}, {"id": 313, "type": "identifier", "text": "flagme_mpz", "parent": 311, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 28}}, {"id": 314, "type": "number_literal", "text": "256", "parent": 311, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 33}}, {"id": 315, "type": "call_expression", "text": "mpz_add_ui(flagme_mpz, tmp, flagme[i])", "parent": 295, "children": [316, 317], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 40}}, {"id": 316, "type": "identifier", "text": "mpz_add_ui", "parent": 315, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 12}}, {"id": 317, "type": "argument_list", "text": "(flagme_mpz, tmp, flagme[i])", "parent": 315, "children": [318, 319, 320], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 40}}, {"id": 318, "type": "identifier", "text": "flagme_mpz", "parent": 317, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 23}}, {"id": 319, "type": "identifier", "text": "tmp", "parent": 317, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 28}}, {"id": 320, "type": "subscript_expression", "text": "flagme[i]", "parent": 317, "children": [321, 322], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 39}}, {"id": 321, "type": "identifier", "text": "flagme", "parent": 320, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 36}}, {"id": 322, "type": "identifier", "text": "i", "parent": 320, "children": [], "start_point": {"row": 57, "column": 37}, "end_point": {"row": 57, "column": 38}}, {"id": 323, "type": "declaration", "text": "mpz_t sig;", "parent": 91, "children": [324, 325], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 11}}, {"id": 324, "type": "type_identifier", "text": "mpz_t", "parent": 323, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 6}}, {"id": 325, "type": "identifier", "text": "sig", "parent": 323, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 10}}, {"id": 326, "type": "call_expression", "text": "mpz_init(sig)", "parent": 91, "children": [327, 328], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 14}}, {"id": 327, "type": "identifier", "text": "mpz_init", "parent": 326, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 9}}, {"id": 328, "type": "argument_list", "text": "(sig)", "parent": 326, "children": [329], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 14}}, {"id": 329, "type": "identifier", "text": "sig", "parent": 328, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 13}}, {"id": 330, "type": "call_expression", "text": "mpz_inp_str(sig,infile,16)", "parent": 91, "children": [331, 332], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 27}}, {"id": 331, "type": "identifier", "text": "mpz_inp_str", "parent": 330, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 12}}, {"id": 332, "type": "argument_list", "text": "(sig,infile,16)", "parent": 330, "children": [333, 334, 335], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 27}}, {"id": 333, "type": "identifier", "text": "sig", "parent": 332, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 16}}, {"id": 334, "type": "identifier", "text": "infile", "parent": 332, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 23}}, {"id": 335, "type": "number_literal", "text": "16", "parent": 332, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 26}}, {"id": 336, "type": "call_expression", "text": "mpz_powm(tmp, sig, e, N)", "parent": 91, "children": [337, 338], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 25}}, {"id": 337, "type": "identifier", "text": "mpz_powm", "parent": 336, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 338, "type": "argument_list", "text": "(tmp, sig, e, N)", "parent": 336, "children": [339, 340, 341, 342], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 25}}, {"id": 339, "type": "identifier", "text": "tmp", "parent": 338, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 13}}, {"id": 340, "type": "identifier", "text": "sig", "parent": 338, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 18}}, {"id": 341, "type": "identifier", "text": "e", "parent": 338, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 21}}, {"id": 342, "type": "identifier", "text": "N", "parent": 338, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 24}}, {"id": 343, "type": "if_statement", "text": "if (!mpz_cmp(tmp, flagme_mpz)) {\r\n\t\tprintf (\"MCA-5C8AEC67\\n\");\r\n\t} else\r\n\t\tprintf (\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\");", "parent": 91, "children": [344, 357], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 71, "column": 69}}, {"id": 344, "type": "parenthesized_expression", "text": "(!mpz_cmp(tmp, flagme_mpz))", "parent": 343, "children": [345], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 31}}, {"id": 345, "type": "unary_expression", "text": "!mpz_cmp(tmp, flagme_mpz)", "parent": 344, "children": [346, 347], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 30}}, {"id": 346, "type": "!", "text": "!", "parent": 345, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 6}}, {"id": 347, "type": "call_expression", "text": "mpz_cmp(tmp, flagme_mpz)", "parent": 345, "children": [348, 349], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 30}}, {"id": 348, "type": "identifier", "text": "mpz_cmp", "parent": 347, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 13}}, {"id": 349, "type": "argument_list", "text": "(tmp, flagme_mpz)", "parent": 347, "children": [350, 351], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 30}}, {"id": 350, "type": "identifier", "text": "tmp", "parent": 349, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 17}}, {"id": 351, "type": "identifier", "text": "flagme_mpz", "parent": 349, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 29}}, {"id": 352, "type": "call_expression", "text": "printf (\"MCA-5C8AEC67\\n\")", "parent": 343, "children": [353, 354], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 27}}, {"id": 353, "type": "identifier", "text": "printf", "parent": 352, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 8}}, {"id": 354, "type": "argument_list", "text": "(\"MCA-5C8AEC67\\n\")", "parent": 352, "children": [355], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 27}}, {"id": 355, "type": "string_literal", "text": "\"MCA-5C8AEC67\\n\"", "parent": 354, "children": [356], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 26}}, {"id": 356, "type": "escape_sequence", "text": "\\n", "parent": 355, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 25}}, {"id": 357, "type": "else_clause", "text": "else\r\n\t\tprintf (\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\");", "parent": 343, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 71, "column": 69}}, {"id": 358, "type": "call_expression", "text": "printf (\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\")", "parent": 357, "children": [359, 360], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 68}}, {"id": 359, "type": "identifier", "text": "printf", "parent": 358, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 8}}, {"id": 360, "type": "argument_list", "text": "(\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\")", "parent": 358, "children": [361], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 68}}, {"id": 361, "type": "string_literal", "text": "\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\"", "parent": 360, "children": [362, 363, 364], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 67}}, {"id": 362, "type": "escape_sequence", "text": "\\\"", "parent": 361, "children": [], "start_point": {"row": 71, "column": 36}, "end_point": {"row": 71, "column": 38}}, {"id": 363, "type": "escape_sequence", "text": "\\\"", "parent": 361, "children": [], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 46}}, {"id": 364, "type": "escape_sequence", "text": "\\n", "parent": 361, "children": [], "start_point": {"row": 71, "column": 64}, "end_point": {"row": 71, "column": 66}}]}, "node_categories": {"declarations": {"functions": [12, 14, 91, 93], "variables": [17, 96, 99, 122, 136, 150, 164, 167, 190, 196, 281, 288, 296, 323], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [21, 22, 23, 31, 39, 40, 49, 50, 51, 59, 67, 68, 69, 80, 81, 82, 107, 108, 112, 117, 129, 132, 143, 146, 157, 160, 170, 174, 178, 184, 203, 210, 212, 222, 224, 234, 236, 246, 248, 258, 260, 270, 272, 284, 291, 302, 306, 309, 315, 320, 326, 330, 336, 344, 345, 347, 352, 358], "assignments": [209, 221, 233, 245, 257, 269], "loops": [295], "conditionals": [15, 19, 20, 29, 32, 41, 48, 57, 60, 72, 85, 94, 98, 105, 106, 109, 113, 118, 123, 127, 130, 133, 137, 141, 144, 147, 151, 155, 158, 161, 165, 166, 168, 169, 171, 173, 175, 177, 179, 181, 182, 185, 187, 188, 193, 197, 201, 202, 204, 206, 208, 211, 213, 223, 225, 235, 237, 247, 249, 259, 261, 271, 273, 282, 283, 285, 287, 289, 290, 292, 294, 299, 303, 305, 307, 310, 312, 313, 316, 318, 319, 321, 322, 324, 325, 327, 329, 331, 333, 334, 337, 339, 340, 341, 342, 343, 348, 350, 351, 353, 359], "returns": [38, 66, 79, 120], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 24, 34, 43, 52, 62, 70, 74, 83, 87, 111, 115, 119, 121, 134, 135, 148, 149, 162, 163, 183, 189, 195, 207, 215, 217, 227, 229, 239, 241, 251, 253, 263, 265, 275, 277, 301, 314, 335, 355, 361], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unhex", "text_snippet": "int unhex(char h) {\r\n\tif ('0' <= h && h <= '9') return (h - '0');\r\n\telse if ('a' <= h && h <= 'f') r"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "unhex(char h)"}, {"node_id": 91, "universal_type": "function", "name": "main", "text_snippet": "int main (int argc, char ** argv) {\r\n\r\n\tif (argc != 4) {\r\n\t\tprintf (\"Usage: %s modulus e input\\n\", a"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "main (int argc, char ** argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string.h>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <gmp.h>\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\r\n * decryptor500.c\r\n *\r\n * Created on: Jun 21, 2012\r\n * Author: MLISKOV\r\n */\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n#include <gmp.h>\r\n\r\nint unhex(char h) {\r\n\tif ('0' <= h && h <= '9') return (h - '0');\r\n\telse if ('a' <= h && h <= 'f') return (10+h-'a');\r\n\telse return (10+h-'A');\r\n}\r\n\r\nint main (int argc, char ** argv) {\r\n\r\n\tif (argc != 4) {\r\n\t\tprintf (\"Usage: %s modulus e input\\n\", argv[0]);\r\n\t\treturn 0;\r\n\t}\r\n\r\n\t/* FILE *skfile = fopen (argv[1], \"rb\"); */\r\n\tFILE *Nfile = fopen (argv[1], \"r\");\r\n\tFILE *efile = fopen (argv[2], \"r\");\r\n\tFILE *infile = fopen (argv[3], \"rb\");\r\n\r\n\t// Read in the private key\r\n\tmpz_t N;\r\n\tmpz_t e;\r\n\r\n\tmpz_init(N);\r\n\tmpz_init(e);\r\n\tmpz_inp_str(N,Nfile,16);\r\n\tmpz_inp_str(e,efile,16);\r\n\r\n\tsize_t siglen = 1024;\r\n\tunsigned char flagme[siglen];\r\n\tmemset(flagme, 0, siglen);\r\n\t// \"FlagMe\" as the last 6 characters with all preceding digits = 0.\r\n\tflagme[siglen-6] = 'F';\r\n\tflagme[siglen-5] = 'l';\r\n\tflagme[siglen-4] = 'a';\r\n\tflagme[siglen-3] = 'g';\r\n\tflagme[siglen-2] = 'M';\r\n\tflagme[siglen-1] = 'e';\r\n\r\n\tmpz_t tmp;\r\n\tmpz_init(tmp);\r\n\t// Convert input to mpz.\r\n\tmpz_t flagme_mpz;\r\n\tmpz_init (flagme_mpz);\r\n\tfor (int i = 0; i < siglen; i++) {\r\n\t\tmpz_mul_ui(tmp, flagme_mpz, 256);\r\n\t\tmpz_add_ui(flagme_mpz, tmp, flagme[i]);\r\n\t}\r\n\r\n\t// Get the signature from the input file\r\n\tmpz_t sig;\r\n\tmpz_init(sig);\r\n\tmpz_inp_str(sig,infile,16);\r\n\r\n\t// Calculate sig^e mod N\r\n\tmpz_powm(tmp, sig, e, N);\r\n\t// correct signature\r\n\tif (!mpz_cmp(tmp, flagme_mpz)) {\r\n\t\tprintf (\"MCA-5C8AEC67\\n\");\r\n\t} else\r\n\t\tprintf (\"Not a valid signature of \\\"FlagMe\\\". Request denied.\\n\");\r\n\r\n}\r\n"}
81,072
c
#ifndef LOGINWIDGET_H #define LOGINWIDGET_H #include <QWidget> #include <vector> #include "io/data_repo.h" namespace Ui { class LoginWidget; } class LoginWidget : public QWidget { Q_OBJECT public: explicit LoginWidget(QWidget *parent = nullptr); ~LoginWidget(); private slots: void on_button_login_clicked(); void on_button_exit_clicked(); private: Ui::LoginWidget *ui; DataRepo* dataRepo; }; #endif // LOGINWIDGET_H
19.23
22
(translation_unit) "#ifndef LOGINWIDGET_H\n#define LOGINWIDGET_H\n\n#include <QWidget>\n#include <vector>\n#include "io/data_repo.h"\n\nnamespace Ui {\nclass LoginWidget;\n}\n\nclass LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n};\n\n#endif // LOGINWIDGET_H\n" (preproc_ifdef) "#ifndef LOGINWIDGET_H\n#define LOGINWIDGET_H\n\n#include <QWidget>\n#include <vector>\n#include "io/data_repo.h"\n\nnamespace Ui {\nclass LoginWidget;\n}\n\nclass LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "LOGINWIDGET_H" (preproc_def) "#define LOGINWIDGET_H\n" (#define) "#define" (identifier) "LOGINWIDGET_H" (preproc_include) "#include <QWidget>\n" (#include) "#include" (system_lib_string) "<QWidget>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include "io/data_repo.h"\n" (#include) "#include" (string_literal) ""io/data_repo.h"" (") """ (string_content) "io/data_repo.h" (") """ (function_definition) "namespace Ui {\nclass LoginWidget;\n}" (type_identifier) "namespace" (identifier) "Ui" (compound_statement) "{\nclass LoginWidget;\n}" ({) "{" (declaration) "class LoginWidget;" (type_identifier) "class" (identifier) "LoginWidget" (;) ";" (}) "}" (function_definition) "class LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n}" (type_identifier) "class" (identifier) "LoginWidget" (ERROR) ": public QWidget" (:) ":" (identifier) "public" (identifier) "QWidget" (compound_statement) "{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n}" ({) "{" (declaration) "Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);" (type_identifier) "Q_OBJECT" (ERROR) "public:\n explicit" (identifier) "public" (:) ":" (identifier) "explicit" (init_declarator) "LoginWidget(QWidget *parent = nullptr" (function_declarator) "LoginWidget(QWidget *parent" (identifier) "LoginWidget" (parameter_list) "(QWidget *parent" (() "(" (parameter_declaration) "QWidget *parent" (type_identifier) "QWidget" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~LoginWidget();" (unary_expression) "~LoginWidget()" (~) "~" (call_expression) "LoginWidget()" (identifier) "LoginWidget" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "private slots:" (type_identifier) "private" (identifier) "slots" (:) ":" (declaration) "void on_button_login_clicked();" (primitive_type) "void" (function_declarator) "on_button_login_clicked()" (identifier) "on_button_login_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void on_button_exit_clicked();" (primitive_type) "void" (function_declarator) "on_button_exit_clicked()" (identifier) "on_button_exit_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n Ui::LoginWidget *ui;" (statement_identifier) "private" (:) ":" (labeled_statement) "Ui::LoginWidget *ui;" (statement_identifier) "Ui" (:) ":" (ERROR) ":" (:) ":" (declaration) "LoginWidget *ui;" (type_identifier) "LoginWidget" (pointer_declarator) "*ui" (*) "*" (identifier) "ui" (;) ";" (declaration) "DataRepo* dataRepo;" (type_identifier) "DataRepo" (pointer_declarator) "* dataRepo" (*) "*" (identifier) "dataRepo" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// LOGINWIDGET_H"
115
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.23, "nodes": 71, "errors": 0, "source_hash": "22aad7881e76c80a3f25c35fbf634201e63e995904d47f44df1843a1f88959bb", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LOGINWIDGET_H\n#define LOGINWIDGET_H\n\n#include <QWidget>\n#include <vector>\n#include \"io/data_repo.h\"\n\nnamespace Ui {\nclass LoginWidget;\n}\n\nclass LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 20, 70], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "LOGINWIDGET_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define LOGINWIDGET_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "LOGINWIDGET_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <QWidget>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QWidget>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"io/data_repo.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"io/data_repo.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 15, "type": "function_definition", "text": "namespace Ui {\nclass LoginWidget;\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 17, "type": "identifier", "text": "Ui", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 18, "type": "declaration", "text": "class LoginWidget;", "parent": 15, "children": [19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 18}}, {"id": 19, "type": "identifier", "text": "LoginWidget", "parent": 18, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 17}}, {"id": 20, "type": "function_definition", "text": "class LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n}", "parent": 0, "children": [21, 22], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 21, "type": "identifier", "text": "LoginWidget", "parent": 20, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 17}}, {"id": 22, "type": "ERROR", "text": ": public QWidget", "parent": 20, "children": [23], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 34}}, {"id": 23, "type": "identifier", "text": "QWidget", "parent": 22, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 34}}, {"id": 24, "type": "declaration", "text": "Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);", "parent": 20, "children": [25, 26, 28], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 16, "column": 52}}, {"id": 25, "type": "type_identifier", "text": "Q_OBJECT", "parent": 24, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 12}}, {"id": 26, "type": "ERROR", "text": "public:\n explicit", "parent": 24, "children": [27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 12}}, {"id": 27, "type": "identifier", "text": "explicit", "parent": 26, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 12}}, {"id": 28, "type": "init_declarator", "text": "LoginWidget(QWidget *parent = nullptr", "parent": 24, "children": [29, 37, 38], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 50}}, {"id": 29, "type": "function_declarator", "text": "LoginWidget(QWidget *parent", "parent": 28, "children": [30, 31], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 40}}, {"id": 30, "type": "identifier", "text": "LoginWidget", "parent": 29, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 24}}, {"id": 31, "type": "parameter_list", "text": "(QWidget *parent", "parent": 29, "children": [32], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 40}}, {"id": 32, "type": "parameter_declaration", "text": "QWidget *parent", "parent": 31, "children": [33, 34], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 40}}, {"id": 33, "type": "type_identifier", "text": "QWidget", "parent": 32, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 32}}, {"id": 34, "type": "pointer_declarator", "text": "*parent", "parent": 32, "children": [35, 36], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 40}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 34}}, {"id": 36, "type": "identifier", "text": "parent", "parent": 34, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 40}}, {"id": 37, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 42}}, {"id": 38, "type": "null", "text": "nullptr", "parent": 28, "children": [39], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 50}}, {"id": 39, "type": "nullptr", "text": "nullptr", "parent": 38, "children": [], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 50}}, {"id": 40, "type": "unary_expression", "text": "~LoginWidget()", "parent": 20, "children": [41, 42], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 18}}, {"id": 41, "type": "~", "text": "~", "parent": 40, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 42, "type": "call_expression", "text": "LoginWidget()", "parent": 40, "children": [43, 44], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 18}}, {"id": 43, "type": "identifier", "text": "LoginWidget", "parent": 42, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 16}}, {"id": 44, "type": "argument_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 18}}, {"id": 45, "type": "ERROR", "text": "private slots:", "parent": 20, "children": [46], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 14}}, {"id": 46, "type": "identifier", "text": "slots", "parent": 45, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 13}}, {"id": 47, "type": "declaration", "text": "void on_button_login_clicked();", "parent": 20, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 35}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 49, "type": "function_declarator", "text": "on_button_login_clicked()", "parent": 47, "children": [50, 51], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 34}}, {"id": 50, "type": "identifier", "text": "on_button_login_clicked", "parent": 49, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 32}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 34}}, {"id": 52, "type": "declaration", "text": "void on_button_exit_clicked();", "parent": 20, "children": [53, 54], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 34}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 54, "type": "function_declarator", "text": "on_button_exit_clicked()", "parent": 52, "children": [55, 56], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 33}}, {"id": 55, "type": "identifier", "text": "on_button_exit_clicked", "parent": 54, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 31}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 33}}, {"id": 57, "type": "labeled_statement", "text": "private:\n Ui::LoginWidget *ui;", "parent": 20, "children": [58], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 58, "type": "labeled_statement", "text": "Ui::LoginWidget *ui;", "parent": 57, "children": [59, 60], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 24}}, {"id": 59, "type": "statement_identifier", "text": "Ui", "parent": 58, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 6}}, {"id": 60, "type": "declaration", "text": "LoginWidget *ui;", "parent": 58, "children": [61, 62], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 24}}, {"id": 61, "type": "type_identifier", "text": "LoginWidget", "parent": 60, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 19}}, {"id": 62, "type": "pointer_declarator", "text": "*ui", "parent": 60, "children": [63, 64], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 23}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 64, "type": "identifier", "text": "ui", "parent": 62, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 23}}, {"id": 65, "type": "declaration", "text": "DataRepo* dataRepo;", "parent": 20, "children": [66, 67], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 23}}, {"id": 66, "type": "type_identifier", "text": "DataRepo", "parent": 65, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 67, "type": "pointer_declarator", "text": "* dataRepo", "parent": 65, "children": [68, 69], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 69, "type": "identifier", "text": "dataRepo", "parent": 67, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 22}}, {"id": 70, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 20, 29, 49, 54], "variables": [18, 24, 32, 47, 52, 60, 65], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [40, 42], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 21, 23, 25, 27, 30, 33, 36, 43, 46, 50, 55, 59, 61, 64, 66, 69, 70], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "LoginWidget;", "text_snippet": "namespace Ui {\nclass LoginWidget;\n}"}, {"node_id": 20, "universal_type": "function", "name": "LoginWidget", "text_snippet": "class LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent "}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "LoginWidget(QWidget *parent"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "on_button_login_clicked()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "on_button_exit_clicked()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QWidget>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"io/data_repo.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef LOGINWIDGET_H\n#define LOGINWIDGET_H\n\n#include <QWidget>\n#include <vector>\n#include \"io/data_repo.h\"\n\nnamespace Ui {\nclass LoginWidget;\n}\n\nclass LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\nprivate slots:\n void on_button_login_clicked();\n void on_button_exit_clicked();\n\nprivate:\n Ui::LoginWidget *ui;\n\n DataRepo* dataRepo;\n};\n\n#endif // LOGINWIDGET_H\n"}
81,073
c
#ifndef UTIL_H_INCLUDED #define UTIL_H_INCLUDED #include "response.h" #include <vector> bool isNumberValid(int number); int numberToIndex(int number); bool isResponseValid(Response response); bool isResponseFinal(Response response); Response findResponse(int number, int guess); std::vector<int> findDigits(int number); int findNumber(const std::vector<int>& digits); extern std::vector<int> validNumbers; extern std::vector<Response> validResponses; extern std::vector<int> validDigits; extern std::vector<int> validPos; int responseToIndex(Response response); int randomNumber(); void initRandomizer(); void setParams(int numDigits); #endif // UTIL_H_INCLUDED
32.1
20
(translation_unit) "#ifndef UTIL_H_INCLUDED\n#define UTIL_H_INCLUDED\n\n#include "response.h"\n#include <vector>\n\nbool isNumberValid(int number);\nint numberToIndex(int number);\n\nbool isResponseValid(Response response);\nbool isResponseFinal(Response response);\nResponse findResponse(int number, int guess);\n\nstd::vector<int> findDigits(int number);\nint findNumber(const std::vector<int>& digits);\n\nextern std::vector<int> validNumbers;\nextern std::vector<Response> validResponses;\nextern std::vector<int> validDigits;\nextern std::vector<int> validPos;\n\nint responseToIndex(Response response);\n\nint randomNumber();\nvoid initRandomizer();\n\nvoid setParams(int numDigits);\n\n#endif // UTIL_H_INCLUDED\n" (preproc_ifdef) "#ifndef UTIL_H_INCLUDED\n#define UTIL_H_INCLUDED\n\n#include "response.h"\n#include <vector>\n\nbool isNumberValid(int number);\nint numberToIndex(int number);\n\nbool isResponseValid(Response response);\nbool isResponseFinal(Response response);\nResponse findResponse(int number, int guess);\n\nstd::vector<int> findDigits(int number);\nint findNumber(const std::vector<int>& digits);\n\nextern std::vector<int> validNumbers;\nextern std::vector<Response> validResponses;\nextern std::vector<int> validDigits;\nextern std::vector<int> validPos;\n\nint responseToIndex(Response response);\n\nint randomNumber();\nvoid initRandomizer();\n\nvoid setParams(int numDigits);\n\n#endif" (#ifndef) "#ifndef" (identifier) "UTIL_H_INCLUDED" (preproc_def) "#define UTIL_H_INCLUDED\n" (#define) "#define" (identifier) "UTIL_H_INCLUDED" (preproc_include) "#include "response.h"\n" (#include) "#include" (string_literal) ""response.h"" (") """ (string_content) "response.h" (") """ (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (declaration) "bool isNumberValid(int number);" (primitive_type) "bool" (function_declarator) "isNumberValid(int number)" (identifier) "isNumberValid" (parameter_list) "(int number)" (() "(" (parameter_declaration) "int number" (primitive_type) "int" (identifier) "number" ()) ")" (;) ";" (declaration) "int numberToIndex(int number);" (primitive_type) "int" (function_declarator) "numberToIndex(int number)" (identifier) "numberToIndex" (parameter_list) "(int number)" (() "(" (parameter_declaration) "int number" (primitive_type) "int" (identifier) "number" ()) ")" (;) ";" (declaration) "bool isResponseValid(Response response);" (primitive_type) "bool" (function_declarator) "isResponseValid(Response response)" (identifier) "isResponseValid" (parameter_list) "(Response response)" (() "(" (parameter_declaration) "Response response" (type_identifier) "Response" (identifier) "response" ()) ")" (;) ";" (declaration) "bool isResponseFinal(Response response);" (primitive_type) "bool" (function_declarator) "isResponseFinal(Response response)" (identifier) "isResponseFinal" (parameter_list) "(Response response)" (() "(" (parameter_declaration) "Response response" (type_identifier) "Response" (identifier) "response" ()) ")" (;) ";" (declaration) "Response findResponse(int number, int guess);" (type_identifier) "Response" (function_declarator) "findResponse(int number, int guess)" (identifier) "findResponse" (parameter_list) "(int number, int guess)" (() "(" (parameter_declaration) "int number" (primitive_type) "int" (identifier) "number" (,) "," (parameter_declaration) "int guess" (primitive_type) "int" (identifier) "guess" ()) ")" (;) ";" (labeled_statement) "std::vector<int> findDigits(int number);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<int> findDigits(int number);" (binary_expression) "vector<int> findDigits(int number)" (binary_expression) "vector<int" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (call_expression) "findDigits(int number)" (identifier) "findDigits" (argument_list) "(int number)" (() "(" (ERROR) "int" (identifier) "int" (identifier) "number" ()) ")" (;) ";" (declaration) "int findNumber(const std::vector<int>& digits);" (primitive_type) "int" (function_declarator) "findNumber(const std::vector<int>& digits)" (identifier) "findNumber" (parameter_list) "(const std::vector<int>& digits)" (() "(" (parameter_declaration) "const std::vector<int>& digits" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<int>&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "int" (>) ">" (&) "&" (identifier) "digits" ()) ")" (;) ";" (declaration) "extern std::vector<int> validNumbers;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "std" (ERROR) "::vector<int>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "int" (>) ">" (identifier) "validNumbers" (;) ";" (declaration) "extern std::vector<Response> validResponses;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "std" (ERROR) "::vector<Response>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Response" (>) ">" (identifier) "validResponses" (;) ";" (declaration) "extern std::vector<int> validDigits;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "std" (ERROR) "::vector<int>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "int" (>) ">" (identifier) "validDigits" (;) ";" (declaration) "extern std::vector<int> validPos;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "std" (ERROR) "::vector<int>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "int" (>) ">" (identifier) "validPos" (;) ";" (declaration) "int responseToIndex(Response response);" (primitive_type) "int" (function_declarator) "responseToIndex(Response response)" (identifier) "responseToIndex" (parameter_list) "(Response response)" (() "(" (parameter_declaration) "Response response" (type_identifier) "Response" (identifier) "response" ()) ")" (;) ";" (declaration) "int randomNumber();" (primitive_type) "int" (function_declarator) "randomNumber()" (identifier) "randomNumber" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void initRandomizer();" (primitive_type) "void" (function_declarator) "initRandomizer()" (identifier) "initRandomizer" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setParams(int numDigits);" (primitive_type) "void" (function_declarator) "setParams(int numDigits)" (identifier) "setParams" (parameter_list) "(int numDigits)" (() "(" (parameter_declaration) "int numDigits" (primitive_type) "int" (identifier) "numDigits" ()) ")" (;) ";" (#endif) "#endif" (comment) "// UTIL_H_INCLUDED"
209
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.1, "nodes": 149, "errors": 0, "source_hash": "fd659cc3b27eeeb549fae623343bff6ddaf62d55c67e222053e9484b2687f0cc", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef UTIL_H_INCLUDED\n#define UTIL_H_INCLUDED\n\n#include \"response.h\"\n#include <vector>\n\nbool isNumberValid(int number);\nint numberToIndex(int number);\n\nbool isResponseValid(Response response);\nbool isResponseFinal(Response response);\nResponse findResponse(int number, int guess);\n\nstd::vector<int> findDigits(int number);\nint findNumber(const std::vector<int>& digits);\n\nextern std::vector<int> validNumbers;\nextern std::vector<Response> validResponses;\nextern std::vector<int> validDigits;\nextern std::vector<int> validPos;\n\nint responseToIndex(Response response);\n\nint randomNumber();\nvoid initRandomizer();\n\nvoid setParams(int numDigits);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 20, 28, 36, 44, 55, 69, 82, 92, 102, 112, 122, 130, 135, 140, 148], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "UTIL_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "preproc_def", "text": "#define UTIL_H_INCLUDED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "UTIL_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"response.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"response.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "declaration", "text": "bool isNumberValid(int number);", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 31}}, {"id": 13, "type": "primitive_type", "text": "bool", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "isNumberValid(int number)", "parent": 12, "children": [15, 16], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 30}}, {"id": 15, "type": "identifier", "text": "isNumberValid", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 18}}, {"id": 16, "type": "parameter_list", "text": "(int number)", "parent": 14, "children": [17], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 30}}, {"id": 17, "type": "parameter_declaration", "text": "int number", "parent": 16, "children": [18, 19], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 29}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 22}}, {"id": 19, "type": "identifier", "text": "number", "parent": 17, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 29}}, {"id": 20, "type": "declaration", "text": "int numberToIndex(int number);", "parent": 0, "children": [21, 22], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 30}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 3}}, {"id": 22, "type": "function_declarator", "text": "numberToIndex(int number)", "parent": 20, "children": [23, 24], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 29}}, {"id": 23, "type": "identifier", "text": "numberToIndex", "parent": 22, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 17}}, {"id": 24, "type": "parameter_list", "text": "(int number)", "parent": 22, "children": [25], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 29}}, {"id": 25, "type": "parameter_declaration", "text": "int number", "parent": 24, "children": [26, 27], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 28}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 21}}, {"id": 27, "type": "identifier", "text": "number", "parent": 25, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 28}}, {"id": 28, "type": "declaration", "text": "bool isResponseValid(Response response);", "parent": 0, "children": [29, 30], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 40}}, {"id": 29, "type": "primitive_type", "text": "bool", "parent": 28, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 30, "type": "function_declarator", "text": "isResponseValid(Response response)", "parent": 28, "children": [31, 32], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 39}}, {"id": 31, "type": "identifier", "text": "isResponseValid", "parent": 30, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 20}}, {"id": 32, "type": "parameter_list", "text": "(Response response)", "parent": 30, "children": [33], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 39}}, {"id": 33, "type": "parameter_declaration", "text": "Response response", "parent": 32, "children": [34, 35], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 38}}, {"id": 34, "type": "type_identifier", "text": "Response", "parent": 33, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 29}}, {"id": 35, "type": "identifier", "text": "response", "parent": 33, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 38}}, {"id": 36, "type": "declaration", "text": "bool isResponseFinal(Response response);", "parent": 0, "children": [37, 38], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 40}}, {"id": 37, "type": "primitive_type", "text": "bool", "parent": 36, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 38, "type": "function_declarator", "text": "isResponseFinal(Response response)", "parent": 36, "children": [39, 40], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 39}}, {"id": 39, "type": "identifier", "text": "isResponseFinal", "parent": 38, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 20}}, {"id": 40, "type": "parameter_list", "text": "(Response response)", "parent": 38, "children": [41], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 39}}, {"id": 41, "type": "parameter_declaration", "text": "Response response", "parent": 40, "children": [42, 43], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 38}}, {"id": 42, "type": "type_identifier", "text": "Response", "parent": 41, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 29}}, {"id": 43, "type": "identifier", "text": "response", "parent": 41, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 38}}, {"id": 44, "type": "declaration", "text": "Response findResponse(int number, int guess);", "parent": 0, "children": [45, 46], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 45}}, {"id": 45, "type": "type_identifier", "text": "Response", "parent": 44, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 46, "type": "function_declarator", "text": "findResponse(int number, int guess)", "parent": 44, "children": [47, 48], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 44}}, {"id": 47, "type": "identifier", "text": "findResponse", "parent": 46, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 48, "type": "parameter_list", "text": "(int number, int guess)", "parent": 46, "children": [49, 52], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 44}}, {"id": 49, "type": "parameter_declaration", "text": "int number", "parent": 48, "children": [50, 51], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 32}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 25}}, {"id": 51, "type": "identifier", "text": "number", "parent": 49, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 32}}, {"id": 52, "type": "parameter_declaration", "text": "int guess", "parent": 48, "children": [53, 54], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 43}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 37}}, {"id": 54, "type": "identifier", "text": "guess", "parent": 52, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 43}}, {"id": 55, "type": "labeled_statement", "text": "std::vector<int> findDigits(int number);", "parent": 0, "children": [56], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 40}}, {"id": 56, "type": "statement_identifier", "text": "std", "parent": 55, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 3}}, {"id": 57, "type": "binary_expression", "text": "vector<int> findDigits(int number)", "parent": 55, "children": [58, 62, 63], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 39}}, {"id": 58, "type": "binary_expression", "text": "vector<int", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 15}}, {"id": 59, "type": "identifier", "text": "vector", "parent": 58, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 11}}, {"id": 60, "type": "<", "text": "<", "parent": 58, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 61, "type": "identifier", "text": "int", "parent": 58, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 15}}, {"id": 62, "type": ">", "text": ">", "parent": 57, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 63, "type": "call_expression", "text": "findDigits(int number)", "parent": 57, "children": [64, 65], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 39}}, {"id": 64, "type": "identifier", "text": "findDigits", "parent": 63, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 27}}, {"id": 65, "type": "argument_list", "text": "(int number)", "parent": 63, "children": [66, 68], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 39}}, {"id": 66, "type": "ERROR", "text": "int", "parent": 65, "children": [67], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 31}}, {"id": 67, "type": "identifier", "text": "int", "parent": 66, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 31}}, {"id": 68, "type": "identifier", "text": "number", "parent": 65, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 38}}, {"id": 69, "type": "declaration", "text": "int findNumber(const std::vector<int>& digits);", "parent": 0, "children": [70, 71], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 47}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 71, "type": "function_declarator", "text": "findNumber(const std::vector<int>& digits)", "parent": 69, "children": [72, 73], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 46}}, {"id": 72, "type": "identifier", "text": "findNumber", "parent": 71, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 14}}, {"id": 73, "type": "parameter_list", "text": "(const std::vector<int>& digits)", "parent": 71, "children": [74], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 46}}, {"id": 74, "type": "parameter_declaration", "text": "const std::vector<int>& digits", "parent": 73, "children": [75, 76, 81], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 45}}, {"id": 75, "type": "type_identifier", "text": "std", "parent": 74, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 24}}, {"id": 76, "type": "ERROR", "text": "::vector<int>&", "parent": 74, "children": [77, 78, 79, 80], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 38}}, {"id": 77, "type": "identifier", "text": "vector", "parent": 76, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 32}}, {"id": 78, "type": "<", "text": "<", "parent": 76, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 79, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 36}}, {"id": 80, "type": ">", "text": ">", "parent": 76, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 37}}, {"id": 81, "type": "identifier", "text": "digits", "parent": 74, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 45}}, {"id": 82, "type": "declaration", "text": "extern std::vector<int> validNumbers;", "parent": 0, "children": [83, 85, 86, 91], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 37}}, {"id": 83, "type": "storage_class_specifier", "text": "extern", "parent": 82, "children": [84], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 84, "type": "extern", "text": "extern", "parent": 83, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 85, "type": "type_identifier", "text": "std", "parent": 82, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 86, "type": "ERROR", "text": "::vector<int>", "parent": 82, "children": [87, 88, 89, 90], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 23}}, {"id": 87, "type": "identifier", "text": "vector", "parent": 86, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 18}}, {"id": 88, "type": "<", "text": "<", "parent": 86, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 22}}, {"id": 90, "type": ">", "text": ">", "parent": 86, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 23}}, {"id": 91, "type": "identifier", "text": "validNumbers", "parent": 82, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 36}}, {"id": 92, "type": "declaration", "text": "extern std::vector<Response> validResponses;", "parent": 0, "children": [93, 95, 96, 101], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 44}}, {"id": 93, "type": "storage_class_specifier", "text": "extern", "parent": 92, "children": [94], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 94, "type": "extern", "text": "extern", "parent": 93, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 95, "type": "type_identifier", "text": "std", "parent": 92, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 96, "type": "ERROR", "text": "::vector<Response>", "parent": 92, "children": [97, 98, 99, 100], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 28}}, {"id": 97, "type": "identifier", "text": "vector", "parent": 96, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 18}}, {"id": 98, "type": "<", "text": "<", "parent": 96, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 99, "type": "identifier", "text": "Response", "parent": 96, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 27}}, {"id": 100, "type": ">", "text": ">", "parent": 96, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 28}}, {"id": 101, "type": "identifier", "text": "validResponses", "parent": 92, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 43}}, {"id": 102, "type": "declaration", "text": "extern std::vector<int> validDigits;", "parent": 0, "children": [103, 105, 106, 111], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 36}}, {"id": 103, "type": "storage_class_specifier", "text": "extern", "parent": 102, "children": [104], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 104, "type": "extern", "text": "extern", "parent": 103, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 105, "type": "type_identifier", "text": "std", "parent": 102, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 10}}, {"id": 106, "type": "ERROR", "text": "::vector<int>", "parent": 102, "children": [107, 108, 109, 110], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 23}}, {"id": 107, "type": "identifier", "text": "vector", "parent": 106, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 18}}, {"id": 108, "type": "<", "text": "<", "parent": 106, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 22}}, {"id": 110, "type": ">", "text": ">", "parent": 106, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 23}}, {"id": 111, "type": "identifier", "text": "validDigits", "parent": 102, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 35}}, {"id": 112, "type": "declaration", "text": "extern std::vector<int> validPos;", "parent": 0, "children": [113, 115, 116, 121], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 33}}, {"id": 113, "type": "storage_class_specifier", "text": "extern", "parent": 112, "children": [114], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 114, "type": "extern", "text": "extern", "parent": 113, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 115, "type": "type_identifier", "text": "std", "parent": 112, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 10}}, {"id": 116, "type": "ERROR", "text": "::vector<int>", "parent": 112, "children": [117, 118, 119, 120], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 23}}, {"id": 117, "type": "identifier", "text": "vector", "parent": 116, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 118, "type": "<", "text": "<", "parent": 116, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 19}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 116, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 22}}, {"id": 120, "type": ">", "text": ">", "parent": 116, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 121, "type": "identifier", "text": "validPos", "parent": 112, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 32}}, {"id": 122, "type": "declaration", "text": "int responseToIndex(Response response);", "parent": 0, "children": [123, 124], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 39}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 124, "type": "function_declarator", "text": "responseToIndex(Response response)", "parent": 122, "children": [125, 126], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 38}}, {"id": 125, "type": "identifier", "text": "responseToIndex", "parent": 124, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 19}}, {"id": 126, "type": "parameter_list", "text": "(Response response)", "parent": 124, "children": [127], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 38}}, {"id": 127, "type": "parameter_declaration", "text": "Response response", "parent": 126, "children": [128, 129], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 37}}, {"id": 128, "type": "type_identifier", "text": "Response", "parent": 127, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 28}}, {"id": 129, "type": "identifier", "text": "response", "parent": 127, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 37}}, {"id": 130, "type": "declaration", "text": "int randomNumber();", "parent": 0, "children": [131, 132], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 19}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 132, "type": "function_declarator", "text": "randomNumber()", "parent": 130, "children": [133, 134], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 18}}, {"id": 133, "type": "identifier", "text": "randomNumber", "parent": 132, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 16}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 18}}, {"id": 135, "type": "declaration", "text": "void initRandomizer();", "parent": 0, "children": [136, 137], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 22}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 135, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 137, "type": "function_declarator", "text": "initRandomizer()", "parent": 135, "children": [138, 139], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 21}}, {"id": 138, "type": "identifier", "text": "initRandomizer", "parent": 137, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 19}}, {"id": 139, "type": "parameter_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 21}}, {"id": 140, "type": "declaration", "text": "void setParams(int numDigits);", "parent": 0, "children": [141, 142], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 30}}, {"id": 141, "type": "primitive_type", "text": "void", "parent": 140, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 142, "type": "function_declarator", "text": "setParams(int numDigits)", "parent": 140, "children": [143, 144], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 29}}, {"id": 143, "type": "identifier", "text": "setParams", "parent": 142, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 14}}, {"id": 144, "type": "parameter_list", "text": "(int numDigits)", "parent": 142, "children": [145], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 29}}, {"id": 145, "type": "parameter_declaration", "text": "int numDigits", "parent": 144, "children": [146, 147], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 28}}, {"id": 146, "type": "primitive_type", "text": "int", "parent": 145, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 18}}, {"id": 147, "type": "identifier", "text": "numDigits", "parent": 145, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 28}}, {"id": 148, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [14, 22, 30, 38, 46, 71, 124, 132, 137, 142], "variables": [12, 17, 20, 25, 28, 33, 36, 41, 44, 49, 52, 69, 74, 82, 92, 102, 112, 122, 127, 130, 135, 140, 145], "classes": [83, 93, 103, 113], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [57, 58, 63], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 19, 23, 27, 31, 34, 35, 39, 42, 43, 45, 47, 51, 54, 56, 59, 61, 64, 67, 68, 72, 75, 77, 81, 85, 87, 91, 95, 97, 99, 101, 105, 107, 111, 115, 117, 121, 125, 128, 129, 133, 138, 143, 147, 148], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "isNumberValid(int number)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "numberToIndex(int number)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "isResponseValid(Response response)"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "isResponseFinal(Response response)"}, {"node_id": 46, "universal_type": "function", "name": "guess)", "text_snippet": "findResponse(int number, int guess)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "findNumber(const std::vector<int>& digits)"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "responseToIndex(Response response)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "randomNumber()"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "initRandomizer()"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "setParams(int numDigits)"}], "class_declarations": [{"node_id": 83, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"response.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef UTIL_H_INCLUDED\n#define UTIL_H_INCLUDED\n\n#include \"response.h\"\n#include <vector>\n\nbool isNumberValid(int number);\nint numberToIndex(int number);\n\nbool isResponseValid(Response response);\nbool isResponseFinal(Response response);\nResponse findResponse(int number, int guess);\n\nstd::vector<int> findDigits(int number);\nint findNumber(const std::vector<int>& digits);\n\nextern std::vector<int> validNumbers;\nextern std::vector<Response> validResponses;\nextern std::vector<int> validDigits;\nextern std::vector<int> validPos;\n\nint responseToIndex(Response response);\n\nint randomNumber();\nvoid initRandomizer();\n\nvoid setParams(int numDigits);\n\n#endif // UTIL_H_INCLUDED\n"}
81,074
c
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2013-2016 the Civetweb developers * Copyright (c) 2004-2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * ============ * Release: 2.0 */ #include "httplib_main.h" /* * bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ); * * The function XX_httplib_getreq() processes a request from a remote client. */ bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) { const char *cl; if ( ctx == NULL || err == NULL ) return false; *err = 0; if ( conn == NULL ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ ); *err = 500; return false; } XX_httplib_reset_per_request_attributes( conn ); /* * Set the time the request was received. This value should be used for * timeouts. */ clock_gettime( CLOCK_MONOTONIC, &conn->req_time ); conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len ); /* * assert(conn->request_len < 0 || conn->data_len >= conn->request_len); */ if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ ); *err = 500; return false; } if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ ); *err = 413; return false; } else if ( conn->request_len <= 0 ) { if ( conn->data_len > 0 ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ ); *err = 400; } else { /* * Server did not send anything -> just close the connection */ conn->must_close = true; httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ ); *err = 0; } return false; } else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ ); *err = 400; return false; } else { /* * Message is a valid request or response */ if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) { /* * Request/response has content length set */ char *endptr = NULL; conn->content_len = strtoll( cl, &endptr, 10 ); if ( endptr == cl ) { httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ ); *err = 411; return false; } /* * Publish the content length back to the request info. */ conn->request_info.content_length = conn->content_len; } else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) { conn->is_chunked = 1; } else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) { /* * POST or PUT request without content length set */ conn->content_len = -1; } else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) { /* * Response without content length set */ conn->content_len = -1; } else { /* * Other request */ conn->content_len = 0; } } return true; } /* XX_httplib_getreq */
32.55
131
(translation_unit) "/* \n * Copyright (c) 2016 <NAME>\n * Copyright (c) 2013-2016 the Civetweb developers\n * Copyright (c) 2004-2013 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * ============\n * Release: 2.0\n */\n\n#include "httplib_main.h"\n\n/*\n * bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err );\n *\n * The function XX_httplib_getreq() processes a request from a remote client.\n */\n\nbool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) {\n\n const char *cl;\n\n if ( ctx == NULL || err == NULL ) return false;\n\n *err = 0;\n\n if ( conn == NULL ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );\n *err = 500;\n return false;\n }\n\n XX_httplib_reset_per_request_attributes( conn );\n\n /*\n * Set the time the request was received. This value should be used for\n * timeouts.\n */\n\n clock_gettime( CLOCK_MONOTONIC, &conn->req_time );\n\n conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );\n\n /* \n * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n */\n\n if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );\n *err = 500;\n return false;\n }\n\n if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );\n *err = 413;\n return false;\n }\n \n else if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }\n\n return true;\n\n} /* XX_httplib_getreq */\n" (comment) "/* \n * Copyright (c) 2016 <NAME>\n * Copyright (c) 2013-2016 the Civetweb developers\n * Copyright (c) 2004-2013 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * ============\n * Release: 2.0\n */" (preproc_include) "#include "httplib_main.h"\n" (#include) "#include" (string_literal) ""httplib_main.h"" (") """ (string_content) "httplib_main.h" (") """ (comment) "/*\n * bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err );\n *\n * The function XX_httplib_getreq() processes a request from a remote client.\n */" (function_definition) "bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) {\n\n const char *cl;\n\n if ( ctx == NULL || err == NULL ) return false;\n\n *err = 0;\n\n if ( conn == NULL ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );\n *err = 500;\n return false;\n }\n\n XX_httplib_reset_per_request_attributes( conn );\n\n /*\n * Set the time the request was received. This value should be used for\n * timeouts.\n */\n\n clock_gettime( CLOCK_MONOTONIC, &conn->req_time );\n\n conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );\n\n /* \n * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n */\n\n if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );\n *err = 500;\n return false;\n }\n\n if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );\n *err = 413;\n return false;\n }\n \n else if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }\n\n return true;\n\n}" (primitive_type) "bool" (function_declarator) "XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err )" (identifier) "XX_httplib_getreq" (parameter_list) "( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err )" (() "(" (parameter_declaration) "struct lh_ctx_t *ctx" (struct_specifier) "struct lh_ctx_t" (struct) "struct" (type_identifier) "lh_ctx_t" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "struct lh_con_t *conn" (struct_specifier) "struct lh_con_t" (struct) "struct" (type_identifier) "lh_con_t" (pointer_declarator) "*conn" (*) "*" (identifier) "conn" (,) "," (parameter_declaration) "int *err" (primitive_type) "int" (pointer_declarator) "*err" (*) "*" (identifier) "err" ()) ")" (compound_statement) "{\n\n const char *cl;\n\n if ( ctx == NULL || err == NULL ) return false;\n\n *err = 0;\n\n if ( conn == NULL ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );\n *err = 500;\n return false;\n }\n\n XX_httplib_reset_per_request_attributes( conn );\n\n /*\n * Set the time the request was received. This value should be used for\n * timeouts.\n */\n\n clock_gettime( CLOCK_MONOTONIC, &conn->req_time );\n\n conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );\n\n /* \n * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n */\n\n if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );\n *err = 500;\n return false;\n }\n\n if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );\n *err = 413;\n return false;\n }\n \n else if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }\n\n return true;\n\n}" ({) "{" (declaration) "const char *cl;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*cl" (*) "*" (identifier) "cl" (;) ";" (if_statement) "if ( ctx == NULL || err == NULL ) return false;" (if) "if" (parenthesized_expression) "( ctx == NULL || err == NULL )" (() "(" (binary_expression) "ctx == NULL || err == NULL" (binary_expression) "ctx == NULL" (identifier) "ctx" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "err == NULL" (identifier) "err" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "*err = 0;" (assignment_expression) "*err = 0" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if ( conn == NULL ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );\n *err = 500;\n return false;\n }" (if) "if" (parenthesized_expression) "( conn == NULL )" (() "(" (binary_expression) "conn == NULL" (identifier) "conn" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );\n *err = 500;\n return false;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: internal error", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: internal error"" (") """ (string_content) "%s: internal error" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 500;" (assignment_expression) "*err = 500" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "500" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "XX_httplib_reset_per_request_attributes( conn );" (call_expression) "XX_httplib_reset_per_request_attributes( conn )" (identifier) "XX_httplib_reset_per_request_attributes" (argument_list) "( conn )" (() "(" (identifier) "conn" ()) ")" (;) ";" (comment) "/*\n * Set the time the request was received. This value should be used for\n * timeouts.\n */" (expression_statement) "clock_gettime( CLOCK_MONOTONIC, &conn->req_time );" (call_expression) "clock_gettime( CLOCK_MONOTONIC, &conn->req_time )" (identifier) "clock_gettime" (argument_list) "( CLOCK_MONOTONIC, &conn->req_time )" (() "(" (identifier) "CLOCK_MONOTONIC" (,) "," (pointer_expression) "&conn->req_time" (&) "&" (field_expression) "conn->req_time" (identifier) "conn" (->) "->" (field_identifier) "req_time" ()) ")" (;) ";" (expression_statement) "conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );" (assignment_expression) "conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )" (field_expression) "conn->request_len" (identifier) "conn" (->) "->" (field_identifier) "request_len" (=) "=" (call_expression) "XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )" (identifier) "XX_httplib_read_request" (argument_list) "( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )" (() "(" (identifier) "ctx" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "conn" (,) "," (field_expression) "conn->buf" (identifier) "conn" (->) "->" (field_identifier) "buf" (,) "," (field_expression) "conn->buf_size" (identifier) "conn" (->) "->" (field_identifier) "buf_size" (,) "," (pointer_expression) "&conn->data_len" (&) "&" (field_expression) "conn->data_len" (identifier) "conn" (->) "->" (field_identifier) "data_len" ()) ")" (;) ";" (comment) "/* \n * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n */" (if_statement) "if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );\n *err = 500;\n return false;\n }" (if) "if" (parenthesized_expression) "( conn->request_len >= 0 && conn->data_len < conn->request_len )" (() "(" (binary_expression) "conn->request_len >= 0 && conn->data_len < conn->request_len" (binary_expression) "conn->request_len >= 0" (field_expression) "conn->request_len" (identifier) "conn" (->) "->" (field_identifier) "request_len" (>=) ">=" (number_literal) "0" (&&) "&&" (binary_expression) "conn->data_len < conn->request_len" (field_expression) "conn->data_len" (identifier) "conn" (->) "->" (field_identifier) "data_len" (<) "<" (field_expression) "conn->request_len" (identifier) "conn" (->) "->" (field_identifier) "request_len" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );\n *err = 500;\n return false;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: invalid request size", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: invalid request size"" (") """ (string_content) "%s: invalid request size" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 500;" (assignment_expression) "*err = 500" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "500" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (if_statement) "if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );\n *err = 413;\n return false;\n }\n \n else if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (if) "if" (parenthesized_expression) "( conn->request_len == 0 && conn->data_len == conn->buf_size )" (() "(" (binary_expression) "conn->request_len == 0 && conn->data_len == conn->buf_size" (binary_expression) "conn->request_len == 0" (field_expression) "conn->request_len" (identifier) "conn" (->) "->" (field_identifier) "request_len" (==) "==" (number_literal) "0" (&&) "&&" (binary_expression) "conn->data_len == conn->buf_size" (field_expression) "conn->data_len" (identifier) "conn" (->) "->" (field_identifier) "data_len" (==) "==" (field_expression) "conn->buf_size" (identifier) "conn" (->) "->" (field_identifier) "buf_size" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );\n *err = 413;\n return false;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: request too large", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: request too large"" (") """ (string_content) "%s: request too large" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 413;" (assignment_expression) "*err = 413" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "413" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (else) "else" (if_statement) "if ( conn->request_len <= 0 ) {\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }\n \n else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (if) "if" (parenthesized_expression) "( conn->request_len <= 0 )" (() "(" (binary_expression) "conn->request_len <= 0" (field_expression) "conn->request_len" (identifier) "conn" (->) "->" (field_identifier) "request_len" (<=) "<=" (number_literal) "0" ()) ")" (compound_statement) "{\n\n if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }\n return false;\n }" ({) "{" (if_statement) "if ( conn->data_len > 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }\n \n else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }" (if) "if" (parenthesized_expression) "( conn->data_len > 0 )" (() "(" (binary_expression) "conn->data_len > 0" (field_expression) "conn->data_len" (identifier) "conn" (->) "->" (field_identifier) "data_len" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );\n *err = 400;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: client sent malformed request", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: client sent malformed request"" (") """ (string_content) "%s: client sent malformed request" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 400;" (assignment_expression) "*err = 400" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "400" (;) ";" (}) "}" (else_clause) "else {\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }" (else) "else" (compound_statement) "{\n /*\n * Server did not send anything -> just close the connection\n */\n\n conn->must_close = true;\n\n httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );\n *err = 0;\n }" ({) "{" (comment) "/*\n * Server did not send anything -> just close the connection\n */" (expression_statement) "conn->must_close = true;" (assignment_expression) "conn->must_close = true" (field_expression) "conn->must_close" (identifier) "conn" (->) "->" (field_identifier) "must_close" (=) "=" (true) "true" (;) ";" (expression_statement) "httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_WARNING, ctx, conn, "%s: client did not send a request", __func__ )" (() "(" (identifier) "LH_DEBUG_WARNING" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: client did not send a request"" (") """ (string_content) "%s: client did not send a request" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 0;" (assignment_expression) "*err = 0" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (else) "else" (if_statement) "if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }\n \n else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (if) "if" (parenthesized_expression) "( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 )" (() "(" (binary_expression) "XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0" (call_expression) "XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info )" (identifier) "XX_httplib_parse_http_message" (argument_list) "( conn->buf, conn->buf_size, &conn->request_info )" (() "(" (field_expression) "conn->buf" (identifier) "conn" (->) "->" (field_identifier) "buf" (,) "," (field_expression) "conn->buf_size" (identifier) "conn" (->) "->" (field_identifier) "buf_size" (,) "," (pointer_expression) "&conn->request_info" (&) "&" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" ()) ")" (<=) "<=" (number_literal) "0" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 400;\n return false;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: bad request"" (") """ (string_content) "%s: bad request" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 400;" (assignment_expression) "*err = 400" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "400" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else {\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" (else) "else" (compound_statement) "{\n /*\n * Message is a valid request or response\n */\n\n if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }\n }" ({) "{" (comment) "/*\n * Message is a valid request or response\n */" (if_statement) "if ( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL ) {\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }\n \n else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (if) "if" (parenthesized_expression) "( (cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL )" (() "(" (binary_expression) "(cl = XX_httplib_get_header( &conn->request_info, "Content-Length")) != NULL" (parenthesized_expression) "(cl = XX_httplib_get_header( &conn->request_info, "Content-Length"))" (() "(" (assignment_expression) "cl = XX_httplib_get_header( &conn->request_info, "Content-Length")" (identifier) "cl" (=) "=" (call_expression) "XX_httplib_get_header( &conn->request_info, "Content-Length")" (identifier) "XX_httplib_get_header" (argument_list) "( &conn->request_info, "Content-Length")" (() "(" (pointer_expression) "&conn->request_info" (&) "&" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (,) "," (string_literal) ""Content-Length"" (") """ (string_content) "Content-Length" (") """ ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n\n /*\n * Request/response has content length set\n */\n\n char *endptr = NULL;\n conn->content_len = strtoll( cl, &endptr, 10 );\n\n if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }\n\n /*\n * Publish the content length back to the request info.\n */\n\n conn->request_info.content_length = conn->content_len;\n }" ({) "{" (comment) "/*\n * Request/response has content length set\n */" (declaration) "char *endptr = NULL;" (primitive_type) "char" (init_declarator) "*endptr = NULL" (pointer_declarator) "*endptr" (*) "*" (identifier) "endptr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "conn->content_len = strtoll( cl, &endptr, 10 );" (assignment_expression) "conn->content_len = strtoll( cl, &endptr, 10 )" (field_expression) "conn->content_len" (identifier) "conn" (->) "->" (field_identifier) "content_len" (=) "=" (call_expression) "strtoll( cl, &endptr, 10 )" (identifier) "strtoll" (argument_list) "( cl, &endptr, 10 )" (() "(" (identifier) "cl" (,) "," (pointer_expression) "&endptr" (&) "&" (identifier) "endptr" (,) "," (number_literal) "10" ()) ")" (;) ";" (if_statement) "if ( endptr == cl ) {\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }" (if) "if" (parenthesized_expression) "( endptr == cl )" (() "(" (binary_expression) "endptr == cl" (identifier) "endptr" (==) "==" (identifier) "cl" ()) ")" (compound_statement) "{\n\n httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );\n *err = 411;\n return false;\n }" ({) "{" (expression_statement) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ );" (call_expression) "httplib_cry( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ )" (identifier) "httplib_cry" (argument_list) "( LH_DEBUG_ERROR, ctx, conn, "%s: bad request", __func__ )" (() "(" (identifier) "LH_DEBUG_ERROR" (,) "," (identifier) "ctx" (,) "," (identifier) "conn" (,) "," (string_literal) ""%s: bad request"" (") """ (string_content) "%s: bad request" (") """ (,) "," (identifier) "__func__" ()) ")" (;) ";" (expression_statement) "*err = 411;" (assignment_expression) "*err = 411" (pointer_expression) "*err" (*) "*" (identifier) "err" (=) "=" (number_literal) "411" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/*\n * Publish the content length back to the request info.\n */" (expression_statement) "conn->request_info.content_length = conn->content_len;" (assignment_expression) "conn->request_info.content_length = conn->content_len" (field_expression) "conn->request_info.content_length" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (.) "." (field_identifier) "content_length" (=) "=" (field_expression) "conn->content_len" (identifier) "conn" (->) "->" (field_identifier) "content_len" (;) ";" (}) "}" (else_clause) "else if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (else) "else" (if_statement) "if ( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) ) {\n\n conn->is_chunked = 1;\n }\n \n else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (if) "if" (parenthesized_expression) "( (cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" ) )" (() "(" (binary_expression) "(cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL && ! httplib_strcasecmp( cl, "chunked" )" (binary_expression) "(cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )) != NULL" (parenthesized_expression) "(cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" ))" (() "(" (assignment_expression) "cl = XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )" (identifier) "cl" (=) "=" (call_expression) "XX_httplib_get_header( &conn->request_info, "Transfer-Encoding" )" (identifier) "XX_httplib_get_header" (argument_list) "( &conn->request_info, "Transfer-Encoding" )" (() "(" (pointer_expression) "&conn->request_info" (&) "&" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (,) "," (string_literal) ""Transfer-Encoding"" (") """ (string_content) "Transfer-Encoding" (") """ ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (unary_expression) "! httplib_strcasecmp( cl, "chunked" )" (!) "!" (call_expression) "httplib_strcasecmp( cl, "chunked" )" (identifier) "httplib_strcasecmp" (argument_list) "( cl, "chunked" )" (() "(" (identifier) "cl" (,) "," (string_literal) ""chunked"" (") """ (string_content) "chunked" (") """ ()) ")" ()) ")" (compound_statement) "{\n\n conn->is_chunked = 1;\n }" ({) "{" (expression_statement) "conn->is_chunked = 1;" (assignment_expression) "conn->is_chunked = 1" (field_expression) "conn->is_chunked" (identifier) "conn" (->) "->" (field_identifier) "is_chunked" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (else) "else" (if_statement) "if ( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) ) {\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }\n \n else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (if) "if" (parenthesized_expression) "( ! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" ) )" (() "(" (binary_expression) "! httplib_strcasecmp( conn->request_info.request_method, "POST" ) || ! httplib_strcasecmp( conn->request_info.request_method, "PUT" )" (unary_expression) "! httplib_strcasecmp( conn->request_info.request_method, "POST" )" (!) "!" (call_expression) "httplib_strcasecmp( conn->request_info.request_method, "POST" )" (identifier) "httplib_strcasecmp" (argument_list) "( conn->request_info.request_method, "POST" )" (() "(" (field_expression) "conn->request_info.request_method" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (.) "." (field_identifier) "request_method" (,) "," (string_literal) ""POST"" (") """ (string_content) "POST" (") """ ()) ")" (||) "||" (unary_expression) "! httplib_strcasecmp( conn->request_info.request_method, "PUT" )" (!) "!" (call_expression) "httplib_strcasecmp( conn->request_info.request_method, "PUT" )" (identifier) "httplib_strcasecmp" (argument_list) "( conn->request_info.request_method, "PUT" )" (() "(" (field_expression) "conn->request_info.request_method" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (.) "." (field_identifier) "request_method" (,) "," (string_literal) ""PUT"" (") """ (string_content) "PUT" (") """ ()) ")" ()) ")" (compound_statement) "{\n\n /*\n * POST or PUT request without content length set\n */\n\n conn->content_len = -1;\n }" ({) "{" (comment) "/*\n * POST or PUT request without content length set\n */" (expression_statement) "conn->content_len = -1;" (assignment_expression) "conn->content_len = -1" (field_expression) "conn->content_len" (identifier) "conn" (->) "->" (field_identifier) "content_len" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (else_clause) "else if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (else) "else" (if_statement) "if ( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) ) {\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n } else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (if) "if" (parenthesized_expression) "( ! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 ) )" (() "(" (unary_expression) "! httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 )" (!) "!" (call_expression) "httplib_strncasecmp( conn->request_info.request_method, "HTTP/", 5 )" (identifier) "httplib_strncasecmp" (argument_list) "( conn->request_info.request_method, "HTTP/", 5 )" (() "(" (field_expression) "conn->request_info.request_method" (field_expression) "conn->request_info" (identifier) "conn" (->) "->" (field_identifier) "request_info" (.) "." (field_identifier) "request_method" (,) "," (string_literal) ""HTTP/"" (") """ (string_content) "HTTP/" (") """ (,) "," (number_literal) "5" ()) ")" ()) ")" (compound_statement) "{\n\n /*\n * Response without content length set\n */\n\n conn->content_len = -1;\n }" ({) "{" (comment) "/*\n * Response without content length set\n */" (expression_statement) "conn->content_len = -1;" (assignment_expression) "conn->content_len = -1" (field_expression) "conn->content_len" (identifier) "conn" (->) "->" (field_identifier) "content_len" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (else_clause) "else {\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" (else) "else" (compound_statement) "{\n\n /*\n * Other request\n */\n\n conn->content_len = 0;\n }" ({) "{" (comment) "/*\n * Other request\n */" (expression_statement) "conn->content_len = 0;" (assignment_expression) "conn->content_len = 0" (field_expression) "conn->content_len" (identifier) "conn" (->) "->" (field_identifier) "content_len" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (comment) "/* XX_httplib_getreq */"
779
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 32.55, "nodes": 437, "errors": 0, "source_hash": "2d6a457b4406a7d98a9f45154598c4dc9b924179059407cc6a463280a6b5c95e", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"httplib_main.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"httplib_main.h\"", "parent": 0, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 25}}, {"id": 3, "type": "function_definition", "text": "bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) {\n\n\tconst char *cl;\n\n\tif ( ctx == NULL || err == NULL ) return false;\n\n\t*err = 0;\n\n\tif ( conn == NULL ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: internal error\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}\n\n\tXX_httplib_reset_per_request_attributes( conn );\n\n\t/*\n\t * Set the time the request was received. This value should be used for\n\t * timeouts.\n\t */\n\n\tclock_gettime( CLOCK_MONOTONIC, &conn->req_time );\n\n\tconn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );\n\n\t/* \n\t * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n\t */\n\n\tif ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: invalid request size\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}\n\n\tif ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: request too large\", __func__ );\n\t\t*err = 413;\n\t\treturn false;\n\t}\n\t\n\telse if ( conn->request_len <= 0 ) {\n\n\t\tif ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\telse if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}\n\n\treturn true;\n\n}", "parent": null, "children": [4, 5], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 168, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "bool", "parent": 3, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 5, "type": "function_declarator", "text": "XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err )", "parent": 3, "children": [6, 7], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 79}}, {"id": 6, "type": "identifier", "text": "XX_httplib_getreq", "parent": 5, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 22}}, {"id": 7, "type": "parameter_list", "text": "( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err )", "parent": 5, "children": [8, 15, 22], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 79}}, {"id": 8, "type": "parameter_declaration", "text": "struct lh_ctx_t *ctx", "parent": 7, "children": [9, 12], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 44}}, {"id": 9, "type": "struct_specifier", "text": "struct lh_ctx_t", "parent": 8, "children": [10, 11], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 39}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 30}}, {"id": 11, "type": "type_identifier", "text": "lh_ctx_t", "parent": 9, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 39}}, {"id": 12, "type": "pointer_declarator", "text": "*ctx", "parent": 8, "children": [13, 14], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 44}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 41}}, {"id": 14, "type": "identifier", "text": "ctx", "parent": 12, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 44}}, {"id": 15, "type": "parameter_declaration", "text": "struct lh_con_t *conn", "parent": 7, "children": [16, 19], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 67}}, {"id": 16, "type": "struct_specifier", "text": "struct lh_con_t", "parent": 15, "children": [17, 18], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 61}}, {"id": 17, "type": "struct", "text": "struct", "parent": 16, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 52}}, {"id": 18, "type": "type_identifier", "text": "lh_con_t", "parent": 16, "children": [], "start_point": {"row": 35, "column": 53}, "end_point": {"row": 35, "column": 61}}, {"id": 19, "type": "pointer_declarator", "text": "*conn", "parent": 15, "children": [20, 21], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 67}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 63}}, {"id": 21, "type": "identifier", "text": "conn", "parent": 19, "children": [], "start_point": {"row": 35, "column": 63}, "end_point": {"row": 35, "column": 67}}, {"id": 22, "type": "parameter_declaration", "text": "int *err", "parent": 7, "children": [23, 24], "start_point": {"row": 35, "column": 69}, "end_point": {"row": 35, "column": 77}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 35, "column": 69}, "end_point": {"row": 35, "column": 72}}, {"id": 24, "type": "pointer_declarator", "text": "*err", "parent": 22, "children": [25, 26], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 77}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 74}}, {"id": 26, "type": "identifier", "text": "err", "parent": 24, "children": [], "start_point": {"row": 35, "column": 74}, "end_point": {"row": 35, "column": 77}}, {"id": 27, "type": "declaration", "text": "const char *cl;", "parent": 3, "children": [28, 29], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 16}}, {"id": 28, "type": "primitive_type", "text": "char", "parent": 27, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 11}}, {"id": 29, "type": "pointer_declarator", "text": "*cl", "parent": 27, "children": [30, 31], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 15}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 31, "type": "identifier", "text": "cl", "parent": 29, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 15}}, {"id": 32, "type": "if_statement", "text": "if ( ctx == NULL || err == NULL ) return false;", "parent": 3, "children": [33, 46], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 50}}, {"id": 33, "type": "parenthesized_expression", "text": "( ctx == NULL || err == NULL )", "parent": 32, "children": [34], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 36}}, {"id": 34, "type": "binary_expression", "text": "ctx == NULL || err == NULL", "parent": 33, "children": [35, 40, 41], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 34}}, {"id": 35, "type": "binary_expression", "text": "ctx == NULL", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 17}}, {"id": 36, "type": "identifier", "text": "ctx", "parent": 35, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 9}}, {"id": 37, "type": "==", "text": "==", "parent": 35, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 12}}, {"id": 38, "type": "null", "text": "NULL", "parent": 35, "children": [39], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 39, "type": "NULL", "text": "NULL", "parent": 38, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 40, "type": "||", "text": "||", "parent": 34, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 21}}, {"id": 41, "type": "binary_expression", "text": "err == NULL", "parent": 34, "children": [42, 43, 44], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 34}}, {"id": 42, "type": "identifier", "text": "err", "parent": 41, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 26}}, {"id": 43, "type": "==", "text": "==", "parent": 41, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 29}}, {"id": 44, "type": "null", "text": "NULL", "parent": 41, "children": [45], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 45, "type": "NULL", "text": "NULL", "parent": 44, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 46, "type": "return_statement", "text": "return false;", "parent": 32, "children": [47], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 50}}, {"id": 47, "type": "false", "text": "false", "parent": 46, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 49}}, {"id": 48, "type": "assignment_expression", "text": "*err = 0", "parent": 3, "children": [49, 52, 53], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 49, "type": "pointer_expression", "text": "*err", "parent": 48, "children": [50, 51], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 2}}, {"id": 51, "type": "identifier", "text": "err", "parent": 49, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 5}}, {"id": 52, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 7}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 48, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 54, "type": "if_statement", "text": "if ( conn == NULL ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: internal error\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}", "parent": 3, "children": [55], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 55, "type": "parenthesized_expression", "text": "( conn == NULL )", "parent": 54, "children": [56], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 20}}, {"id": 56, "type": "binary_expression", "text": "conn == NULL", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 18}}, {"id": 57, "type": "identifier", "text": "conn", "parent": 56, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 10}}, {"id": 58, "type": "==", "text": "==", "parent": 56, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 13}}, {"id": 59, "type": "null", "text": "NULL", "parent": 56, "children": [60], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 18}}, {"id": 60, "type": "NULL", "text": "NULL", "parent": 59, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 18}}, {"id": 61, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: internal error\", __func__ )", "parent": 54, "children": [62, 63], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 74}}, {"id": 62, "type": "identifier", "text": "httplib_cry", "parent": 61, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 13}}, {"id": 63, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: internal error\", __func__ )", "parent": 61, "children": [64, 65, 66, 67, 68], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 74}}, {"id": 64, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 63, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 29}}, {"id": 65, "type": "identifier", "text": "ctx", "parent": 63, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 34}}, {"id": 66, "type": "identifier", "text": "conn", "parent": 63, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 40}}, {"id": 67, "type": "string_literal", "text": "\"%s: internal error\"", "parent": 63, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 62}}, {"id": 68, "type": "identifier", "text": "__func__", "parent": 63, "children": [], "start_point": {"row": 45, "column": 64}, "end_point": {"row": 45, "column": 72}}, {"id": 69, "type": "assignment_expression", "text": "*err = 500", "parent": 54, "children": [70, 73, 74], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 12}}, {"id": 70, "type": "pointer_expression", "text": "*err", "parent": 69, "children": [71, 72], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 72, "type": "identifier", "text": "err", "parent": 70, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 6}}, {"id": 73, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 74, "type": "number_literal", "text": "500", "parent": 69, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 12}}, {"id": 75, "type": "return_statement", "text": "return false;", "parent": 54, "children": [76], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 15}}, {"id": 76, "type": "false", "text": "false", "parent": 75, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 14}}, {"id": 77, "type": "call_expression", "text": "XX_httplib_reset_per_request_attributes( conn )", "parent": 3, "children": [78, 79], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 48}}, {"id": 78, "type": "identifier", "text": "XX_httplib_reset_per_request_attributes", "parent": 77, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 40}}, {"id": 79, "type": "argument_list", "text": "( conn )", "parent": 77, "children": [80], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 48}}, {"id": 80, "type": "identifier", "text": "conn", "parent": 79, "children": [], "start_point": {"row": 50, "column": 42}, "end_point": {"row": 50, "column": 46}}, {"id": 81, "type": "call_expression", "text": "clock_gettime( CLOCK_MONOTONIC, &conn->req_time )", "parent": 3, "children": [82, 83], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 50}}, {"id": 82, "type": "identifier", "text": "clock_gettime", "parent": 81, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 83, "type": "argument_list", "text": "( CLOCK_MONOTONIC, &conn->req_time )", "parent": 81, "children": [84, 85], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 50}}, {"id": 84, "type": "identifier", "text": "CLOCK_MONOTONIC", "parent": 83, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 31}}, {"id": 85, "type": "pointer_expression", "text": "&conn->req_time", "parent": 83, "children": [86], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 48}}, {"id": 86, "type": "field_expression", "text": "conn->req_time", "parent": 85, "children": [87, 88], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 48}}, {"id": 87, "type": "identifier", "text": "conn", "parent": 86, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 38}}, {"id": 88, "type": "field_identifier", "text": "req_time", "parent": 86, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 48}}, {"id": 89, "type": "assignment_expression", "text": "conn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )", "parent": 3, "children": [90, 93, 94], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 107}}, {"id": 90, "type": "field_expression", "text": "conn->request_len", "parent": 89, "children": [91, 92], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 18}}, {"id": 91, "type": "identifier", "text": "conn", "parent": 90, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 5}}, {"id": 92, "type": "field_identifier", "text": "request_len", "parent": 90, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 18}}, {"id": 93, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 94, "type": "call_expression", "text": "XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )", "parent": 89, "children": [95, 96], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 107}}, {"id": 95, "type": "identifier", "text": "XX_httplib_read_request", "parent": 94, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 44}}, {"id": 96, "type": "argument_list", "text": "( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len )", "parent": 94, "children": [97, 98, 100, 101, 104, 107], "start_point": {"row": 59, "column": 44}, "end_point": {"row": 59, "column": 107}}, {"id": 97, "type": "identifier", "text": "ctx", "parent": 96, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 49}}, {"id": 98, "type": "null", "text": "NULL", "parent": 96, "children": [99], "start_point": {"row": 59, "column": 51}, "end_point": {"row": 59, "column": 55}}, {"id": 99, "type": "NULL", "text": "NULL", "parent": 98, "children": [], "start_point": {"row": 59, "column": 51}, "end_point": {"row": 59, "column": 55}}, {"id": 100, "type": "identifier", "text": "conn", "parent": 96, "children": [], "start_point": {"row": 59, "column": 57}, "end_point": {"row": 59, "column": 61}}, {"id": 101, "type": "field_expression", "text": "conn->buf", "parent": 96, "children": [102, 103], "start_point": {"row": 59, "column": 63}, "end_point": {"row": 59, "column": 72}}, {"id": 102, "type": "identifier", "text": "conn", "parent": 101, "children": [], "start_point": {"row": 59, "column": 63}, "end_point": {"row": 59, "column": 67}}, {"id": 103, "type": "field_identifier", "text": "buf", "parent": 101, "children": [], "start_point": {"row": 59, "column": 69}, "end_point": {"row": 59, "column": 72}}, {"id": 104, "type": "field_expression", "text": "conn->buf_size", "parent": 96, "children": [105, 106], "start_point": {"row": 59, "column": 74}, "end_point": {"row": 59, "column": 88}}, {"id": 105, "type": "identifier", "text": "conn", "parent": 104, "children": [], "start_point": {"row": 59, "column": 74}, "end_point": {"row": 59, "column": 78}}, {"id": 106, "type": "field_identifier", "text": "buf_size", "parent": 104, "children": [], "start_point": {"row": 59, "column": 80}, "end_point": {"row": 59, "column": 88}}, {"id": 107, "type": "pointer_expression", "text": "&conn->data_len", "parent": 96, "children": [108], "start_point": {"row": 59, "column": 90}, "end_point": {"row": 59, "column": 105}}, {"id": 108, "type": "field_expression", "text": "conn->data_len", "parent": 107, "children": [109, 110], "start_point": {"row": 59, "column": 91}, "end_point": {"row": 59, "column": 105}}, {"id": 109, "type": "identifier", "text": "conn", "parent": 108, "children": [], "start_point": {"row": 59, "column": 91}, "end_point": {"row": 59, "column": 95}}, {"id": 110, "type": "field_identifier", "text": "data_len", "parent": 108, "children": [], "start_point": {"row": 59, "column": 97}, "end_point": {"row": 59, "column": 105}}, {"id": 111, "type": "if_statement", "text": "if ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: invalid request size\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}", "parent": 3, "children": [112], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 70, "column": 2}}, {"id": 112, "type": "parenthesized_expression", "text": "( conn->request_len >= 0 && conn->data_len < conn->request_len )", "parent": 111, "children": [113], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 70}}, {"id": 113, "type": "binary_expression", "text": "conn->request_len >= 0 && conn->data_len < conn->request_len", "parent": 112, "children": [114, 120, 121], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 68}}, {"id": 114, "type": "binary_expression", "text": "conn->request_len >= 0", "parent": 113, "children": [115, 118, 119], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 28}}, {"id": 115, "type": "field_expression", "text": "conn->request_len", "parent": 114, "children": [116, 117], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 23}}, {"id": 116, "type": "identifier", "text": "conn", "parent": 115, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 10}}, {"id": 117, "type": "field_identifier", "text": "request_len", "parent": 115, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 23}}, {"id": 118, "type": ">=", "text": ">=", "parent": 114, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 26}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 114, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 28}}, {"id": 120, "type": "&&", "text": "&&", "parent": 113, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 32}}, {"id": 121, "type": "binary_expression", "text": "conn->data_len < conn->request_len", "parent": 113, "children": [122, 125, 126], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 68}}, {"id": 122, "type": "field_expression", "text": "conn->data_len", "parent": 121, "children": [123, 124], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 48}}, {"id": 123, "type": "identifier", "text": "conn", "parent": 122, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 38}}, {"id": 124, "type": "field_identifier", "text": "data_len", "parent": 122, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 48}}, {"id": 125, "type": "<", "text": "<", "parent": 121, "children": [], "start_point": {"row": 65, "column": 49}, "end_point": {"row": 65, "column": 50}}, {"id": 126, "type": "field_expression", "text": "conn->request_len", "parent": 121, "children": [127, 128], "start_point": {"row": 65, "column": 51}, "end_point": {"row": 65, "column": 68}}, {"id": 127, "type": "identifier", "text": "conn", "parent": 126, "children": [], "start_point": {"row": 65, "column": 51}, "end_point": {"row": 65, "column": 55}}, {"id": 128, "type": "field_identifier", "text": "request_len", "parent": 126, "children": [], "start_point": {"row": 65, "column": 57}, "end_point": {"row": 65, "column": 68}}, {"id": 129, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: invalid request size\", __func__ )", "parent": 111, "children": [130, 131], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 80}}, {"id": 130, "type": "identifier", "text": "httplib_cry", "parent": 129, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 13}}, {"id": 131, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: invalid request size\", __func__ )", "parent": 129, "children": [132, 133, 134, 135, 136], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 80}}, {"id": 132, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 131, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 29}}, {"id": 133, "type": "identifier", "text": "ctx", "parent": 131, "children": [], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 34}}, {"id": 134, "type": "identifier", "text": "conn", "parent": 131, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 40}}, {"id": 135, "type": "string_literal", "text": "\"%s: invalid request size\"", "parent": 131, "children": [], "start_point": {"row": 67, "column": 42}, "end_point": {"row": 67, "column": 68}}, {"id": 136, "type": "identifier", "text": "__func__", "parent": 131, "children": [], "start_point": {"row": 67, "column": 70}, "end_point": {"row": 67, "column": 78}}, {"id": 137, "type": "assignment_expression", "text": "*err = 500", "parent": 111, "children": [138, 141, 142], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 12}}, {"id": 138, "type": "pointer_expression", "text": "*err", "parent": 137, "children": [139, 140], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 6}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 3}}, {"id": 140, "type": "identifier", "text": "err", "parent": 138, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 6}}, {"id": 141, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 8}}, {"id": 142, "type": "number_literal", "text": "500", "parent": 137, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 12}}, {"id": 143, "type": "return_statement", "text": "return false;", "parent": 111, "children": [144], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 15}}, {"id": 144, "type": "false", "text": "false", "parent": 143, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 14}}, {"id": 145, "type": "if_statement", "text": "if ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: request too large\", __func__ );\n\t\t*err = 413;\n\t\treturn false;\n\t}\n\t\n\telse if ( conn->request_len <= 0 ) {\n\n\t\tif ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\telse if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 3, "children": [146, 179], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 146, "type": "parenthesized_expression", "text": "( conn->request_len == 0 && conn->data_len == conn->buf_size )", "parent": 145, "children": [147], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 68}}, {"id": 147, "type": "binary_expression", "text": "conn->request_len == 0 && conn->data_len == conn->buf_size", "parent": 146, "children": [148, 154, 155], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 66}}, {"id": 148, "type": "binary_expression", "text": "conn->request_len == 0", "parent": 147, "children": [149, 152, 153], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 28}}, {"id": 149, "type": "field_expression", "text": "conn->request_len", "parent": 148, "children": [150, 151], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 23}}, {"id": 150, "type": "identifier", "text": "conn", "parent": 149, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 10}}, {"id": 151, "type": "field_identifier", "text": "request_len", "parent": 149, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 23}}, {"id": 152, "type": "==", "text": "==", "parent": 148, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 26}}, {"id": 153, "type": "number_literal", "text": "0", "parent": 148, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 28}}, {"id": 154, "type": "&&", "text": "&&", "parent": 147, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 32}}, {"id": 155, "type": "binary_expression", "text": "conn->data_len == conn->buf_size", "parent": 147, "children": [156, 159, 160], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 66}}, {"id": 156, "type": "field_expression", "text": "conn->data_len", "parent": 155, "children": [157, 158], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 48}}, {"id": 157, "type": "identifier", "text": "conn", "parent": 156, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 38}}, {"id": 158, "type": "field_identifier", "text": "data_len", "parent": 156, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 48}}, {"id": 159, "type": "==", "text": "==", "parent": 155, "children": [], "start_point": {"row": 72, "column": 49}, "end_point": {"row": 72, "column": 51}}, {"id": 160, "type": "field_expression", "text": "conn->buf_size", "parent": 155, "children": [161, 162], "start_point": {"row": 72, "column": 52}, "end_point": {"row": 72, "column": 66}}, {"id": 161, "type": "identifier", "text": "conn", "parent": 160, "children": [], "start_point": {"row": 72, "column": 52}, "end_point": {"row": 72, "column": 56}}, {"id": 162, "type": "field_identifier", "text": "buf_size", "parent": 160, "children": [], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 66}}, {"id": 163, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: request too large\", __func__ )", "parent": 145, "children": [164, 165], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 77}}, {"id": 164, "type": "identifier", "text": "httplib_cry", "parent": 163, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 13}}, {"id": 165, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: request too large\", __func__ )", "parent": 163, "children": [166, 167, 168, 169, 170], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 77}}, {"id": 166, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 165, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 29}}, {"id": 167, "type": "identifier", "text": "ctx", "parent": 165, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 34}}, {"id": 168, "type": "identifier", "text": "conn", "parent": 165, "children": [], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 40}}, {"id": 169, "type": "string_literal", "text": "\"%s: request too large\"", "parent": 165, "children": [], "start_point": {"row": 74, "column": 42}, "end_point": {"row": 74, "column": 65}}, {"id": 170, "type": "identifier", "text": "__func__", "parent": 165, "children": [], "start_point": {"row": 74, "column": 67}, "end_point": {"row": 74, "column": 75}}, {"id": 171, "type": "assignment_expression", "text": "*err = 413", "parent": 145, "children": [172, 175, 176], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 12}}, {"id": 172, "type": "pointer_expression", "text": "*err", "parent": 171, "children": [173, 174], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 174, "type": "identifier", "text": "err", "parent": 172, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 6}}, {"id": 175, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 8}}, {"id": 176, "type": "number_literal", "text": "413", "parent": 171, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 12}}, {"id": 177, "type": "return_statement", "text": "return false;", "parent": 145, "children": [178], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 15}}, {"id": 178, "type": "false", "text": "false", "parent": 177, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 14}}, {"id": 179, "type": "else_clause", "text": "else if ( conn->request_len <= 0 ) {\n\n\t\tif ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\telse if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 145, "children": [180], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 180, "type": "if_statement", "text": "if ( conn->request_len <= 0 ) {\n\n\t\tif ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\telse if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 179, "children": [181, 233], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 164, "column": 2}}, {"id": 181, "type": "parenthesized_expression", "text": "( conn->request_len <= 0 )", "parent": 180, "children": [182], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 35}}, {"id": 182, "type": "binary_expression", "text": "conn->request_len <= 0", "parent": 181, "children": [183, 186, 187], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 33}}, {"id": 183, "type": "field_expression", "text": "conn->request_len", "parent": 182, "children": [184, 185], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 28}}, {"id": 184, "type": "identifier", "text": "conn", "parent": 183, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 15}}, {"id": 185, "type": "field_identifier", "text": "request_len", "parent": 183, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 28}}, {"id": 186, "type": "<=", "text": "<=", "parent": 182, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 31}}, {"id": 187, "type": "number_literal", "text": "0", "parent": 182, "children": [], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 33}}, {"id": 188, "type": "if_statement", "text": "if ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}", "parent": 180, "children": [189, 210], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 96, "column": 3}}, {"id": 189, "type": "parenthesized_expression", "text": "( conn->data_len > 0 )", "parent": 188, "children": [190], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 27}}, {"id": 190, "type": "binary_expression", "text": "conn->data_len > 0", "parent": 189, "children": [191, 194, 195], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 25}}, {"id": 191, "type": "field_expression", "text": "conn->data_len", "parent": 190, "children": [192, 193], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 21}}, {"id": 192, "type": "identifier", "text": "conn", "parent": 191, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}, {"id": 193, "type": "field_identifier", "text": "data_len", "parent": 191, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 21}}, {"id": 194, "type": ">", "text": ">", "parent": 190, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 23}}, {"id": 195, "type": "number_literal", "text": "0", "parent": 190, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 25}}, {"id": 196, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ )", "parent": 188, "children": [197, 198], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 90}}, {"id": 197, "type": "identifier", "text": "httplib_cry", "parent": 196, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 14}}, {"id": 198, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ )", "parent": 196, "children": [199, 200, 201, 202, 203], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 90}}, {"id": 199, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 198, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 30}}, {"id": 200, "type": "identifier", "text": "ctx", "parent": 198, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 35}}, {"id": 201, "type": "identifier", "text": "conn", "parent": 198, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 41}}, {"id": 202, "type": "string_literal", "text": "\"%s: client sent malformed request\"", "parent": 198, "children": [], "start_point": {"row": 83, "column": 43}, "end_point": {"row": 83, "column": 78}}, {"id": 203, "type": "identifier", "text": "__func__", "parent": 198, "children": [], "start_point": {"row": 83, "column": 80}, "end_point": {"row": 83, "column": 88}}, {"id": 204, "type": "assignment_expression", "text": "*err = 400", "parent": 188, "children": [205, 208, 209], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 13}}, {"id": 205, "type": "pointer_expression", "text": "*err", "parent": 204, "children": [206, 207], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 7}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 4}}, {"id": 207, "type": "identifier", "text": "err", "parent": 205, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 7}}, {"id": 208, "type": "=", "text": "=", "parent": 204, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 9}}, {"id": 209, "type": "number_literal", "text": "400", "parent": 204, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 13}}, {"id": 210, "type": "else_clause", "text": "else {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}", "parent": 188, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 96, "column": 3}}, {"id": 211, "type": "assignment_expression", "text": "conn->must_close = true", "parent": 210, "children": [212, 215, 216], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 26}}, {"id": 212, "type": "field_expression", "text": "conn->must_close", "parent": 211, "children": [213, 214], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 19}}, {"id": 213, "type": "identifier", "text": "conn", "parent": 212, "children": [], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 7}}, {"id": 214, "type": "field_identifier", "text": "must_close", "parent": 212, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 19}}, {"id": 215, "type": "=", "text": "=", "parent": 211, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 21}}, {"id": 216, "type": "true", "text": "true", "parent": 211, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 26}}, {"id": 217, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ )", "parent": 210, "children": [218, 219], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 92}}, {"id": 218, "type": "identifier", "text": "httplib_cry", "parent": 217, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 14}}, {"id": 219, "type": "argument_list", "text": "( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ )", "parent": 217, "children": [220, 221, 222, 223, 224], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 92}}, {"id": 220, "type": "identifier", "text": "LH_DEBUG_WARNING", "parent": 219, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 32}}, {"id": 221, "type": "identifier", "text": "ctx", "parent": 219, "children": [], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 37}}, {"id": 222, "type": "identifier", "text": "conn", "parent": 219, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 43}}, {"id": 223, "type": "string_literal", "text": "\"%s: client did not send a request\"", "parent": 219, "children": [], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 80}}, {"id": 224, "type": "identifier", "text": "__func__", "parent": 219, "children": [], "start_point": {"row": 94, "column": 82}, "end_point": {"row": 94, "column": 90}}, {"id": 225, "type": "assignment_expression", "text": "*err = 0", "parent": 210, "children": [226, 229, 230], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 11}}, {"id": 226, "type": "pointer_expression", "text": "*err", "parent": 225, "children": [227, 228], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 7}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 4}}, {"id": 228, "type": "identifier", "text": "err", "parent": 226, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 7}}, {"id": 229, "type": "=", "text": "=", "parent": 225, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 230, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 11}}, {"id": 231, "type": "return_statement", "text": "return false;", "parent": 180, "children": [232], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 15}}, {"id": 232, "type": "false", "text": "false", "parent": 231, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 14}}, {"id": 233, "type": "else_clause", "text": "else if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 180, "children": [234], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 234, "type": "if_statement", "text": "if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 233, "children": [235, 268], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 164, "column": 2}}, {"id": 235, "type": "parenthesized_expression", "text": "( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 )", "parent": 234, "children": [236], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 97}}, {"id": 236, "type": "binary_expression", "text": "XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0", "parent": 235, "children": [237, 250, 251], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 95}}, {"id": 237, "type": "call_expression", "text": "XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info )", "parent": 236, "children": [238, 239], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 90}}, {"id": 238, "type": "identifier", "text": "XX_httplib_parse_http_message", "parent": 237, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 40}}, {"id": 239, "type": "argument_list", "text": "( conn->buf, conn->buf_size, &conn->request_info )", "parent": 237, "children": [240, 243, 246], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 90}}, {"id": 240, "type": "field_expression", "text": "conn->buf", "parent": 239, "children": [241, 242], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 51}}, {"id": 241, "type": "identifier", "text": "conn", "parent": 240, "children": [], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 46}}, {"id": 242, "type": "field_identifier", "text": "buf", "parent": 240, "children": [], "start_point": {"row": 100, "column": 48}, "end_point": {"row": 100, "column": 51}}, {"id": 243, "type": "field_expression", "text": "conn->buf_size", "parent": 239, "children": [244, 245], "start_point": {"row": 100, "column": 53}, "end_point": {"row": 100, "column": 67}}, {"id": 244, "type": "identifier", "text": "conn", "parent": 243, "children": [], "start_point": {"row": 100, "column": 53}, "end_point": {"row": 100, "column": 57}}, {"id": 245, "type": "field_identifier", "text": "buf_size", "parent": 243, "children": [], "start_point": {"row": 100, "column": 59}, "end_point": {"row": 100, "column": 67}}, {"id": 246, "type": "pointer_expression", "text": "&conn->request_info", "parent": 239, "children": [247], "start_point": {"row": 100, "column": 69}, "end_point": {"row": 100, "column": 88}}, {"id": 247, "type": "field_expression", "text": "conn->request_info", "parent": 246, "children": [248, 249], "start_point": {"row": 100, "column": 70}, "end_point": {"row": 100, "column": 88}}, {"id": 248, "type": "identifier", "text": "conn", "parent": 247, "children": [], "start_point": {"row": 100, "column": 70}, "end_point": {"row": 100, "column": 74}}, {"id": 249, "type": "field_identifier", "text": "request_info", "parent": 247, "children": [], "start_point": {"row": 100, "column": 76}, "end_point": {"row": 100, "column": 88}}, {"id": 250, "type": "<=", "text": "<=", "parent": 236, "children": [], "start_point": {"row": 100, "column": 91}, "end_point": {"row": 100, "column": 93}}, {"id": 251, "type": "number_literal", "text": "0", "parent": 236, "children": [], "start_point": {"row": 100, "column": 94}, "end_point": {"row": 100, "column": 95}}, {"id": 252, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ )", "parent": 234, "children": [253, 254], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 71}}, {"id": 253, "type": "identifier", "text": "httplib_cry", "parent": 252, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 13}}, {"id": 254, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ )", "parent": 252, "children": [255, 256, 257, 258, 259], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 71}}, {"id": 255, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 254, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 29}}, {"id": 256, "type": "identifier", "text": "ctx", "parent": 254, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 34}}, {"id": 257, "type": "identifier", "text": "conn", "parent": 254, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 40}}, {"id": 258, "type": "string_literal", "text": "\"%s: bad request\"", "parent": 254, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 59}}, {"id": 259, "type": "identifier", "text": "__func__", "parent": 254, "children": [], "start_point": {"row": 102, "column": 61}, "end_point": {"row": 102, "column": 69}}, {"id": 260, "type": "assignment_expression", "text": "*err = 400", "parent": 234, "children": [261, 264, 265], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 12}}, {"id": 261, "type": "pointer_expression", "text": "*err", "parent": 260, "children": [262, 263], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 6}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 3}}, {"id": 263, "type": "identifier", "text": "err", "parent": 261, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 6}}, {"id": 264, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 265, "type": "number_literal", "text": "400", "parent": 260, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 12}}, {"id": 266, "type": "return_statement", "text": "return false;", "parent": 234, "children": [267], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 15}}, {"id": 267, "type": "false", "text": "false", "parent": 266, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 14}}, {"id": 268, "type": "else_clause", "text": "else {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}", "parent": 234, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 269, "type": "if_statement", "text": "if ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 268, "children": [270, 340], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 270, "type": "parenthesized_expression", "text": "( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL )", "parent": 269, "children": [271], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 85}}, {"id": 271, "type": "binary_expression", "text": "(cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL", "parent": 270, "children": [272, 284, 285], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 83}}, {"id": 272, "type": "parenthesized_expression", "text": "(cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\"))", "parent": 271, "children": [273], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 75}}, {"id": 273, "type": "assignment_expression", "text": "cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")", "parent": 272, "children": [274, 275, 276], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 74}}, {"id": 274, "type": "identifier", "text": "cl", "parent": 273, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 10}}, {"id": 275, "type": "=", "text": "=", "parent": 273, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 12}}, {"id": 276, "type": "call_expression", "text": "XX_httplib_get_header( &conn->request_info, \"Content-Length\")", "parent": 273, "children": [277, 278], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 74}}, {"id": 277, "type": "identifier", "text": "XX_httplib_get_header", "parent": 276, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 34}}, {"id": 278, "type": "argument_list", "text": "( &conn->request_info, \"Content-Length\")", "parent": 276, "children": [279, 283], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 74}}, {"id": 279, "type": "pointer_expression", "text": "&conn->request_info", "parent": 278, "children": [280], "start_point": {"row": 112, "column": 36}, "end_point": {"row": 112, "column": 55}}, {"id": 280, "type": "field_expression", "text": "conn->request_info", "parent": 279, "children": [281, 282], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 55}}, {"id": 281, "type": "identifier", "text": "conn", "parent": 280, "children": [], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 41}}, {"id": 282, "type": "field_identifier", "text": "request_info", "parent": 280, "children": [], "start_point": {"row": 112, "column": 43}, "end_point": {"row": 112, "column": 55}}, {"id": 283, "type": "string_literal", "text": "\"Content-Length\"", "parent": 278, "children": [], "start_point": {"row": 112, "column": 57}, "end_point": {"row": 112, "column": 73}}, {"id": 284, "type": "!=", "text": "!=", "parent": 271, "children": [], "start_point": {"row": 112, "column": 76}, "end_point": {"row": 112, "column": 78}}, {"id": 285, "type": "null", "text": "NULL", "parent": 271, "children": [286], "start_point": {"row": 112, "column": 79}, "end_point": {"row": 112, "column": 83}}, {"id": 286, "type": "NULL", "text": "NULL", "parent": 285, "children": [], "start_point": {"row": 112, "column": 79}, "end_point": {"row": 112, "column": 83}}, {"id": 287, "type": "declaration", "text": "char *endptr = NULL;", "parent": 269, "children": [288, 289], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 23}}, {"id": 288, "type": "primitive_type", "text": "char", "parent": 287, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 7}}, {"id": 289, "type": "init_declarator", "text": "*endptr = NULL", "parent": 287, "children": [290, 293, 294], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 22}}, {"id": 290, "type": "pointer_declarator", "text": "*endptr", "parent": 289, "children": [291, 292], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 15}}, {"id": 291, "type": "*", "text": "*", "parent": 290, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 9}}, {"id": 292, "type": "identifier", "text": "endptr", "parent": 290, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 15}}, {"id": 293, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 294, "type": "null", "text": "NULL", "parent": 289, "children": [295], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 22}}, {"id": 295, "type": "NULL", "text": "NULL", "parent": 294, "children": [], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 22}}, {"id": 296, "type": "assignment_expression", "text": "conn->content_len = strtoll( cl, &endptr, 10 )", "parent": 269, "children": [297, 300, 301], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 49}}, {"id": 297, "type": "field_expression", "text": "conn->content_len", "parent": 296, "children": [298, 299], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 20}}, {"id": 298, "type": "identifier", "text": "conn", "parent": 297, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 7}}, {"id": 299, "type": "field_identifier", "text": "content_len", "parent": 297, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 20}}, {"id": 300, "type": "=", "text": "=", "parent": 296, "children": [], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 22}}, {"id": 301, "type": "call_expression", "text": "strtoll( cl, &endptr, 10 )", "parent": 296, "children": [302, 303], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 49}}, {"id": 302, "type": "identifier", "text": "strtoll", "parent": 301, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 30}}, {"id": 303, "type": "argument_list", "text": "( cl, &endptr, 10 )", "parent": 301, "children": [304, 305, 307], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 49}}, {"id": 304, "type": "identifier", "text": "cl", "parent": 303, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 34}}, {"id": 305, "type": "pointer_expression", "text": "&endptr", "parent": 303, "children": [306], "start_point": {"row": 119, "column": 36}, "end_point": {"row": 119, "column": 43}}, {"id": 306, "type": "identifier", "text": "endptr", "parent": 305, "children": [], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 43}}, {"id": 307, "type": "number_literal", "text": "10", "parent": 303, "children": [], "start_point": {"row": 119, "column": 45}, "end_point": {"row": 119, "column": 47}}, {"id": 308, "type": "if_statement", "text": "if ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}", "parent": 269, "children": [309], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 126, "column": 4}}, {"id": 309, "type": "parenthesized_expression", "text": "( endptr == cl )", "parent": 308, "children": [310], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 22}}, {"id": 310, "type": "binary_expression", "text": "endptr == cl", "parent": 309, "children": [311, 312, 313], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 20}}, {"id": 311, "type": "identifier", "text": "endptr", "parent": 310, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 14}}, {"id": 312, "type": "==", "text": "==", "parent": 310, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 17}}, {"id": 313, "type": "identifier", "text": "cl", "parent": 310, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 20}}, {"id": 314, "type": "call_expression", "text": "httplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ )", "parent": 308, "children": [315, 316], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 73}}, {"id": 315, "type": "identifier", "text": "httplib_cry", "parent": 314, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 15}}, {"id": 316, "type": "argument_list", "text": "( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ )", "parent": 314, "children": [317, 318, 319, 320, 321], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 73}}, {"id": 317, "type": "identifier", "text": "LH_DEBUG_ERROR", "parent": 316, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 31}}, {"id": 318, "type": "identifier", "text": "ctx", "parent": 316, "children": [], "start_point": {"row": 123, "column": 33}, "end_point": {"row": 123, "column": 36}}, {"id": 319, "type": "identifier", "text": "conn", "parent": 316, "children": [], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 42}}, {"id": 320, "type": "string_literal", "text": "\"%s: bad request\"", "parent": 316, "children": [], "start_point": {"row": 123, "column": 44}, "end_point": {"row": 123, "column": 61}}, {"id": 321, "type": "identifier", "text": "__func__", "parent": 316, "children": [], "start_point": {"row": 123, "column": 63}, "end_point": {"row": 123, "column": 71}}, {"id": 322, "type": "assignment_expression", "text": "*err = 411", "parent": 308, "children": [323, 326, 327], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 14}}, {"id": 323, "type": "pointer_expression", "text": "*err", "parent": 322, "children": [324, 325], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 8}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 5}}, {"id": 325, "type": "identifier", "text": "err", "parent": 323, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 8}}, {"id": 326, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 10}}, {"id": 327, "type": "number_literal", "text": "411", "parent": 322, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 14}}, {"id": 328, "type": "return_statement", "text": "return false;", "parent": 308, "children": [329], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 17}}, {"id": 329, "type": "false", "text": "false", "parent": 328, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 16}}, {"id": 330, "type": "assignment_expression", "text": "conn->request_info.content_length = conn->content_len", "parent": 269, "children": [331, 336, 337], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 56}}, {"id": 331, "type": "field_expression", "text": "conn->request_info.content_length", "parent": 330, "children": [332, 335], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 36}}, {"id": 332, "type": "field_expression", "text": "conn->request_info", "parent": 331, "children": [333, 334], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 21}}, {"id": 333, "type": "identifier", "text": "conn", "parent": 332, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 7}}, {"id": 334, "type": "field_identifier", "text": "request_info", "parent": 332, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 21}}, {"id": 335, "type": "field_identifier", "text": "content_length", "parent": 331, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 36}}, {"id": 336, "type": "=", "text": "=", "parent": 330, "children": [], "start_point": {"row": 132, "column": 37}, "end_point": {"row": 132, "column": 38}}, {"id": 337, "type": "field_expression", "text": "conn->content_len", "parent": 330, "children": [338, 339], "start_point": {"row": 132, "column": 39}, "end_point": {"row": 132, "column": 56}}, {"id": 338, "type": "identifier", "text": "conn", "parent": 337, "children": [], "start_point": {"row": 132, "column": 39}, "end_point": {"row": 132, "column": 43}}, {"id": 339, "type": "field_identifier", "text": "content_len", "parent": 337, "children": [], "start_point": {"row": 132, "column": 45}, "end_point": {"row": 132, "column": 56}}, {"id": 340, "type": "else_clause", "text": "else if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 269, "children": [341], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 341, "type": "if_statement", "text": "if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 340, "children": [342, 374], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 163, "column": 3}}, {"id": 342, "type": "parenthesized_expression", "text": "( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) )", "parent": 341, "children": [343], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 137}}, {"id": 343, "type": "binary_expression", "text": "(cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" )", "parent": 342, "children": [344, 360, 361], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 135}}, {"id": 344, "type": "binary_expression", "text": "(cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL", "parent": 343, "children": [345, 357, 358], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 92}}, {"id": 345, "type": "parenthesized_expression", "text": "(cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" ))", "parent": 344, "children": [346], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 84}}, {"id": 346, "type": "assignment_expression", "text": "cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )", "parent": 345, "children": [347, 348, 349], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 83}}, {"id": 347, "type": "identifier", "text": "cl", "parent": 346, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 15}}, {"id": 348, "type": "=", "text": "=", "parent": 346, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 17}}, {"id": 349, "type": "call_expression", "text": "XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )", "parent": 346, "children": [350, 351], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 83}}, {"id": 350, "type": "identifier", "text": "XX_httplib_get_header", "parent": 349, "children": [], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 39}}, {"id": 351, "type": "argument_list", "text": "( &conn->request_info, \"Transfer-Encoding\" )", "parent": 349, "children": [352, 356], "start_point": {"row": 135, "column": 39}, "end_point": {"row": 135, "column": 83}}, {"id": 352, "type": "pointer_expression", "text": "&conn->request_info", "parent": 351, "children": [353], "start_point": {"row": 135, "column": 41}, "end_point": {"row": 135, "column": 60}}, {"id": 353, "type": "field_expression", "text": "conn->request_info", "parent": 352, "children": [354, 355], "start_point": {"row": 135, "column": 42}, "end_point": {"row": 135, "column": 60}}, {"id": 354, "type": "identifier", "text": "conn", "parent": 353, "children": [], "start_point": {"row": 135, "column": 42}, "end_point": {"row": 135, "column": 46}}, {"id": 355, "type": "field_identifier", "text": "request_info", "parent": 353, "children": [], "start_point": {"row": 135, "column": 48}, "end_point": {"row": 135, "column": 60}}, {"id": 356, "type": "string_literal", "text": "\"Transfer-Encoding\"", "parent": 351, "children": [], "start_point": {"row": 135, "column": 62}, "end_point": {"row": 135, "column": 81}}, {"id": 357, "type": "!=", "text": "!=", "parent": 344, "children": [], "start_point": {"row": 135, "column": 85}, "end_point": {"row": 135, "column": 87}}, {"id": 358, "type": "null", "text": "NULL", "parent": 344, "children": [359], "start_point": {"row": 135, "column": 88}, "end_point": {"row": 135, "column": 92}}, {"id": 359, "type": "NULL", "text": "NULL", "parent": 358, "children": [], "start_point": {"row": 135, "column": 88}, "end_point": {"row": 135, "column": 92}}, {"id": 360, "type": "&&", "text": "&&", "parent": 343, "children": [], "start_point": {"row": 135, "column": 94}, "end_point": {"row": 135, "column": 96}}, {"id": 361, "type": "unary_expression", "text": "! httplib_strcasecmp( cl, \"chunked\" )", "parent": 343, "children": [362, 363], "start_point": {"row": 135, "column": 98}, "end_point": {"row": 135, "column": 135}}, {"id": 362, "type": "!", "text": "!", "parent": 361, "children": [], "start_point": {"row": 135, "column": 98}, "end_point": {"row": 135, "column": 99}}, {"id": 363, "type": "call_expression", "text": "httplib_strcasecmp( cl, \"chunked\" )", "parent": 361, "children": [364, 365], "start_point": {"row": 135, "column": 100}, "end_point": {"row": 135, "column": 135}}, {"id": 364, "type": "identifier", "text": "httplib_strcasecmp", "parent": 363, "children": [], "start_point": {"row": 135, "column": 100}, "end_point": {"row": 135, "column": 118}}, {"id": 365, "type": "argument_list", "text": "( cl, \"chunked\" )", "parent": 363, "children": [366, 367], "start_point": {"row": 135, "column": 118}, "end_point": {"row": 135, "column": 135}}, {"id": 366, "type": "identifier", "text": "cl", "parent": 365, "children": [], "start_point": {"row": 135, "column": 120}, "end_point": {"row": 135, "column": 122}}, {"id": 367, "type": "string_literal", "text": "\"chunked\"", "parent": 365, "children": [], "start_point": {"row": 135, "column": 124}, "end_point": {"row": 135, "column": 133}}, {"id": 368, "type": "assignment_expression", "text": "conn->is_chunked = 1", "parent": 341, "children": [369, 372, 373], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 23}}, {"id": 369, "type": "field_expression", "text": "conn->is_chunked", "parent": 368, "children": [370, 371], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 19}}, {"id": 370, "type": "identifier", "text": "conn", "parent": 369, "children": [], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 7}}, {"id": 371, "type": "field_identifier", "text": "is_chunked", "parent": 369, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 19}}, {"id": 372, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 137, "column": 20}, "end_point": {"row": 137, "column": 21}}, {"id": 373, "type": "number_literal", "text": "1", "parent": 368, "children": [], "start_point": {"row": 137, "column": 22}, "end_point": {"row": 137, "column": 23}}, {"id": 374, "type": "else_clause", "text": "else if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 341, "children": [375], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 375, "type": "if_statement", "text": "if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 374, "children": [376, 407], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 163, "column": 3}}, {"id": 376, "type": "parenthesized_expression", "text": "( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) )", "parent": 375, "children": [377], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 149}}, {"id": 377, "type": "binary_expression", "text": "! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" )", "parent": 376, "children": [378, 389, 390], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 147}}, {"id": 378, "type": "unary_expression", "text": "! httplib_strcasecmp( conn->request_info.request_method, \"POST\" )", "parent": 377, "children": [379, 380], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 77}}, {"id": 379, "type": "!", "text": "!", "parent": 378, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 13}}, {"id": 380, "type": "call_expression", "text": "httplib_strcasecmp( conn->request_info.request_method, \"POST\" )", "parent": 378, "children": [381, 382], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 77}}, {"id": 381, "type": "identifier", "text": "httplib_strcasecmp", "parent": 380, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 32}}, {"id": 382, "type": "argument_list", "text": "( conn->request_info.request_method, \"POST\" )", "parent": 380, "children": [383, 388], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 77}}, {"id": 383, "type": "field_expression", "text": "conn->request_info.request_method", "parent": 382, "children": [384, 387], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 67}}, {"id": 384, "type": "field_expression", "text": "conn->request_info", "parent": 383, "children": [385, 386], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 52}}, {"id": 385, "type": "identifier", "text": "conn", "parent": 384, "children": [], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 38}}, {"id": 386, "type": "field_identifier", "text": "request_info", "parent": 384, "children": [], "start_point": {"row": 140, "column": 40}, "end_point": {"row": 140, "column": 52}}, {"id": 387, "type": "field_identifier", "text": "request_method", "parent": 383, "children": [], "start_point": {"row": 140, "column": 53}, "end_point": {"row": 140, "column": 67}}, {"id": 388, "type": "string_literal", "text": "\"POST\"", "parent": 382, "children": [], "start_point": {"row": 140, "column": 69}, "end_point": {"row": 140, "column": 75}}, {"id": 389, "type": "||", "text": "||", "parent": 377, "children": [], "start_point": {"row": 140, "column": 79}, "end_point": {"row": 140, "column": 81}}, {"id": 390, "type": "unary_expression", "text": "! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" )", "parent": 377, "children": [391, 392], "start_point": {"row": 140, "column": 83}, "end_point": {"row": 140, "column": 147}}, {"id": 391, "type": "!", "text": "!", "parent": 390, "children": [], "start_point": {"row": 140, "column": 83}, "end_point": {"row": 140, "column": 84}}, {"id": 392, "type": "call_expression", "text": "httplib_strcasecmp( conn->request_info.request_method, \"PUT\" )", "parent": 390, "children": [393, 394], "start_point": {"row": 140, "column": 85}, "end_point": {"row": 140, "column": 147}}, {"id": 393, "type": "identifier", "text": "httplib_strcasecmp", "parent": 392, "children": [], "start_point": {"row": 140, "column": 85}, "end_point": {"row": 140, "column": 103}}, {"id": 394, "type": "argument_list", "text": "( conn->request_info.request_method, \"PUT\" )", "parent": 392, "children": [395, 400], "start_point": {"row": 140, "column": 103}, "end_point": {"row": 140, "column": 147}}, {"id": 395, "type": "field_expression", "text": "conn->request_info.request_method", "parent": 394, "children": [396, 399], "start_point": {"row": 140, "column": 105}, "end_point": {"row": 140, "column": 138}}, {"id": 396, "type": "field_expression", "text": "conn->request_info", "parent": 395, "children": [397, 398], "start_point": {"row": 140, "column": 105}, "end_point": {"row": 140, "column": 123}}, {"id": 397, "type": "identifier", "text": "conn", "parent": 396, "children": [], "start_point": {"row": 140, "column": 105}, "end_point": {"row": 140, "column": 109}}, {"id": 398, "type": "field_identifier", "text": "request_info", "parent": 396, "children": [], "start_point": {"row": 140, "column": 111}, "end_point": {"row": 140, "column": 123}}, {"id": 399, "type": "field_identifier", "text": "request_method", "parent": 395, "children": [], "start_point": {"row": 140, "column": 124}, "end_point": {"row": 140, "column": 138}}, {"id": 400, "type": "string_literal", "text": "\"PUT\"", "parent": 394, "children": [], "start_point": {"row": 140, "column": 140}, "end_point": {"row": 140, "column": 145}}, {"id": 401, "type": "assignment_expression", "text": "conn->content_len = -1", "parent": 375, "children": [402, 405, 406], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 25}}, {"id": 402, "type": "field_expression", "text": "conn->content_len", "parent": 401, "children": [403, 404], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 20}}, {"id": 403, "type": "identifier", "text": "conn", "parent": 402, "children": [], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 7}}, {"id": 404, "type": "field_identifier", "text": "content_len", "parent": 402, "children": [], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 20}}, {"id": 405, "type": "=", "text": "=", "parent": 401, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 22}}, {"id": 406, "type": "number_literal", "text": "-1", "parent": 401, "children": [], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 25}}, {"id": 407, "type": "else_clause", "text": "else if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 375, "children": [408], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 408, "type": "if_statement", "text": "if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 407, "children": [409, 428], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 163, "column": 3}}, {"id": 409, "type": "parenthesized_expression", "text": "( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) )", "parent": 408, "children": [410], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 84}}, {"id": 410, "type": "unary_expression", "text": "! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 )", "parent": 409, "children": [411, 412], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 82}}, {"id": 411, "type": "!", "text": "!", "parent": 410, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 13}}, {"id": 412, "type": "call_expression", "text": "httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 )", "parent": 410, "children": [413, 414], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 82}}, {"id": 413, "type": "identifier", "text": "httplib_strncasecmp", "parent": 412, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 33}}, {"id": 414, "type": "argument_list", "text": "( conn->request_info.request_method, \"HTTP/\", 5 )", "parent": 412, "children": [415, 420, 421], "start_point": {"row": 149, "column": 33}, "end_point": {"row": 149, "column": 82}}, {"id": 415, "type": "field_expression", "text": "conn->request_info.request_method", "parent": 414, "children": [416, 419], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 68}}, {"id": 416, "type": "field_expression", "text": "conn->request_info", "parent": 415, "children": [417, 418], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 53}}, {"id": 417, "type": "identifier", "text": "conn", "parent": 416, "children": [], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 39}}, {"id": 418, "type": "field_identifier", "text": "request_info", "parent": 416, "children": [], "start_point": {"row": 149, "column": 41}, "end_point": {"row": 149, "column": 53}}, {"id": 419, "type": "field_identifier", "text": "request_method", "parent": 415, "children": [], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 68}}, {"id": 420, "type": "string_literal", "text": "\"HTTP/\"", "parent": 414, "children": [], "start_point": {"row": 149, "column": 70}, "end_point": {"row": 149, "column": 77}}, {"id": 421, "type": "number_literal", "text": "5", "parent": 414, "children": [], "start_point": {"row": 149, "column": 79}, "end_point": {"row": 149, "column": 80}}, {"id": 422, "type": "assignment_expression", "text": "conn->content_len = -1", "parent": 408, "children": [423, 426, 427], "start_point": {"row": 155, "column": 3}, "end_point": {"row": 155, "column": 25}}, {"id": 423, "type": "field_expression", "text": "conn->content_len", "parent": 422, "children": [424, 425], "start_point": {"row": 155, "column": 3}, "end_point": {"row": 155, "column": 20}}, {"id": 424, "type": "identifier", "text": "conn", "parent": 423, "children": [], "start_point": {"row": 155, "column": 3}, "end_point": {"row": 155, "column": 7}}, {"id": 425, "type": "field_identifier", "text": "content_len", "parent": 423, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 20}}, {"id": 426, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 22}}, {"id": 427, "type": "number_literal", "text": "-1", "parent": 422, "children": [], "start_point": {"row": 155, "column": 23}, "end_point": {"row": 155, "column": 25}}, {"id": 428, "type": "else_clause", "text": "else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}", "parent": 408, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 163, "column": 3}}, {"id": 429, "type": "assignment_expression", "text": "conn->content_len = 0", "parent": 428, "children": [430, 433, 434], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 24}}, {"id": 430, "type": "field_expression", "text": "conn->content_len", "parent": 429, "children": [431, 432], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 20}}, {"id": 431, "type": "identifier", "text": "conn", "parent": 430, "children": [], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 7}}, {"id": 432, "type": "field_identifier", "text": "content_len", "parent": 430, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 20}}, {"id": 433, "type": "=", "text": "=", "parent": 429, "children": [], "start_point": {"row": 162, "column": 21}, "end_point": {"row": 162, "column": 22}}, {"id": 434, "type": "number_literal", "text": "0", "parent": 429, "children": [], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 24}}, {"id": 435, "type": "return_statement", "text": "return true;", "parent": 3, "children": [436], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 13}}, {"id": 436, "type": "true", "text": "true", "parent": 435, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 15, 22, 27, 287], "classes": [9, 10, 16, 17], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [33, 34, 35, 41, 49, 55, 56, 61, 70, 77, 81, 85, 86, 90, 94, 101, 104, 107, 108, 112, 113, 114, 115, 121, 122, 126, 129, 138, 146, 147, 148, 149, 155, 156, 160, 163, 172, 181, 182, 183, 189, 190, 191, 196, 205, 212, 217, 226, 235, 236, 237, 240, 243, 246, 247, 252, 261, 270, 271, 272, 276, 279, 280, 297, 301, 305, 309, 310, 314, 323, 331, 332, 337, 342, 343, 344, 345, 349, 352, 353, 361, 363, 369, 376, 377, 378, 380, 383, 384, 390, 392, 395, 396, 402, 409, 410, 412, 415, 416, 423, 430], "assignments": [48, 69, 89, 137, 171, 204, 211, 225, 260, 273, 296, 322, 330, 346, 368, 401, 422, 429], "loops": [], "conditionals": [6, 11, 14, 18, 21, 26, 31, 32, 36, 42, 51, 54, 57, 62, 64, 65, 66, 68, 72, 78, 80, 82, 84, 87, 88, 91, 92, 95, 97, 100, 102, 103, 105, 106, 109, 110, 111, 116, 117, 123, 124, 127, 128, 130, 132, 133, 134, 136, 140, 145, 150, 151, 157, 158, 161, 162, 164, 166, 167, 168, 170, 174, 180, 184, 185, 188, 192, 193, 197, 199, 200, 201, 203, 207, 213, 214, 218, 220, 221, 222, 224, 228, 234, 238, 241, 242, 244, 245, 248, 249, 253, 255, 256, 257, 259, 263, 269, 274, 277, 281, 282, 292, 298, 299, 302, 304, 306, 308, 311, 313, 315, 317, 318, 319, 321, 325, 333, 334, 335, 338, 339, 341, 347, 350, 354, 355, 364, 366, 370, 371, 375, 381, 385, 386, 387, 393, 397, 398, 399, 403, 404, 408, 413, 417, 418, 419, 424, 425, 431, 432], "returns": [46, 75, 143, 177, 231, 266, 328, 435], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 53, 67, 74, 119, 135, 142, 153, 169, 176, 187, 195, 202, 209, 223, 230, 251, 258, 265, 283, 307, 320, 327, 356, 367, 373, 388, 400, 406, 420, 421, 427, 434], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "XX_httplib_getreq", "text_snippet": "bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) {\n\n\tconst char *cl;\n"}, {"node_id": 5, "universal_type": "function", "name": "lh_ctx_t", "text_snippet": "XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err )"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "lh_ctx_t", "text_snippet": "struct lh_ctx_t"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 16, "universal_type": "class", "name": "lh_con_t", "text_snippet": "struct lh_con_t"}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"httplib_main.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/* \n * Copyright (c) 2016 <NAME>\n * Copyright (c) 2013-2016 the Civetweb developers\n * Copyright (c) 2004-2013 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * ============\n * Release: 2.0\n */\n\n#include \"httplib_main.h\"\n\n/*\n * bool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err );\n *\n * The function XX_httplib_getreq() processes a request from a remote client.\n */\n\nbool XX_httplib_getreq( struct lh_ctx_t *ctx, struct lh_con_t *conn, int *err ) {\n\n\tconst char *cl;\n\n\tif ( ctx == NULL || err == NULL ) return false;\n\n\t*err = 0;\n\n\tif ( conn == NULL ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: internal error\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}\n\n\tXX_httplib_reset_per_request_attributes( conn );\n\n\t/*\n\t * Set the time the request was received. This value should be used for\n\t * timeouts.\n\t */\n\n\tclock_gettime( CLOCK_MONOTONIC, &conn->req_time );\n\n\tconn->request_len = XX_httplib_read_request( ctx, NULL, conn, conn->buf, conn->buf_size, &conn->data_len );\n\n\t/* \n\t * assert(conn->request_len < 0 || conn->data_len >= conn->request_len);\n\t */\n\n\tif ( conn->request_len >= 0 && conn->data_len < conn->request_len ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: invalid request size\", __func__ );\n\t\t*err = 500;\n\t\treturn false;\n\t}\n\n\tif ( conn->request_len == 0 && conn->data_len == conn->buf_size ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: request too large\", __func__ );\n\t\t*err = 413;\n\t\treturn false;\n\t}\n\t\n\telse if ( conn->request_len <= 0 ) {\n\n\t\tif ( conn->data_len > 0 ) {\n\n\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: client sent malformed request\", __func__ );\n\t\t\t*err = 400;\n\t\t}\n\t\t\n\t\telse {\n\t\t\t/*\n\t\t\t * Server did not send anything -> just close the connection\n\t\t\t */\n\n\t\t\tconn->must_close = true;\n\n\t\t\thttplib_cry( LH_DEBUG_WARNING, ctx, conn, \"%s: client did not send a request\", __func__ );\n\t\t\t*err = 0;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\telse if ( XX_httplib_parse_http_message( conn->buf, conn->buf_size, &conn->request_info ) <= 0 ) {\n\n\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t*err = 400;\n\t\treturn false;\n\t}\n\t\n\telse {\n\t\t/*\n\t\t * Message is a valid request or response\n\t\t */\n\n\t\tif ( (cl = XX_httplib_get_header( &conn->request_info, \"Content-Length\")) != NULL ) {\n\n\t\t\t/*\n\t\t\t * Request/response has content length set\n\t\t\t */\n\n\t\t\tchar *endptr = NULL;\n\t\t\tconn->content_len = strtoll( cl, &endptr, 10 );\n\n\t\t\tif ( endptr == cl ) {\n\n\t\t\t\thttplib_cry( LH_DEBUG_ERROR, ctx, conn, \"%s: bad request\", __func__ );\n\t\t\t\t*err = 411;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Publish the content length back to the request info.\n\t\t\t */\n\n\t\t\tconn->request_info.content_length = conn->content_len;\n\t\t}\n\t\t\n\t\telse if ( (cl = XX_httplib_get_header( &conn->request_info, \"Transfer-Encoding\" )) != NULL && ! httplib_strcasecmp( cl, \"chunked\" ) ) {\n\n\t\t\tconn->is_chunked = 1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strcasecmp( conn->request_info.request_method, \"POST\" ) || ! httplib_strcasecmp( conn->request_info.request_method, \"PUT\" ) ) {\n\n\t\t\t/*\n\t\t\t * POST or PUT request without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t}\n\t\t\n\t\telse if ( ! httplib_strncasecmp( conn->request_info.request_method, \"HTTP/\", 5 ) ) {\n\n\t\t\t/*\n\t\t\t * Response without content length set\n\t\t\t */\n\n\t\t\tconn->content_len = -1;\n\t\t} else {\n\n\t\t\t/*\n\t\t\t * Other request\n\t\t\t */\n\n\t\t\tconn->content_len = 0;\n\t\t}\n\t}\n\n\treturn true;\n\n} /* XX_httplib_getreq */\n"}
81,075
c
void yasm_lc3b__parse_insn( int num_info, int *num_operands , int *operands, int op) { int found = 0; int i; for (; num_info>0 && !found; num_info--) { int mismatch = 0; for(i = 0;op && (i<*num_operands)&& !mismatch; i++) { if (!(int)(operands[i] & 0x1)) mismatch = 1; if (mismatch) break; } if (!mismatch) found = 1; } }
19.79
19
(translation_unit) "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }\n}\n" (function_definition) "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }\n}" (primitive_type) "void" (function_declarator) "yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)" (identifier) "yasm_lc3b__parse_insn" (parameter_list) "( int num_info, int *num_operands\n , int *operands, int op)" (() "(" (parameter_declaration) "int num_info" (primitive_type) "int" (identifier) "num_info" (,) "," (parameter_declaration) "int *num_operands" (primitive_type) "int" (pointer_declarator) "*num_operands" (*) "*" (identifier) "num_operands" (,) "," (parameter_declaration) "int *operands" (primitive_type) "int" (pointer_declarator) "*operands" (*) "*" (identifier) "operands" (,) "," (parameter_declaration) "int op" (primitive_type) "int" (identifier) "op" ()) ")" (compound_statement) "{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }\n}" ({) "{" (declaration) "int found = 0;" (primitive_type) "int" (init_declarator) "found = 0" (identifier) "found" (=) "=" (number_literal) "0" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }" (for) "for" (() "(" (;) ";" (binary_expression) "num_info>0 && !found" (binary_expression) "num_info>0" (identifier) "num_info" (>) ">" (number_literal) "0" (&&) "&&" (unary_expression) "!found" (!) "!" (identifier) "found" (;) ";" (update_expression) "num_info--" (identifier) "num_info" (--) "--" ()) ")" (compound_statement) "{\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }" ({) "{" (declaration) "int mismatch = 0;" (primitive_type) "int" (init_declarator) "mismatch = 0" (identifier) "mismatch" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "op && (i<*num_operands)&& !mismatch" (binary_expression) "op && (i<*num_operands)" (identifier) "op" (&&) "&&" (parenthesized_expression) "(i<*num_operands)" (() "(" (binary_expression) "i<*num_operands" (identifier) "i" (<) "<" (pointer_expression) "*num_operands" (*) "*" (identifier) "num_operands" ()) ")" (&&) "&&" (unary_expression) "!mismatch" (!) "!" (identifier) "mismatch" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }" ({) "{" (if_statement) "if (!(int)(operands[i] & 0x1))\n mismatch = 1;" (if) "if" (parenthesized_expression) "(!(int)(operands[i] & 0x1))" (() "(" (unary_expression) "!(int)(operands[i] & 0x1)" (!) "!" (cast_expression) "(int)(operands[i] & 0x1)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(operands[i] & 0x1)" (() "(" (binary_expression) "operands[i] & 0x1" (subscript_expression) "operands[i]" (identifier) "operands" ([) "[" (identifier) "i" (]) "]" (&) "&" (number_literal) "0x1" ()) ")" ()) ")" (expression_statement) "mismatch = 1;" (assignment_expression) "mismatch = 1" (identifier) "mismatch" (=) "=" (number_literal) "1" (;) ";" (if_statement) "if (mismatch)\n break;" (if) "if" (parenthesized_expression) "(mismatch)" (() "(" (identifier) "mismatch" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (if_statement) "if (!mismatch)\n found = 1;" (if) "if" (parenthesized_expression) "(!mismatch)" (() "(" (unary_expression) "!mismatch" (!) "!" (identifier) "mismatch" ()) ")" (expression_statement) "found = 1;" (assignment_expression) "found = 1" (identifier) "found" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}"
154
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.79, "nodes": 103, "errors": 0, "source_hash": "9ab0d4e56bab9f852f305798d9e44c20b9de5e3e7d7ceee399403045c1c29d37", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }\n}", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 1, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)", "parent": 0, "children": [3, 4], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 1, "column": 25}}, {"id": 3, "type": "identifier", "text": "yasm_lc3b__parse_insn", "parent": 2, "children": [], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 0, "column": 26}}, {"id": 4, "type": "parameter_list", "text": "( int num_info, int *num_operands\n , int *operands, int op)", "parent": 2, "children": [5, 8, 13, 18], "start_point": {"row": 0, "column": 26}, "end_point": {"row": 1, "column": 25}}, {"id": 5, "type": "parameter_declaration", "text": "int num_info", "parent": 4, "children": [6, 7], "start_point": {"row": 0, "column": 28}, "end_point": {"row": 0, "column": 40}}, {"id": 6, "type": "primitive_type", "text": "int", "parent": 5, "children": [], "start_point": {"row": 0, "column": 28}, "end_point": {"row": 0, "column": 31}}, {"id": 7, "type": "identifier", "text": "num_info", "parent": 5, "children": [], "start_point": {"row": 0, "column": 32}, "end_point": {"row": 0, "column": 40}}, {"id": 8, "type": "parameter_declaration", "text": "int *num_operands", "parent": 4, "children": [9, 10], "start_point": {"row": 0, "column": 42}, "end_point": {"row": 0, "column": 59}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 0, "column": 42}, "end_point": {"row": 0, "column": 45}}, {"id": 10, "type": "pointer_declarator", "text": "*num_operands", "parent": 8, "children": [11, 12], "start_point": {"row": 0, "column": 46}, "end_point": {"row": 0, "column": 59}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 0, "column": 46}, "end_point": {"row": 0, "column": 47}}, {"id": 12, "type": "identifier", "text": "num_operands", "parent": 10, "children": [], "start_point": {"row": 0, "column": 47}, "end_point": {"row": 0, "column": 59}}, {"id": 13, "type": "parameter_declaration", "text": "int *operands", "parent": 4, "children": [14, 15], "start_point": {"row": 1, "column": 3}, "end_point": {"row": 1, "column": 16}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 1, "column": 3}, "end_point": {"row": 1, "column": 6}}, {"id": 15, "type": "pointer_declarator", "text": "*operands", "parent": 13, "children": [16, 17], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 16}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 8}}, {"id": 17, "type": "identifier", "text": "operands", "parent": 15, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 18, "type": "parameter_declaration", "text": "int op", "parent": 4, "children": [19, 20], "start_point": {"row": 1, "column": 18}, "end_point": {"row": 1, "column": 24}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 1, "column": 18}, "end_point": {"row": 1, "column": 21}}, {"id": 20, "type": "identifier", "text": "op", "parent": 18, "children": [], "start_point": {"row": 1, "column": 22}, "end_point": {"row": 1, "column": 24}}, {"id": 21, "type": "declaration", "text": "int found = 0;", "parent": 0, "children": [22, 23], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 16}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 5}}, {"id": 23, "type": "init_declarator", "text": "found = 0", "parent": 21, "children": [24, 25, 26], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 15}}, {"id": 24, "type": "identifier", "text": "found", "parent": 23, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 11}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 13}}, {"id": 26, "type": "number_literal", "text": "0", "parent": 23, "children": [], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 15}}, {"id": 27, "type": "declaration", "text": "int i;", "parent": 0, "children": [28, 29], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 8}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 5}}, {"id": 29, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 7}}, {"id": 30, "type": "for_statement", "text": "for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }", "parent": 0, "children": [31, 40], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 17, "column": 3}}, {"id": 31, "type": "binary_expression", "text": "num_info>0 && !found", "parent": 30, "children": [32, 36, 37], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 29}}, {"id": 32, "type": "binary_expression", "text": "num_info>0", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 33, "type": "identifier", "text": "num_info", "parent": 32, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 34, "type": ">", "text": ">", "parent": 32, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 18}}, {"id": 35, "type": "number_literal", "text": "0", "parent": 32, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 19}}, {"id": 36, "type": "&&", "text": "&&", "parent": 31, "children": [], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 22}}, {"id": 37, "type": "unary_expression", "text": "!found", "parent": 31, "children": [38, 39], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 29}}, {"id": 38, "type": "!", "text": "!", "parent": 37, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 24}}, {"id": 39, "type": "identifier", "text": "found", "parent": 37, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 29}}, {"id": 40, "type": "update_expression", "text": "num_info--", "parent": 30, "children": [41, 42], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 41}}, {"id": 41, "type": "identifier", "text": "num_info", "parent": 40, "children": [], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 39}}, {"id": 42, "type": "--", "text": "--", "parent": 40, "children": [], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 41}}, {"id": 43, "type": "declaration", "text": "int mismatch = 0;", "parent": 30, "children": [44, 45], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 21}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 45, "type": "init_declarator", "text": "mismatch = 0", "parent": 43, "children": [46, 47, 48], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 20}}, {"id": 46, "type": "identifier", "text": "mismatch", "parent": 45, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 16}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 18}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 20}}, {"id": 49, "type": "for_statement", "text": "for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }", "parent": 30, "children": [50, 54, 69], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 14, "column": 6}}, {"id": 50, "type": "assignment_expression", "text": "i = 0", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 14}}, {"id": 51, "type": "identifier", "text": "i", "parent": 50, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 14}}, {"id": 54, "type": "binary_expression", "text": "op && (i<*num_operands)&& !mismatch", "parent": 49, "children": [55, 65, 66], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 50}}, {"id": 55, "type": "binary_expression", "text": "op && (i<*num_operands)", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 38}}, {"id": 56, "type": "identifier", "text": "op", "parent": 55, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 17}}, {"id": 57, "type": "&&", "text": "&&", "parent": 55, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 20}}, {"id": 58, "type": "parenthesized_expression", "text": "(i<*num_operands)", "parent": 55, "children": [59], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 38}}, {"id": 59, "type": "binary_expression", "text": "i<*num_operands", "parent": 58, "children": [60, 61, 62], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 37}}, {"id": 60, "type": "identifier", "text": "i", "parent": 59, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 23}}, {"id": 61, "type": "<", "text": "<", "parent": 59, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 24}}, {"id": 62, "type": "pointer_expression", "text": "*num_operands", "parent": 59, "children": [63, 64], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 37}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 64, "type": "identifier", "text": "num_operands", "parent": 62, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 37}}, {"id": 65, "type": "&&", "text": "&&", "parent": 54, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 40}}, {"id": 66, "type": "unary_expression", "text": "!mismatch", "parent": 54, "children": [67, 68], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 50}}, {"id": 67, "type": "!", "text": "!", "parent": 66, "children": [], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 42}}, {"id": 68, "type": "identifier", "text": "mismatch", "parent": 66, "children": [], "start_point": {"row": 8, "column": 42}, "end_point": {"row": 8, "column": 50}}, {"id": 69, "type": "update_expression", "text": "i++", "parent": 49, "children": [70, 71], "start_point": {"row": 8, "column": 52}, "end_point": {"row": 8, "column": 55}}, {"id": 70, "type": "identifier", "text": "i", "parent": 69, "children": [], "start_point": {"row": 8, "column": 52}, "end_point": {"row": 8, "column": 53}}, {"id": 71, "type": "++", "text": "++", "parent": 69, "children": [], "start_point": {"row": 8, "column": 53}, "end_point": {"row": 8, "column": 55}}, {"id": 72, "type": "if_statement", "text": "if (!(int)(operands[i] & 0x1))\n mismatch = 1;", "parent": 49, "children": [73], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 11, "column": 22}}, {"id": 73, "type": "parenthesized_expression", "text": "(!(int)(operands[i] & 0x1))", "parent": 72, "children": [74], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 37}}, {"id": 74, "type": "unary_expression", "text": "!(int)(operands[i] & 0x1)", "parent": 73, "children": [75, 76], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 36}}, {"id": 75, "type": "!", "text": "!", "parent": 74, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 76, "type": "cast_expression", "text": "(int)(operands[i] & 0x1)", "parent": 74, "children": [77, 79], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 36}}, {"id": 77, "type": "type_descriptor", "text": "int", "parent": 76, "children": [78], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 16}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 16}}, {"id": 79, "type": "parenthesized_expression", "text": "(operands[i] & 0x1)", "parent": 76, "children": [80], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 36}}, {"id": 80, "type": "binary_expression", "text": "operands[i] & 0x1", "parent": 79, "children": [81, 84], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 35}}, {"id": 81, "type": "subscript_expression", "text": "operands[i]", "parent": 80, "children": [82, 83], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 29}}, {"id": 82, "type": "identifier", "text": "operands", "parent": 81, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 26}}, {"id": 83, "type": "identifier", "text": "i", "parent": 81, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 84, "type": "number_literal", "text": "0x1", "parent": 80, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 35}}, {"id": 85, "type": "assignment_expression", "text": "mismatch = 1", "parent": 72, "children": [86, 87, 88], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 86, "type": "identifier", "text": "mismatch", "parent": 85, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 88, "type": "number_literal", "text": "1", "parent": 85, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 21}}, {"id": 89, "type": "if_statement", "text": "if (mismatch)\n break;", "parent": 49, "children": [90, 92], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 13, "column": 15}}, {"id": 90, "type": "parenthesized_expression", "text": "(mismatch)", "parent": 89, "children": [91], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 20}}, {"id": 91, "type": "identifier", "text": "mismatch", "parent": 90, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 19}}, {"id": 92, "type": "break_statement", "text": "break;", "parent": 89, "children": [93], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 15}}, {"id": 93, "type": "break", "text": "break", "parent": 92, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 94, "type": "if_statement", "text": "if (!mismatch)\n found = 1;", "parent": 30, "children": [95], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 95, "type": "parenthesized_expression", "text": "(!mismatch)", "parent": 94, "children": [96], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 18}}, {"id": 96, "type": "unary_expression", "text": "!mismatch", "parent": 95, "children": [97, 98], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 17}}, {"id": 97, "type": "!", "text": "!", "parent": 96, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 98, "type": "identifier", "text": "mismatch", "parent": 96, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 17}}, {"id": 99, "type": "assignment_expression", "text": "found = 1", "parent": 94, "children": [100, 101, 102], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 15}}, {"id": 100, "type": "identifier", "text": "found", "parent": 99, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 11}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 13}}, {"id": 102, "type": "number_literal", "text": "1", "parent": 99, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}]}, "node_categories": {"declarations": {"functions": [0, 2], "variables": [5, 8, 13, 18, 21, 27, 43], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [31, 32, 37, 40, 54, 55, 58, 59, 62, 66, 69, 73, 74, 76, 79, 80, 81, 90, 95, 96], "assignments": [50, 85, 99], "loops": [30, 49], "conditionals": [3, 7, 12, 17, 20, 24, 29, 33, 39, 41, 46, 51, 56, 60, 64, 68, 70, 72, 82, 83, 86, 89, 91, 94, 98, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [26, 35, 48, 53, 84, 88, 102], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "yasm_lc3b__parse_insn", "text_snippet": "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found "}, {"node_id": 2, "universal_type": "function", "name": "num_info,", "text_snippet": "yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n mismatch = 1;\n if (mismatch)\n break;\n }\n if (!mismatch)\n found = 1;\n }\n}\n"}
81,076
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double ResultVersionNumber; FOUNDATION_EXPORT const unsigned char ResultVersionString[];
32
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double ResultVersionNumber;\nFOUNDATION_EXPORT const unsigned char ResultVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_EXPORT double ResultVersionNumber;" (type_identifier) "FOUNDATION_EXPORT" (ERROR) "double" (identifier) "double" (identifier) "ResultVersionNumber" (;) ";" (declaration) "FOUNDATION_EXPORT const unsigned" (type_identifier) "FOUNDATION_EXPORT" (type_qualifier) "const" (const) "const" (identifier) "unsigned" (;) "" (declaration) "char ResultVersionString[];" (primitive_type) "char" (array_declarator) "ResultVersionString[]" (identifier) "ResultVersionString" ([) "[" (]) "]" (;) ";"
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.0, "nodes": 15, "errors": 0, "source_hash": "a0fe233f39fa6e0d3535773a88cc14929415094dfab561b803617bcf123bbf5c", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "declaration", "text": "FOUNDATION_EXPORT double ResultVersionNumber;", "parent": null, "children": [4, 5, 7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 45}}, {"id": 4, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 17}}, {"id": 5, "type": "ERROR", "text": "double", "parent": 3, "children": [6], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 24}}, {"id": 6, "type": "identifier", "text": "double", "parent": 5, "children": [], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 24}}, {"id": 7, "type": "identifier", "text": "ResultVersionNumber", "parent": 3, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 44}}, {"id": 8, "type": "declaration", "text": "FOUNDATION_EXPORT const unsigned", "parent": null, "children": [9, 10], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 32}}, {"id": 9, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 8, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 17}}, {"id": 10, "type": "identifier", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 32}}, {"id": 11, "type": "declaration", "text": "char ResultVersionString[];", "parent": null, "children": [12, 13], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 60}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "ResultVersionString[]", "parent": 11, "children": [14], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 59}}, {"id": 14, "type": "identifier", "text": "ResultVersionString", "parent": 13, "children": [], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 57}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3, 8, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 7, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double ResultVersionNumber;\nFOUNDATION_EXPORT const unsigned char ResultVersionString[];\n\n"}
81,077
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ #pragma ident "%Z%%M% %I% %E% SMI" /* NAME ckdlivopts - check delivery notification options SYNOPSIS int ckdlivopts(int tcopy_hdr, int *svopts) DESCRIPTION Check if delivery notification requested for message being processed. Returns specified options as combined from H_DEFOPTS, H_TROPTS, & H_TCOPY lines. (Positive notification options) 001 ==> /delivery requested 002 ==> /nodelivery requested (Negative notification options) 010 ==> /report requested 020 ==> /return requested 040 ==> /ignore requested Combinations are expected, i.e. - 011 ==> /delivery/report If not specified, the assumed defaults are /nodelivery/return (rc=022) The options discovered in the header are stored into svopts. */ #include "mail.h" static void getopts(); static void mergeopts(); struct dlvopts { int deliv; int nodeliv; int rept; int rtrn; int ign; }; int ckdlivopts(tcopy_hdr, svopts) int tcopy_hdr; int *svopts; { static char pn[] = "ckdlivopts"; struct hdrs *hp; struct dlvopts toopts, tropts, defopts; int rc; /* already done this once. no need to repeat..... */ if (svopts && *svopts != 0) { Dout(pn, 0, "*svopts = o%o\n", *svopts); return (*svopts); } memset((char *)&defopts, 0, sizeof(struct dlvopts)); if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) { Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value); getopts(hp->value, &defopts); } memset((char *)&tropts, 0, sizeof(struct dlvopts)); if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) { Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value); getopts(hp->value, &tropts); } memset((char *)&toopts, 0, sizeof(struct dlvopts)); if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) { Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value); getopts(hp->value, &toopts); } /* Combine options from different header lines. Precedence is */ /* toopts --> tropts --> defopts. Results left in defopts */ mergeopts(&tropts,&defopts); mergeopts(&toopts,&defopts); if (defopts.deliv) rc = DELIVERY; else rc = NODELIVERY; if (defopts.rtrn) rc += RETURN; else if (defopts.rept) rc += REPORT; else if (defopts.ign) rc += IGNORE; else rc += RETURN; Dout(pn, 0,"returning = o%o\n", rc); if (svopts) *svopts = rc; return (rc); } /* * Pick transport options off of header line. * If conflicting options found, use MOST demanding; i.e. - /delivery/return. */ static void getopts(s, optr) register char *s; register struct dlvopts *optr; { register char *op; for (op = strchr (s, '/'); op++; op = strchr(op, '/')) { if (casncmp(op, "delivery", 7) == 0) { optr->deliv = 1; optr->nodeliv = 0; } else if (casncmp(op, "nodelivery", 10) == 0) { if (optr->deliv == 0) { optr->nodeliv = 1; } } else if (casncmp(op, "report", 6) == 0) { optr->ign = 0; if (optr->rtrn == 0) { optr->rept = 1; } } else if (casncmp(op, "return", 6) == 0) { optr->rtrn = 1; optr->rept = optr->ign = 0; } else if (casncmp(op, "ignore", 6) == 0) { optr->rept = 0; if (optr->rtrn == 0) { optr->ign = 1; } } } } /* * Merge options between 2 sets. Higher set has precedence. * Results left in lower set. */ static void mergeopts(higher, lower) register struct dlvopts *higher, *lower; { if (higher->deliv == 1) { lower->deliv = 1; lower->nodeliv = 0; } if (higher->nodeliv == 1) { lower->nodeliv = 1; lower->deliv = 0; } if (higher->rept == 1) { lower->rept = 1; lower->rtrn = lower->ign = 0; } if (higher->rtrn == 1) { lower->rtrn = 1; lower->rept = lower->ign = 0; } if (higher->ign == 1) { lower->ign = 1; lower->rept = lower->rtrn = 0; } }
27.73
159
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at usr/src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets "[]" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */\n/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */\n/* All Rights Reserved */\n\n\n#pragma ident "%Z%%M% %I% %E% SMI" \n\n/*\n NAME\n ckdlivopts - check delivery notification options\n\n SYNOPSIS\n int ckdlivopts(int tcopy_hdr, int *svopts)\n\n DESCRIPTION\n Check if delivery notification requested for message being\n processed. Returns specified options as combined from H_DEFOPTS,\n H_TROPTS, & H_TCOPY lines.\n\n (Positive notification options)\n 001 ==> /delivery requested\n 002 ==> /nodelivery requested\n (Negative notification options)\n 010 ==> /report requested\n 020 ==> /return requested\n 040 ==> /ignore requested\n\n Combinations are expected, i.e. - 011 ==> /delivery/report\n If not specified, the assumed defaults are /nodelivery/return (rc=022)\n\n The options discovered in the header are stored into svopts.\n */\n#include "mail.h"\n\nstatic void getopts();\nstatic void mergeopts();\n\nstruct dlvopts {\n int deliv;\n int nodeliv;\n int rept;\n int rtrn;\n int ign;\n};\n\nint ckdlivopts(tcopy_hdr, svopts)\nint tcopy_hdr;\nint *svopts;\n{\n static char pn[] = "ckdlivopts";\n struct hdrs *hp;\n struct dlvopts toopts, tropts, defopts;\n int rc;\n\n /* already done this once. no need to repeat..... */\n if (svopts && *svopts != 0) {\n Dout(pn, 0, "*svopts = o%o\n", *svopts);\n return (*svopts);\n }\n memset((char *)&defopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);\n getopts(hp->value, &defopts);\n }\n memset((char *)&tropts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);\n getopts(hp->value, &tropts);\n }\n memset((char *)&toopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);\n getopts(hp->value, &toopts);\n }\n /* Combine options from different header lines. Precedence is */\n /* toopts --> tropts --> defopts. Results left in defopts */\n mergeopts(&tropts,&defopts);\n mergeopts(&toopts,&defopts);\n\n if (defopts.deliv) rc = DELIVERY;\n else rc = NODELIVERY;\n\n if (defopts.rtrn) rc += RETURN;\n else if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;\n\n Dout(pn, 0,"returning = o%o\n", rc);\n if (svopts)\n *svopts = rc;\n return (rc);\n}\n\n/*\n * Pick transport options off of header line.\n * If conflicting options found, use MOST demanding; i.e. - /delivery/return.\n */\nstatic void getopts(s, optr)\nregister char *s;\nregister struct dlvopts *optr;\n{\n register char *op;\n\n for (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }\n }\n}\n\n/*\n * Merge options between 2 sets. Higher set has precedence.\n * Results left in lower set.\n */\nstatic void mergeopts(higher, lower)\nregister struct dlvopts *higher, *lower;\n{\n if (higher->deliv == 1) {\n lower->deliv = 1;\n lower->nodeliv = 0;\n }\n if (higher->nodeliv == 1) {\n lower->nodeliv = 1;\n lower->deliv = 0;\n }\n if (higher->rept == 1) {\n lower->rept = 1;\n lower->rtrn = lower->ign = 0;\n }\n if (higher->rtrn == 1) {\n lower->rtrn = 1;\n lower->rept = lower->ign = 0;\n }\n if (higher->ign == 1) {\n lower->ign = 1;\n lower->rept = lower->rtrn = 0;\n }\n}\n" (comment) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at usr/src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets "[]" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */" (comment) "/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */" (comment) "/* All Rights Reserved */" (preproc_call) "#pragma ident "%Z%%M% %I% %E% SMI" \n" (preproc_directive) "#pragma" (preproc_arg) "ident "%Z%%M% %I% %E% SMI" " (comment) "/*\n NAME\n ckdlivopts - check delivery notification options\n\n SYNOPSIS\n int ckdlivopts(int tcopy_hdr, int *svopts)\n\n DESCRIPTION\n Check if delivery notification requested for message being\n processed. Returns specified options as combined from H_DEFOPTS,\n H_TROPTS, & H_TCOPY lines.\n\n (Positive notification options)\n 001 ==> /delivery requested\n 002 ==> /nodelivery requested\n (Negative notification options)\n 010 ==> /report requested\n 020 ==> /return requested\n 040 ==> /ignore requested\n\n Combinations are expected, i.e. - 011 ==> /delivery/report\n If not specified, the assumed defaults are /nodelivery/return (rc=022)\n\n The options discovered in the header are stored into svopts.\n */" (preproc_include) "#include "mail.h"\n" (#include) "#include" (string_literal) ""mail.h"" (") """ (string_content) "mail.h" (") """ (declaration) "static void getopts();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "getopts()" (identifier) "getopts" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void mergeopts();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mergeopts()" (identifier) "mergeopts" (parameter_list) "()" (() "(" ()) ")" (;) ";" (struct_specifier) "struct dlvopts {\n int deliv;\n int nodeliv;\n int rept;\n int rtrn;\n int ign;\n}" (struct) "struct" (type_identifier) "dlvopts" (field_declaration_list) "{\n int deliv;\n int nodeliv;\n int rept;\n int rtrn;\n int ign;\n}" ({) "{" (field_declaration) "int deliv;" (primitive_type) "int" (field_identifier) "deliv" (;) ";" (field_declaration) "int nodeliv;" (primitive_type) "int" (field_identifier) "nodeliv" (;) ";" (field_declaration) "int rept;" (primitive_type) "int" (field_identifier) "rept" (;) ";" (field_declaration) "int rtrn;" (primitive_type) "int" (field_identifier) "rtrn" (;) ";" (field_declaration) "int ign;" (primitive_type) "int" (field_identifier) "ign" (;) ";" (}) "}" (;) ";" (function_definition) "int ckdlivopts(tcopy_hdr, svopts)\nint tcopy_hdr;\nint *svopts;\n{\n static char pn[] = "ckdlivopts";\n struct hdrs *hp;\n struct dlvopts toopts, tropts, defopts;\n int rc;\n\n /* already done this once. no need to repeat..... */\n if (svopts && *svopts != 0) {\n Dout(pn, 0, "*svopts = o%o\n", *svopts);\n return (*svopts);\n }\n memset((char *)&defopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);\n getopts(hp->value, &defopts);\n }\n memset((char *)&tropts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);\n getopts(hp->value, &tropts);\n }\n memset((char *)&toopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);\n getopts(hp->value, &toopts);\n }\n /* Combine options from different header lines. Precedence is */\n /* toopts --> tropts --> defopts. Results left in defopts */\n mergeopts(&tropts,&defopts);\n mergeopts(&toopts,&defopts);\n\n if (defopts.deliv) rc = DELIVERY;\n else rc = NODELIVERY;\n\n if (defopts.rtrn) rc += RETURN;\n else if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;\n\n Dout(pn, 0,"returning = o%o\n", rc);\n if (svopts)\n *svopts = rc;\n return (rc);\n}" (primitive_type) "int" (function_declarator) "ckdlivopts(tcopy_hdr, svopts)" (identifier) "ckdlivopts" (parameter_list) "(tcopy_hdr, svopts)" (() "(" (identifier) "tcopy_hdr" (,) "," (identifier) "svopts" ()) ")" (declaration) "int tcopy_hdr;" (primitive_type) "int" (identifier) "tcopy_hdr" (;) ";" (declaration) "int *svopts;" (primitive_type) "int" (pointer_declarator) "*svopts" (*) "*" (identifier) "svopts" (;) ";" (compound_statement) "{\n static char pn[] = "ckdlivopts";\n struct hdrs *hp;\n struct dlvopts toopts, tropts, defopts;\n int rc;\n\n /* already done this once. no need to repeat..... */\n if (svopts && *svopts != 0) {\n Dout(pn, 0, "*svopts = o%o\n", *svopts);\n return (*svopts);\n }\n memset((char *)&defopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);\n getopts(hp->value, &defopts);\n }\n memset((char *)&tropts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);\n getopts(hp->value, &tropts);\n }\n memset((char *)&toopts, 0, sizeof(struct dlvopts));\n if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);\n getopts(hp->value, &toopts);\n }\n /* Combine options from different header lines. Precedence is */\n /* toopts --> tropts --> defopts. Results left in defopts */\n mergeopts(&tropts,&defopts);\n mergeopts(&toopts,&defopts);\n\n if (defopts.deliv) rc = DELIVERY;\n else rc = NODELIVERY;\n\n if (defopts.rtrn) rc += RETURN;\n else if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;\n\n Dout(pn, 0,"returning = o%o\n", rc);\n if (svopts)\n *svopts = rc;\n return (rc);\n}" ({) "{" (declaration) "static char pn[] = "ckdlivopts";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "pn[] = "ckdlivopts"" (array_declarator) "pn[]" (identifier) "pn" ([) "[" (]) "]" (=) "=" (string_literal) ""ckdlivopts"" (") """ (string_content) "ckdlivopts" (") """ (;) ";" (declaration) "struct hdrs *hp;" (struct_specifier) "struct hdrs" (struct) "struct" (type_identifier) "hdrs" (pointer_declarator) "*hp" (*) "*" (identifier) "hp" (;) ";" (declaration) "struct dlvopts toopts, tropts, defopts;" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" (identifier) "toopts" (,) "," (identifier) "tropts" (,) "," (identifier) "defopts" (;) ";" (declaration) "int rc;" (primitive_type) "int" (identifier) "rc" (;) ";" (comment) "/* already done this once. no need to repeat..... */" (if_statement) "if (svopts && *svopts != 0) {\n Dout(pn, 0, "*svopts = o%o\n", *svopts);\n return (*svopts);\n }" (if) "if" (parenthesized_expression) "(svopts && *svopts != 0)" (() "(" (binary_expression) "svopts && *svopts != 0" (identifier) "svopts" (&&) "&&" (binary_expression) "*svopts != 0" (pointer_expression) "*svopts" (*) "*" (identifier) "svopts" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n Dout(pn, 0, "*svopts = o%o\n", *svopts);\n return (*svopts);\n }" ({) "{" (expression_statement) "Dout(pn, 0, "*svopts = o%o\n", *svopts);" (call_expression) "Dout(pn, 0, "*svopts = o%o\n", *svopts)" (identifier) "Dout" (argument_list) "(pn, 0, "*svopts = o%o\n", *svopts)" (() "(" (identifier) "pn" (,) "," (number_literal) "0" (,) "," (string_literal) ""*svopts = o%o\n"" (") """ (string_content) "*svopts = o%o" (escape_sequence) "\n" (") """ (,) "," (pointer_expression) "*svopts" (*) "*" (identifier) "svopts" ()) ")" (;) ";" (return_statement) "return (*svopts);" (return) "return" (parenthesized_expression) "(*svopts)" (() "(" (pointer_expression) "*svopts" (*) "*" (identifier) "svopts" ()) ")" (;) ";" (}) "}" (expression_statement) "memset((char *)&defopts, 0, sizeof(struct dlvopts));" (call_expression) "memset((char *)&defopts, 0, sizeof(struct dlvopts))" (identifier) "memset" (argument_list) "((char *)&defopts, 0, sizeof(struct dlvopts))" (() "(" (cast_expression) "(char *)&defopts" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&defopts" (&) "&" (identifier) "defopts" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(struct dlvopts)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct dlvopts" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" ()) ")" ()) ")" (;) ";" (if_statement) "if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);\n getopts(hp->value, &defopts);\n }" (if) "if" (parenthesized_expression) "((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL)" (() "(" (binary_expression) "(hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL" (parenthesized_expression) "(hp = hdrlines[H_DEFOPTS].head)" (() "(" (assignment_expression) "hp = hdrlines[H_DEFOPTS].head" (identifier) "hp" (=) "=" (field_expression) "hdrlines[H_DEFOPTS].head" (subscript_expression) "hdrlines[H_DEFOPTS]" (identifier) "hdrlines" ([) "[" (identifier) "H_DEFOPTS" (]) "]" (.) "." (field_identifier) "head" ()) ")" (!=) "!=" (cast_expression) "(struct hdrs *)NULL" (() "(" (type_descriptor) "struct hdrs *" (struct_specifier) "struct hdrs" (struct) "struct" (type_identifier) "hdrs" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);\n getopts(hp->value, &defopts);\n }" ({) "{" (expression_statement) "Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value);" (call_expression) "Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value)" (identifier) "Dout" (argument_list) "(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value)" (() "(" (identifier) "pn" (,) "," (number_literal) "3" (,) "," (string_literal) ""H_DEFOPTS line = '%s'\n"" (") """ (string_content) "H_DEFOPTS line = '%s'" (escape_sequence) "\n" (") """ (,) "," (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "getopts(hp->value, &defopts);" (call_expression) "getopts(hp->value, &defopts)" (identifier) "getopts" (argument_list) "(hp->value, &defopts)" (() "(" (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" (,) "," (pointer_expression) "&defopts" (&) "&" (identifier) "defopts" ()) ")" (;) ";" (}) "}" (expression_statement) "memset((char *)&tropts, 0, sizeof(struct dlvopts));" (call_expression) "memset((char *)&tropts, 0, sizeof(struct dlvopts))" (identifier) "memset" (argument_list) "((char *)&tropts, 0, sizeof(struct dlvopts))" (() "(" (cast_expression) "(char *)&tropts" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&tropts" (&) "&" (identifier) "tropts" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(struct dlvopts)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct dlvopts" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" ()) ")" ()) ")" (;) ";" (if_statement) "if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);\n getopts(hp->value, &tropts);\n }" (if) "if" (parenthesized_expression) "((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL)" (() "(" (binary_expression) "(hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL" (parenthesized_expression) "(hp = hdrlines[H_TROPTS].head)" (() "(" (assignment_expression) "hp = hdrlines[H_TROPTS].head" (identifier) "hp" (=) "=" (field_expression) "hdrlines[H_TROPTS].head" (subscript_expression) "hdrlines[H_TROPTS]" (identifier) "hdrlines" ([) "[" (identifier) "H_TROPTS" (]) "]" (.) "." (field_identifier) "head" ()) ")" (!=) "!=" (cast_expression) "(struct hdrs *)NULL" (() "(" (type_descriptor) "struct hdrs *" (struct_specifier) "struct hdrs" (struct) "struct" (type_identifier) "hdrs" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);\n getopts(hp->value, &tropts);\n }" ({) "{" (expression_statement) "Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value);" (call_expression) "Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value)" (identifier) "Dout" (argument_list) "(pn, 3, "H_TROPTS line = '%s'\n", hp->value)" (() "(" (identifier) "pn" (,) "," (number_literal) "3" (,) "," (string_literal) ""H_TROPTS line = '%s'\n"" (") """ (string_content) "H_TROPTS line = '%s'" (escape_sequence) "\n" (") """ (,) "," (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "getopts(hp->value, &tropts);" (call_expression) "getopts(hp->value, &tropts)" (identifier) "getopts" (argument_list) "(hp->value, &tropts)" (() "(" (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" (,) "," (pointer_expression) "&tropts" (&) "&" (identifier) "tropts" ()) ")" (;) ";" (}) "}" (expression_statement) "memset((char *)&toopts, 0, sizeof(struct dlvopts));" (call_expression) "memset((char *)&toopts, 0, sizeof(struct dlvopts))" (identifier) "memset" (argument_list) "((char *)&toopts, 0, sizeof(struct dlvopts))" (() "(" (cast_expression) "(char *)&toopts" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&toopts" (&) "&" (identifier) "toopts" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(struct dlvopts)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct dlvopts" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" ()) ")" ()) ")" (;) ";" (if_statement) "if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);\n getopts(hp->value, &toopts);\n }" (if) "if" (parenthesized_expression) "((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL)" (() "(" (binary_expression) "(hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL" (parenthesized_expression) "(hp = hdrlines[tcopy_hdr].head)" (() "(" (assignment_expression) "hp = hdrlines[tcopy_hdr].head" (identifier) "hp" (=) "=" (field_expression) "hdrlines[tcopy_hdr].head" (subscript_expression) "hdrlines[tcopy_hdr]" (identifier) "hdrlines" ([) "[" (identifier) "tcopy_hdr" (]) "]" (.) "." (field_identifier) "head" ()) ")" (!=) "!=" (cast_expression) "(struct hdrs *)NULL" (() "(" (type_descriptor) "struct hdrs *" (struct_specifier) "struct hdrs" (struct) "struct" (type_identifier) "hdrs" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);\n getopts(hp->value, &toopts);\n }" ({) "{" (expression_statement) "Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value);" (call_expression) "Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value)" (identifier) "Dout" (argument_list) "(pn, 3,"H_TCOPY line = '%s'\n", hp->value)" (() "(" (identifier) "pn" (,) "," (number_literal) "3" (,) "," (string_literal) ""H_TCOPY line = '%s'\n"" (") """ (string_content) "H_TCOPY line = '%s'" (escape_sequence) "\n" (") """ (,) "," (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "getopts(hp->value, &toopts);" (call_expression) "getopts(hp->value, &toopts)" (identifier) "getopts" (argument_list) "(hp->value, &toopts)" (() "(" (field_expression) "hp->value" (identifier) "hp" (->) "->" (field_identifier) "value" (,) "," (pointer_expression) "&toopts" (&) "&" (identifier) "toopts" ()) ")" (;) ";" (}) "}" (comment) "/* Combine options from different header lines. Precedence is */" (comment) "/* toopts --> tropts --> defopts. Results left in defopts */" (expression_statement) "mergeopts(&tropts,&defopts);" (call_expression) "mergeopts(&tropts,&defopts)" (identifier) "mergeopts" (argument_list) "(&tropts,&defopts)" (() "(" (pointer_expression) "&tropts" (&) "&" (identifier) "tropts" (,) "," (pointer_expression) "&defopts" (&) "&" (identifier) "defopts" ()) ")" (;) ";" (expression_statement) "mergeopts(&toopts,&defopts);" (call_expression) "mergeopts(&toopts,&defopts)" (identifier) "mergeopts" (argument_list) "(&toopts,&defopts)" (() "(" (pointer_expression) "&toopts" (&) "&" (identifier) "toopts" (,) "," (pointer_expression) "&defopts" (&) "&" (identifier) "defopts" ()) ")" (;) ";" (if_statement) "if (defopts.deliv) rc = DELIVERY;\n else rc = NODELIVERY;" (if) "if" (parenthesized_expression) "(defopts.deliv)" (() "(" (field_expression) "defopts.deliv" (identifier) "defopts" (.) "." (field_identifier) "deliv" ()) ")" (expression_statement) "rc = DELIVERY;" (assignment_expression) "rc = DELIVERY" (identifier) "rc" (=) "=" (identifier) "DELIVERY" (;) ";" (else_clause) "else rc = NODELIVERY;" (else) "else" (expression_statement) "rc = NODELIVERY;" (assignment_expression) "rc = NODELIVERY" (identifier) "rc" (=) "=" (identifier) "NODELIVERY" (;) ";" (if_statement) "if (defopts.rtrn) rc += RETURN;\n else if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;" (if) "if" (parenthesized_expression) "(defopts.rtrn)" (() "(" (field_expression) "defopts.rtrn" (identifier) "defopts" (.) "." (field_identifier) "rtrn" ()) ")" (expression_statement) "rc += RETURN;" (assignment_expression) "rc += RETURN" (identifier) "rc" (+=) "+=" (identifier) "RETURN" (;) ";" (else_clause) "else if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;" (else) "else" (if_statement) "if (defopts.rept) rc += REPORT;\n else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;" (if) "if" (parenthesized_expression) "(defopts.rept)" (() "(" (field_expression) "defopts.rept" (identifier) "defopts" (.) "." (field_identifier) "rept" ()) ")" (expression_statement) "rc += REPORT;" (assignment_expression) "rc += REPORT" (identifier) "rc" (+=) "+=" (identifier) "REPORT" (;) ";" (else_clause) "else if (defopts.ign) rc += IGNORE;\n else rc += RETURN;" (else) "else" (if_statement) "if (defopts.ign) rc += IGNORE;\n else rc += RETURN;" (if) "if" (parenthesized_expression) "(defopts.ign)" (() "(" (field_expression) "defopts.ign" (identifier) "defopts" (.) "." (field_identifier) "ign" ()) ")" (expression_statement) "rc += IGNORE;" (assignment_expression) "rc += IGNORE" (identifier) "rc" (+=) "+=" (identifier) "IGNORE" (;) ";" (else_clause) "else rc += RETURN;" (else) "else" (expression_statement) "rc += RETURN;" (assignment_expression) "rc += RETURN" (identifier) "rc" (+=) "+=" (identifier) "RETURN" (;) ";" (expression_statement) "Dout(pn, 0,"returning = o%o\n", rc);" (call_expression) "Dout(pn, 0,"returning = o%o\n", rc)" (identifier) "Dout" (argument_list) "(pn, 0,"returning = o%o\n", rc)" (() "(" (identifier) "pn" (,) "," (number_literal) "0" (,) "," (string_literal) ""returning = o%o\n"" (") """ (string_content) "returning = o%o" (escape_sequence) "\n" (") """ (,) "," (identifier) "rc" ()) ")" (;) ";" (if_statement) "if (svopts)\n *svopts = rc;" (if) "if" (parenthesized_expression) "(svopts)" (() "(" (identifier) "svopts" ()) ")" (expression_statement) "*svopts = rc;" (assignment_expression) "*svopts = rc" (pointer_expression) "*svopts" (*) "*" (identifier) "svopts" (=) "=" (identifier) "rc" (;) ";" (return_statement) "return (rc);" (return) "return" (parenthesized_expression) "(rc)" (() "(" (identifier) "rc" ()) ")" (;) ";" (}) "}" (comment) "/*\n * Pick transport options off of header line.\n * If conflicting options found, use MOST demanding; i.e. - /delivery/return.\n */" (function_definition) "static void getopts(s, optr)\nregister char *s;\nregister struct dlvopts *optr;\n{\n register char *op;\n\n for (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "getopts(s, optr)" (identifier) "getopts" (parameter_list) "(s, optr)" (() "(" (identifier) "s" (,) "," (identifier) "optr" ()) ")" (declaration) "register char *s;" (storage_class_specifier) "register" (register) "register" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (declaration) "register struct dlvopts *optr;" (storage_class_specifier) "register" (register) "register" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" (pointer_declarator) "*optr" (*) "*" (identifier) "optr" (;) ";" (compound_statement) "{\n register char *op;\n\n for (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }\n }\n}" ({) "{" (declaration) "register char *op;" (storage_class_specifier) "register" (register) "register" (primitive_type) "char" (pointer_declarator) "*op" (*) "*" (identifier) "op" (;) ";" (for_statement) "for (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }\n }" (for) "for" (() "(" (assignment_expression) "op = strchr (s, '/')" (identifier) "op" (=) "=" (call_expression) "strchr (s, '/')" (identifier) "strchr" (argument_list) "(s, '/')" (() "(" (identifier) "s" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (;) ";" (update_expression) "op++" (identifier) "op" (++) "++" (;) ";" (assignment_expression) "op = strchr(op, '/')" (identifier) "op" (=) "=" (call_expression) "strchr(op, '/')" (identifier) "strchr" (argument_list) "(op, '/')" (() "(" (identifier) "op" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" ()) ")" (compound_statement) "{\n if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }\n }" ({) "{" (if_statement) "if (casncmp(op, "delivery", 7) == 0) {\n optr->deliv = 1;\n optr->nodeliv = 0;\n } else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (if) "if" (parenthesized_expression) "(casncmp(op, "delivery", 7) == 0)" (() "(" (binary_expression) "casncmp(op, "delivery", 7) == 0" (call_expression) "casncmp(op, "delivery", 7)" (identifier) "casncmp" (argument_list) "(op, "delivery", 7)" (() "(" (identifier) "op" (,) "," (string_literal) ""delivery"" (") """ (string_content) "delivery" (") """ (,) "," (number_literal) "7" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->deliv = 1;\n optr->nodeliv = 0;\n }" ({) "{" (expression_statement) "optr->deliv = 1;" (assignment_expression) "optr->deliv = 1" (field_expression) "optr->deliv" (identifier) "optr" (->) "->" (field_identifier) "deliv" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "optr->nodeliv = 0;" (assignment_expression) "optr->nodeliv = 0" (field_expression) "optr->nodeliv" (identifier) "optr" (->) "->" (field_identifier) "nodeliv" (=) "=" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (else) "else" (if_statement) "if (casncmp(op, "nodelivery", 10) == 0) {\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n } else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (if) "if" (parenthesized_expression) "(casncmp(op, "nodelivery", 10) == 0)" (() "(" (binary_expression) "casncmp(op, "nodelivery", 10) == 0" (call_expression) "casncmp(op, "nodelivery", 10)" (identifier) "casncmp" (argument_list) "(op, "nodelivery", 10)" (() "(" (identifier) "op" (,) "," (string_literal) ""nodelivery"" (") """ (string_content) "nodelivery" (") """ (,) "," (number_literal) "10" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }\n }" ({) "{" (if_statement) "if (optr->deliv == 0) {\n optr->nodeliv = 1;\n }" (if) "if" (parenthesized_expression) "(optr->deliv == 0)" (() "(" (binary_expression) "optr->deliv == 0" (field_expression) "optr->deliv" (identifier) "optr" (->) "->" (field_identifier) "deliv" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->nodeliv = 1;\n }" ({) "{" (expression_statement) "optr->nodeliv = 1;" (assignment_expression) "optr->nodeliv = 1" (field_expression) "optr->nodeliv" (identifier) "optr" (->) "->" (field_identifier) "nodeliv" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (else_clause) "else if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (else) "else" (if_statement) "if (casncmp(op, "report", 6) == 0) {\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n } else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (if) "if" (parenthesized_expression) "(casncmp(op, "report", 6) == 0)" (() "(" (binary_expression) "casncmp(op, "report", 6) == 0" (call_expression) "casncmp(op, "report", 6)" (identifier) "casncmp" (argument_list) "(op, "report", 6)" (() "(" (identifier) "op" (,) "," (string_literal) ""report"" (") """ (string_content) "report" (") """ (,) "," (number_literal) "6" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->ign = 0;\n if (optr->rtrn == 0) {\n optr->rept = 1;\n }\n }" ({) "{" (expression_statement) "optr->ign = 0;" (assignment_expression) "optr->ign = 0" (field_expression) "optr->ign" (identifier) "optr" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (optr->rtrn == 0) {\n optr->rept = 1;\n }" (if) "if" (parenthesized_expression) "(optr->rtrn == 0)" (() "(" (binary_expression) "optr->rtrn == 0" (field_expression) "optr->rtrn" (identifier) "optr" (->) "->" (field_identifier) "rtrn" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->rept = 1;\n }" ({) "{" (expression_statement) "optr->rept = 1;" (assignment_expression) "optr->rept = 1" (field_expression) "optr->rept" (identifier) "optr" (->) "->" (field_identifier) "rept" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (else_clause) "else if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (else) "else" (if_statement) "if (casncmp(op, "return", 6) == 0) {\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n } else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (if) "if" (parenthesized_expression) "(casncmp(op, "return", 6) == 0)" (() "(" (binary_expression) "casncmp(op, "return", 6) == 0" (call_expression) "casncmp(op, "return", 6)" (identifier) "casncmp" (argument_list) "(op, "return", 6)" (() "(" (identifier) "op" (,) "," (string_literal) ""return"" (") """ (string_content) "return" (") """ (,) "," (number_literal) "6" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->rtrn = 1;\n optr->rept = optr->ign = 0;\n }" ({) "{" (expression_statement) "optr->rtrn = 1;" (assignment_expression) "optr->rtrn = 1" (field_expression) "optr->rtrn" (identifier) "optr" (->) "->" (field_identifier) "rtrn" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "optr->rept = optr->ign = 0;" (assignment_expression) "optr->rept = optr->ign = 0" (field_expression) "optr->rept" (identifier) "optr" (->) "->" (field_identifier) "rept" (=) "=" (assignment_expression) "optr->ign = 0" (field_expression) "optr->ign" (identifier) "optr" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (else) "else" (if_statement) "if (casncmp(op, "ignore", 6) == 0) {\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" (if) "if" (parenthesized_expression) "(casncmp(op, "ignore", 6) == 0)" (() "(" (binary_expression) "casncmp(op, "ignore", 6) == 0" (call_expression) "casncmp(op, "ignore", 6)" (identifier) "casncmp" (argument_list) "(op, "ignore", 6)" (() "(" (identifier) "op" (,) "," (string_literal) ""ignore"" (") """ (string_content) "ignore" (") """ (,) "," (number_literal) "6" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->rept = 0;\n if (optr->rtrn == 0) {\n optr->ign = 1;\n }\n }" ({) "{" (expression_statement) "optr->rept = 0;" (assignment_expression) "optr->rept = 0" (field_expression) "optr->rept" (identifier) "optr" (->) "->" (field_identifier) "rept" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (optr->rtrn == 0) {\n optr->ign = 1;\n }" (if) "if" (parenthesized_expression) "(optr->rtrn == 0)" (() "(" (binary_expression) "optr->rtrn == 0" (field_expression) "optr->rtrn" (identifier) "optr" (->) "->" (field_identifier) "rtrn" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n optr->ign = 1;\n }" ({) "{" (expression_statement) "optr->ign = 1;" (assignment_expression) "optr->ign = 1" (field_expression) "optr->ign" (identifier) "optr" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}" (comment) "/*\n * Merge options between 2 sets. Higher set has precedence.\n * Results left in lower set.\n */" (function_definition) "static void mergeopts(higher, lower)\nregister struct dlvopts *higher, *lower;\n{\n if (higher->deliv == 1) {\n lower->deliv = 1;\n lower->nodeliv = 0;\n }\n if (higher->nodeliv == 1) {\n lower->nodeliv = 1;\n lower->deliv = 0;\n }\n if (higher->rept == 1) {\n lower->rept = 1;\n lower->rtrn = lower->ign = 0;\n }\n if (higher->rtrn == 1) {\n lower->rtrn = 1;\n lower->rept = lower->ign = 0;\n }\n if (higher->ign == 1) {\n lower->ign = 1;\n lower->rept = lower->rtrn = 0;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mergeopts(higher, lower)" (identifier) "mergeopts" (parameter_list) "(higher, lower)" (() "(" (identifier) "higher" (,) "," (identifier) "lower" ()) ")" (declaration) "register struct dlvopts *higher, *lower;" (storage_class_specifier) "register" (register) "register" (struct_specifier) "struct dlvopts" (struct) "struct" (type_identifier) "dlvopts" (pointer_declarator) "*higher" (*) "*" (identifier) "higher" (,) "," (pointer_declarator) "*lower" (*) "*" (identifier) "lower" (;) ";" (compound_statement) "{\n if (higher->deliv == 1) {\n lower->deliv = 1;\n lower->nodeliv = 0;\n }\n if (higher->nodeliv == 1) {\n lower->nodeliv = 1;\n lower->deliv = 0;\n }\n if (higher->rept == 1) {\n lower->rept = 1;\n lower->rtrn = lower->ign = 0;\n }\n if (higher->rtrn == 1) {\n lower->rtrn = 1;\n lower->rept = lower->ign = 0;\n }\n if (higher->ign == 1) {\n lower->ign = 1;\n lower->rept = lower->rtrn = 0;\n }\n}" ({) "{" (if_statement) "if (higher->deliv == 1) {\n lower->deliv = 1;\n lower->nodeliv = 0;\n }" (if) "if" (parenthesized_expression) "(higher->deliv == 1)" (() "(" (binary_expression) "higher->deliv == 1" (field_expression) "higher->deliv" (identifier) "higher" (->) "->" (field_identifier) "deliv" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n lower->deliv = 1;\n lower->nodeliv = 0;\n }" ({) "{" (expression_statement) "lower->deliv = 1;" (assignment_expression) "lower->deliv = 1" (field_expression) "lower->deliv" (identifier) "lower" (->) "->" (field_identifier) "deliv" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "lower->nodeliv = 0;" (assignment_expression) "lower->nodeliv = 0" (field_expression) "lower->nodeliv" (identifier) "lower" (->) "->" (field_identifier) "nodeliv" (=) "=" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if (higher->nodeliv == 1) {\n lower->nodeliv = 1;\n lower->deliv = 0;\n }" (if) "if" (parenthesized_expression) "(higher->nodeliv == 1)" (() "(" (binary_expression) "higher->nodeliv == 1" (field_expression) "higher->nodeliv" (identifier) "higher" (->) "->" (field_identifier) "nodeliv" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n lower->nodeliv = 1;\n lower->deliv = 0;\n }" ({) "{" (expression_statement) "lower->nodeliv = 1;" (assignment_expression) "lower->nodeliv = 1" (field_expression) "lower->nodeliv" (identifier) "lower" (->) "->" (field_identifier) "nodeliv" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "lower->deliv = 0;" (assignment_expression) "lower->deliv = 0" (field_expression) "lower->deliv" (identifier) "lower" (->) "->" (field_identifier) "deliv" (=) "=" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if (higher->rept == 1) {\n lower->rept = 1;\n lower->rtrn = lower->ign = 0;\n }" (if) "if" (parenthesized_expression) "(higher->rept == 1)" (() "(" (binary_expression) "higher->rept == 1" (field_expression) "higher->rept" (identifier) "higher" (->) "->" (field_identifier) "rept" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n lower->rept = 1;\n lower->rtrn = lower->ign = 0;\n }" ({) "{" (expression_statement) "lower->rept = 1;" (assignment_expression) "lower->rept = 1" (field_expression) "lower->rept" (identifier) "lower" (->) "->" (field_identifier) "rept" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "lower->rtrn = lower->ign = 0;" (assignment_expression) "lower->rtrn = lower->ign = 0" (field_expression) "lower->rtrn" (identifier) "lower" (->) "->" (field_identifier) "rtrn" (=) "=" (assignment_expression) "lower->ign = 0" (field_expression) "lower->ign" (identifier) "lower" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if (higher->rtrn == 1) {\n lower->rtrn = 1;\n lower->rept = lower->ign = 0;\n }" (if) "if" (parenthesized_expression) "(higher->rtrn == 1)" (() "(" (binary_expression) "higher->rtrn == 1" (field_expression) "higher->rtrn" (identifier) "higher" (->) "->" (field_identifier) "rtrn" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n lower->rtrn = 1;\n lower->rept = lower->ign = 0;\n }" ({) "{" (expression_statement) "lower->rtrn = 1;" (assignment_expression) "lower->rtrn = 1" (field_expression) "lower->rtrn" (identifier) "lower" (->) "->" (field_identifier) "rtrn" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "lower->rept = lower->ign = 0;" (assignment_expression) "lower->rept = lower->ign = 0" (field_expression) "lower->rept" (identifier) "lower" (->) "->" (field_identifier) "rept" (=) "=" (assignment_expression) "lower->ign = 0" (field_expression) "lower->ign" (identifier) "lower" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if (higher->ign == 1) {\n lower->ign = 1;\n lower->rept = lower->rtrn = 0;\n }" (if) "if" (parenthesized_expression) "(higher->ign == 1)" (() "(" (binary_expression) "higher->ign == 1" (field_expression) "higher->ign" (identifier) "higher" (->) "->" (field_identifier) "ign" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n lower->ign = 1;\n lower->rept = lower->rtrn = 0;\n }" ({) "{" (expression_statement) "lower->ign = 1;" (assignment_expression) "lower->ign = 1" (field_expression) "lower->ign" (identifier) "lower" (->) "->" (field_identifier) "ign" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "lower->rept = lower->rtrn = 0;" (assignment_expression) "lower->rept = lower->rtrn = 0" (field_expression) "lower->rept" (identifier) "lower" (->) "->" (field_identifier) "rept" (=) "=" (assignment_expression) "lower->rtrn = 0" (field_expression) "lower->rtrn" (identifier) "lower" (->) "->" (field_identifier) "rtrn" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}"
1,169
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 27.73, "nodes": 681, "errors": 0, "source_hash": "14cd9eee380e8cec27fb821f6d8aadc9c60624003809cf189caa695e94264bee", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\" \n", "parent": null, "children": [1, 2], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "ident\t\"%Z%%M%\t%I%\t%E% SMI\" ", "parent": 0, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 35}}, {"id": 3, "type": "preproc_include", "text": "#include \"mail.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"mail.h\"", "parent": 3, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 17}}, {"id": 6, "type": "declaration", "text": "static void getopts();", "parent": null, "children": [7, 8], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 22}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 11}}, {"id": 8, "type": "function_declarator", "text": "getopts()", "parent": 6, "children": [9, 10], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 21}}, {"id": 9, "type": "identifier", "text": "getopts", "parent": 8, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 19}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 21}}, {"id": 11, "type": "declaration", "text": "static void mergeopts();", "parent": null, "children": [12, 13], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 24}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 11}}, {"id": 13, "type": "function_declarator", "text": "mergeopts()", "parent": 11, "children": [14, 15], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 23}}, {"id": 14, "type": "identifier", "text": "mergeopts", "parent": 13, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 21}}, {"id": 15, "type": "parameter_list", "text": "()", "parent": 13, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 23}}, {"id": 16, "type": "struct_specifier", "text": "struct dlvopts {\n\tint\tdeliv;\n\tint\tnodeliv;\n\tint\trept;\n\tint\trtrn;\n\tint\tign;\n}", "parent": null, "children": [17, 18], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 17, "type": "struct", "text": "struct", "parent": 16, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 18, "type": "type_identifier", "text": "dlvopts", "parent": 16, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 14}}, {"id": 19, "type": "field_declaration", "text": "int\tdeliv;", "parent": 16, "children": [20, 21], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 11}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 21, "type": "field_identifier", "text": "deliv", "parent": 19, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 10}}, {"id": 22, "type": "field_declaration", "text": "int\tnodeliv;", "parent": 16, "children": [23, 24], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 13}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 4}}, {"id": 24, "type": "field_identifier", "text": "nodeliv", "parent": 22, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 12}}, {"id": 25, "type": "field_declaration", "text": "int\trept;", "parent": 16, "children": [26, 27], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 10}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 27, "type": "field_identifier", "text": "rept", "parent": 25, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 9}}, {"id": 28, "type": "field_declaration", "text": "int\trtrn;", "parent": 16, "children": [29, 30], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 10}}, {"id": 29, "type": "primitive_type", "text": "int", "parent": 28, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 30, "type": "field_identifier", "text": "rtrn", "parent": 28, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 9}}, {"id": 31, "type": "field_declaration", "text": "int\tign;", "parent": 16, "children": [32, 33], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 9}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 4}}, {"id": 33, "type": "field_identifier", "text": "ign", "parent": 31, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 8}}, {"id": 34, "type": "function_definition", "text": "int ckdlivopts(tcopy_hdr, svopts)\nint\ttcopy_hdr;\nint\t*svopts;\n{\n\tstatic char\tpn[] = \"ckdlivopts\";\n\tstruct\thdrs\t*hp;\n\tstruct dlvopts\ttoopts, tropts, defopts;\n\tint\t\trc;\n\n\t/* already done this once. no need to repeat..... */\n\tif (svopts && *svopts != 0) {\n\t\tDout(pn, 0, \"*svopts = o%o\\n\", *svopts);\n\t\treturn (*svopts);\n\t}\n\tmemset((char *)&defopts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_DEFOPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &defopts);\n\t}\n\tmemset((char *)&tropts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_TROPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &tropts);\n\t}\n\tmemset((char *)&toopts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3,\"H_TCOPY line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &toopts);\n\t}\n\t/* Combine options from different header lines. Precedence is */\n\t/* toopts --> tropts --> defopts. Results left in defopts */\n\tmergeopts(&tropts,&defopts);\n\tmergeopts(&toopts,&defopts);\n\n\tif (defopts.deliv)\trc = DELIVERY;\n\telse\t\t\trc = NODELIVERY;\n\n\tif (defopts.rtrn)\trc += RETURN;\n\telse if (defopts.rept)\trc += REPORT;\n\telse if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;\n\n\tDout(pn, 0,\"returning = o%o\\n\", rc);\n\tif (svopts)\n\t\t*svopts = rc;\n\treturn (rc);\n}", "parent": null, "children": [35, 36, 41, 44], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 36, "type": "function_declarator", "text": "ckdlivopts(tcopy_hdr, svopts)", "parent": 34, "children": [37, 38], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 33}}, {"id": 37, "type": "identifier", "text": "ckdlivopts", "parent": 36, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 14}}, {"id": 38, "type": "parameter_list", "text": "(tcopy_hdr, svopts)", "parent": 36, "children": [39, 40], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 33}}, {"id": 39, "type": "identifier", "text": "tcopy_hdr", "parent": 38, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 24}}, {"id": 40, "type": "identifier", "text": "svopts", "parent": 38, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 32}}, {"id": 41, "type": "declaration", "text": "int\ttcopy_hdr;", "parent": 34, "children": [42, 43], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 14}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 3}}, {"id": 43, "type": "identifier", "text": "tcopy_hdr", "parent": 41, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 13}}, {"id": 44, "type": "declaration", "text": "int\t*svopts;", "parent": 34, "children": [45, 46], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 12}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 3}}, {"id": 46, "type": "pointer_declarator", "text": "*svopts", "parent": 44, "children": [47, 48], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 11}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 48, "type": "identifier", "text": "svopts", "parent": 46, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 11}}, {"id": 49, "type": "declaration", "text": "static char\tpn[] = \"ckdlivopts\";", "parent": 34, "children": [50, 51], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 33}}, {"id": 50, "type": "primitive_type", "text": "char", "parent": 49, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 12}}, {"id": 51, "type": "init_declarator", "text": "pn[] = \"ckdlivopts\"", "parent": 49, "children": [52, 54, 55], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 32}}, {"id": 52, "type": "array_declarator", "text": "pn[]", "parent": 51, "children": [53], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 53, "type": "identifier", "text": "pn", "parent": 52, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 15}}, {"id": 54, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 55, "type": "string_literal", "text": "\"ckdlivopts\"", "parent": 51, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 32}}, {"id": 56, "type": "declaration", "text": "struct\thdrs\t*hp;", "parent": 34, "children": [57, 60], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 17}}, {"id": 57, "type": "struct_specifier", "text": "struct\thdrs", "parent": 56, "children": [58, 59], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 12}}, {"id": 58, "type": "struct", "text": "struct", "parent": 57, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 7}}, {"id": 59, "type": "type_identifier", "text": "hdrs", "parent": 57, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 12}}, {"id": 60, "type": "pointer_declarator", "text": "*hp", "parent": 56, "children": [61, 62], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 16}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 14}}, {"id": 62, "type": "identifier", "text": "hp", "parent": 60, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 16}}, {"id": 63, "type": "declaration", "text": "struct dlvopts\ttoopts, tropts, defopts;", "parent": 34, "children": [64, 67, 68, 69], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 40}}, {"id": 64, "type": "struct_specifier", "text": "struct dlvopts", "parent": 63, "children": [65, 66], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 15}}, {"id": 65, "type": "struct", "text": "struct", "parent": 64, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 7}}, {"id": 66, "type": "type_identifier", "text": "dlvopts", "parent": 64, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 15}}, {"id": 67, "type": "identifier", "text": "toopts", "parent": 63, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 22}}, {"id": 68, "type": "identifier", "text": "tropts", "parent": 63, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 30}}, {"id": 69, "type": "identifier", "text": "defopts", "parent": 63, "children": [], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 39}}, {"id": 70, "type": "declaration", "text": "int\t\trc;", "parent": 34, "children": [71, 72], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 9}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 4}}, {"id": 72, "type": "identifier", "text": "rc", "parent": 70, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 8}}, {"id": 73, "type": "if_statement", "text": "if (svopts && *svopts != 0) {\n\t\tDout(pn, 0, \"*svopts = o%o\\n\", *svopts);\n\t\treturn (*svopts);\n\t}", "parent": 34, "children": [74], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 74, "type": "parenthesized_expression", "text": "(svopts && *svopts != 0)", "parent": 73, "children": [75], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 28}}, {"id": 75, "type": "binary_expression", "text": "svopts && *svopts != 0", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 27}}, {"id": 76, "type": "identifier", "text": "svopts", "parent": 75, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 11}}, {"id": 77, "type": "&&", "text": "&&", "parent": 75, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 14}}, {"id": 78, "type": "binary_expression", "text": "*svopts != 0", "parent": 75, "children": [79, 82, 83], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 27}}, {"id": 79, "type": "pointer_expression", "text": "*svopts", "parent": 78, "children": [80, 81], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 22}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 16}}, {"id": 81, "type": "identifier", "text": "svopts", "parent": 79, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 22}}, {"id": 82, "type": "!=", "text": "!=", "parent": 78, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 25}}, {"id": 83, "type": "number_literal", "text": "0", "parent": 78, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 27}}, {"id": 84, "type": "call_expression", "text": "Dout(pn, 0, \"*svopts = o%o\\n\", *svopts)", "parent": 73, "children": [85, 86], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 41}}, {"id": 85, "type": "identifier", "text": "Dout", "parent": 84, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 86, "type": "argument_list", "text": "(pn, 0, \"*svopts = o%o\\n\", *svopts)", "parent": 84, "children": [87, 88, 89, 91], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 41}}, {"id": 87, "type": "identifier", "text": "pn", "parent": 86, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 9}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 12}}, {"id": 89, "type": "string_literal", "text": "\"*svopts = o%o\\n\"", "parent": 86, "children": [90], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 31}}, {"id": 90, "type": "escape_sequence", "text": "\\n", "parent": 89, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 30}}, {"id": 91, "type": "pointer_expression", "text": "*svopts", "parent": 86, "children": [92, 93], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 40}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 34}}, {"id": 93, "type": "identifier", "text": "svopts", "parent": 91, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 40}}, {"id": 94, "type": "return_statement", "text": "return (*svopts);", "parent": 73, "children": [95], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 19}}, {"id": 95, "type": "parenthesized_expression", "text": "(*svopts)", "parent": 94, "children": [96], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 18}}, {"id": 96, "type": "pointer_expression", "text": "*svopts", "parent": 95, "children": [97, 98], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 17}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 98, "type": "identifier", "text": "svopts", "parent": 96, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 17}}, {"id": 99, "type": "call_expression", "text": "memset((char *)&defopts, 0, sizeof(struct dlvopts))", "parent": 34, "children": [100, 101], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 52}}, {"id": 100, "type": "identifier", "text": "memset", "parent": 99, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 7}}, {"id": 101, "type": "argument_list", "text": "((char *)&defopts, 0, sizeof(struct dlvopts))", "parent": 99, "children": [102, 109, 110], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 52}}, {"id": 102, "type": "cast_expression", "text": "(char *)&defopts", "parent": 101, "children": [103, 107], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 24}}, {"id": 103, "type": "type_descriptor", "text": "char *", "parent": 102, "children": [104, 105], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 15}}, {"id": 104, "type": "primitive_type", "text": "char", "parent": 103, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 13}}, {"id": 105, "type": "abstract_pointer_declarator", "text": "*", "parent": 103, "children": [106], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 15}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 15}}, {"id": 107, "type": "pointer_expression", "text": "&defopts", "parent": 102, "children": [108], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 24}}, {"id": 108, "type": "identifier", "text": "defopts", "parent": 107, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 24}}, {"id": 109, "type": "number_literal", "text": "0", "parent": 101, "children": [], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 27}}, {"id": 110, "type": "sizeof_expression", "text": "sizeof(struct dlvopts)", "parent": 101, "children": [111], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 51}}, {"id": 111, "type": "type_descriptor", "text": "struct dlvopts", "parent": 110, "children": [112], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 50}}, {"id": 112, "type": "struct_specifier", "text": "struct dlvopts", "parent": 111, "children": [113, 114], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 50}}, {"id": 113, "type": "struct", "text": "struct", "parent": 112, "children": [], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 42}}, {"id": 114, "type": "type_identifier", "text": "dlvopts", "parent": 112, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 50}}, {"id": 115, "type": "if_statement", "text": "if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_DEFOPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &defopts);\n\t}", "parent": 34, "children": [116], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 116, "type": "parenthesized_expression", "text": "((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL)", "parent": 115, "children": [117], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 60}}, {"id": 117, "type": "binary_expression", "text": "(hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL", "parent": 116, "children": [118, 127, 128], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 59}}, {"id": 118, "type": "parenthesized_expression", "text": "(hp = hdrlines[H_DEFOPTS].head)", "parent": 117, "children": [119], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 36}}, {"id": 119, "type": "assignment_expression", "text": "hp = hdrlines[H_DEFOPTS].head", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 35}}, {"id": 120, "type": "identifier", "text": "hp", "parent": 119, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 8}}, {"id": 121, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 10}}, {"id": 122, "type": "field_expression", "text": "hdrlines[H_DEFOPTS].head", "parent": 119, "children": [123, 126], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 35}}, {"id": 123, "type": "subscript_expression", "text": "hdrlines[H_DEFOPTS]", "parent": 122, "children": [124, 125], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 30}}, {"id": 124, "type": "identifier", "text": "hdrlines", "parent": 123, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 19}}, {"id": 125, "type": "identifier", "text": "H_DEFOPTS", "parent": 123, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 29}}, {"id": 126, "type": "field_identifier", "text": "head", "parent": 122, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 35}}, {"id": 127, "type": "!=", "text": "!=", "parent": 117, "children": [], "start_point": {"row": 80, "column": 37}, "end_point": {"row": 80, "column": 39}}, {"id": 128, "type": "cast_expression", "text": "(struct hdrs *)NULL", "parent": 117, "children": [129, 135], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 59}}, {"id": 129, "type": "type_descriptor", "text": "struct hdrs *", "parent": 128, "children": [130, 133], "start_point": {"row": 80, "column": 41}, "end_point": {"row": 80, "column": 54}}, {"id": 130, "type": "struct_specifier", "text": "struct hdrs", "parent": 129, "children": [131, 132], "start_point": {"row": 80, "column": 41}, "end_point": {"row": 80, "column": 52}}, {"id": 131, "type": "struct", "text": "struct", "parent": 130, "children": [], "start_point": {"row": 80, "column": 41}, "end_point": {"row": 80, "column": 47}}, {"id": 132, "type": "type_identifier", "text": "hdrs", "parent": 130, "children": [], "start_point": {"row": 80, "column": 48}, "end_point": {"row": 80, "column": 52}}, {"id": 133, "type": "abstract_pointer_declarator", "text": "*", "parent": 129, "children": [134], "start_point": {"row": 80, "column": 53}, "end_point": {"row": 80, "column": 54}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 80, "column": 53}, "end_point": {"row": 80, "column": 54}}, {"id": 135, "type": "null", "text": "NULL", "parent": 128, "children": [136], "start_point": {"row": 80, "column": 55}, "end_point": {"row": 80, "column": 59}}, {"id": 136, "type": "NULL", "text": "NULL", "parent": 135, "children": [], "start_point": {"row": 80, "column": 55}, "end_point": {"row": 80, "column": 59}}, {"id": 137, "type": "call_expression", "text": "Dout(pn, 3, \"H_DEFOPTS line = '%s'\\n\", hp->value)", "parent": 115, "children": [138, 139], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 51}}, {"id": 138, "type": "identifier", "text": "Dout", "parent": 137, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 139, "type": "argument_list", "text": "(pn, 3, \"H_DEFOPTS line = '%s'\\n\", hp->value)", "parent": 137, "children": [140, 141, 142, 144], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 51}}, {"id": 140, "type": "identifier", "text": "pn", "parent": 139, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 9}}, {"id": 141, "type": "number_literal", "text": "3", "parent": 139, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 12}}, {"id": 142, "type": "string_literal", "text": "\"H_DEFOPTS line = '%s'\\n\"", "parent": 139, "children": [143], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 39}}, {"id": 143, "type": "escape_sequence", "text": "\\n", "parent": 142, "children": [], "start_point": {"row": 81, "column": 36}, "end_point": {"row": 81, "column": 38}}, {"id": 144, "type": "field_expression", "text": "hp->value", "parent": 139, "children": [145, 146], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 50}}, {"id": 145, "type": "identifier", "text": "hp", "parent": 144, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 43}}, {"id": 146, "type": "field_identifier", "text": "value", "parent": 144, "children": [], "start_point": {"row": 81, "column": 45}, "end_point": {"row": 81, "column": 50}}, {"id": 147, "type": "call_expression", "text": "getopts(hp->value, &defopts)", "parent": 115, "children": [148, 149], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 30}}, {"id": 148, "type": "identifier", "text": "getopts", "parent": 147, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 9}}, {"id": 149, "type": "argument_list", "text": "(hp->value, &defopts)", "parent": 147, "children": [150, 153], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 30}}, {"id": 150, "type": "field_expression", "text": "hp->value", "parent": 149, "children": [151, 152], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 19}}, {"id": 151, "type": "identifier", "text": "hp", "parent": 150, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 12}}, {"id": 152, "type": "field_identifier", "text": "value", "parent": 150, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 19}}, {"id": 153, "type": "pointer_expression", "text": "&defopts", "parent": 149, "children": [154], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 29}}, {"id": 154, "type": "identifier", "text": "defopts", "parent": 153, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 29}}, {"id": 155, "type": "call_expression", "text": "memset((char *)&tropts, 0, sizeof(struct dlvopts))", "parent": 34, "children": [156, 157], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 51}}, {"id": 156, "type": "identifier", "text": "memset", "parent": 155, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 7}}, {"id": 157, "type": "argument_list", "text": "((char *)&tropts, 0, sizeof(struct dlvopts))", "parent": 155, "children": [158, 165, 166], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 51}}, {"id": 158, "type": "cast_expression", "text": "(char *)&tropts", "parent": 157, "children": [159, 163], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 23}}, {"id": 159, "type": "type_descriptor", "text": "char *", "parent": 158, "children": [160, 161], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 15}}, {"id": 160, "type": "primitive_type", "text": "char", "parent": 159, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 13}}, {"id": 161, "type": "abstract_pointer_declarator", "text": "*", "parent": 159, "children": [162], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 15}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 15}}, {"id": 163, "type": "pointer_expression", "text": "&tropts", "parent": 158, "children": [164], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 23}}, {"id": 164, "type": "identifier", "text": "tropts", "parent": 163, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 23}}, {"id": 165, "type": "number_literal", "text": "0", "parent": 157, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 166, "type": "sizeof_expression", "text": "sizeof(struct dlvopts)", "parent": 157, "children": [167], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 50}}, {"id": 167, "type": "type_descriptor", "text": "struct dlvopts", "parent": 166, "children": [168], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 49}}, {"id": 168, "type": "struct_specifier", "text": "struct dlvopts", "parent": 167, "children": [169, 170], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 49}}, {"id": 169, "type": "struct", "text": "struct", "parent": 168, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 41}}, {"id": 170, "type": "type_identifier", "text": "dlvopts", "parent": 168, "children": [], "start_point": {"row": 84, "column": 42}, "end_point": {"row": 84, "column": 49}}, {"id": 171, "type": "if_statement", "text": "if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_TROPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &tropts);\n\t}", "parent": 34, "children": [172], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 88, "column": 2}}, {"id": 172, "type": "parenthesized_expression", "text": "((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL)", "parent": 171, "children": [173], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 59}}, {"id": 173, "type": "binary_expression", "text": "(hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL", "parent": 172, "children": [174, 183, 184], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 58}}, {"id": 174, "type": "parenthesized_expression", "text": "(hp = hdrlines[H_TROPTS].head)", "parent": 173, "children": [175], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 35}}, {"id": 175, "type": "assignment_expression", "text": "hp = hdrlines[H_TROPTS].head", "parent": 174, "children": [176, 177, 178], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 34}}, {"id": 176, "type": "identifier", "text": "hp", "parent": 175, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 8}}, {"id": 177, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 178, "type": "field_expression", "text": "hdrlines[H_TROPTS].head", "parent": 175, "children": [179, 182], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 34}}, {"id": 179, "type": "subscript_expression", "text": "hdrlines[H_TROPTS]", "parent": 178, "children": [180, 181], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 29}}, {"id": 180, "type": "identifier", "text": "hdrlines", "parent": 179, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 19}}, {"id": 181, "type": "identifier", "text": "H_TROPTS", "parent": 179, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 28}}, {"id": 182, "type": "field_identifier", "text": "head", "parent": 178, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 34}}, {"id": 183, "type": "!=", "text": "!=", "parent": 173, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 38}}, {"id": 184, "type": "cast_expression", "text": "(struct hdrs *)NULL", "parent": 173, "children": [185, 191], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 58}}, {"id": 185, "type": "type_descriptor", "text": "struct hdrs *", "parent": 184, "children": [186, 189], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 53}}, {"id": 186, "type": "struct_specifier", "text": "struct hdrs", "parent": 185, "children": [187, 188], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 51}}, {"id": 187, "type": "struct", "text": "struct", "parent": 186, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 46}}, {"id": 188, "type": "type_identifier", "text": "hdrs", "parent": 186, "children": [], "start_point": {"row": 85, "column": 47}, "end_point": {"row": 85, "column": 51}}, {"id": 189, "type": "abstract_pointer_declarator", "text": "*", "parent": 185, "children": [190], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 53}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 53}}, {"id": 191, "type": "null", "text": "NULL", "parent": 184, "children": [192], "start_point": {"row": 85, "column": 54}, "end_point": {"row": 85, "column": 58}}, {"id": 192, "type": "NULL", "text": "NULL", "parent": 191, "children": [], "start_point": {"row": 85, "column": 54}, "end_point": {"row": 85, "column": 58}}, {"id": 193, "type": "call_expression", "text": "Dout(pn, 3, \"H_TROPTS line = '%s'\\n\", hp->value)", "parent": 171, "children": [194, 195], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 50}}, {"id": 194, "type": "identifier", "text": "Dout", "parent": 193, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 195, "type": "argument_list", "text": "(pn, 3, \"H_TROPTS line = '%s'\\n\", hp->value)", "parent": 193, "children": [196, 197, 198, 200], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 50}}, {"id": 196, "type": "identifier", "text": "pn", "parent": 195, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 9}}, {"id": 197, "type": "number_literal", "text": "3", "parent": 195, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 12}}, {"id": 198, "type": "string_literal", "text": "\"H_TROPTS line = '%s'\\n\"", "parent": 195, "children": [199], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 38}}, {"id": 199, "type": "escape_sequence", "text": "\\n", "parent": 198, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 37}}, {"id": 200, "type": "field_expression", "text": "hp->value", "parent": 195, "children": [201, 202], "start_point": {"row": 86, "column": 40}, "end_point": {"row": 86, "column": 49}}, {"id": 201, "type": "identifier", "text": "hp", "parent": 200, "children": [], "start_point": {"row": 86, "column": 40}, "end_point": {"row": 86, "column": 42}}, {"id": 202, "type": "field_identifier", "text": "value", "parent": 200, "children": [], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 49}}, {"id": 203, "type": "call_expression", "text": "getopts(hp->value, &tropts)", "parent": 171, "children": [204, 205], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 29}}, {"id": 204, "type": "identifier", "text": "getopts", "parent": 203, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 205, "type": "argument_list", "text": "(hp->value, &tropts)", "parent": 203, "children": [206, 209], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 29}}, {"id": 206, "type": "field_expression", "text": "hp->value", "parent": 205, "children": [207, 208], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 19}}, {"id": 207, "type": "identifier", "text": "hp", "parent": 206, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 12}}, {"id": 208, "type": "field_identifier", "text": "value", "parent": 206, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 19}}, {"id": 209, "type": "pointer_expression", "text": "&tropts", "parent": 205, "children": [210], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 28}}, {"id": 210, "type": "identifier", "text": "tropts", "parent": 209, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 28}}, {"id": 211, "type": "call_expression", "text": "memset((char *)&toopts, 0, sizeof(struct dlvopts))", "parent": 34, "children": [212, 213], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 51}}, {"id": 212, "type": "identifier", "text": "memset", "parent": 211, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 7}}, {"id": 213, "type": "argument_list", "text": "((char *)&toopts, 0, sizeof(struct dlvopts))", "parent": 211, "children": [214, 221, 222], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 51}}, {"id": 214, "type": "cast_expression", "text": "(char *)&toopts", "parent": 213, "children": [215, 219], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 23}}, {"id": 215, "type": "type_descriptor", "text": "char *", "parent": 214, "children": [216, 217], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 15}}, {"id": 216, "type": "primitive_type", "text": "char", "parent": 215, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 13}}, {"id": 217, "type": "abstract_pointer_declarator", "text": "*", "parent": 215, "children": [218], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 219, "type": "pointer_expression", "text": "&toopts", "parent": 214, "children": [220], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 23}}, {"id": 220, "type": "identifier", "text": "toopts", "parent": 219, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 23}}, {"id": 221, "type": "number_literal", "text": "0", "parent": 213, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 26}}, {"id": 222, "type": "sizeof_expression", "text": "sizeof(struct dlvopts)", "parent": 213, "children": [223], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 50}}, {"id": 223, "type": "type_descriptor", "text": "struct dlvopts", "parent": 222, "children": [224], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 49}}, {"id": 224, "type": "struct_specifier", "text": "struct dlvopts", "parent": 223, "children": [225, 226], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 49}}, {"id": 225, "type": "struct", "text": "struct", "parent": 224, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 41}}, {"id": 226, "type": "type_identifier", "text": "dlvopts", "parent": 224, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 49}}, {"id": 227, "type": "if_statement", "text": "if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3,\"H_TCOPY line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &toopts);\n\t}", "parent": 34, "children": [228], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 93, "column": 2}}, {"id": 228, "type": "parenthesized_expression", "text": "((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL)", "parent": 227, "children": [229], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 60}}, {"id": 229, "type": "binary_expression", "text": "(hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL", "parent": 228, "children": [230, 239, 240], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 59}}, {"id": 230, "type": "parenthesized_expression", "text": "(hp = hdrlines[tcopy_hdr].head)", "parent": 229, "children": [231], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 36}}, {"id": 231, "type": "assignment_expression", "text": "hp = hdrlines[tcopy_hdr].head", "parent": 230, "children": [232, 233, 234], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 35}}, {"id": 232, "type": "identifier", "text": "hp", "parent": 231, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 8}}, {"id": 233, "type": "=", "text": "=", "parent": 231, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 234, "type": "field_expression", "text": "hdrlines[tcopy_hdr].head", "parent": 231, "children": [235, 238], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 35}}, {"id": 235, "type": "subscript_expression", "text": "hdrlines[tcopy_hdr]", "parent": 234, "children": [236, 237], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 30}}, {"id": 236, "type": "identifier", "text": "hdrlines", "parent": 235, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 19}}, {"id": 237, "type": "identifier", "text": "tcopy_hdr", "parent": 235, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 29}}, {"id": 238, "type": "field_identifier", "text": "head", "parent": 234, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 35}}, {"id": 239, "type": "!=", "text": "!=", "parent": 229, "children": [], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 39}}, {"id": 240, "type": "cast_expression", "text": "(struct hdrs *)NULL", "parent": 229, "children": [241, 247], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 59}}, {"id": 241, "type": "type_descriptor", "text": "struct hdrs *", "parent": 240, "children": [242, 245], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 54}}, {"id": 242, "type": "struct_specifier", "text": "struct hdrs", "parent": 241, "children": [243, 244], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 52}}, {"id": 243, "type": "struct", "text": "struct", "parent": 242, "children": [], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 47}}, {"id": 244, "type": "type_identifier", "text": "hdrs", "parent": 242, "children": [], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 52}}, {"id": 245, "type": "abstract_pointer_declarator", "text": "*", "parent": 241, "children": [246], "start_point": {"row": 90, "column": 53}, "end_point": {"row": 90, "column": 54}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 90, "column": 53}, "end_point": {"row": 90, "column": 54}}, {"id": 247, "type": "null", "text": "NULL", "parent": 240, "children": [248], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 59}}, {"id": 248, "type": "NULL", "text": "NULL", "parent": 247, "children": [], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 59}}, {"id": 249, "type": "call_expression", "text": "Dout(pn, 3,\"H_TCOPY line = '%s'\\n\", hp->value)", "parent": 227, "children": [250, 251], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 48}}, {"id": 250, "type": "identifier", "text": "Dout", "parent": 249, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 6}}, {"id": 251, "type": "argument_list", "text": "(pn, 3,\"H_TCOPY line = '%s'\\n\", hp->value)", "parent": 249, "children": [252, 253, 254, 256], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 48}}, {"id": 252, "type": "identifier", "text": "pn", "parent": 251, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 9}}, {"id": 253, "type": "number_literal", "text": "3", "parent": 251, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 12}}, {"id": 254, "type": "string_literal", "text": "\"H_TCOPY line = '%s'\\n\"", "parent": 251, "children": [255], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 36}}, {"id": 255, "type": "escape_sequence", "text": "\\n", "parent": 254, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 35}}, {"id": 256, "type": "field_expression", "text": "hp->value", "parent": 251, "children": [257, 258], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 47}}, {"id": 257, "type": "identifier", "text": "hp", "parent": 256, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 40}}, {"id": 258, "type": "field_identifier", "text": "value", "parent": 256, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 47}}, {"id": 259, "type": "call_expression", "text": "getopts(hp->value, &toopts)", "parent": 227, "children": [260, 261], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 29}}, {"id": 260, "type": "identifier", "text": "getopts", "parent": 259, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 9}}, {"id": 261, "type": "argument_list", "text": "(hp->value, &toopts)", "parent": 259, "children": [262, 265], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 29}}, {"id": 262, "type": "field_expression", "text": "hp->value", "parent": 261, "children": [263, 264], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 19}}, {"id": 263, "type": "identifier", "text": "hp", "parent": 262, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 12}}, {"id": 264, "type": "field_identifier", "text": "value", "parent": 262, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 19}}, {"id": 265, "type": "pointer_expression", "text": "&toopts", "parent": 261, "children": [266], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 28}}, {"id": 266, "type": "identifier", "text": "toopts", "parent": 265, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 28}}, {"id": 267, "type": "call_expression", "text": "mergeopts(&tropts,&defopts)", "parent": 34, "children": [268, 269], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 28}}, {"id": 268, "type": "identifier", "text": "mergeopts", "parent": 267, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 10}}, {"id": 269, "type": "argument_list", "text": "(&tropts,&defopts)", "parent": 267, "children": [270, 272], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 28}}, {"id": 270, "type": "pointer_expression", "text": "&tropts", "parent": 269, "children": [271], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 18}}, {"id": 271, "type": "identifier", "text": "tropts", "parent": 270, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 18}}, {"id": 272, "type": "pointer_expression", "text": "&defopts", "parent": 269, "children": [273], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 27}}, {"id": 273, "type": "identifier", "text": "defopts", "parent": 272, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 27}}, {"id": 274, "type": "call_expression", "text": "mergeopts(&toopts,&defopts)", "parent": 34, "children": [275, 276], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 28}}, {"id": 275, "type": "identifier", "text": "mergeopts", "parent": 274, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 10}}, {"id": 276, "type": "argument_list", "text": "(&toopts,&defopts)", "parent": 274, "children": [277, 279], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 28}}, {"id": 277, "type": "pointer_expression", "text": "&toopts", "parent": 276, "children": [278], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 18}}, {"id": 278, "type": "identifier", "text": "toopts", "parent": 277, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 18}}, {"id": 279, "type": "pointer_expression", "text": "&defopts", "parent": 276, "children": [280], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 27}}, {"id": 280, "type": "identifier", "text": "defopts", "parent": 279, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 27}}, {"id": 281, "type": "if_statement", "text": "if (defopts.deliv)\trc = DELIVERY;\n\telse\t\t\trc = NODELIVERY;", "parent": 34, "children": [282, 290], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 100, "column": 24}}, {"id": 282, "type": "parenthesized_expression", "text": "(defopts.deliv)", "parent": 281, "children": [283], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 19}}, {"id": 283, "type": "field_expression", "text": "defopts.deliv", "parent": 282, "children": [284, 285], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 18}}, {"id": 284, "type": "identifier", "text": "defopts", "parent": 283, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 12}}, {"id": 285, "type": "field_identifier", "text": "deliv", "parent": 283, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 18}}, {"id": 286, "type": "assignment_expression", "text": "rc = DELIVERY", "parent": 281, "children": [287, 288, 289], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 33}}, {"id": 287, "type": "identifier", "text": "rc", "parent": 286, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 22}}, {"id": 288, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 24}}, {"id": 289, "type": "identifier", "text": "DELIVERY", "parent": 286, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 33}}, {"id": 290, "type": "else_clause", "text": "else\t\t\trc = NODELIVERY;", "parent": 281, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 24}}, {"id": 291, "type": "assignment_expression", "text": "rc = NODELIVERY", "parent": 290, "children": [292, 293, 294], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 23}}, {"id": 292, "type": "identifier", "text": "rc", "parent": 291, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 10}}, {"id": 293, "type": "=", "text": "=", "parent": 291, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 12}}, {"id": 294, "type": "identifier", "text": "NODELIVERY", "parent": 291, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 23}}, {"id": 295, "type": "if_statement", "text": "if (defopts.rtrn)\trc += RETURN;\n\telse if (defopts.rept)\trc += REPORT;\n\telse if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;", "parent": 34, "children": [296, 304], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 105, "column": 21}}, {"id": 296, "type": "parenthesized_expression", "text": "(defopts.rtrn)", "parent": 295, "children": [297], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 18}}, {"id": 297, "type": "field_expression", "text": "defopts.rtrn", "parent": 296, "children": [298, 299], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 17}}, {"id": 298, "type": "identifier", "text": "defopts", "parent": 297, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 12}}, {"id": 299, "type": "field_identifier", "text": "rtrn", "parent": 297, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 17}}, {"id": 300, "type": "assignment_expression", "text": "rc += RETURN", "parent": 295, "children": [301, 302, 303], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 31}}, {"id": 301, "type": "identifier", "text": "rc", "parent": 300, "children": [], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 21}}, {"id": 302, "type": "+=", "text": "+=", "parent": 300, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 24}}, {"id": 303, "type": "identifier", "text": "RETURN", "parent": 300, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 31}}, {"id": 304, "type": "else_clause", "text": "else if (defopts.rept)\trc += REPORT;\n\telse if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;", "parent": 295, "children": [305], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 105, "column": 21}}, {"id": 305, "type": "if_statement", "text": "if (defopts.rept)\trc += REPORT;\n\telse if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;", "parent": 304, "children": [306, 314], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 105, "column": 21}}, {"id": 306, "type": "parenthesized_expression", "text": "(defopts.rept)", "parent": 305, "children": [307], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 23}}, {"id": 307, "type": "field_expression", "text": "defopts.rept", "parent": 306, "children": [308, 309], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 22}}, {"id": 308, "type": "identifier", "text": "defopts", "parent": 307, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 17}}, {"id": 309, "type": "field_identifier", "text": "rept", "parent": 307, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 22}}, {"id": 310, "type": "assignment_expression", "text": "rc += REPORT", "parent": 305, "children": [311, 312, 313], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 36}}, {"id": 311, "type": "identifier", "text": "rc", "parent": 310, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 26}}, {"id": 312, "type": "+=", "text": "+=", "parent": 310, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 29}}, {"id": 313, "type": "identifier", "text": "REPORT", "parent": 310, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 36}}, {"id": 314, "type": "else_clause", "text": "else if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;", "parent": 305, "children": [315], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 105, "column": 21}}, {"id": 315, "type": "if_statement", "text": "if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;", "parent": 314, "children": [316, 324], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 105, "column": 21}}, {"id": 316, "type": "parenthesized_expression", "text": "(defopts.ign)", "parent": 315, "children": [317], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 22}}, {"id": 317, "type": "field_expression", "text": "defopts.ign", "parent": 316, "children": [318, 319], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 21}}, {"id": 318, "type": "identifier", "text": "defopts", "parent": 317, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 17}}, {"id": 319, "type": "field_identifier", "text": "ign", "parent": 317, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 21}}, {"id": 320, "type": "assignment_expression", "text": "rc += IGNORE", "parent": 315, "children": [321, 322, 323], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 35}}, {"id": 321, "type": "identifier", "text": "rc", "parent": 320, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 25}}, {"id": 322, "type": "+=", "text": "+=", "parent": 320, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 28}}, {"id": 323, "type": "identifier", "text": "IGNORE", "parent": 320, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 35}}, {"id": 324, "type": "else_clause", "text": "else\t\t\trc += RETURN;", "parent": 315, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 21}}, {"id": 325, "type": "assignment_expression", "text": "rc += RETURN", "parent": 324, "children": [326, 327, 328], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 20}}, {"id": 326, "type": "identifier", "text": "rc", "parent": 325, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 10}}, {"id": 327, "type": "+=", "text": "+=", "parent": 325, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 13}}, {"id": 328, "type": "identifier", "text": "RETURN", "parent": 325, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 20}}, {"id": 329, "type": "call_expression", "text": "Dout(pn, 0,\"returning = o%o\\n\", rc)", "parent": 34, "children": [330, 331], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 36}}, {"id": 330, "type": "identifier", "text": "Dout", "parent": 329, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 5}}, {"id": 331, "type": "argument_list", "text": "(pn, 0,\"returning = o%o\\n\", rc)", "parent": 329, "children": [332, 333, 334, 336], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 36}}, {"id": 332, "type": "identifier", "text": "pn", "parent": 331, "children": [], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 8}}, {"id": 333, "type": "number_literal", "text": "0", "parent": 331, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 11}}, {"id": 334, "type": "string_literal", "text": "\"returning = o%o\\n\"", "parent": 331, "children": [335], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 31}}, {"id": 335, "type": "escape_sequence", "text": "\\n", "parent": 334, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 30}}, {"id": 336, "type": "identifier", "text": "rc", "parent": 331, "children": [], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 35}}, {"id": 337, "type": "if_statement", "text": "if (svopts)\n\t\t*svopts = rc;", "parent": 34, "children": [338], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 109, "column": 15}}, {"id": 338, "type": "parenthesized_expression", "text": "(svopts)", "parent": 337, "children": [339], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 12}}, {"id": 339, "type": "identifier", "text": "svopts", "parent": 338, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 11}}, {"id": 340, "type": "assignment_expression", "text": "*svopts = rc", "parent": 337, "children": [341, 344, 345], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 14}}, {"id": 341, "type": "pointer_expression", "text": "*svopts", "parent": 340, "children": [342, 343], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 3}}, {"id": 343, "type": "identifier", "text": "svopts", "parent": 341, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 9}}, {"id": 344, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 11}}, {"id": 345, "type": "identifier", "text": "rc", "parent": 340, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 14}}, {"id": 346, "type": "return_statement", "text": "return (rc);", "parent": 34, "children": [347], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 13}}, {"id": 347, "type": "parenthesized_expression", "text": "(rc)", "parent": 346, "children": [348], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 12}}, {"id": 348, "type": "identifier", "text": "rc", "parent": 347, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 11}}, {"id": 349, "type": "function_definition", "text": "static void getopts(s, optr)\nregister char\t*s;\nregister struct dlvopts *optr;\n{\n\tregister char\t*op;\n\n\tfor (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n\t\tif (casncmp(op, \"delivery\", 7) == 0) {\n\t\t\toptr->deliv = 1;\n\t\t\toptr->nodeliv = 0;\n\t\t} else if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}\n\t}\n}", "parent": null, "children": [350, 351, 356, 363], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 146, "column": 1}}, {"id": 350, "type": "primitive_type", "text": "void", "parent": 349, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 11}}, {"id": 351, "type": "function_declarator", "text": "getopts(s, optr)", "parent": 349, "children": [352, 353], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 28}}, {"id": 352, "type": "identifier", "text": "getopts", "parent": 351, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 19}}, {"id": 353, "type": "parameter_list", "text": "(s, optr)", "parent": 351, "children": [354, 355], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 28}}, {"id": 354, "type": "identifier", "text": "s", "parent": 353, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 21}}, {"id": 355, "type": "identifier", "text": "optr", "parent": 353, "children": [], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 27}}, {"id": 356, "type": "declaration", "text": "register char\t*s;", "parent": 349, "children": [357, 359, 360], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 17}}, {"id": 357, "type": "storage_class_specifier", "text": "register", "parent": 356, "children": [358], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 8}}, {"id": 358, "type": "register", "text": "register", "parent": 357, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 8}}, {"id": 359, "type": "primitive_type", "text": "char", "parent": 356, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 13}}, {"id": 360, "type": "pointer_declarator", "text": "*s", "parent": 356, "children": [361, 362], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 16}}, {"id": 361, "type": "*", "text": "*", "parent": 360, "children": [], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 15}}, {"id": 362, "type": "identifier", "text": "s", "parent": 360, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 16}}, {"id": 363, "type": "declaration", "text": "register struct dlvopts *optr;", "parent": 349, "children": [364, 366, 369], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 30}}, {"id": 364, "type": "storage_class_specifier", "text": "register", "parent": 363, "children": [365], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 8}}, {"id": 365, "type": "register", "text": "register", "parent": 364, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 8}}, {"id": 366, "type": "struct_specifier", "text": "struct dlvopts", "parent": 363, "children": [367, 368], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 23}}, {"id": 367, "type": "struct", "text": "struct", "parent": 366, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 15}}, {"id": 368, "type": "type_identifier", "text": "dlvopts", "parent": 366, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 23}}, {"id": 369, "type": "pointer_declarator", "text": "*optr", "parent": 363, "children": [370, 371], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 29}}, {"id": 370, "type": "*", "text": "*", "parent": 369, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 371, "type": "identifier", "text": "optr", "parent": 369, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 29}}, {"id": 372, "type": "declaration", "text": "register char\t*op;", "parent": 349, "children": [373, 375, 376], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 19}}, {"id": 373, "type": "storage_class_specifier", "text": "register", "parent": 372, "children": [374], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 9}}, {"id": 374, "type": "register", "text": "register", "parent": 373, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 9}}, {"id": 375, "type": "primitive_type", "text": "char", "parent": 372, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 14}}, {"id": 376, "type": "pointer_declarator", "text": "*op", "parent": 372, "children": [377, 378], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 18}}, {"id": 377, "type": "*", "text": "*", "parent": 376, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 16}}, {"id": 378, "type": "identifier", "text": "op", "parent": 376, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 18}}, {"id": 379, "type": "for_statement", "text": "for (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n\t\tif (casncmp(op, \"delivery\", 7) == 0) {\n\t\t\toptr->deliv = 1;\n\t\t\toptr->nodeliv = 0;\n\t\t} else if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}\n\t}", "parent": 349, "children": [380, 391, 394], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 145, "column": 2}}, {"id": 380, "type": "assignment_expression", "text": "op = strchr (s, '/')", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 26}}, {"id": 381, "type": "identifier", "text": "op", "parent": 380, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 8}}, {"id": 382, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 10}}, {"id": 383, "type": "call_expression", "text": "strchr (s, '/')", "parent": 380, "children": [384, 385], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 26}}, {"id": 384, "type": "identifier", "text": "strchr", "parent": 383, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 17}}, {"id": 385, "type": "argument_list", "text": "(s, '/')", "parent": 383, "children": [386, 387], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 26}}, {"id": 386, "type": "identifier", "text": "s", "parent": 385, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 20}}, {"id": 387, "type": "char_literal", "text": "'/'", "parent": 385, "children": [388, 389, 390], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 25}}, {"id": 388, "type": "'", "text": "'", "parent": 387, "children": [], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 23}}, {"id": 389, "type": "character", "text": "/", "parent": 387, "children": [], "start_point": {"row": 123, "column": 23}, "end_point": {"row": 123, "column": 24}}, {"id": 390, "type": "'", "text": "'", "parent": 387, "children": [], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 25}}, {"id": 391, "type": "update_expression", "text": "op++", "parent": 379, "children": [392, 393], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 32}}, {"id": 392, "type": "identifier", "text": "op", "parent": 391, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 30}}, {"id": 393, "type": "++", "text": "++", "parent": 391, "children": [], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 32}}, {"id": 394, "type": "assignment_expression", "text": "op = strchr(op, '/')", "parent": 379, "children": [395, 396, 397], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 54}}, {"id": 395, "type": "identifier", "text": "op", "parent": 394, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 36}}, {"id": 396, "type": "=", "text": "=", "parent": 394, "children": [], "start_point": {"row": 123, "column": 37}, "end_point": {"row": 123, "column": 38}}, {"id": 397, "type": "call_expression", "text": "strchr(op, '/')", "parent": 394, "children": [398, 399], "start_point": {"row": 123, "column": 39}, "end_point": {"row": 123, "column": 54}}, {"id": 398, "type": "identifier", "text": "strchr", "parent": 397, "children": [], "start_point": {"row": 123, "column": 39}, "end_point": {"row": 123, "column": 45}}, {"id": 399, "type": "argument_list", "text": "(op, '/')", "parent": 397, "children": [400, 401], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 54}}, {"id": 400, "type": "identifier", "text": "op", "parent": 399, "children": [], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 48}}, {"id": 401, "type": "char_literal", "text": "'/'", "parent": 399, "children": [402, 403, 404], "start_point": {"row": 123, "column": 50}, "end_point": {"row": 123, "column": 53}}, {"id": 402, "type": "'", "text": "'", "parent": 401, "children": [], "start_point": {"row": 123, "column": 50}, "end_point": {"row": 123, "column": 51}}, {"id": 403, "type": "character", "text": "/", "parent": 401, "children": [], "start_point": {"row": 123, "column": 51}, "end_point": {"row": 123, "column": 52}}, {"id": 404, "type": "'", "text": "'", "parent": 401, "children": [], "start_point": {"row": 123, "column": 52}, "end_point": {"row": 123, "column": 53}}, {"id": 405, "type": "if_statement", "text": "if (casncmp(op, \"delivery\", 7) == 0) {\n\t\t\toptr->deliv = 1;\n\t\t\toptr->nodeliv = 0;\n\t\t} else if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 379, "children": [406, 428], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 144, "column": 3}}, {"id": 406, "type": "parenthesized_expression", "text": "(casncmp(op, \"delivery\", 7) == 0)", "parent": 405, "children": [407], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 38}}, {"id": 407, "type": "binary_expression", "text": "casncmp(op, \"delivery\", 7) == 0", "parent": 406, "children": [408, 414, 415], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 37}}, {"id": 408, "type": "call_expression", "text": "casncmp(op, \"delivery\", 7)", "parent": 407, "children": [409, 410], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 32}}, {"id": 409, "type": "identifier", "text": "casncmp", "parent": 408, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 13}}, {"id": 410, "type": "argument_list", "text": "(op, \"delivery\", 7)", "parent": 408, "children": [411, 412, 413], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 32}}, {"id": 411, "type": "identifier", "text": "op", "parent": 410, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 16}}, {"id": 412, "type": "string_literal", "text": "\"delivery\"", "parent": 410, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 28}}, {"id": 413, "type": "number_literal", "text": "7", "parent": 410, "children": [], "start_point": {"row": 124, "column": 30}, "end_point": {"row": 124, "column": 31}}, {"id": 414, "type": "==", "text": "==", "parent": 407, "children": [], "start_point": {"row": 124, "column": 33}, "end_point": {"row": 124, "column": 35}}, {"id": 415, "type": "number_literal", "text": "0", "parent": 407, "children": [], "start_point": {"row": 124, "column": 36}, "end_point": {"row": 124, "column": 37}}, {"id": 416, "type": "assignment_expression", "text": "optr->deliv = 1", "parent": 405, "children": [417, 420, 421], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 18}}, {"id": 417, "type": "field_expression", "text": "optr->deliv", "parent": 416, "children": [418, 419], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 14}}, {"id": 418, "type": "identifier", "text": "optr", "parent": 417, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 7}}, {"id": 419, "type": "field_identifier", "text": "deliv", "parent": 417, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 14}}, {"id": 420, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 16}}, {"id": 421, "type": "number_literal", "text": "1", "parent": 416, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 18}}, {"id": 422, "type": "assignment_expression", "text": "optr->nodeliv = 0", "parent": 405, "children": [423, 426, 427], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 20}}, {"id": 423, "type": "field_expression", "text": "optr->nodeliv", "parent": 422, "children": [424, 425], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 16}}, {"id": 424, "type": "identifier", "text": "optr", "parent": 423, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 7}}, {"id": 425, "type": "field_identifier", "text": "nodeliv", "parent": 423, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 16}}, {"id": 426, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 18}}, {"id": 427, "type": "number_literal", "text": "0", "parent": 422, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 20}}, {"id": 428, "type": "else_clause", "text": "else if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 405, "children": [429], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 144, "column": 3}}, {"id": 429, "type": "if_statement", "text": "if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 428, "children": [430, 454], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 144, "column": 3}}, {"id": 430, "type": "parenthesized_expression", "text": "(casncmp(op, \"nodelivery\", 10) == 0)", "parent": 429, "children": [431], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 48}}, {"id": 431, "type": "binary_expression", "text": "casncmp(op, \"nodelivery\", 10) == 0", "parent": 430, "children": [432, 438, 439], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 47}}, {"id": 432, "type": "call_expression", "text": "casncmp(op, \"nodelivery\", 10)", "parent": 431, "children": [433, 434], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 42}}, {"id": 433, "type": "identifier", "text": "casncmp", "parent": 432, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 20}}, {"id": 434, "type": "argument_list", "text": "(op, \"nodelivery\", 10)", "parent": 432, "children": [435, 436, 437], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 42}}, {"id": 435, "type": "identifier", "text": "op", "parent": 434, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 23}}, {"id": 436, "type": "string_literal", "text": "\"nodelivery\"", "parent": 434, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 37}}, {"id": 437, "type": "number_literal", "text": "10", "parent": 434, "children": [], "start_point": {"row": 127, "column": 39}, "end_point": {"row": 127, "column": 41}}, {"id": 438, "type": "==", "text": "==", "parent": 431, "children": [], "start_point": {"row": 127, "column": 43}, "end_point": {"row": 127, "column": 45}}, {"id": 439, "type": "number_literal", "text": "0", "parent": 431, "children": [], "start_point": {"row": 127, "column": 46}, "end_point": {"row": 127, "column": 47}}, {"id": 440, "type": "if_statement", "text": "if (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}", "parent": 429, "children": [441], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 130, "column": 4}}, {"id": 441, "type": "parenthesized_expression", "text": "(optr->deliv == 0)", "parent": 440, "children": [442], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 24}}, {"id": 442, "type": "binary_expression", "text": "optr->deliv == 0", "parent": 441, "children": [443, 446, 447], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 23}}, {"id": 443, "type": "field_expression", "text": "optr->deliv", "parent": 442, "children": [444, 445], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 18}}, {"id": 444, "type": "identifier", "text": "optr", "parent": 443, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 11}}, {"id": 445, "type": "field_identifier", "text": "deliv", "parent": 443, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 18}}, {"id": 446, "type": "==", "text": "==", "parent": 442, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 21}}, {"id": 447, "type": "number_literal", "text": "0", "parent": 442, "children": [], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 23}}, {"id": 448, "type": "assignment_expression", "text": "optr->nodeliv = 1", "parent": 440, "children": [449, 452, 453], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 21}}, {"id": 449, "type": "field_expression", "text": "optr->nodeliv", "parent": 448, "children": [450, 451], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 17}}, {"id": 450, "type": "identifier", "text": "optr", "parent": 449, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 8}}, {"id": 451, "type": "field_identifier", "text": "nodeliv", "parent": 449, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 17}}, {"id": 452, "type": "=", "text": "=", "parent": 448, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 19}}, {"id": 453, "type": "number_literal", "text": "1", "parent": 448, "children": [], "start_point": {"row": 129, "column": 20}, "end_point": {"row": 129, "column": 21}}, {"id": 454, "type": "else_clause", "text": "else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 429, "children": [455], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 144, "column": 3}}, {"id": 455, "type": "if_statement", "text": "if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 454, "children": [456, 486], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 144, "column": 3}}, {"id": 456, "type": "parenthesized_expression", "text": "(casncmp(op, \"report\", 6) == 0)", "parent": 455, "children": [457], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 43}}, {"id": 457, "type": "binary_expression", "text": "casncmp(op, \"report\", 6) == 0", "parent": 456, "children": [458, 464, 465], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 42}}, {"id": 458, "type": "call_expression", "text": "casncmp(op, \"report\", 6)", "parent": 457, "children": [459, 460], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 37}}, {"id": 459, "type": "identifier", "text": "casncmp", "parent": 458, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 20}}, {"id": 460, "type": "argument_list", "text": "(op, \"report\", 6)", "parent": 458, "children": [461, 462, 463], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 37}}, {"id": 461, "type": "identifier", "text": "op", "parent": 460, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 23}}, {"id": 462, "type": "string_literal", "text": "\"report\"", "parent": 460, "children": [], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 33}}, {"id": 463, "type": "number_literal", "text": "6", "parent": 460, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 36}}, {"id": 464, "type": "==", "text": "==", "parent": 457, "children": [], "start_point": {"row": 131, "column": 38}, "end_point": {"row": 131, "column": 40}}, {"id": 465, "type": "number_literal", "text": "0", "parent": 457, "children": [], "start_point": {"row": 131, "column": 41}, "end_point": {"row": 131, "column": 42}}, {"id": 466, "type": "assignment_expression", "text": "optr->ign = 0", "parent": 455, "children": [467, 470, 471], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 16}}, {"id": 467, "type": "field_expression", "text": "optr->ign", "parent": 466, "children": [468, 469], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 12}}, {"id": 468, "type": "identifier", "text": "optr", "parent": 467, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 7}}, {"id": 469, "type": "field_identifier", "text": "ign", "parent": 467, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 12}}, {"id": 470, "type": "=", "text": "=", "parent": 466, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 14}}, {"id": 471, "type": "number_literal", "text": "0", "parent": 466, "children": [], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 16}}, {"id": 472, "type": "if_statement", "text": "if (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}", "parent": 455, "children": [473], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 135, "column": 4}}, {"id": 473, "type": "parenthesized_expression", "text": "(optr->rtrn == 0)", "parent": 472, "children": [474], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 23}}, {"id": 474, "type": "binary_expression", "text": "optr->rtrn == 0", "parent": 473, "children": [475, 478, 479], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 22}}, {"id": 475, "type": "field_expression", "text": "optr->rtrn", "parent": 474, "children": [476, 477], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 17}}, {"id": 476, "type": "identifier", "text": "optr", "parent": 475, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 11}}, {"id": 477, "type": "field_identifier", "text": "rtrn", "parent": 475, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 17}}, {"id": 478, "type": "==", "text": "==", "parent": 474, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 20}}, {"id": 479, "type": "number_literal", "text": "0", "parent": 474, "children": [], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 22}}, {"id": 480, "type": "assignment_expression", "text": "optr->rept = 1", "parent": 472, "children": [481, 484, 485], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 18}}, {"id": 481, "type": "field_expression", "text": "optr->rept", "parent": 480, "children": [482, 483], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 14}}, {"id": 482, "type": "identifier", "text": "optr", "parent": 481, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 8}}, {"id": 483, "type": "field_identifier", "text": "rept", "parent": 481, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 14}}, {"id": 484, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 16}}, {"id": 485, "type": "number_literal", "text": "1", "parent": 480, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 18}}, {"id": 486, "type": "else_clause", "text": "else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 455, "children": [487], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 144, "column": 3}}, {"id": 487, "type": "if_statement", "text": "if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 486, "children": [488, 515], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 144, "column": 3}}, {"id": 488, "type": "parenthesized_expression", "text": "(casncmp(op, \"return\", 6) == 0)", "parent": 487, "children": [489], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 43}}, {"id": 489, "type": "binary_expression", "text": "casncmp(op, \"return\", 6) == 0", "parent": 488, "children": [490, 496, 497], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 42}}, {"id": 490, "type": "call_expression", "text": "casncmp(op, \"return\", 6)", "parent": 489, "children": [491, 492], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 37}}, {"id": 491, "type": "identifier", "text": "casncmp", "parent": 490, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 20}}, {"id": 492, "type": "argument_list", "text": "(op, \"return\", 6)", "parent": 490, "children": [493, 494, 495], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 37}}, {"id": 493, "type": "identifier", "text": "op", "parent": 492, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 23}}, {"id": 494, "type": "string_literal", "text": "\"return\"", "parent": 492, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 33}}, {"id": 495, "type": "number_literal", "text": "6", "parent": 492, "children": [], "start_point": {"row": 136, "column": 35}, "end_point": {"row": 136, "column": 36}}, {"id": 496, "type": "==", "text": "==", "parent": 489, "children": [], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 136, "column": 40}}, {"id": 497, "type": "number_literal", "text": "0", "parent": 489, "children": [], "start_point": {"row": 136, "column": 41}, "end_point": {"row": 136, "column": 42}}, {"id": 498, "type": "assignment_expression", "text": "optr->rtrn = 1", "parent": 487, "children": [499, 502, 503], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 17}}, {"id": 499, "type": "field_expression", "text": "optr->rtrn", "parent": 498, "children": [500, 501], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 13}}, {"id": 500, "type": "identifier", "text": "optr", "parent": 499, "children": [], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 7}}, {"id": 501, "type": "field_identifier", "text": "rtrn", "parent": 499, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 13}}, {"id": 502, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 15}}, {"id": 503, "type": "number_literal", "text": "1", "parent": 498, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 17}}, {"id": 504, "type": "assignment_expression", "text": "optr->rept = optr->ign = 0", "parent": 487, "children": [505, 508, 509], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 29}}, {"id": 505, "type": "field_expression", "text": "optr->rept", "parent": 504, "children": [506, 507], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 13}}, {"id": 506, "type": "identifier", "text": "optr", "parent": 505, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 7}}, {"id": 507, "type": "field_identifier", "text": "rept", "parent": 505, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 13}}, {"id": 508, "type": "=", "text": "=", "parent": 504, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 15}}, {"id": 509, "type": "assignment_expression", "text": "optr->ign = 0", "parent": 504, "children": [510, 513, 514], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 29}}, {"id": 510, "type": "field_expression", "text": "optr->ign", "parent": 509, "children": [511, 512], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 25}}, {"id": 511, "type": "identifier", "text": "optr", "parent": 510, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 20}}, {"id": 512, "type": "field_identifier", "text": "ign", "parent": 510, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 25}}, {"id": 513, "type": "=", "text": "=", "parent": 509, "children": [], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 27}}, {"id": 514, "type": "number_literal", "text": "0", "parent": 509, "children": [], "start_point": {"row": 138, "column": 28}, "end_point": {"row": 138, "column": 29}}, {"id": 515, "type": "else_clause", "text": "else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 487, "children": [516], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 144, "column": 3}}, {"id": 516, "type": "if_statement", "text": "if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}", "parent": 515, "children": [517], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 144, "column": 3}}, {"id": 517, "type": "parenthesized_expression", "text": "(casncmp(op, \"ignore\", 6) == 0)", "parent": 516, "children": [518], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 43}}, {"id": 518, "type": "binary_expression", "text": "casncmp(op, \"ignore\", 6) == 0", "parent": 517, "children": [519, 525, 526], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 42}}, {"id": 519, "type": "call_expression", "text": "casncmp(op, \"ignore\", 6)", "parent": 518, "children": [520, 521], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 37}}, {"id": 520, "type": "identifier", "text": "casncmp", "parent": 519, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 20}}, {"id": 521, "type": "argument_list", "text": "(op, \"ignore\", 6)", "parent": 519, "children": [522, 523, 524], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 37}}, {"id": 522, "type": "identifier", "text": "op", "parent": 521, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 23}}, {"id": 523, "type": "string_literal", "text": "\"ignore\"", "parent": 521, "children": [], "start_point": {"row": 139, "column": 25}, "end_point": {"row": 139, "column": 33}}, {"id": 524, "type": "number_literal", "text": "6", "parent": 521, "children": [], "start_point": {"row": 139, "column": 35}, "end_point": {"row": 139, "column": 36}}, {"id": 525, "type": "==", "text": "==", "parent": 518, "children": [], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 40}}, {"id": 526, "type": "number_literal", "text": "0", "parent": 518, "children": [], "start_point": {"row": 139, "column": 41}, "end_point": {"row": 139, "column": 42}}, {"id": 527, "type": "assignment_expression", "text": "optr->rept = 0", "parent": 516, "children": [528, 531, 532], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 17}}, {"id": 528, "type": "field_expression", "text": "optr->rept", "parent": 527, "children": [529, 530], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 13}}, {"id": 529, "type": "identifier", "text": "optr", "parent": 528, "children": [], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 7}}, {"id": 530, "type": "field_identifier", "text": "rept", "parent": 528, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 13}}, {"id": 531, "type": "=", "text": "=", "parent": 527, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 15}}, {"id": 532, "type": "number_literal", "text": "0", "parent": 527, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 17}}, {"id": 533, "type": "if_statement", "text": "if (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}", "parent": 516, "children": [534], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 143, "column": 4}}, {"id": 534, "type": "parenthesized_expression", "text": "(optr->rtrn == 0)", "parent": 533, "children": [535], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 23}}, {"id": 535, "type": "binary_expression", "text": "optr->rtrn == 0", "parent": 534, "children": [536, 539, 540], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 22}}, {"id": 536, "type": "field_expression", "text": "optr->rtrn", "parent": 535, "children": [537, 538], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 17}}, {"id": 537, "type": "identifier", "text": "optr", "parent": 536, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 11}}, {"id": 538, "type": "field_identifier", "text": "rtrn", "parent": 536, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 17}}, {"id": 539, "type": "==", "text": "==", "parent": 535, "children": [], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 20}}, {"id": 540, "type": "number_literal", "text": "0", "parent": 535, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 22}}, {"id": 541, "type": "assignment_expression", "text": "optr->ign = 1", "parent": 533, "children": [542, 545, 546], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 17}}, {"id": 542, "type": "field_expression", "text": "optr->ign", "parent": 541, "children": [543, 544], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 13}}, {"id": 543, "type": "identifier", "text": "optr", "parent": 542, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 8}}, {"id": 544, "type": "field_identifier", "text": "ign", "parent": 542, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 13}}, {"id": 545, "type": "=", "text": "=", "parent": 541, "children": [], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 15}}, {"id": 546, "type": "number_literal", "text": "1", "parent": 541, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 17}}, {"id": 547, "type": "function_definition", "text": "static void mergeopts(higher, lower)\nregister struct dlvopts *higher, *lower;\n{\n\tif (higher->deliv == 1) {\n\t\tlower->deliv = 1;\n\t\tlower->nodeliv = 0;\n\t}\n\tif (higher->nodeliv == 1) {\n\t\tlower->nodeliv = 1;\n\t\tlower->deliv = 0;\n\t}\n\tif (higher->rept == 1) {\n\t\tlower->rept = 1;\n\t\tlower->rtrn = lower->ign = 0;\n\t}\n\tif (higher->rtrn == 1) {\n\t\tlower->rtrn = 1;\n\t\tlower->rept = lower->ign = 0;\n\t}\n\tif (higher->ign == 1) {\n\t\tlower->ign = 1;\n\t\tlower->rept = lower->rtrn = 0;\n\t}\n}", "parent": null, "children": [548, 549, 554], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 175, "column": 1}}, {"id": 548, "type": "primitive_type", "text": "void", "parent": 547, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 11}}, {"id": 549, "type": "function_declarator", "text": "mergeopts(higher, lower)", "parent": 547, "children": [550, 551], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 36}}, {"id": 550, "type": "identifier", "text": "mergeopts", "parent": 549, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 21}}, {"id": 551, "type": "parameter_list", "text": "(higher, lower)", "parent": 549, "children": [552, 553], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 36}}, {"id": 552, "type": "identifier", "text": "higher", "parent": 551, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 28}}, {"id": 553, "type": "identifier", "text": "lower", "parent": 551, "children": [], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 35}}, {"id": 554, "type": "declaration", "text": "register struct dlvopts *higher, *lower;", "parent": 547, "children": [555, 557, 560, 563], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 40}}, {"id": 555, "type": "storage_class_specifier", "text": "register", "parent": 554, "children": [556], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 8}}, {"id": 556, "type": "register", "text": "register", "parent": 555, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 8}}, {"id": 557, "type": "struct_specifier", "text": "struct dlvopts", "parent": 554, "children": [558, 559], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 23}}, {"id": 558, "type": "struct", "text": "struct", "parent": 557, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 15}}, {"id": 559, "type": "type_identifier", "text": "dlvopts", "parent": 557, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 23}}, {"id": 560, "type": "pointer_declarator", "text": "*higher", "parent": 554, "children": [561, 562], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 31}}, {"id": 561, "type": "*", "text": "*", "parent": 560, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 25}}, {"id": 562, "type": "identifier", "text": "higher", "parent": 560, "children": [], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 31}}, {"id": 563, "type": "pointer_declarator", "text": "*lower", "parent": 554, "children": [564, 565], "start_point": {"row": 153, "column": 33}, "end_point": {"row": 153, "column": 39}}, {"id": 564, "type": "*", "text": "*", "parent": 563, "children": [], "start_point": {"row": 153, "column": 33}, "end_point": {"row": 153, "column": 34}}, {"id": 565, "type": "identifier", "text": "lower", "parent": 563, "children": [], "start_point": {"row": 153, "column": 34}, "end_point": {"row": 153, "column": 39}}, {"id": 566, "type": "if_statement", "text": "if (higher->deliv == 1) {\n\t\tlower->deliv = 1;\n\t\tlower->nodeliv = 0;\n\t}", "parent": 547, "children": [567], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 158, "column": 2}}, {"id": 567, "type": "parenthesized_expression", "text": "(higher->deliv == 1)", "parent": 566, "children": [568], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 24}}, {"id": 568, "type": "binary_expression", "text": "higher->deliv == 1", "parent": 567, "children": [569, 572, 573], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 23}}, {"id": 569, "type": "field_expression", "text": "higher->deliv", "parent": 568, "children": [570, 571], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 18}}, {"id": 570, "type": "identifier", "text": "higher", "parent": 569, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 11}}, {"id": 571, "type": "field_identifier", "text": "deliv", "parent": 569, "children": [], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 18}}, {"id": 572, "type": "==", "text": "==", "parent": 568, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 21}}, {"id": 573, "type": "number_literal", "text": "1", "parent": 568, "children": [], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 23}}, {"id": 574, "type": "assignment_expression", "text": "lower->deliv = 1", "parent": 566, "children": [575, 578, 579], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 18}}, {"id": 575, "type": "field_expression", "text": "lower->deliv", "parent": 574, "children": [576, 577], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 14}}, {"id": 576, "type": "identifier", "text": "lower", "parent": 575, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 7}}, {"id": 577, "type": "field_identifier", "text": "deliv", "parent": 575, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 14}}, {"id": 578, "type": "=", "text": "=", "parent": 574, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 16}}, {"id": 579, "type": "number_literal", "text": "1", "parent": 574, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 18}}, {"id": 580, "type": "assignment_expression", "text": "lower->nodeliv = 0", "parent": 566, "children": [581, 584, 585], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 20}}, {"id": 581, "type": "field_expression", "text": "lower->nodeliv", "parent": 580, "children": [582, 583], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 16}}, {"id": 582, "type": "identifier", "text": "lower", "parent": 581, "children": [], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 7}}, {"id": 583, "type": "field_identifier", "text": "nodeliv", "parent": 581, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 16}}, {"id": 584, "type": "=", "text": "=", "parent": 580, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 18}}, {"id": 585, "type": "number_literal", "text": "0", "parent": 580, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 20}}, {"id": 586, "type": "if_statement", "text": "if (higher->nodeliv == 1) {\n\t\tlower->nodeliv = 1;\n\t\tlower->deliv = 0;\n\t}", "parent": 547, "children": [587], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 162, "column": 2}}, {"id": 587, "type": "parenthesized_expression", "text": "(higher->nodeliv == 1)", "parent": 586, "children": [588], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 26}}, {"id": 588, "type": "binary_expression", "text": "higher->nodeliv == 1", "parent": 587, "children": [589, 592, 593], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 25}}, {"id": 589, "type": "field_expression", "text": "higher->nodeliv", "parent": 588, "children": [590, 591], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 20}}, {"id": 590, "type": "identifier", "text": "higher", "parent": 589, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 11}}, {"id": 591, "type": "field_identifier", "text": "nodeliv", "parent": 589, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 20}}, {"id": 592, "type": "==", "text": "==", "parent": 588, "children": [], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 23}}, {"id": 593, "type": "number_literal", "text": "1", "parent": 588, "children": [], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 25}}, {"id": 594, "type": "assignment_expression", "text": "lower->nodeliv = 1", "parent": 586, "children": [595, 598, 599], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 20}}, {"id": 595, "type": "field_expression", "text": "lower->nodeliv", "parent": 594, "children": [596, 597], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 16}}, {"id": 596, "type": "identifier", "text": "lower", "parent": 595, "children": [], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 7}}, {"id": 597, "type": "field_identifier", "text": "nodeliv", "parent": 595, "children": [], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 16}}, {"id": 598, "type": "=", "text": "=", "parent": 594, "children": [], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 18}}, {"id": 599, "type": "number_literal", "text": "1", "parent": 594, "children": [], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 20}}, {"id": 600, "type": "assignment_expression", "text": "lower->deliv = 0", "parent": 586, "children": [601, 604, 605], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 18}}, {"id": 601, "type": "field_expression", "text": "lower->deliv", "parent": 600, "children": [602, 603], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 14}}, {"id": 602, "type": "identifier", "text": "lower", "parent": 601, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 7}}, {"id": 603, "type": "field_identifier", "text": "deliv", "parent": 601, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 14}}, {"id": 604, "type": "=", "text": "=", "parent": 600, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 16}}, {"id": 605, "type": "number_literal", "text": "0", "parent": 600, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 18}}, {"id": 606, "type": "if_statement", "text": "if (higher->rept == 1) {\n\t\tlower->rept = 1;\n\t\tlower->rtrn = lower->ign = 0;\n\t}", "parent": 547, "children": [607], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 607, "type": "parenthesized_expression", "text": "(higher->rept == 1)", "parent": 606, "children": [608], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 23}}, {"id": 608, "type": "binary_expression", "text": "higher->rept == 1", "parent": 607, "children": [609, 612, 613], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 22}}, {"id": 609, "type": "field_expression", "text": "higher->rept", "parent": 608, "children": [610, 611], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 17}}, {"id": 610, "type": "identifier", "text": "higher", "parent": 609, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 11}}, {"id": 611, "type": "field_identifier", "text": "rept", "parent": 609, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 17}}, {"id": 612, "type": "==", "text": "==", "parent": 608, "children": [], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 20}}, {"id": 613, "type": "number_literal", "text": "1", "parent": 608, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 22}}, {"id": 614, "type": "assignment_expression", "text": "lower->rept = 1", "parent": 606, "children": [615, 618, 619], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 17}}, {"id": 615, "type": "field_expression", "text": "lower->rept", "parent": 614, "children": [616, 617], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 13}}, {"id": 616, "type": "identifier", "text": "lower", "parent": 615, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 7}}, {"id": 617, "type": "field_identifier", "text": "rept", "parent": 615, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 13}}, {"id": 618, "type": "=", "text": "=", "parent": 614, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 15}}, {"id": 619, "type": "number_literal", "text": "1", "parent": 614, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 17}}, {"id": 620, "type": "assignment_expression", "text": "lower->rtrn = lower->ign = 0", "parent": 606, "children": [621, 624, 625], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 30}}, {"id": 621, "type": "field_expression", "text": "lower->rtrn", "parent": 620, "children": [622, 623], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 13}}, {"id": 622, "type": "identifier", "text": "lower", "parent": 621, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 7}}, {"id": 623, "type": "field_identifier", "text": "rtrn", "parent": 621, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 13}}, {"id": 624, "type": "=", "text": "=", "parent": 620, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 15}}, {"id": 625, "type": "assignment_expression", "text": "lower->ign = 0", "parent": 620, "children": [626, 629, 630], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 30}}, {"id": 626, "type": "field_expression", "text": "lower->ign", "parent": 625, "children": [627, 628], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 26}}, {"id": 627, "type": "identifier", "text": "lower", "parent": 626, "children": [], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 21}}, {"id": 628, "type": "field_identifier", "text": "ign", "parent": 626, "children": [], "start_point": {"row": 165, "column": 23}, "end_point": {"row": 165, "column": 26}}, {"id": 629, "type": "=", "text": "=", "parent": 625, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 28}}, {"id": 630, "type": "number_literal", "text": "0", "parent": 625, "children": [], "start_point": {"row": 165, "column": 29}, "end_point": {"row": 165, "column": 30}}, {"id": 631, "type": "if_statement", "text": "if (higher->rtrn == 1) {\n\t\tlower->rtrn = 1;\n\t\tlower->rept = lower->ign = 0;\n\t}", "parent": 547, "children": [632], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 170, "column": 2}}, {"id": 632, "type": "parenthesized_expression", "text": "(higher->rtrn == 1)", "parent": 631, "children": [633], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 23}}, {"id": 633, "type": "binary_expression", "text": "higher->rtrn == 1", "parent": 632, "children": [634, 637, 638], "start_point": {"row": 167, "column": 5}, "end_point": {"row": 167, "column": 22}}, {"id": 634, "type": "field_expression", "text": "higher->rtrn", "parent": 633, "children": [635, 636], "start_point": {"row": 167, "column": 5}, "end_point": {"row": 167, "column": 17}}, {"id": 635, "type": "identifier", "text": "higher", "parent": 634, "children": [], "start_point": {"row": 167, "column": 5}, "end_point": {"row": 167, "column": 11}}, {"id": 636, "type": "field_identifier", "text": "rtrn", "parent": 634, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 17}}, {"id": 637, "type": "==", "text": "==", "parent": 633, "children": [], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 167, "column": 20}}, {"id": 638, "type": "number_literal", "text": "1", "parent": 633, "children": [], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 22}}, {"id": 639, "type": "assignment_expression", "text": "lower->rtrn = 1", "parent": 631, "children": [640, 643, 644], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 17}}, {"id": 640, "type": "field_expression", "text": "lower->rtrn", "parent": 639, "children": [641, 642], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 13}}, {"id": 641, "type": "identifier", "text": "lower", "parent": 640, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 7}}, {"id": 642, "type": "field_identifier", "text": "rtrn", "parent": 640, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 13}}, {"id": 643, "type": "=", "text": "=", "parent": 639, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 15}}, {"id": 644, "type": "number_literal", "text": "1", "parent": 639, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 17}}, {"id": 645, "type": "assignment_expression", "text": "lower->rept = lower->ign = 0", "parent": 631, "children": [646, 649, 650], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 30}}, {"id": 646, "type": "field_expression", "text": "lower->rept", "parent": 645, "children": [647, 648], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 13}}, {"id": 647, "type": "identifier", "text": "lower", "parent": 646, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 7}}, {"id": 648, "type": "field_identifier", "text": "rept", "parent": 646, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 13}}, {"id": 649, "type": "=", "text": "=", "parent": 645, "children": [], "start_point": {"row": 169, "column": 14}, "end_point": {"row": 169, "column": 15}}, {"id": 650, "type": "assignment_expression", "text": "lower->ign = 0", "parent": 645, "children": [651, 654, 655], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 169, "column": 30}}, {"id": 651, "type": "field_expression", "text": "lower->ign", "parent": 650, "children": [652, 653], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 169, "column": 26}}, {"id": 652, "type": "identifier", "text": "lower", "parent": 651, "children": [], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 169, "column": 21}}, {"id": 653, "type": "field_identifier", "text": "ign", "parent": 651, "children": [], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 26}}, {"id": 654, "type": "=", "text": "=", "parent": 650, "children": [], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 169, "column": 28}}, {"id": 655, "type": "number_literal", "text": "0", "parent": 650, "children": [], "start_point": {"row": 169, "column": 29}, "end_point": {"row": 169, "column": 30}}, {"id": 656, "type": "if_statement", "text": "if (higher->ign == 1) {\n\t\tlower->ign = 1;\n\t\tlower->rept = lower->rtrn = 0;\n\t}", "parent": 547, "children": [657], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 174, "column": 2}}, {"id": 657, "type": "parenthesized_expression", "text": "(higher->ign == 1)", "parent": 656, "children": [658], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 22}}, {"id": 658, "type": "binary_expression", "text": "higher->ign == 1", "parent": 657, "children": [659, 662, 663], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 21}}, {"id": 659, "type": "field_expression", "text": "higher->ign", "parent": 658, "children": [660, 661], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 16}}, {"id": 660, "type": "identifier", "text": "higher", "parent": 659, "children": [], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 11}}, {"id": 661, "type": "field_identifier", "text": "ign", "parent": 659, "children": [], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 16}}, {"id": 662, "type": "==", "text": "==", "parent": 658, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 19}}, {"id": 663, "type": "number_literal", "text": "1", "parent": 658, "children": [], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 21}}, {"id": 664, "type": "assignment_expression", "text": "lower->ign = 1", "parent": 656, "children": [665, 668, 669], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 16}}, {"id": 665, "type": "field_expression", "text": "lower->ign", "parent": 664, "children": [666, 667], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 12}}, {"id": 666, "type": "identifier", "text": "lower", "parent": 665, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 7}}, {"id": 667, "type": "field_identifier", "text": "ign", "parent": 665, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 12}}, {"id": 668, "type": "=", "text": "=", "parent": 664, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 14}}, {"id": 669, "type": "number_literal", "text": "1", "parent": 664, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 16}}, {"id": 670, "type": "assignment_expression", "text": "lower->rept = lower->rtrn = 0", "parent": 656, "children": [671, 674, 675], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 31}}, {"id": 671, "type": "field_expression", "text": "lower->rept", "parent": 670, "children": [672, 673], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 13}}, {"id": 672, "type": "identifier", "text": "lower", "parent": 671, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 7}}, {"id": 673, "type": "field_identifier", "text": "rept", "parent": 671, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 13}}, {"id": 674, "type": "=", "text": "=", "parent": 670, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 675, "type": "assignment_expression", "text": "lower->rtrn = 0", "parent": 670, "children": [676, 679, 680], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 31}}, {"id": 676, "type": "field_expression", "text": "lower->rtrn", "parent": 675, "children": [677, 678], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 27}}, {"id": 677, "type": "identifier", "text": "lower", "parent": 676, "children": [], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 21}}, {"id": 678, "type": "field_identifier", "text": "rtrn", "parent": 676, "children": [], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 27}}, {"id": 679, "type": "=", "text": "=", "parent": 675, "children": [], "start_point": {"row": 173, "column": 28}, "end_point": {"row": 173, "column": 29}}, {"id": 680, "type": "number_literal", "text": "0", "parent": 675, "children": [], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 31}}]}, "node_categories": {"declarations": {"functions": [8, 13, 34, 36, 349, 351, 547, 549], "variables": [6, 11, 19, 22, 25, 28, 31, 41, 44, 49, 56, 63, 70, 356, 363, 372, 554], "classes": [16, 17, 57, 58, 64, 65, 112, 113, 130, 131, 168, 169, 186, 187, 224, 225, 242, 243, 357, 364, 366, 367, 373, 555, 557, 558], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [74, 75, 78, 79, 84, 91, 95, 96, 99, 102, 107, 110, 116, 117, 118, 122, 123, 128, 137, 144, 147, 150, 153, 155, 158, 163, 166, 172, 173, 174, 178, 179, 184, 193, 200, 203, 206, 209, 211, 214, 219, 222, 228, 229, 230, 234, 235, 240, 249, 256, 259, 262, 265, 267, 270, 272, 274, 277, 279, 282, 283, 296, 297, 306, 307, 316, 317, 329, 338, 341, 347, 383, 391, 397, 406, 407, 408, 417, 423, 430, 431, 432, 441, 442, 443, 449, 456, 457, 458, 467, 473, 474, 475, 481, 488, 489, 490, 499, 505, 510, 517, 518, 519, 528, 534, 535, 536, 542, 567, 568, 569, 575, 581, 587, 588, 589, 595, 601, 607, 608, 609, 615, 621, 626, 632, 633, 634, 640, 646, 651, 657, 658, 659, 665, 671, 676], "assignments": [119, 175, 231, 286, 291, 300, 310, 320, 325, 340, 380, 394, 416, 422, 448, 466, 480, 498, 504, 509, 527, 541, 574, 580, 594, 600, 614, 620, 625, 639, 645, 650, 664, 670, 675], "loops": [379], "conditionals": [9, 14, 18, 21, 24, 27, 30, 33, 37, 39, 40, 43, 48, 53, 59, 62, 66, 67, 68, 69, 72, 73, 76, 81, 85, 87, 93, 98, 100, 108, 114, 115, 120, 124, 125, 126, 132, 138, 140, 145, 146, 148, 151, 152, 154, 156, 164, 170, 171, 176, 180, 181, 182, 188, 194, 196, 201, 202, 204, 207, 208, 210, 212, 220, 226, 227, 232, 236, 237, 238, 244, 250, 252, 257, 258, 260, 263, 264, 266, 268, 271, 273, 275, 278, 280, 281, 284, 285, 287, 289, 292, 294, 295, 298, 299, 301, 303, 305, 308, 309, 311, 313, 315, 318, 319, 321, 323, 326, 328, 330, 332, 336, 337, 339, 343, 345, 348, 352, 354, 355, 362, 368, 371, 378, 381, 384, 386, 392, 395, 398, 400, 405, 409, 411, 418, 419, 424, 425, 429, 433, 435, 440, 444, 445, 450, 451, 455, 459, 461, 468, 469, 472, 476, 477, 482, 483, 487, 491, 493, 500, 501, 506, 507, 511, 512, 516, 520, 522, 529, 530, 533, 537, 538, 543, 544, 550, 552, 553, 559, 562, 565, 566, 570, 571, 576, 577, 582, 583, 586, 590, 591, 596, 597, 602, 603, 606, 610, 611, 616, 617, 622, 623, 627, 628, 631, 635, 636, 641, 642, 647, 648, 652, 653, 656, 660, 661, 666, 667, 672, 673, 677, 678], "returns": [94, 346], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 55, 83, 88, 89, 109, 141, 142, 165, 197, 198, 221, 253, 254, 333, 334, 387, 401, 412, 413, 415, 421, 427, 436, 437, 439, 447, 453, 462, 463, 465, 471, 479, 485, 494, 495, 497, 503, 514, 523, 524, 526, 532, 540, 546, 573, 579, 585, 593, 599, 605, 613, 619, 630, 638, 644, 655, 663, 669, 680], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "getopts()"}, {"node_id": 13, "universal_type": "function", "name": "unknown", "text_snippet": "mergeopts()"}, {"node_id": 34, "universal_type": "function", "name": "ckdlivopts", "text_snippet": "int ckdlivopts(tcopy_hdr, svopts)\nint\ttcopy_hdr;\nint\t*svopts;\n{\n\tstatic char\tpn[] = \"ckdlivopts\";\n\ts"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "ckdlivopts(tcopy_hdr, svopts)"}, {"node_id": 349, "universal_type": "function", "name": "getopts", "text_snippet": "static void getopts(s, optr)\nregister char\t*s;\nregister struct dlvopts *optr;\n{\n\tregister char\t*op;\n"}, {"node_id": 351, "universal_type": "function", "name": "unknown", "text_snippet": "getopts(s, optr)"}, {"node_id": 547, "universal_type": "function", "name": "mergeopts", "text_snippet": "static void mergeopts(higher, lower)\nregister struct dlvopts *higher, *lower;\n{\n\tif (higher->deliv ="}, {"node_id": 549, "universal_type": "function", "name": "unknown", "text_snippet": "mergeopts(higher, lower)"}], "class_declarations": [{"node_id": 16, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts {\n\tint\tdeliv;\n\tint\tnodeliv;\n\tint\trept;\n\tint\trtrn;\n\tint\tign;\n}"}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 57, "universal_type": "class", "name": "hdrs", "text_snippet": "struct\thdrs"}, {"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 64, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 112, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 130, "universal_type": "class", "name": "hdrs", "text_snippet": "struct hdrs"}, {"node_id": 131, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 168, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 169, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 186, "universal_type": "class", "name": "hdrs", "text_snippet": "struct hdrs"}, {"node_id": 187, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 224, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 225, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 242, "universal_type": "class", "name": "hdrs", "text_snippet": "struct hdrs"}, {"node_id": 243, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 357, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 364, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 366, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 367, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 373, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 555, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 557, "universal_type": "class", "name": "dlvopts", "text_snippet": "struct dlvopts"}, {"node_id": 558, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"mail.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the \"License\"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at usr/src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets \"[]\" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */\n/*\tCopyright (c) 1984, 1986, 1987, 1988, 1989 AT&T\t*/\n/*\t All Rights Reserved \t*/\n\n\n#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\" \n\n/*\n NAME\n\tckdlivopts - check delivery notification options\n\n SYNOPSIS\n\tint ckdlivopts(int tcopy_hdr, int *svopts)\n\n DESCRIPTION\n\tCheck if delivery notification requested for message being\n\tprocessed. Returns specified options as combined from H_DEFOPTS,\n\tH_TROPTS, & H_TCOPY lines.\n\n\t(Positive notification options)\n\t\t001 ==> /delivery requested\n\t\t002 ==> /nodelivery requested\n\t(Negative notification options)\n\t\t010 ==> /report requested\n\t\t020 ==> /return requested\n\t\t040 ==> /ignore requested\n\n\tCombinations are expected, i.e. - 011 ==> /delivery/report\n\tIf not specified, the assumed defaults are /nodelivery/return (rc=022)\n\n\tThe options discovered in the header are stored into svopts.\n */\n#include \"mail.h\"\n\nstatic void getopts();\nstatic void mergeopts();\n\nstruct dlvopts {\n\tint\tdeliv;\n\tint\tnodeliv;\n\tint\trept;\n\tint\trtrn;\n\tint\tign;\n};\n\nint ckdlivopts(tcopy_hdr, svopts)\nint\ttcopy_hdr;\nint\t*svopts;\n{\n\tstatic char\tpn[] = \"ckdlivopts\";\n\tstruct\thdrs\t*hp;\n\tstruct dlvopts\ttoopts, tropts, defopts;\n\tint\t\trc;\n\n\t/* already done this once. no need to repeat..... */\n\tif (svopts && *svopts != 0) {\n\t\tDout(pn, 0, \"*svopts = o%o\\n\", *svopts);\n\t\treturn (*svopts);\n\t}\n\tmemset((char *)&defopts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_DEFOPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &defopts);\n\t}\n\tmemset((char *)&tropts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3, \"H_TROPTS line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &tropts);\n\t}\n\tmemset((char *)&toopts, 0, sizeof(struct dlvopts));\n\tif ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) {\n\t\tDout(pn, 3,\"H_TCOPY line = '%s'\\n\", hp->value);\n\t\tgetopts(hp->value, &toopts);\n\t}\n\t/* Combine options from different header lines. Precedence is */\n\t/* toopts --> tropts --> defopts. Results left in defopts */\n\tmergeopts(&tropts,&defopts);\n\tmergeopts(&toopts,&defopts);\n\n\tif (defopts.deliv)\trc = DELIVERY;\n\telse\t\t\trc = NODELIVERY;\n\n\tif (defopts.rtrn)\trc += RETURN;\n\telse if (defopts.rept)\trc += REPORT;\n\telse if (defopts.ign)\trc += IGNORE;\n\telse\t\t\trc += RETURN;\n\n\tDout(pn, 0,\"returning = o%o\\n\", rc);\n\tif (svopts)\n\t\t*svopts = rc;\n\treturn (rc);\n}\n\n/*\n * Pick transport options off of header line.\n * If conflicting options found, use MOST demanding; i.e. - /delivery/return.\n */\nstatic void getopts(s, optr)\nregister char\t*s;\nregister struct dlvopts *optr;\n{\n\tregister char\t*op;\n\n\tfor (op = strchr (s, '/'); op++; op = strchr(op, '/')) {\n\t\tif (casncmp(op, \"delivery\", 7) == 0) {\n\t\t\toptr->deliv = 1;\n\t\t\toptr->nodeliv = 0;\n\t\t} else if (casncmp(op, \"nodelivery\", 10) == 0) {\n\t\t\tif (optr->deliv == 0) {\n\t\t\t\toptr->nodeliv = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"report\", 6) == 0) {\n\t\t\toptr->ign = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->rept = 1;\n\t\t\t}\n\t\t} else if (casncmp(op, \"return\", 6) == 0) {\n\t\t\toptr->rtrn = 1;\n\t\t\toptr->rept = optr->ign = 0;\n\t\t} else if (casncmp(op, \"ignore\", 6) == 0) {\n\t\t\toptr->rept = 0;\n\t\t\tif (optr->rtrn == 0) {\n\t\t\t\toptr->ign = 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Merge options between 2 sets. Higher set has precedence.\n * Results left in lower set.\n */\nstatic void mergeopts(higher, lower)\nregister struct dlvopts *higher, *lower;\n{\n\tif (higher->deliv == 1) {\n\t\tlower->deliv = 1;\n\t\tlower->nodeliv = 0;\n\t}\n\tif (higher->nodeliv == 1) {\n\t\tlower->nodeliv = 1;\n\t\tlower->deliv = 0;\n\t}\n\tif (higher->rept == 1) {\n\t\tlower->rept = 1;\n\t\tlower->rtrn = lower->ign = 0;\n\t}\n\tif (higher->rtrn == 1) {\n\t\tlower->rtrn = 1;\n\t\tlower->rept = lower->ign = 0;\n\t}\n\tif (higher->ign == 1) {\n\t\tlower->ign = 1;\n\t\tlower->rept = lower->rtrn = 0;\n\t}\n}\n"}
81,078
c
// // HTTPCode.h // // Created by <NAME> on 5/13/15. // Copyright (c) 2012 Keen Labs. All rights reserved. // // Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C // under MIT license: http://www.opensource.org/licenses/mit-license.php // Status codes taken from: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, HTTPCode) { // Informational HTTPCode1XXInformationalUnknown = 1, HTTPCode100Continue = 100, HTTPCode101SwitchingProtocols = 101, HTTPCode102Processing = 102, // Success HTTPCode2XXSuccessUnknown = 2, HTTPCode200OK = 200, HTTPCode201Created = 201, HTTPCode202Accepted = 202, HTTPCode203NonAuthoritativeInformation = 203, HTTPCode204NoContent = 204, HTTPCode205ResetContent = 205, HTTPCode206PartialContent = 206, HTTPCode207MultiStatus = 207, HTTPCode208AlreadyReported = 208, HTTPCode226IMUsed = 226, // Redirection HTTPCode3XXSuccessUnknown = 3, HTTPCode300MultipleChoices = 300, HTTPCode301MovedPermanently = 301, HTTPCode302Found = 302, HTTPCode303SeeOther = 303, HTTPCode304NotModified = 304, HTTPCode305UseProxy = 305, HTTPCode306SwitchProxy = 306, HTTPCode307TemporaryRedirect = 307, HTTPCode308PermanentRedirect = 308, // Client error HTTPCode4XXSuccessUnknown = 4, HTTPCode400BadRequest = 400, HTTPCode401Unauthorised = 401, HTTPCode402PaymentRequired = 402, HTTPCode403Forbidden = 403, HTTPCode404NotFound = 404, HTTPCode405MethodNotAllowed = 405, HTTPCode406NotAcceptable = 406, HTTPCode407ProxyAuthenticationRequired = 407, HTTPCode408RequestTimeout = 408, HTTPCode409Conflict = 409, HTTPCode410Gone = 410, HTTPCode411LengthRequired = 411, HTTPCode412PreconditionFailed = 412, HTTPCode413RequestEntityTooLarge = 413, HTTPCode414RequestURITooLong = 414, HTTPCode415UnsupportedMediaType = 415, HTTPCode416RequestedRangeNotSatisfiable = 416, HTTPCode417ExpectationFailed = 417, HTTPCode418IamATeapot = 418, HTTPCode419AuthenticationTimeout = 419, HTTPCode420MethodFailureSpringFramework = 420, HTTPCode420EnhanceYourCalmTwitter = 420, HTTPCode421MisdirectedRequest = 421, HTTPCode422UnprocessableEntity = 422, HTTPCode423Locked = 423, HTTPCode424FailedDependency = 424, HTTPCode426UpgradeRequired = 426, HTTPCode428PreconditionRequired = 428, HTTPCode429TooManyRequests = 429, HTTPCode431RequestHeaderFieldsTooLarge = 431, HTTPCode440LoginTimeout = 440, HTTPCode444NoResponseNginx = 444, HTTPCode449RetryWithMicrosoft = 449, HTTPCode450BlockedByWindowsParentalControls = 450, HTTPCode451RedirectMicrosoft = 451, HTTPCode451UnavailableForLegalReasons = 451, HTTPCode494RequestHeaderTooLargeNginx = 494, HTTPCode495CertErrorNginx = 495, HTTPCode496NoCertNginx = 496, HTTPCode497HTTPToHTTPSNginx = 497, HTTPCode498TokenExpiredInvalid = 498, HTTPCode499ClientClosedRequestNginx = 499, HTTPCode499TokenRequiredEsri = 499, // Server error HTTPCode5XXSuccessUnknown = 5, HTTPCode500InternalServerError = 500, HTTPCode501NotImplemented = 501, HTTPCode502BadGateway = 502, HTTPCode503ServiceUnavailable = 503, HTTPCode504GatewayTimeout = 504, HTTPCode505HTTPVersionNotSupported = 505, HTTPCode506VariantAlsoNegotiates = 506, HTTPCode507InsufficientStorage = 507, HTTPCode508LoopDetected = 508, HTTPCode509BandwidthLimitExceeded = 509, HTTPCode510NotExtended = 510, HTTPCode511NetworkAuthenticationRequired = 511, HTTPCode598NetworkReadTimeoutErrorUnknown = 598, HTTPCode599NetworkConnectTimeoutErrorUnknown = 599 }; typedef NS_ENUM(NSUInteger, HTTPCodeType) { HTTPCodeUnknownType, HTTPCode1XXInformational, HTTPCode2XXSuccess, HTTPCode3XXRedirect, HTTPCode4XXClientError, HTTPCode5XXServerError }; @interface HTTPCodes : NSObject /** * Return description for a specific HTTP status code * * @param code Status code definition * * @return Description */ + (NSString *)descriptionForCode:(HTTPCode)code; /** * Return description for a specific HTTP status code * * @param code Status code definition * * @return code type (info, success, redirect, client error, server error, unknown) */ + (HTTPCodeType)httpCodeType:(HTTPCode)code; @end
32.46
134
(translation_unit) "//\n// HTTPCode.h\n//\n// Created by <NAME> on 5/13/15.\n// Copyright (c) 2012 Keen Labs. All rights reserved.\n//\n// Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C\n// under MIT license: http://www.opensource.org/licenses/mit-license.php\n// Status codes taken from: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes\n//\n\n#import <Foundation/Foundation.h>\n\n\ntypedef NS_ENUM(NSUInteger, HTTPCode) {\n // Informational\n HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599\n};\n\ntypedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};\n\n@interface HTTPCodes : NSObject\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return Description\n */\n+ (NSString *)descriptionForCode:(HTTPCode)code;\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return code type (info, success, redirect, client error, server error, unknown)\n */\n+ (HTTPCodeType)httpCodeType:(HTTPCode)code;\n\n@end\n" (comment) "//" (comment) "// HTTPCode.h" (comment) "//" (comment) "// Created by <NAME> on 5/13/15." (comment) "// Copyright (c) 2012 Keen Labs. All rights reserved." (comment) "//" (comment) "// Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C" (comment) "// under MIT license: http://www.opensource.org/licenses/mit-license.php" (comment) "// Status codes taken from: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes" (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "typedef NS_ENUM(NSUInteger, HTTPCode) {\n // Informational\n HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599\n};\n\ntypedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};\n\n@interface HTTPCodes : NSObject\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return Description\n */\n+ (NSString *)descriptionForCode:(HTTPCode)code;\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return code type (info, success, redirect, client error, server error, unknown)\n */\n+ (HTTPCodeType)httpCodeType:(HTTPCode)code;\n\n@end" (typedef) "typedef" (macro_type_specifier) "NS_ENUM(NSUInteger, HTTPCode)" (identifier) "NS_ENUM" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" (ERROR) ", HTTPCode" (,) "," (identifier) "HTTPCode" ()) ")" ({) "{" (comment) "// Informational" (expression_statement) "HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599\n};" (comma_expression) "HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode1XXInformationalUnknown = 1" (identifier) "HTTPCode1XXInformationalUnknown" (=) "=" (number_literal) "1" (,) "," (comma_expression) "HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode100Continue = 100" (identifier) "HTTPCode100Continue" (=) "=" (number_literal) "100" (,) "," (comma_expression) "HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode101SwitchingProtocols = 101" (identifier) "HTTPCode101SwitchingProtocols" (=) "=" (number_literal) "101" (,) "," (comma_expression) "HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode102Processing = 102" (identifier) "HTTPCode102Processing" (=) "=" (number_literal) "102" (,) "," (comment) "// Success" (comma_expression) "HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode2XXSuccessUnknown = 2" (identifier) "HTTPCode2XXSuccessUnknown" (=) "=" (number_literal) "2" (,) "," (comma_expression) "HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode200OK = 200" (identifier) "HTTPCode200OK" (=) "=" (number_literal) "200" (,) "," (comma_expression) "HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode201Created = 201" (identifier) "HTTPCode201Created" (=) "=" (number_literal) "201" (,) "," (comma_expression) "HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode202Accepted = 202" (identifier) "HTTPCode202Accepted" (=) "=" (number_literal) "202" (,) "," (comma_expression) "HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode203NonAuthoritativeInformation = 203" (identifier) "HTTPCode203NonAuthoritativeInformation" (=) "=" (number_literal) "203" (,) "," (comma_expression) "HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode204NoContent = 204" (identifier) "HTTPCode204NoContent" (=) "=" (number_literal) "204" (,) "," (comma_expression) "HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode205ResetContent = 205" (identifier) "HTTPCode205ResetContent" (=) "=" (number_literal) "205" (,) "," (comma_expression) "HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode206PartialContent = 206" (identifier) "HTTPCode206PartialContent" (=) "=" (number_literal) "206" (,) "," (comma_expression) "HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode207MultiStatus = 207" (identifier) "HTTPCode207MultiStatus" (=) "=" (number_literal) "207" (,) "," (comma_expression) "HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode208AlreadyReported = 208" (identifier) "HTTPCode208AlreadyReported" (=) "=" (number_literal) "208" (,) "," (comma_expression) "HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode226IMUsed = 226" (identifier) "HTTPCode226IMUsed" (=) "=" (number_literal) "226" (,) "," (comment) "// Redirection" (comma_expression) "HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode3XXSuccessUnknown = 3" (identifier) "HTTPCode3XXSuccessUnknown" (=) "=" (number_literal) "3" (,) "," (comma_expression) "HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode300MultipleChoices = 300" (identifier) "HTTPCode300MultipleChoices" (=) "=" (number_literal) "300" (,) "," (comma_expression) "HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode301MovedPermanently = 301" (identifier) "HTTPCode301MovedPermanently" (=) "=" (number_literal) "301" (,) "," (comma_expression) "HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode302Found = 302" (identifier) "HTTPCode302Found" (=) "=" (number_literal) "302" (,) "," (comma_expression) "HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode303SeeOther = 303" (identifier) "HTTPCode303SeeOther" (=) "=" (number_literal) "303" (,) "," (comma_expression) "HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode304NotModified = 304" (identifier) "HTTPCode304NotModified" (=) "=" (number_literal) "304" (,) "," (comma_expression) "HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode305UseProxy = 305" (identifier) "HTTPCode305UseProxy" (=) "=" (number_literal) "305" (,) "," (comma_expression) "HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode306SwitchProxy = 306" (identifier) "HTTPCode306SwitchProxy" (=) "=" (number_literal) "306" (,) "," (comma_expression) "HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode307TemporaryRedirect = 307" (identifier) "HTTPCode307TemporaryRedirect" (=) "=" (number_literal) "307" (,) "," (comma_expression) "HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode308PermanentRedirect = 308" (identifier) "HTTPCode308PermanentRedirect" (=) "=" (number_literal) "308" (,) "," (comment) "// Client error" (comma_expression) "HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode4XXSuccessUnknown = 4" (identifier) "HTTPCode4XXSuccessUnknown" (=) "=" (number_literal) "4" (,) "," (comma_expression) "HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode400BadRequest = 400" (identifier) "HTTPCode400BadRequest" (=) "=" (number_literal) "400" (,) "," (comma_expression) "HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode401Unauthorised = 401" (identifier) "HTTPCode401Unauthorised" (=) "=" (number_literal) "401" (,) "," (comma_expression) "HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode402PaymentRequired = 402" (identifier) "HTTPCode402PaymentRequired" (=) "=" (number_literal) "402" (,) "," (comma_expression) "HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode403Forbidden = 403" (identifier) "HTTPCode403Forbidden" (=) "=" (number_literal) "403" (,) "," (comma_expression) "HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode404NotFound = 404" (identifier) "HTTPCode404NotFound" (=) "=" (number_literal) "404" (,) "," (comma_expression) "HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode405MethodNotAllowed = 405" (identifier) "HTTPCode405MethodNotAllowed" (=) "=" (number_literal) "405" (,) "," (comma_expression) "HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode406NotAcceptable = 406" (identifier) "HTTPCode406NotAcceptable" (=) "=" (number_literal) "406" (,) "," (comma_expression) "HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode407ProxyAuthenticationRequired = 407" (identifier) "HTTPCode407ProxyAuthenticationRequired" (=) "=" (number_literal) "407" (,) "," (comma_expression) "HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode408RequestTimeout = 408" (identifier) "HTTPCode408RequestTimeout" (=) "=" (number_literal) "408" (,) "," (comma_expression) "HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode409Conflict = 409" (identifier) "HTTPCode409Conflict" (=) "=" (number_literal) "409" (,) "," (comma_expression) "HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode410Gone = 410" (identifier) "HTTPCode410Gone" (=) "=" (number_literal) "410" (,) "," (comma_expression) "HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode411LengthRequired = 411" (identifier) "HTTPCode411LengthRequired" (=) "=" (number_literal) "411" (,) "," (comma_expression) "HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode412PreconditionFailed = 412" (identifier) "HTTPCode412PreconditionFailed" (=) "=" (number_literal) "412" (,) "," (comma_expression) "HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode413RequestEntityTooLarge = 413" (identifier) "HTTPCode413RequestEntityTooLarge" (=) "=" (number_literal) "413" (,) "," (comma_expression) "HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode414RequestURITooLong = 414" (identifier) "HTTPCode414RequestURITooLong" (=) "=" (number_literal) "414" (,) "," (comma_expression) "HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode415UnsupportedMediaType = 415" (identifier) "HTTPCode415UnsupportedMediaType" (=) "=" (number_literal) "415" (,) "," (comma_expression) "HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode416RequestedRangeNotSatisfiable = 416" (identifier) "HTTPCode416RequestedRangeNotSatisfiable" (=) "=" (number_literal) "416" (,) "," (comma_expression) "HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode417ExpectationFailed = 417" (identifier) "HTTPCode417ExpectationFailed" (=) "=" (number_literal) "417" (,) "," (comma_expression) "HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode418IamATeapot = 418" (identifier) "HTTPCode418IamATeapot" (=) "=" (number_literal) "418" (,) "," (comma_expression) "HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode419AuthenticationTimeout = 419" (identifier) "HTTPCode419AuthenticationTimeout" (=) "=" (number_literal) "419" (,) "," (comma_expression) "HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode420MethodFailureSpringFramework = 420" (identifier) "HTTPCode420MethodFailureSpringFramework" (=) "=" (number_literal) "420" (,) "," (comma_expression) "HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode420EnhanceYourCalmTwitter = 420" (identifier) "HTTPCode420EnhanceYourCalmTwitter" (=) "=" (number_literal) "420" (,) "," (comma_expression) "HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode421MisdirectedRequest = 421" (identifier) "HTTPCode421MisdirectedRequest" (=) "=" (number_literal) "421" (,) "," (comma_expression) "HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode422UnprocessableEntity = 422" (identifier) "HTTPCode422UnprocessableEntity" (=) "=" (number_literal) "422" (,) "," (comma_expression) "HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode423Locked = 423" (identifier) "HTTPCode423Locked" (=) "=" (number_literal) "423" (,) "," (comma_expression) "HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode424FailedDependency = 424" (identifier) "HTTPCode424FailedDependency" (=) "=" (number_literal) "424" (,) "," (comma_expression) "HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode426UpgradeRequired = 426" (identifier) "HTTPCode426UpgradeRequired" (=) "=" (number_literal) "426" (,) "," (comma_expression) "HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode428PreconditionRequired = 428" (identifier) "HTTPCode428PreconditionRequired" (=) "=" (number_literal) "428" (,) "," (comma_expression) "HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode429TooManyRequests = 429" (identifier) "HTTPCode429TooManyRequests" (=) "=" (number_literal) "429" (,) "," (comma_expression) "HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode431RequestHeaderFieldsTooLarge = 431" (identifier) "HTTPCode431RequestHeaderFieldsTooLarge" (=) "=" (number_literal) "431" (,) "," (comma_expression) "HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode440LoginTimeout = 440" (identifier) "HTTPCode440LoginTimeout" (=) "=" (number_literal) "440" (,) "," (comma_expression) "HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode444NoResponseNginx = 444" (identifier) "HTTPCode444NoResponseNginx" (=) "=" (number_literal) "444" (,) "," (comma_expression) "HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode449RetryWithMicrosoft = 449" (identifier) "HTTPCode449RetryWithMicrosoft" (=) "=" (number_literal) "449" (,) "," (comma_expression) "HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode450BlockedByWindowsParentalControls = 450" (identifier) "HTTPCode450BlockedByWindowsParentalControls" (=) "=" (number_literal) "450" (,) "," (comma_expression) "HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode451RedirectMicrosoft = 451" (identifier) "HTTPCode451RedirectMicrosoft" (=) "=" (number_literal) "451" (,) "," (comma_expression) "HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode451UnavailableForLegalReasons = 451" (identifier) "HTTPCode451UnavailableForLegalReasons" (=) "=" (number_literal) "451" (,) "," (comma_expression) "HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode494RequestHeaderTooLargeNginx = 494" (identifier) "HTTPCode494RequestHeaderTooLargeNginx" (=) "=" (number_literal) "494" (,) "," (comma_expression) "HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode495CertErrorNginx = 495" (identifier) "HTTPCode495CertErrorNginx" (=) "=" (number_literal) "495" (,) "," (comma_expression) "HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode496NoCertNginx = 496" (identifier) "HTTPCode496NoCertNginx" (=) "=" (number_literal) "496" (,) "," (comma_expression) "HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode497HTTPToHTTPSNginx = 497" (identifier) "HTTPCode497HTTPToHTTPSNginx" (=) "=" (number_literal) "497" (,) "," (comma_expression) "HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode498TokenExpiredInvalid = 498" (identifier) "HTTPCode498TokenExpiredInvalid" (=) "=" (number_literal) "498" (,) "," (comma_expression) "HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode499ClientClosedRequestNginx = 499" (identifier) "HTTPCode499ClientClosedRequestNginx" (=) "=" (number_literal) "499" (,) "," (comma_expression) "HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode499TokenRequiredEsri = 499" (identifier) "HTTPCode499TokenRequiredEsri" (=) "=" (number_literal) "499" (,) "," (comment) "// Server error" (comma_expression) "HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode5XXSuccessUnknown = 5" (identifier) "HTTPCode5XXSuccessUnknown" (=) "=" (number_literal) "5" (,) "," (comma_expression) "HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode500InternalServerError = 500" (identifier) "HTTPCode500InternalServerError" (=) "=" (number_literal) "500" (,) "," (comma_expression) "HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode501NotImplemented = 501" (identifier) "HTTPCode501NotImplemented" (=) "=" (number_literal) "501" (,) "," (comma_expression) "HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode502BadGateway = 502" (identifier) "HTTPCode502BadGateway" (=) "=" (number_literal) "502" (,) "," (comma_expression) "HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode503ServiceUnavailable = 503" (identifier) "HTTPCode503ServiceUnavailable" (=) "=" (number_literal) "503" (,) "," (comma_expression) "HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode504GatewayTimeout = 504" (identifier) "HTTPCode504GatewayTimeout" (=) "=" (number_literal) "504" (,) "," (comma_expression) "HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode505HTTPVersionNotSupported = 505" (identifier) "HTTPCode505HTTPVersionNotSupported" (=) "=" (number_literal) "505" (,) "," (comma_expression) "HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode506VariantAlsoNegotiates = 506" (identifier) "HTTPCode506VariantAlsoNegotiates" (=) "=" (number_literal) "506" (,) "," (comma_expression) "HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode507InsufficientStorage = 507" (identifier) "HTTPCode507InsufficientStorage" (=) "=" (number_literal) "507" (,) "," (comma_expression) "HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode508LoopDetected = 508" (identifier) "HTTPCode508LoopDetected" (=) "=" (number_literal) "508" (,) "," (comma_expression) "HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode509BandwidthLimitExceeded = 509" (identifier) "HTTPCode509BandwidthLimitExceeded" (=) "=" (number_literal) "509" (,) "," (comma_expression) "HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode510NotExtended = 510" (identifier) "HTTPCode510NotExtended" (=) "=" (number_literal) "510" (,) "," (comma_expression) "HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode511NetworkAuthenticationRequired = 511" (identifier) "HTTPCode511NetworkAuthenticationRequired" (=) "=" (number_literal) "511" (,) "," (comma_expression) "HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (assignment_expression) "HTTPCode598NetworkReadTimeoutErrorUnknown = 598" (identifier) "HTTPCode598NetworkReadTimeoutErrorUnknown" (=) "=" (number_literal) "598" (,) "," (assignment_expression) "HTTPCode599NetworkConnectTimeoutErrorUnknown = 599" (identifier) "HTTPCode599NetworkConnectTimeoutErrorUnknown" (=) "=" (number_literal) "599" (ERROR) "}" (}) "}" (;) ";" (type_definition) "typedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};" (typedef) "typedef" (macro_type_specifier) "NS_ENUM(NSUInteger, HTTPCodeType)" (identifier) "NS_ENUM" (() "(" (ERROR) "NSUInteger," (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" (,) "," (type_descriptor) "HTTPCodeType" (type_identifier) "HTTPCodeType" ()) ")" (ERROR) "{" ({) "{" (type_identifier) "HTTPCodeUnknownType" (,) "," (type_identifier) "HTTPCode1XXInformational" (,) "," (type_identifier) "HTTPCode2XXSuccess" (,) "," (type_identifier) "HTTPCode3XXRedirect" (,) "," (type_identifier) "HTTPCode4XXClientError" (,) "," (type_identifier) "HTTPCode5XXServerError" (ERROR) "}" (}) "}" (;) ";" (ERROR) "@interface HTTPCodes : NSObject" (ERROR) "@" (type_identifier) "interface" (identifier) "HTTPCodes" (:) ":" (identifier) "NSObject" (comment) "/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return Description\n */" (expression_statement) "+ (NSString *)descriptionForCode:(HTTPCode)code;" (unary_expression) "+ (NSString *)descriptionForCode" (+) "+" (cast_expression) "(NSString *)descriptionForCode" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "descriptionForCode" (ERROR) ":(HTTPCode)code" (:) ":" (() "(" (identifier) "HTTPCode" ()) ")" (identifier) "code" (;) ";" (comment) "/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return code type (info, success, redirect, client error, server error, unknown)\n */" (expression_statement) "+ (HTTPCodeType)httpCodeType:(HTTPCode)code;" (unary_expression) "+ (HTTPCodeType)httpCodeType" (+) "+" (cast_expression) "(HTTPCodeType)httpCodeType" (() "(" (type_descriptor) "HTTPCodeType" (type_identifier) "HTTPCodeType" ()) ")" (identifier) "httpCodeType" (ERROR) ":(HTTPCode)code" (:) ":" (() "(" (identifier) "HTTPCode" ()) ")" (identifier) "code" (;) ";" (ERROR) "@" (ERROR) "@" (identifier) "end"
610
12
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 32.46, "nodes": 472, "errors": 0, "source_hash": "98c608a5074f34991485e61c6c2fcc98d8353c5badf6d4d45e60398471706cb8", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 33}}, {"id": 3, "type": "ERROR", "text": "typedef NS_ENUM(NSUInteger, HTTPCode) {\n // Informational\n HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599\n};\n\ntypedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};\n\n@interface HTTPCodes : NSObject\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return Description\n */\n+ (NSString *)descriptionForCode:(HTTPCode)code;\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return code type (info, success, redirect, client error, server error, unknown)\n */\n+ (HTTPCodeType)httpCodeType:(HTTPCode)code;\n\n@end", "parent": null, "children": [4, 5, 430, 445, 470], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 140, "column": 4}}, {"id": 4, "type": "typedef", "text": "typedef", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 5, "type": "macro_type_specifier", "text": "NS_ENUM(NSUInteger, HTTPCode)", "parent": 3, "children": [6, 7, 9], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 37}}, {"id": 6, "type": "identifier", "text": "NS_ENUM", "parent": 5, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 7, "type": "type_descriptor", "text": "NSUInteger", "parent": 5, "children": [8], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 26}}, {"id": 8, "type": "type_identifier", "text": "NSUInteger", "parent": 7, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 26}}, {"id": 9, "type": "ERROR", "text": ", HTTPCode", "parent": 5, "children": [10], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 36}}, {"id": 10, "type": "identifier", "text": "HTTPCode", "parent": 9, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 36}}, {"id": 11, "type": "comma_expression", "text": "HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 3, "children": [12, 16], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 12, "type": "assignment_expression", "text": "HTTPCode1XXInformationalUnknown = 1", "parent": 11, "children": [13, 14, 15], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 39}}, {"id": 13, "type": "identifier", "text": "HTTPCode1XXInformationalUnknown", "parent": 12, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 35}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 37}}, {"id": 15, "type": "number_literal", "text": "1", "parent": 12, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 16, "type": "comma_expression", "text": "HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 11, "children": [17, 21], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 17, "type": "assignment_expression", "text": "HTTPCode100Continue = 100", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 29}}, {"id": 18, "type": "identifier", "text": "HTTPCode100Continue", "parent": 17, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 23}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 20, "type": "number_literal", "text": "100", "parent": 17, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 29}}, {"id": 21, "type": "comma_expression", "text": "HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 16, "children": [22, 26], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 22, "type": "assignment_expression", "text": "HTTPCode101SwitchingProtocols = 101", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 39}}, {"id": 23, "type": "identifier", "text": "HTTPCode101SwitchingProtocols", "parent": 22, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 33}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 35}}, {"id": 25, "type": "number_literal", "text": "101", "parent": 22, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 39}}, {"id": 26, "type": "comma_expression", "text": "HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 21, "children": [27, 31], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 27, "type": "assignment_expression", "text": "HTTPCode102Processing = 102", "parent": 26, "children": [28, 29, 30], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 31}}, {"id": 28, "type": "identifier", "text": "HTTPCode102Processing", "parent": 27, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 29, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 30, "type": "number_literal", "text": "102", "parent": 27, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 31}}, {"id": 31, "type": "comma_expression", "text": "HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 26, "children": [32, 36], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 32, "type": "assignment_expression", "text": "HTTPCode2XXSuccessUnknown = 2", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 33}}, {"id": 33, "type": "identifier", "text": "HTTPCode2XXSuccessUnknown", "parent": 32, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 29}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 31}}, {"id": 35, "type": "number_literal", "text": "2", "parent": 32, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 33}}, {"id": 36, "type": "comma_expression", "text": "HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 31, "children": [37, 41], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 37, "type": "assignment_expression", "text": "HTTPCode200OK = 200", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 23}}, {"id": 38, "type": "identifier", "text": "HTTPCode200OK", "parent": 37, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 17}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 19}}, {"id": 40, "type": "number_literal", "text": "200", "parent": 37, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 23}}, {"id": 41, "type": "comma_expression", "text": "HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 36, "children": [42, 46], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 42, "type": "assignment_expression", "text": "HTTPCode201Created = 201", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 28}}, {"id": 43, "type": "identifier", "text": "HTTPCode201Created", "parent": 42, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 22}}, {"id": 44, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 45, "type": "number_literal", "text": "201", "parent": 42, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 28}}, {"id": 46, "type": "comma_expression", "text": "HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 41, "children": [47, 51], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 47, "type": "assignment_expression", "text": "HTTPCode202Accepted = 202", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 29}}, {"id": 48, "type": "identifier", "text": "HTTPCode202Accepted", "parent": 47, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 23}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 25}}, {"id": 50, "type": "number_literal", "text": "202", "parent": 47, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 29}}, {"id": 51, "type": "comma_expression", "text": "HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 46, "children": [52, 56], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 52, "type": "assignment_expression", "text": "HTTPCode203NonAuthoritativeInformation = 203", "parent": 51, "children": [53, 54, 55], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 48}}, {"id": 53, "type": "identifier", "text": "HTTPCode203NonAuthoritativeInformation", "parent": 52, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 42}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 44}}, {"id": 55, "type": "number_literal", "text": "203", "parent": 52, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 48}}, {"id": 56, "type": "comma_expression", "text": "HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 51, "children": [57, 61], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 57, "type": "assignment_expression", "text": "HTTPCode204NoContent = 204", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 30}}, {"id": 58, "type": "identifier", "text": "HTTPCode204NoContent", "parent": 57, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 24}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 26}}, {"id": 60, "type": "number_literal", "text": "204", "parent": 57, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 30}}, {"id": 61, "type": "comma_expression", "text": "HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 56, "children": [62, 66], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 62, "type": "assignment_expression", "text": "HTTPCode205ResetContent = 205", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 33}}, {"id": 63, "type": "identifier", "text": "HTTPCode205ResetContent", "parent": 62, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 27}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 29}}, {"id": 65, "type": "number_literal", "text": "205", "parent": 62, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 33}}, {"id": 66, "type": "comma_expression", "text": "HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 61, "children": [67, 71], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 67, "type": "assignment_expression", "text": "HTTPCode206PartialContent = 206", "parent": 66, "children": [68, 69, 70], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 35}}, {"id": 68, "type": "identifier", "text": "HTTPCode206PartialContent", "parent": 67, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 29}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 31}}, {"id": 70, "type": "number_literal", "text": "206", "parent": 67, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 35}}, {"id": 71, "type": "comma_expression", "text": "HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 66, "children": [72, 76], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 72, "type": "assignment_expression", "text": "HTTPCode207MultiStatus = 207", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 32}}, {"id": 73, "type": "identifier", "text": "HTTPCode207MultiStatus", "parent": 72, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 26}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 28}}, {"id": 75, "type": "number_literal", "text": "207", "parent": 72, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 32}}, {"id": 76, "type": "comma_expression", "text": "HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 71, "children": [77, 81], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 77, "type": "assignment_expression", "text": "HTTPCode208AlreadyReported = 208", "parent": 76, "children": [78, 79, 80], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 36}}, {"id": 78, "type": "identifier", "text": "HTTPCode208AlreadyReported", "parent": 77, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 30}}, {"id": 79, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 32}}, {"id": 80, "type": "number_literal", "text": "208", "parent": 77, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 36}}, {"id": 81, "type": "comma_expression", "text": "HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 76, "children": [82, 86], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 82, "type": "assignment_expression", "text": "HTTPCode226IMUsed = 226", "parent": 81, "children": [83, 84, 85], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 27}}, {"id": 83, "type": "identifier", "text": "HTTPCode226IMUsed", "parent": 82, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 21}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 23}}, {"id": 85, "type": "number_literal", "text": "226", "parent": 82, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 27}}, {"id": 86, "type": "comma_expression", "text": "HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 81, "children": [87, 91], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 87, "type": "assignment_expression", "text": "HTTPCode3XXSuccessUnknown = 3", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 33}}, {"id": 88, "type": "identifier", "text": "HTTPCode3XXSuccessUnknown", "parent": 87, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 29}}, {"id": 89, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 90, "type": "number_literal", "text": "3", "parent": 87, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 91, "type": "comma_expression", "text": "HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 86, "children": [92, 96], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 92, "type": "assignment_expression", "text": "HTTPCode300MultipleChoices = 300", "parent": 91, "children": [93, 94, 95], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 36}}, {"id": 93, "type": "identifier", "text": "HTTPCode300MultipleChoices", "parent": 92, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 30}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 32}}, {"id": 95, "type": "number_literal", "text": "300", "parent": 92, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 36}}, {"id": 96, "type": "comma_expression", "text": "HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 91, "children": [97, 101], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 97, "type": "assignment_expression", "text": "HTTPCode301MovedPermanently = 301", "parent": 96, "children": [98, 99, 100], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 37}}, {"id": 98, "type": "identifier", "text": "HTTPCode301MovedPermanently", "parent": 97, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 31}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 100, "type": "number_literal", "text": "301", "parent": 97, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 37}}, {"id": 101, "type": "comma_expression", "text": "HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 96, "children": [102, 106], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 102, "type": "assignment_expression", "text": "HTTPCode302Found = 302", "parent": 101, "children": [103, 104, 105], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 26}}, {"id": 103, "type": "identifier", "text": "HTTPCode302Found", "parent": 102, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 20}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 22}}, {"id": 105, "type": "number_literal", "text": "302", "parent": 102, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 26}}, {"id": 106, "type": "comma_expression", "text": "HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 101, "children": [107, 111], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 107, "type": "assignment_expression", "text": "HTTPCode303SeeOther = 303", "parent": 106, "children": [108, 109, 110], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 29}}, {"id": 108, "type": "identifier", "text": "HTTPCode303SeeOther", "parent": 107, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 23}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 110, "type": "number_literal", "text": "303", "parent": 107, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 29}}, {"id": 111, "type": "comma_expression", "text": "HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 106, "children": [112, 116], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 112, "type": "assignment_expression", "text": "HTTPCode304NotModified = 304", "parent": 111, "children": [113, 114, 115], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 32}}, {"id": 113, "type": "identifier", "text": "HTTPCode304NotModified", "parent": 112, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 26}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 28}}, {"id": 115, "type": "number_literal", "text": "304", "parent": 112, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 32}}, {"id": 116, "type": "comma_expression", "text": "HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 111, "children": [117, 121], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 117, "type": "assignment_expression", "text": "HTTPCode305UseProxy = 305", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 29}}, {"id": 118, "type": "identifier", "text": "HTTPCode305UseProxy", "parent": 117, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 23}}, {"id": 119, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 25}}, {"id": 120, "type": "number_literal", "text": "305", "parent": 117, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 29}}, {"id": 121, "type": "comma_expression", "text": "HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 116, "children": [122, 126], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 122, "type": "assignment_expression", "text": "HTTPCode306SwitchProxy = 306", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 32}}, {"id": 123, "type": "identifier", "text": "HTTPCode306SwitchProxy", "parent": 122, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 26}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 28}}, {"id": 125, "type": "number_literal", "text": "306", "parent": 122, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 32}}, {"id": 126, "type": "comma_expression", "text": "HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 121, "children": [127, 131], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 127, "type": "assignment_expression", "text": "HTTPCode307TemporaryRedirect = 307", "parent": 126, "children": [128, 129, 130], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 38}}, {"id": 128, "type": "identifier", "text": "HTTPCode307TemporaryRedirect", "parent": 127, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 32}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 34}}, {"id": 130, "type": "number_literal", "text": "307", "parent": 127, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 38}}, {"id": 131, "type": "comma_expression", "text": "HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 126, "children": [132, 136], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 132, "type": "assignment_expression", "text": "HTTPCode308PermanentRedirect = 308", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 38}}, {"id": 133, "type": "identifier", "text": "HTTPCode308PermanentRedirect", "parent": 132, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 32}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 34}}, {"id": 135, "type": "number_literal", "text": "308", "parent": 132, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 38}}, {"id": 136, "type": "comma_expression", "text": "HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 131, "children": [137, 141], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 137, "type": "assignment_expression", "text": "HTTPCode4XXSuccessUnknown = 4", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 33}}, {"id": 138, "type": "identifier", "text": "HTTPCode4XXSuccessUnknown", "parent": 137, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 29}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 31}}, {"id": 140, "type": "number_literal", "text": "4", "parent": 137, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 33}}, {"id": 141, "type": "comma_expression", "text": "HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 136, "children": [142, 146], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 142, "type": "assignment_expression", "text": "HTTPCode400BadRequest = 400", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 31}}, {"id": 143, "type": "identifier", "text": "HTTPCode400BadRequest", "parent": 142, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 25}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 27}}, {"id": 145, "type": "number_literal", "text": "400", "parent": 142, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 31}}, {"id": 146, "type": "comma_expression", "text": "HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 141, "children": [147, 151], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 147, "type": "assignment_expression", "text": "HTTPCode401Unauthorised = 401", "parent": 146, "children": [148, 149, 150], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 33}}, {"id": 148, "type": "identifier", "text": "HTTPCode401Unauthorised", "parent": 147, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 27}}, {"id": 149, "type": "=", "text": "=", "parent": 147, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 29}}, {"id": 150, "type": "number_literal", "text": "401", "parent": 147, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 33}}, {"id": 151, "type": "comma_expression", "text": "HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 146, "children": [152, 156], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 152, "type": "assignment_expression", "text": "HTTPCode402PaymentRequired = 402", "parent": 151, "children": [153, 154, 155], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 36}}, {"id": 153, "type": "identifier", "text": "HTTPCode402PaymentRequired", "parent": 152, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 30}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 32}}, {"id": 155, "type": "number_literal", "text": "402", "parent": 152, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 36}}, {"id": 156, "type": "comma_expression", "text": "HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 151, "children": [157, 161], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 157, "type": "assignment_expression", "text": "HTTPCode403Forbidden = 403", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 30}}, {"id": 158, "type": "identifier", "text": "HTTPCode403Forbidden", "parent": 157, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 24}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 26}}, {"id": 160, "type": "number_literal", "text": "403", "parent": 157, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 30}}, {"id": 161, "type": "comma_expression", "text": "HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 156, "children": [162, 166], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 162, "type": "assignment_expression", "text": "HTTPCode404NotFound = 404", "parent": 161, "children": [163, 164, 165], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 29}}, {"id": 163, "type": "identifier", "text": "HTTPCode404NotFound", "parent": 162, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 23}}, {"id": 164, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 25}}, {"id": 165, "type": "number_literal", "text": "404", "parent": 162, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 29}}, {"id": 166, "type": "comma_expression", "text": "HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 161, "children": [167, 171], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 167, "type": "assignment_expression", "text": "HTTPCode405MethodNotAllowed = 405", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 37}}, {"id": 168, "type": "identifier", "text": "HTTPCode405MethodNotAllowed", "parent": 167, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 31}}, {"id": 169, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 33}}, {"id": 170, "type": "number_literal", "text": "405", "parent": 167, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 37}}, {"id": 171, "type": "comma_expression", "text": "HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 166, "children": [172, 176], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 172, "type": "assignment_expression", "text": "HTTPCode406NotAcceptable = 406", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 34}}, {"id": 173, "type": "identifier", "text": "HTTPCode406NotAcceptable", "parent": 172, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 28}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 30}}, {"id": 175, "type": "number_literal", "text": "406", "parent": 172, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 34}}, {"id": 176, "type": "comma_expression", "text": "HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 171, "children": [177, 181], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 177, "type": "assignment_expression", "text": "HTTPCode407ProxyAuthenticationRequired = 407", "parent": 176, "children": [178, 179, 180], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 48}}, {"id": 178, "type": "identifier", "text": "HTTPCode407ProxyAuthenticationRequired", "parent": 177, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 42}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 44}}, {"id": 180, "type": "number_literal", "text": "407", "parent": 177, "children": [], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 48}}, {"id": 181, "type": "comma_expression", "text": "HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 176, "children": [182, 186], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 182, "type": "assignment_expression", "text": "HTTPCode408RequestTimeout = 408", "parent": 181, "children": [183, 184, 185], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 35}}, {"id": 183, "type": "identifier", "text": "HTTPCode408RequestTimeout", "parent": 182, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 29}}, {"id": 184, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 31}}, {"id": 185, "type": "number_literal", "text": "408", "parent": 182, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 35}}, {"id": 186, "type": "comma_expression", "text": "HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 181, "children": [187, 191], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 187, "type": "assignment_expression", "text": "HTTPCode409Conflict = 409", "parent": 186, "children": [188, 189, 190], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 29}}, {"id": 188, "type": "identifier", "text": "HTTPCode409Conflict", "parent": 187, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 23}}, {"id": 189, "type": "=", "text": "=", "parent": 187, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 190, "type": "number_literal", "text": "409", "parent": 187, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 29}}, {"id": 191, "type": "comma_expression", "text": "HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 186, "children": [192, 196], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 192, "type": "assignment_expression", "text": "HTTPCode410Gone = 410", "parent": 191, "children": [193, 194, 195], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 25}}, {"id": 193, "type": "identifier", "text": "HTTPCode410Gone", "parent": 192, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 19}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 21}}, {"id": 195, "type": "number_literal", "text": "410", "parent": 192, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 25}}, {"id": 196, "type": "comma_expression", "text": "HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 191, "children": [197, 201], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 197, "type": "assignment_expression", "text": "HTTPCode411LengthRequired = 411", "parent": 196, "children": [198, 199, 200], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 35}}, {"id": 198, "type": "identifier", "text": "HTTPCode411LengthRequired", "parent": 197, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 29}}, {"id": 199, "type": "=", "text": "=", "parent": 197, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 31}}, {"id": 200, "type": "number_literal", "text": "411", "parent": 197, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 35}}, {"id": 201, "type": "comma_expression", "text": "HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 196, "children": [202, 206], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 202, "type": "assignment_expression", "text": "HTTPCode412PreconditionFailed = 412", "parent": 201, "children": [203, 204, 205], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 39}}, {"id": 203, "type": "identifier", "text": "HTTPCode412PreconditionFailed", "parent": 202, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 33}}, {"id": 204, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 35}}, {"id": 205, "type": "number_literal", "text": "412", "parent": 202, "children": [], "start_point": {"row": 60, "column": 36}, "end_point": {"row": 60, "column": 39}}, {"id": 206, "type": "comma_expression", "text": "HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 201, "children": [207, 211], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 207, "type": "assignment_expression", "text": "HTTPCode413RequestEntityTooLarge = 413", "parent": 206, "children": [208, 209, 210], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 42}}, {"id": 208, "type": "identifier", "text": "HTTPCode413RequestEntityTooLarge", "parent": 207, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 36}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 38}}, {"id": 210, "type": "number_literal", "text": "413", "parent": 207, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 42}}, {"id": 211, "type": "comma_expression", "text": "HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 206, "children": [212, 216], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 212, "type": "assignment_expression", "text": "HTTPCode414RequestURITooLong = 414", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 38}}, {"id": 213, "type": "identifier", "text": "HTTPCode414RequestURITooLong", "parent": 212, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 32}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 34}}, {"id": 215, "type": "number_literal", "text": "414", "parent": 212, "children": [], "start_point": {"row": 62, "column": 35}, "end_point": {"row": 62, "column": 38}}, {"id": 216, "type": "comma_expression", "text": "HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 211, "children": [217, 221], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 217, "type": "assignment_expression", "text": "HTTPCode415UnsupportedMediaType = 415", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 41}}, {"id": 218, "type": "identifier", "text": "HTTPCode415UnsupportedMediaType", "parent": 217, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 35}}, {"id": 219, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 220, "type": "number_literal", "text": "415", "parent": 217, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 41}}, {"id": 221, "type": "comma_expression", "text": "HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 216, "children": [222, 226], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 222, "type": "assignment_expression", "text": "HTTPCode416RequestedRangeNotSatisfiable = 416", "parent": 221, "children": [223, 224, 225], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 49}}, {"id": 223, "type": "identifier", "text": "HTTPCode416RequestedRangeNotSatisfiable", "parent": 222, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 43}}, {"id": 224, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 45}}, {"id": 225, "type": "number_literal", "text": "416", "parent": 222, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 49}}, {"id": 226, "type": "comma_expression", "text": "HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 221, "children": [227, 231], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 227, "type": "assignment_expression", "text": "HTTPCode417ExpectationFailed = 417", "parent": 226, "children": [228, 229, 230], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 38}}, {"id": 228, "type": "identifier", "text": "HTTPCode417ExpectationFailed", "parent": 227, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 32}}, {"id": 229, "type": "=", "text": "=", "parent": 227, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 34}}, {"id": 230, "type": "number_literal", "text": "417", "parent": 227, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 38}}, {"id": 231, "type": "comma_expression", "text": "HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 226, "children": [232, 236], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 232, "type": "assignment_expression", "text": "HTTPCode418IamATeapot = 418", "parent": 231, "children": [233, 234, 235], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 31}}, {"id": 233, "type": "identifier", "text": "HTTPCode418IamATeapot", "parent": 232, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 25}}, {"id": 234, "type": "=", "text": "=", "parent": 232, "children": [], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 27}}, {"id": 235, "type": "number_literal", "text": "418", "parent": 232, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 31}}, {"id": 236, "type": "comma_expression", "text": "HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 231, "children": [237, 241], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 237, "type": "assignment_expression", "text": "HTTPCode419AuthenticationTimeout = 419", "parent": 236, "children": [238, 239, 240], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 42}}, {"id": 238, "type": "identifier", "text": "HTTPCode419AuthenticationTimeout", "parent": 237, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 36}}, {"id": 239, "type": "=", "text": "=", "parent": 237, "children": [], "start_point": {"row": 67, "column": 37}, "end_point": {"row": 67, "column": 38}}, {"id": 240, "type": "number_literal", "text": "419", "parent": 237, "children": [], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 42}}, {"id": 241, "type": "comma_expression", "text": "HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 236, "children": [242, 246], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 242, "type": "assignment_expression", "text": "HTTPCode420MethodFailureSpringFramework = 420", "parent": 241, "children": [243, 244, 245], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 49}}, {"id": 243, "type": "identifier", "text": "HTTPCode420MethodFailureSpringFramework", "parent": 242, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 43}}, {"id": 244, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 45}}, {"id": 245, "type": "number_literal", "text": "420", "parent": 242, "children": [], "start_point": {"row": 68, "column": 46}, "end_point": {"row": 68, "column": 49}}, {"id": 246, "type": "comma_expression", "text": "HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 241, "children": [247, 251], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 247, "type": "assignment_expression", "text": "HTTPCode420EnhanceYourCalmTwitter = 420", "parent": 246, "children": [248, 249, 250], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 43}}, {"id": 248, "type": "identifier", "text": "HTTPCode420EnhanceYourCalmTwitter", "parent": 247, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 37}}, {"id": 249, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 39}}, {"id": 250, "type": "number_literal", "text": "420", "parent": 247, "children": [], "start_point": {"row": 69, "column": 40}, "end_point": {"row": 69, "column": 43}}, {"id": 251, "type": "comma_expression", "text": "HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 246, "children": [252, 256], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 252, "type": "assignment_expression", "text": "HTTPCode421MisdirectedRequest = 421", "parent": 251, "children": [253, 254, 255], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 39}}, {"id": 253, "type": "identifier", "text": "HTTPCode421MisdirectedRequest", "parent": 252, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 33}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 255, "type": "number_literal", "text": "421", "parent": 252, "children": [], "start_point": {"row": 70, "column": 36}, "end_point": {"row": 70, "column": 39}}, {"id": 256, "type": "comma_expression", "text": "HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 251, "children": [257, 261], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 257, "type": "assignment_expression", "text": "HTTPCode422UnprocessableEntity = 422", "parent": 256, "children": [258, 259, 260], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 40}}, {"id": 258, "type": "identifier", "text": "HTTPCode422UnprocessableEntity", "parent": 257, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 34}}, {"id": 259, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 36}}, {"id": 260, "type": "number_literal", "text": "422", "parent": 257, "children": [], "start_point": {"row": 71, "column": 37}, "end_point": {"row": 71, "column": 40}}, {"id": 261, "type": "comma_expression", "text": "HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 256, "children": [262, 266], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 262, "type": "assignment_expression", "text": "HTTPCode423Locked = 423", "parent": 261, "children": [263, 264, 265], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 27}}, {"id": 263, "type": "identifier", "text": "HTTPCode423Locked", "parent": 262, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 21}}, {"id": 264, "type": "=", "text": "=", "parent": 262, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 23}}, {"id": 265, "type": "number_literal", "text": "423", "parent": 262, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 27}}, {"id": 266, "type": "comma_expression", "text": "HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 261, "children": [267, 271], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 267, "type": "assignment_expression", "text": "HTTPCode424FailedDependency = 424", "parent": 266, "children": [268, 269, 270], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 37}}, {"id": 268, "type": "identifier", "text": "HTTPCode424FailedDependency", "parent": 267, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 31}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 73, "column": 32}, "end_point": {"row": 73, "column": 33}}, {"id": 270, "type": "number_literal", "text": "424", "parent": 267, "children": [], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 37}}, {"id": 271, "type": "comma_expression", "text": "HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 266, "children": [272, 276], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 272, "type": "assignment_expression", "text": "HTTPCode426UpgradeRequired = 426", "parent": 271, "children": [273, 274, 275], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 36}}, {"id": 273, "type": "identifier", "text": "HTTPCode426UpgradeRequired", "parent": 272, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 30}}, {"id": 274, "type": "=", "text": "=", "parent": 272, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 32}}, {"id": 275, "type": "number_literal", "text": "426", "parent": 272, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 36}}, {"id": 276, "type": "comma_expression", "text": "HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 271, "children": [277, 281], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 277, "type": "assignment_expression", "text": "HTTPCode428PreconditionRequired = 428", "parent": 276, "children": [278, 279, 280], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 41}}, {"id": 278, "type": "identifier", "text": "HTTPCode428PreconditionRequired", "parent": 277, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 35}}, {"id": 279, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 37}}, {"id": 280, "type": "number_literal", "text": "428", "parent": 277, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 41}}, {"id": 281, "type": "comma_expression", "text": "HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 276, "children": [282, 286], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 282, "type": "assignment_expression", "text": "HTTPCode429TooManyRequests = 429", "parent": 281, "children": [283, 284, 285], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 36}}, {"id": 283, "type": "identifier", "text": "HTTPCode429TooManyRequests", "parent": 282, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 30}}, {"id": 284, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 32}}, {"id": 285, "type": "number_literal", "text": "429", "parent": 282, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 36}}, {"id": 286, "type": "comma_expression", "text": "HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 281, "children": [287, 291], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 287, "type": "assignment_expression", "text": "HTTPCode431RequestHeaderFieldsTooLarge = 431", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 48}}, {"id": 288, "type": "identifier", "text": "HTTPCode431RequestHeaderFieldsTooLarge", "parent": 287, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 42}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 44}}, {"id": 290, "type": "number_literal", "text": "431", "parent": 287, "children": [], "start_point": {"row": 77, "column": 45}, "end_point": {"row": 77, "column": 48}}, {"id": 291, "type": "comma_expression", "text": "HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 286, "children": [292, 296], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 292, "type": "assignment_expression", "text": "HTTPCode440LoginTimeout = 440", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 33}}, {"id": 293, "type": "identifier", "text": "HTTPCode440LoginTimeout", "parent": 292, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 27}}, {"id": 294, "type": "=", "text": "=", "parent": 292, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 29}}, {"id": 295, "type": "number_literal", "text": "440", "parent": 292, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 33}}, {"id": 296, "type": "comma_expression", "text": "HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 291, "children": [297, 301], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 297, "type": "assignment_expression", "text": "HTTPCode444NoResponseNginx = 444", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 36}}, {"id": 298, "type": "identifier", "text": "HTTPCode444NoResponseNginx", "parent": 297, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 30}}, {"id": 299, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 32}}, {"id": 300, "type": "number_literal", "text": "444", "parent": 297, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 36}}, {"id": 301, "type": "comma_expression", "text": "HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 296, "children": [302, 306], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 302, "type": "assignment_expression", "text": "HTTPCode449RetryWithMicrosoft = 449", "parent": 301, "children": [303, 304, 305], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 39}}, {"id": 303, "type": "identifier", "text": "HTTPCode449RetryWithMicrosoft", "parent": 302, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 33}}, {"id": 304, "type": "=", "text": "=", "parent": 302, "children": [], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 35}}, {"id": 305, "type": "number_literal", "text": "449", "parent": 302, "children": [], "start_point": {"row": 80, "column": 36}, "end_point": {"row": 80, "column": 39}}, {"id": 306, "type": "comma_expression", "text": "HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 301, "children": [307, 311], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 307, "type": "assignment_expression", "text": "HTTPCode450BlockedByWindowsParentalControls = 450", "parent": 306, "children": [308, 309, 310], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 53}}, {"id": 308, "type": "identifier", "text": "HTTPCode450BlockedByWindowsParentalControls", "parent": 307, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 47}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 49}}, {"id": 310, "type": "number_literal", "text": "450", "parent": 307, "children": [], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 53}}, {"id": 311, "type": "comma_expression", "text": "HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 306, "children": [312, 316], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 312, "type": "assignment_expression", "text": "HTTPCode451RedirectMicrosoft = 451", "parent": 311, "children": [313, 314, 315], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 38}}, {"id": 313, "type": "identifier", "text": "HTTPCode451RedirectMicrosoft", "parent": 312, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 32}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 82, "column": 33}, "end_point": {"row": 82, "column": 34}}, {"id": 315, "type": "number_literal", "text": "451", "parent": 312, "children": [], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 38}}, {"id": 316, "type": "comma_expression", "text": "HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 311, "children": [317, 321], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 317, "type": "assignment_expression", "text": "HTTPCode451UnavailableForLegalReasons = 451", "parent": 316, "children": [318, 319, 320], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 47}}, {"id": 318, "type": "identifier", "text": "HTTPCode451UnavailableForLegalReasons", "parent": 317, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 41}}, {"id": 319, "type": "=", "text": "=", "parent": 317, "children": [], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 43}}, {"id": 320, "type": "number_literal", "text": "451", "parent": 317, "children": [], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 47}}, {"id": 321, "type": "comma_expression", "text": "HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 316, "children": [322, 326], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 322, "type": "assignment_expression", "text": "HTTPCode494RequestHeaderTooLargeNginx = 494", "parent": 321, "children": [323, 324, 325], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 47}}, {"id": 323, "type": "identifier", "text": "HTTPCode494RequestHeaderTooLargeNginx", "parent": 322, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 41}}, {"id": 324, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 84, "column": 42}, "end_point": {"row": 84, "column": 43}}, {"id": 325, "type": "number_literal", "text": "494", "parent": 322, "children": [], "start_point": {"row": 84, "column": 44}, "end_point": {"row": 84, "column": 47}}, {"id": 326, "type": "comma_expression", "text": "HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 321, "children": [327, 331], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 327, "type": "assignment_expression", "text": "HTTPCode495CertErrorNginx = 495", "parent": 326, "children": [328, 329, 330], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 35}}, {"id": 328, "type": "identifier", "text": "HTTPCode495CertErrorNginx", "parent": 327, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 29}}, {"id": 329, "type": "=", "text": "=", "parent": 327, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 31}}, {"id": 330, "type": "number_literal", "text": "495", "parent": 327, "children": [], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 35}}, {"id": 331, "type": "comma_expression", "text": "HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 326, "children": [332, 336], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 332, "type": "assignment_expression", "text": "HTTPCode496NoCertNginx = 496", "parent": 331, "children": [333, 334, 335], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 32}}, {"id": 333, "type": "identifier", "text": "HTTPCode496NoCertNginx", "parent": 332, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 26}}, {"id": 334, "type": "=", "text": "=", "parent": 332, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 28}}, {"id": 335, "type": "number_literal", "text": "496", "parent": 332, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 32}}, {"id": 336, "type": "comma_expression", "text": "HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 331, "children": [337, 341], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 337, "type": "assignment_expression", "text": "HTTPCode497HTTPToHTTPSNginx = 497", "parent": 336, "children": [338, 339, 340], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 37}}, {"id": 338, "type": "identifier", "text": "HTTPCode497HTTPToHTTPSNginx", "parent": 337, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 31}}, {"id": 339, "type": "=", "text": "=", "parent": 337, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 33}}, {"id": 340, "type": "number_literal", "text": "497", "parent": 337, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 37}}, {"id": 341, "type": "comma_expression", "text": "HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 336, "children": [342, 346], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 342, "type": "assignment_expression", "text": "HTTPCode498TokenExpiredInvalid = 498", "parent": 341, "children": [343, 344, 345], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 40}}, {"id": 343, "type": "identifier", "text": "HTTPCode498TokenExpiredInvalid", "parent": 342, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 34}}, {"id": 344, "type": "=", "text": "=", "parent": 342, "children": [], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 36}}, {"id": 345, "type": "number_literal", "text": "498", "parent": 342, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 40}}, {"id": 346, "type": "comma_expression", "text": "HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 341, "children": [347, 351], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 347, "type": "assignment_expression", "text": "HTTPCode499ClientClosedRequestNginx = 499", "parent": 346, "children": [348, 349, 350], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 45}}, {"id": 348, "type": "identifier", "text": "HTTPCode499ClientClosedRequestNginx", "parent": 347, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 39}}, {"id": 349, "type": "=", "text": "=", "parent": 347, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 41}}, {"id": 350, "type": "number_literal", "text": "499", "parent": 347, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 45}}, {"id": 351, "type": "comma_expression", "text": "HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 346, "children": [352, 356], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 352, "type": "assignment_expression", "text": "HTTPCode499TokenRequiredEsri = 499", "parent": 351, "children": [353, 354, 355], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 38}}, {"id": 353, "type": "identifier", "text": "HTTPCode499TokenRequiredEsri", "parent": 352, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 32}}, {"id": 354, "type": "=", "text": "=", "parent": 352, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 34}}, {"id": 355, "type": "number_literal", "text": "499", "parent": 352, "children": [], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 38}}, {"id": 356, "type": "comma_expression", "text": "HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 351, "children": [357, 361], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 357, "type": "assignment_expression", "text": "HTTPCode5XXSuccessUnknown = 5", "parent": 356, "children": [358, 359, 360], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 33}}, {"id": 358, "type": "identifier", "text": "HTTPCode5XXSuccessUnknown", "parent": 357, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 29}}, {"id": 359, "type": "=", "text": "=", "parent": 357, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 31}}, {"id": 360, "type": "number_literal", "text": "5", "parent": 357, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 33}}, {"id": 361, "type": "comma_expression", "text": "HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 356, "children": [362, 366], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 362, "type": "assignment_expression", "text": "HTTPCode500InternalServerError = 500", "parent": 361, "children": [363, 364, 365], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 40}}, {"id": 363, "type": "identifier", "text": "HTTPCode500InternalServerError", "parent": 362, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 34}}, {"id": 364, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 36}}, {"id": 365, "type": "number_literal", "text": "500", "parent": 362, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 40}}, {"id": 366, "type": "comma_expression", "text": "HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 361, "children": [367, 371], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 367, "type": "assignment_expression", "text": "HTTPCode501NotImplemented = 501", "parent": 366, "children": [368, 369, 370], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 35}}, {"id": 368, "type": "identifier", "text": "HTTPCode501NotImplemented", "parent": 367, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 29}}, {"id": 369, "type": "=", "text": "=", "parent": 367, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 31}}, {"id": 370, "type": "number_literal", "text": "501", "parent": 367, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 35}}, {"id": 371, "type": "comma_expression", "text": "HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 366, "children": [372, 376], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 372, "type": "assignment_expression", "text": "HTTPCode502BadGateway = 502", "parent": 371, "children": [373, 374, 375], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 31}}, {"id": 373, "type": "identifier", "text": "HTTPCode502BadGateway", "parent": 372, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 25}}, {"id": 374, "type": "=", "text": "=", "parent": 372, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 27}}, {"id": 375, "type": "number_literal", "text": "502", "parent": 372, "children": [], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 31}}, {"id": 376, "type": "comma_expression", "text": "HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 371, "children": [377, 381], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 377, "type": "assignment_expression", "text": "HTTPCode503ServiceUnavailable = 503", "parent": 376, "children": [378, 379, 380], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 39}}, {"id": 378, "type": "identifier", "text": "HTTPCode503ServiceUnavailable", "parent": 377, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 33}}, {"id": 379, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 35}}, {"id": 380, "type": "number_literal", "text": "503", "parent": 377, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 39}}, {"id": 381, "type": "comma_expression", "text": "HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 376, "children": [382, 386], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 382, "type": "assignment_expression", "text": "HTTPCode504GatewayTimeout = 504", "parent": 381, "children": [383, 384, 385], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 35}}, {"id": 383, "type": "identifier", "text": "HTTPCode504GatewayTimeout", "parent": 382, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 29}}, {"id": 384, "type": "=", "text": "=", "parent": 382, "children": [], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 31}}, {"id": 385, "type": "number_literal", "text": "504", "parent": 382, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 35}}, {"id": 386, "type": "comma_expression", "text": "HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 381, "children": [387, 391], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 387, "type": "assignment_expression", "text": "HTTPCode505HTTPVersionNotSupported = 505", "parent": 386, "children": [388, 389, 390], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 44}}, {"id": 388, "type": "identifier", "text": "HTTPCode505HTTPVersionNotSupported", "parent": 387, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 38}}, {"id": 389, "type": "=", "text": "=", "parent": 387, "children": [], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 40}}, {"id": 390, "type": "number_literal", "text": "505", "parent": 387, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 44}}, {"id": 391, "type": "comma_expression", "text": "HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 386, "children": [392, 396], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 392, "type": "assignment_expression", "text": "HTTPCode506VariantAlsoNegotiates = 506", "parent": 391, "children": [393, 394, 395], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 42}}, {"id": 393, "type": "identifier", "text": "HTTPCode506VariantAlsoNegotiates", "parent": 392, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 36}}, {"id": 394, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 101, "column": 37}, "end_point": {"row": 101, "column": 38}}, {"id": 395, "type": "number_literal", "text": "506", "parent": 392, "children": [], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 42}}, {"id": 396, "type": "comma_expression", "text": "HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 391, "children": [397, 401], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 397, "type": "assignment_expression", "text": "HTTPCode507InsufficientStorage = 507", "parent": 396, "children": [398, 399, 400], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 40}}, {"id": 398, "type": "identifier", "text": "HTTPCode507InsufficientStorage", "parent": 397, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 34}}, {"id": 399, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 36}}, {"id": 400, "type": "number_literal", "text": "507", "parent": 397, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 40}}, {"id": 401, "type": "comma_expression", "text": "HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 396, "children": [402, 406], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 402, "type": "assignment_expression", "text": "HTTPCode508LoopDetected = 508", "parent": 401, "children": [403, 404, 405], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 33}}, {"id": 403, "type": "identifier", "text": "HTTPCode508LoopDetected", "parent": 402, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 27}}, {"id": 404, "type": "=", "text": "=", "parent": 402, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 29}}, {"id": 405, "type": "number_literal", "text": "508", "parent": 402, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 33}}, {"id": 406, "type": "comma_expression", "text": "HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 401, "children": [407, 411], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 407, "type": "assignment_expression", "text": "HTTPCode509BandwidthLimitExceeded = 509", "parent": 406, "children": [408, 409, 410], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 43}}, {"id": 408, "type": "identifier", "text": "HTTPCode509BandwidthLimitExceeded", "parent": 407, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 37}}, {"id": 409, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 39}}, {"id": 410, "type": "number_literal", "text": "509", "parent": 407, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 43}}, {"id": 411, "type": "comma_expression", "text": "HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 406, "children": [412, 416], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 412, "type": "assignment_expression", "text": "HTTPCode510NotExtended = 510", "parent": 411, "children": [413, 414, 415], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 32}}, {"id": 413, "type": "identifier", "text": "HTTPCode510NotExtended", "parent": 412, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 26}}, {"id": 414, "type": "=", "text": "=", "parent": 412, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 28}}, {"id": 415, "type": "number_literal", "text": "510", "parent": 412, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 32}}, {"id": 416, "type": "comma_expression", "text": "HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 411, "children": [417, 421], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 417, "type": "assignment_expression", "text": "HTTPCode511NetworkAuthenticationRequired = 511", "parent": 416, "children": [418, 419, 420], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 50}}, {"id": 418, "type": "identifier", "text": "HTTPCode511NetworkAuthenticationRequired", "parent": 417, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 44}}, {"id": 419, "type": "=", "text": "=", "parent": 417, "children": [], "start_point": {"row": 106, "column": 45}, "end_point": {"row": 106, "column": 46}}, {"id": 420, "type": "number_literal", "text": "511", "parent": 417, "children": [], "start_point": {"row": 106, "column": 47}, "end_point": {"row": 106, "column": 50}}, {"id": 421, "type": "comma_expression", "text": "HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 416, "children": [422, 426], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 422, "type": "assignment_expression", "text": "HTTPCode598NetworkReadTimeoutErrorUnknown = 598", "parent": 421, "children": [423, 424, 425], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 51}}, {"id": 423, "type": "identifier", "text": "HTTPCode598NetworkReadTimeoutErrorUnknown", "parent": 422, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 45}}, {"id": 424, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 107, "column": 46}, "end_point": {"row": 107, "column": 47}}, {"id": 425, "type": "number_literal", "text": "598", "parent": 422, "children": [], "start_point": {"row": 107, "column": 48}, "end_point": {"row": 107, "column": 51}}, {"id": 426, "type": "assignment_expression", "text": "HTTPCode599NetworkConnectTimeoutErrorUnknown = 599", "parent": 421, "children": [427, 428, 429], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 54}}, {"id": 427, "type": "identifier", "text": "HTTPCode599NetworkConnectTimeoutErrorUnknown", "parent": 426, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 48}}, {"id": 428, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 50}}, {"id": 429, "type": "number_literal", "text": "599", "parent": 426, "children": [], "start_point": {"row": 108, "column": 51}, "end_point": {"row": 108, "column": 54}}, {"id": 430, "type": "type_definition", "text": "typedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};", "parent": 3, "children": [431, 432, 439, 440, 441, 442, 443, 444], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 118, "column": 2}}, {"id": 431, "type": "typedef", "text": "typedef", "parent": 430, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 432, "type": "macro_type_specifier", "text": "NS_ENUM(NSUInteger, HTTPCodeType)", "parent": 430, "children": [433, 434, 437], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 41}}, {"id": 433, "type": "identifier", "text": "NS_ENUM", "parent": 432, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 15}}, {"id": 434, "type": "ERROR", "text": "NSUInteger,", "parent": 432, "children": [435], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 27}}, {"id": 435, "type": "type_descriptor", "text": "NSUInteger", "parent": 434, "children": [436], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 26}}, {"id": 436, "type": "type_identifier", "text": "NSUInteger", "parent": 435, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 26}}, {"id": 437, "type": "type_descriptor", "text": "HTTPCodeType", "parent": 432, "children": [438], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 40}}, {"id": 438, "type": "type_identifier", "text": "HTTPCodeType", "parent": 437, "children": [], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 40}}, {"id": 439, "type": "type_identifier", "text": "HTTPCodeUnknownType", "parent": 430, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 23}}, {"id": 440, "type": "type_identifier", "text": "HTTPCode1XXInformational", "parent": 430, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 28}}, {"id": 441, "type": "type_identifier", "text": "HTTPCode2XXSuccess", "parent": 430, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 22}}, {"id": 442, "type": "type_identifier", "text": "HTTPCode3XXRedirect", "parent": 430, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 23}}, {"id": 443, "type": "type_identifier", "text": "HTTPCode4XXClientError", "parent": 430, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 26}}, {"id": 444, "type": "type_identifier", "text": "HTTPCode5XXServerError", "parent": 430, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 26}}, {"id": 445, "type": "ERROR", "text": "@interface HTTPCodes : NSObject", "parent": 3, "children": [446, 447, 448, 449], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 31}}, {"id": 446, "type": "ERROR", "text": "@", "parent": 445, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 447, "type": "type_identifier", "text": "interface", "parent": 445, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 10}}, {"id": 448, "type": "identifier", "text": "HTTPCodes", "parent": 445, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 20}}, {"id": 449, "type": "identifier", "text": "NSObject", "parent": 445, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 31}}, {"id": 450, "type": "unary_expression", "text": "+ (NSString *)descriptionForCode", "parent": 3, "children": [451, 452], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 32}}, {"id": 451, "type": "+", "text": "+", "parent": 450, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 452, "type": "cast_expression", "text": "(NSString *)descriptionForCode", "parent": 450, "children": [453, 457], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 32}}, {"id": 453, "type": "type_descriptor", "text": "NSString *", "parent": 452, "children": [454, 455], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 13}}, {"id": 454, "type": "type_identifier", "text": "NSString", "parent": 453, "children": [], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 11}}, {"id": 455, "type": "abstract_pointer_declarator", "text": "*", "parent": 453, "children": [456], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 13}}, {"id": 456, "type": "*", "text": "*", "parent": 455, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 13}}, {"id": 457, "type": "identifier", "text": "descriptionForCode", "parent": 452, "children": [], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 32}}, {"id": 458, "type": "ERROR", "text": ":(HTTPCode)code", "parent": 3, "children": [459, 460], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 47}}, {"id": 459, "type": "identifier", "text": "HTTPCode", "parent": 458, "children": [], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 42}}, {"id": 460, "type": "identifier", "text": "code", "parent": 458, "children": [], "start_point": {"row": 129, "column": 43}, "end_point": {"row": 129, "column": 47}}, {"id": 461, "type": "unary_expression", "text": "+ (HTTPCodeType)httpCodeType", "parent": 3, "children": [462, 463], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 28}}, {"id": 462, "type": "+", "text": "+", "parent": 461, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 463, "type": "cast_expression", "text": "(HTTPCodeType)httpCodeType", "parent": 461, "children": [464, 466], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 28}}, {"id": 464, "type": "type_descriptor", "text": "HTTPCodeType", "parent": 463, "children": [465], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 15}}, {"id": 465, "type": "type_identifier", "text": "HTTPCodeType", "parent": 464, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 15}}, {"id": 466, "type": "identifier", "text": "httpCodeType", "parent": 463, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 28}}, {"id": 467, "type": "ERROR", "text": ":(HTTPCode)code", "parent": 3, "children": [468, 469], "start_point": {"row": 138, "column": 28}, "end_point": {"row": 138, "column": 43}}, {"id": 468, "type": "identifier", "text": "HTTPCode", "parent": 467, "children": [], "start_point": {"row": 138, "column": 30}, "end_point": {"row": 138, "column": 38}}, {"id": 469, "type": "identifier", "text": "code", "parent": 467, "children": [], "start_point": {"row": 138, "column": 39}, "end_point": {"row": 138, "column": 43}}, {"id": 470, "type": "ERROR", "text": "@", "parent": 3, "children": [471], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 1}}, {"id": 471, "type": "ERROR", "text": "@", "parent": 470, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [430], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96, 101, 106, 111, 116, 121, 126, 131, 136, 141, 146, 151, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 256, 261, 266, 271, 276, 281, 286, 291, 296, 301, 306, 311, 316, 321, 326, 331, 336, 341, 346, 351, 356, 361, 366, 371, 376, 381, 386, 391, 396, 401, 406, 411, 416, 421, 450, 452, 461, 463], "assignments": [12, 17, 22, 27, 32, 37, 42, 47, 52, 57, 62, 67, 72, 77, 82, 87, 92, 97, 102, 107, 112, 117, 122, 127, 132, 137, 142, 147, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 252, 257, 262, 267, 272, 277, 282, 287, 292, 297, 302, 307, 312, 317, 322, 327, 332, 337, 342, 347, 352, 357, 362, 367, 372, 377, 382, 387, 392, 397, 402, 407, 412, 417, 422, 426], "loops": [], "conditionals": [5, 6, 8, 10, 13, 18, 23, 28, 33, 38, 43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128, 133, 138, 143, 148, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 253, 258, 263, 268, 273, 278, 283, 288, 293, 298, 303, 308, 313, 318, 323, 328, 333, 338, 343, 348, 353, 358, 363, 368, 373, 378, 383, 388, 393, 398, 403, 408, 413, 418, 423, 427, 432, 433, 436, 438, 439, 440, 441, 442, 443, 444, 447, 448, 449, 454, 457, 459, 460, 465, 466, 468, 469], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 255, 260, 265, 270, 275, 280, 285, 290, 295, 300, 305, 310, 315, 320, 325, 330, 335, 340, 345, 350, 355, 360, 365, 370, 375, 380, 385, 390, 395, 400, 405, 410, 415, 420, 425, 429], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// HTTPCode.h\n//\n// Created by <NAME> on 5/13/15.\n// Copyright (c) 2012 Keen Labs. All rights reserved.\n//\n// Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C\n// under MIT license: http://www.opensource.org/licenses/mit-license.php\n// Status codes taken from: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes\n//\n\n#import <Foundation/Foundation.h>\n\n\ntypedef NS_ENUM(NSUInteger, HTTPCode) {\n // Informational\n HTTPCode1XXInformationalUnknown = 1,\n HTTPCode100Continue = 100,\n HTTPCode101SwitchingProtocols = 101,\n HTTPCode102Processing = 102,\n \n // Success\n HTTPCode2XXSuccessUnknown = 2,\n HTTPCode200OK = 200,\n HTTPCode201Created = 201,\n HTTPCode202Accepted = 202,\n HTTPCode203NonAuthoritativeInformation = 203,\n HTTPCode204NoContent = 204,\n HTTPCode205ResetContent = 205,\n HTTPCode206PartialContent = 206,\n HTTPCode207MultiStatus = 207,\n HTTPCode208AlreadyReported = 208,\n HTTPCode226IMUsed = 226,\n \n // Redirection\n HTTPCode3XXSuccessUnknown = 3,\n HTTPCode300MultipleChoices = 300,\n HTTPCode301MovedPermanently = 301,\n HTTPCode302Found = 302,\n HTTPCode303SeeOther = 303,\n HTTPCode304NotModified = 304,\n HTTPCode305UseProxy = 305,\n HTTPCode306SwitchProxy = 306,\n HTTPCode307TemporaryRedirect = 307,\n HTTPCode308PermanentRedirect = 308,\n \n // Client error\n HTTPCode4XXSuccessUnknown = 4,\n HTTPCode400BadRequest = 400,\n HTTPCode401Unauthorised = 401,\n HTTPCode402PaymentRequired = 402,\n HTTPCode403Forbidden = 403,\n HTTPCode404NotFound = 404,\n HTTPCode405MethodNotAllowed = 405,\n HTTPCode406NotAcceptable = 406,\n HTTPCode407ProxyAuthenticationRequired = 407,\n HTTPCode408RequestTimeout = 408,\n HTTPCode409Conflict = 409,\n HTTPCode410Gone = 410,\n HTTPCode411LengthRequired = 411,\n HTTPCode412PreconditionFailed = 412,\n HTTPCode413RequestEntityTooLarge = 413,\n HTTPCode414RequestURITooLong = 414,\n HTTPCode415UnsupportedMediaType = 415,\n HTTPCode416RequestedRangeNotSatisfiable = 416,\n HTTPCode417ExpectationFailed = 417,\n HTTPCode418IamATeapot = 418,\n HTTPCode419AuthenticationTimeout = 419,\n HTTPCode420MethodFailureSpringFramework = 420,\n HTTPCode420EnhanceYourCalmTwitter = 420,\n HTTPCode421MisdirectedRequest = 421,\n HTTPCode422UnprocessableEntity = 422,\n HTTPCode423Locked = 423,\n HTTPCode424FailedDependency = 424,\n HTTPCode426UpgradeRequired = 426,\n HTTPCode428PreconditionRequired = 428,\n HTTPCode429TooManyRequests = 429,\n HTTPCode431RequestHeaderFieldsTooLarge = 431,\n HTTPCode440LoginTimeout = 440,\n HTTPCode444NoResponseNginx = 444,\n HTTPCode449RetryWithMicrosoft = 449,\n HTTPCode450BlockedByWindowsParentalControls = 450,\n HTTPCode451RedirectMicrosoft = 451,\n HTTPCode451UnavailableForLegalReasons = 451,\n HTTPCode494RequestHeaderTooLargeNginx = 494,\n HTTPCode495CertErrorNginx = 495,\n HTTPCode496NoCertNginx = 496,\n HTTPCode497HTTPToHTTPSNginx = 497,\n HTTPCode498TokenExpiredInvalid = 498,\n HTTPCode499ClientClosedRequestNginx = 499,\n HTTPCode499TokenRequiredEsri = 499,\n \n \n // Server error\n HTTPCode5XXSuccessUnknown = 5,\n HTTPCode500InternalServerError = 500,\n HTTPCode501NotImplemented = 501,\n HTTPCode502BadGateway = 502,\n HTTPCode503ServiceUnavailable = 503,\n HTTPCode504GatewayTimeout = 504,\n HTTPCode505HTTPVersionNotSupported = 505,\n HTTPCode506VariantAlsoNegotiates = 506,\n HTTPCode507InsufficientStorage = 507,\n HTTPCode508LoopDetected = 508,\n HTTPCode509BandwidthLimitExceeded = 509,\n HTTPCode510NotExtended = 510,\n HTTPCode511NetworkAuthenticationRequired = 511,\n HTTPCode598NetworkReadTimeoutErrorUnknown = 598,\n HTTPCode599NetworkConnectTimeoutErrorUnknown = 599\n};\n\ntypedef NS_ENUM(NSUInteger, HTTPCodeType) {\n HTTPCodeUnknownType,\n HTTPCode1XXInformational,\n HTTPCode2XXSuccess,\n HTTPCode3XXRedirect,\n HTTPCode4XXClientError,\n HTTPCode5XXServerError\n};\n\n@interface HTTPCodes : NSObject\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return Description\n */\n+ (NSString *)descriptionForCode:(HTTPCode)code;\n\n/**\n * Return description for a specific HTTP status code\n *\n * @param code Status code definition\n *\n * @return code type (info, success, redirect, client error, server error, unknown)\n */\n+ (HTTPCodeType)httpCodeType:(HTTPCode)code;\n\n@end\n"}
81,079
c
// // rulerview.h // MelobaseStation // // Created by <NAME> on 2015-12-15. // Copyright © 2015-2019 <NAME>. All rights reserved. // #ifndef RULERVIEW_H #define RULERVIEW_H #include <view.h> class RulerView : public MDStudio::View { float _margin; int _min; unsigned int _nbDivisions; unsigned int _divStep; bool _hasFocus; public: RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0); void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep); void draw() override; void setFocusState(bool state) { _hasFocus = state; setDirty(); } }; #endif // RULERVIEW_H
23.2
30
(translation_unit) "//\n// rulerview.h\n// MelobaseStation\n//\n// Created by <NAME> on 2015-12-15.\n// Copyright © 2015-2019 <NAME>. All rights reserved.\n//\n\n#ifndef RULERVIEW_H\n#define RULERVIEW_H\n\n#include <view.h>\n\nclass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};\n\n#endif // RULERVIEW_H\n\n" (comment) "//" (comment) "// rulerview.h" (comment) "// MelobaseStation" (comment) "//" (comment) "// Created by <NAME> on 2015-12-15." (comment) "// Copyright © 2015-2019 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_ifdef) "ifndef RULERVIEW_H\n#define RULERVIEW_H\n\n#include <view.h>\n\nclass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};\n\n#endif " (#ifndef) "ifndef " (identifier) "ULERVIEW_H\n" (preproc_def) "define RULERVIEW_H\n\n" (#define) "define " (identifier) "ULERVIEW_H\n" (preproc_include) "include <view.h>\n\n" (#include) "include " (system_lib_string) "view.h>\n" (function_definition) "lass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};" (type_identifier) "lass " (identifier) "ulerView " (ERROR) " public MDStudio::View " (:) " " (identifier) "ublic " (identifier) "DStudio:" (:) ":" (:) "V" (identifier) "iew " (compound_statement) "\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};" ({) "\n" (declaration) "loat _margin;\n" (primitive_type) "loat " (identifier) "margin;" (;) "\n" (declaration) "nt _min;\n" (primitive_type) "nt " (identifier) "min;" (;) "\n" (declaration) "nsigned int _nbDivisions;\n" (sized_type_specifier) "nsigned int " (unsigned) "nsigned " (primitive_type) "nt " (identifier) "nbDivisions;" (;) "\n" (declaration) "nsigned int _divStep;\n" (sized_type_specifier) "nsigned int " (unsigned) "nsigned " (primitive_type) "nt " (identifier) "divStep;" (;) "\n" (declaration) "ool _hasFocus;\n" (primitive_type) "ool " (identifier) "hasFocus;" (;) "\n" (labeled_statement) "ublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n" (statement_identifier) "ublic:" (:) "\n" (labeled_statement) "ulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n" (statement_identifier) "ulerView(" (ERROR) "std::" (() "s" (type_descriptor) "td:" (type_identifier) "td:" (:) ":" (:) "s" (declaration) "tring name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n" (type_identifier) "tring " (identifier) "ame," (,) " " (ERROR) "oid " (identifier) "oid " (pointer_declarator) "owner," (*) "o" (identifier) "wner," (,) " " (ERROR) "loat " (identifier) "loat " (identifier) "argin," (,) " " (ERROR) "nt " (identifier) "nt " (init_declarator) "in = 0," (identifier) "in " (=) " " (number_literal) "," (,) " " (ERROR) "nsigned int " (identifier) "nsigned " (identifier) "nt " (init_declarator) "bDivisions = 0," (identifier) "bDivisions " (=) " " (number_literal) "," (,) " " (init_declarator) "nsigned int divStep = 0)" (identifier) "nsigned " (ERROR) "nt divStep " (identifier) "nt " (identifier) "ivStep " (=) " " (number_literal) ")" (ERROR) ";" ()) ";" (;) "\n" (declaration) "oid setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n" (primitive_type) "oid " (function_declarator) "etRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);" (identifier) "etRange(" (parameter_list) "unsigned int min, unsigned int nbDivisions, unsigned int divStep);" (() "u" (parameter_declaration) "nsigned int min," (sized_type_specifier) "nsigned int " (unsigned) "nsigned " (primitive_type) "nt " (identifier) "in," (,) " " (parameter_declaration) "nsigned int nbDivisions," (sized_type_specifier) "nsigned int " (unsigned) "nsigned " (primitive_type) "nt " (identifier) "bDivisions," (,) " " (parameter_declaration) "nsigned int divStep)" (sized_type_specifier) "nsigned int " (unsigned) "nsigned " (primitive_type) "nt " (identifier) "ivStep)" ()) ";" (;) "\n" (ERROR) "oid draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n" (primitive_type) "oid " (function_declarator) "raw() " (identifier) "raw(" (parameter_list) ") " (() ")" ()) " " (declaration) "verride;\n" (type_identifier) "verride;" (identifier) "" (;) "\n" (declaration) "oid setFocusState(bool state) { _hasFocus = state; " (primitive_type) "oid " (init_declarator) "etFocusState(bool state) { _hasFocus = state;" (function_declarator) "etFocusState(bool state) " (identifier) "etFocusState(" (parameter_list) "bool state) " (() "b" (parameter_declaration) "ool state)" (primitive_type) "ool " (identifier) "tate)" ()) " " (ERROR) " _hasFocus " ({) " " (identifier) "hasFocus " (=) " " (identifier) "tate;" (;) " " (macro_type_specifier) "etDirty();" (identifier) "etDirty(" (() ")" (type_descriptor) "" (type_identifier) "" ()) ";" (;) " " (}) "\n" (}) ";" (expression_statement) "\n" (;) "\n" (#endif) "endif " (comment) "/ RULERVIEW_H\n"
169
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.2, "nodes": 115, "errors": 0, "source_hash": "a2d696803c3141d071e270d97e2651f5a2d80c39fb97b98621d258fdf1765af3", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef RULERVIEW_H\n#define RULERVIEW_H\n\n#include <view.h>\n\nclass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};\n\n#endif ", "parent": null, "children": [1, 2, 3, 6, 9, 114], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "ifndef ", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "identifier", "text": "ULERVIEW_H\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "define RULERVIEW_H\n\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "define ", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "ULERVIEW_H\n", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "include <view.h>\n\n", "parent": 0, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "include ", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "view.h>\n", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 9, "type": "function_definition", "text": "lass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "lass ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 5}}, {"id": 11, "type": "identifier", "text": "ulerView ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 15}}, {"id": 12, "type": "ERROR", "text": " public MDStudio::View ", "parent": 9, "children": [13, 14, 15], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 39}}, {"id": 13, "type": "identifier", "text": "ublic ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 24}}, {"id": 14, "type": "identifier", "text": "DStudio:", "parent": 12, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 33}}, {"id": 15, "type": "identifier", "text": "iew ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 39}}, {"id": 16, "type": "declaration", "text": "loat _margin;\n", "parent": 9, "children": [17, 18], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 18}}, {"id": 17, "type": "primitive_type", "text": "loat ", "parent": 16, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 9}}, {"id": 18, "type": "identifier", "text": "margin;", "parent": 16, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 17}}, {"id": 19, "type": "declaration", "text": "nt _min;\n", "parent": 9, "children": [20, 21], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 20, "type": "primitive_type", "text": "nt ", "parent": 19, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 21, "type": "identifier", "text": "min;", "parent": 19, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 12}}, {"id": 22, "type": "declaration", "text": "nsigned int _nbDivisions;\n", "parent": 9, "children": [23, 26], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 30}}, {"id": 23, "type": "sized_type_specifier", "text": "nsigned int ", "parent": 22, "children": [24, 25], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 16}}, {"id": 24, "type": "unsigned", "text": "nsigned ", "parent": 23, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 25, "type": "primitive_type", "text": "nt ", "parent": 23, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 16}}, {"id": 26, "type": "identifier", "text": "nbDivisions;", "parent": 22, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 29}}, {"id": 27, "type": "declaration", "text": "nsigned int _divStep;\n", "parent": 9, "children": [28, 31], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 26}}, {"id": 28, "type": "sized_type_specifier", "text": "nsigned int ", "parent": 27, "children": [29, 30], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 16}}, {"id": 29, "type": "unsigned", "text": "nsigned ", "parent": 28, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 30, "type": "primitive_type", "text": "nt ", "parent": 28, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 16}}, {"id": 31, "type": "identifier", "text": "divStep;", "parent": 27, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 25}}, {"id": 32, "type": "declaration", "text": "ool _hasFocus;\n", "parent": 9, "children": [33, 34], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 19}}, {"id": 33, "type": "primitive_type", "text": "ool ", "parent": 32, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 34, "type": "identifier", "text": "hasFocus;", "parent": 32, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 35, "type": "labeled_statement", "text": "ublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n", "parent": 9, "children": [36, 37], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 128}}, {"id": 36, "type": "statement_identifier", "text": "ublic:", "parent": 35, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 37, "type": "labeled_statement", "text": "ulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n", "parent": 35, "children": [38, 39, 42], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 128}}, {"id": 38, "type": "statement_identifier", "text": "ulerView(", "parent": 37, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 39, "type": "ERROR", "text": "std::", "parent": 37, "children": [40], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 18}}, {"id": 40, "type": "type_descriptor", "text": "td:", "parent": 39, "children": [41], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 17}}, {"id": 41, "type": "type_identifier", "text": "td:", "parent": 40, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 17}}, {"id": 42, "type": "declaration", "text": "tring name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n", "parent": 37, "children": [43, 44, 45, 47, 50, 52, 53, 55, 58, 61, 64], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 128}}, {"id": 43, "type": "type_identifier", "text": "tring ", "parent": 42, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 25}}, {"id": 44, "type": "identifier", "text": "ame,", "parent": 42, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 30}}, {"id": 45, "type": "ERROR", "text": "oid ", "parent": 42, "children": [46], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 36}}, {"id": 46, "type": "identifier", "text": "oid ", "parent": 45, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 36}}, {"id": 47, "type": "pointer_declarator", "text": "owner,", "parent": 42, "children": [48, 49], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 43}}, {"id": 48, "type": "*", "text": "o", "parent": 47, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 49, "type": "identifier", "text": "wner,", "parent": 47, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 43}}, {"id": 50, "type": "ERROR", "text": "loat ", "parent": 42, "children": [51], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 50}}, {"id": 51, "type": "identifier", "text": "loat ", "parent": 50, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 50}}, {"id": 52, "type": "identifier", "text": "argin,", "parent": 42, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 57}}, {"id": 53, "type": "ERROR", "text": "nt ", "parent": 42, "children": [54], "start_point": {"row": 23, "column": 59}, "end_point": {"row": 23, "column": 62}}, {"id": 54, "type": "identifier", "text": "nt ", "parent": 53, "children": [], "start_point": {"row": 23, "column": 59}, "end_point": {"row": 23, "column": 62}}, {"id": 55, "type": "init_declarator", "text": "in = 0,", "parent": 42, "children": [56, 57], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 70}}, {"id": 56, "type": "identifier", "text": "in ", "parent": 55, "children": [], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 66}}, {"id": 57, "type": "=", "text": " ", "parent": 55, "children": [], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 68}}, {"id": 58, "type": "ERROR", "text": "nsigned int ", "parent": 42, "children": [59, 60], "start_point": {"row": 23, "column": 72}, "end_point": {"row": 23, "column": 84}}, {"id": 59, "type": "identifier", "text": "nsigned ", "parent": 58, "children": [], "start_point": {"row": 23, "column": 72}, "end_point": {"row": 23, "column": 80}}, {"id": 60, "type": "identifier", "text": "nt ", "parent": 58, "children": [], "start_point": {"row": 23, "column": 81}, "end_point": {"row": 23, "column": 84}}, {"id": 61, "type": "init_declarator", "text": "bDivisions = 0,", "parent": 42, "children": [62, 63], "start_point": {"row": 23, "column": 85}, "end_point": {"row": 23, "column": 100}}, {"id": 62, "type": "identifier", "text": "bDivisions ", "parent": 61, "children": [], "start_point": {"row": 23, "column": 85}, "end_point": {"row": 23, "column": 96}}, {"id": 63, "type": "=", "text": " ", "parent": 61, "children": [], "start_point": {"row": 23, "column": 97}, "end_point": {"row": 23, "column": 98}}, {"id": 64, "type": "init_declarator", "text": "nsigned int divStep = 0)", "parent": 42, "children": [65, 66, 69], "start_point": {"row": 23, "column": 102}, "end_point": {"row": 23, "column": 126}}, {"id": 65, "type": "identifier", "text": "nsigned ", "parent": 64, "children": [], "start_point": {"row": 23, "column": 102}, "end_point": {"row": 23, "column": 110}}, {"id": 66, "type": "ERROR", "text": "nt divStep ", "parent": 64, "children": [67, 68], "start_point": {"row": 23, "column": 111}, "end_point": {"row": 23, "column": 122}}, {"id": 67, "type": "identifier", "text": "nt ", "parent": 66, "children": [], "start_point": {"row": 23, "column": 111}, "end_point": {"row": 23, "column": 114}}, {"id": 68, "type": "identifier", "text": "ivStep ", "parent": 66, "children": [], "start_point": {"row": 23, "column": 115}, "end_point": {"row": 23, "column": 122}}, {"id": 69, "type": "=", "text": " ", "parent": 64, "children": [], "start_point": {"row": 23, "column": 123}, "end_point": {"row": 23, "column": 124}}, {"id": 70, "type": "declaration", "text": "oid setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n", "parent": 9, "children": [71, 72], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 84}}, {"id": 71, "type": "primitive_type", "text": "oid ", "parent": 70, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 72, "type": "function_declarator", "text": "etRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);", "parent": 70, "children": [73, 74], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 83}}, {"id": 73, "type": "identifier", "text": "etRange(", "parent": 72, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 74, "type": "parameter_list", "text": "unsigned int min, unsigned int nbDivisions, unsigned int divStep);", "parent": 72, "children": [75, 80, 85], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 83}}, {"id": 75, "type": "parameter_declaration", "text": "nsigned int min,", "parent": 74, "children": [76, 79], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 34}}, {"id": 76, "type": "sized_type_specifier", "text": "nsigned int ", "parent": 75, "children": [77, 78], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 30}}, {"id": 77, "type": "unsigned", "text": "nsigned ", "parent": 76, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 26}}, {"id": 78, "type": "primitive_type", "text": "nt ", "parent": 76, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 30}}, {"id": 79, "type": "identifier", "text": "in,", "parent": 75, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 34}}, {"id": 80, "type": "parameter_declaration", "text": "nsigned int nbDivisions,", "parent": 74, "children": [81, 84], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 60}}, {"id": 81, "type": "sized_type_specifier", "text": "nsigned int ", "parent": 80, "children": [82, 83], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 48}}, {"id": 82, "type": "unsigned", "text": "nsigned ", "parent": 81, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 44}}, {"id": 83, "type": "primitive_type", "text": "nt ", "parent": 81, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 48}}, {"id": 84, "type": "identifier", "text": "bDivisions,", "parent": 80, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 60}}, {"id": 85, "type": "parameter_declaration", "text": "nsigned int divStep)", "parent": 74, "children": [86, 89], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 82}}, {"id": 86, "type": "sized_type_specifier", "text": "nsigned int ", "parent": 85, "children": [87, 88], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 74}}, {"id": 87, "type": "unsigned", "text": "nsigned ", "parent": 86, "children": [], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 70}}, {"id": 88, "type": "primitive_type", "text": "nt ", "parent": 86, "children": [], "start_point": {"row": 25, "column": 71}, "end_point": {"row": 25, "column": 74}}, {"id": 89, "type": "identifier", "text": "ivStep)", "parent": 85, "children": [], "start_point": {"row": 25, "column": 75}, "end_point": {"row": 25, "column": 82}}, {"id": 90, "type": "ERROR", "text": "oid draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n", "parent": 9, "children": [91, 92, 94, 97, 110], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 29, "column": 69}}, {"id": 91, "type": "primitive_type", "text": "oid ", "parent": 90, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 92, "type": "function_declarator", "text": "raw() ", "parent": 90, "children": [93], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 93, "type": "identifier", "text": "raw(", "parent": 92, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 13}}, {"id": 94, "type": "declaration", "text": "verride;\n", "parent": 90, "children": [95, 96], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 25}}, {"id": 95, "type": "type_identifier", "text": "verride;", "parent": 94, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 24}}, {"id": 96, "type": "identifier", "text": "", "parent": 94, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 24}}, {"id": 97, "type": "declaration", "text": "oid setFocusState(bool state) { _hasFocus = state; ", "parent": 90, "children": [98, 99], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 55}}, {"id": 98, "type": "primitive_type", "text": "oid ", "parent": 97, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 99, "type": "init_declarator", "text": "etFocusState(bool state) { _hasFocus = state;", "parent": 97, "children": [100, 106, 108, 109], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 54}}, {"id": 100, "type": "function_declarator", "text": "etFocusState(bool state) ", "parent": 99, "children": [101, 102], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 34}}, {"id": 101, "type": "identifier", "text": "etFocusState(", "parent": 100, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 22}}, {"id": 102, "type": "parameter_list", "text": "bool state) ", "parent": 100, "children": [103], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 34}}, {"id": 103, "type": "parameter_declaration", "text": "ool state)", "parent": 102, "children": [104, 105], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 33}}, {"id": 104, "type": "primitive_type", "text": "ool ", "parent": 103, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 27}}, {"id": 105, "type": "identifier", "text": "tate)", "parent": 103, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 33}}, {"id": 106, "type": "ERROR", "text": " _hasFocus ", "parent": 99, "children": [107], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 46}}, {"id": 107, "type": "identifier", "text": "hasFocus ", "parent": 106, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 46}}, {"id": 108, "type": "=", "text": " ", "parent": 99, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 48}}, {"id": 109, "type": "identifier", "text": "tate;", "parent": 99, "children": [], "start_point": {"row": 29, "column": 49}, "end_point": {"row": 29, "column": 54}}, {"id": 110, "type": "macro_type_specifier", "text": "etDirty();", "parent": 90, "children": [111, 112], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 66}}, {"id": 111, "type": "identifier", "text": "etDirty(", "parent": 110, "children": [], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 64}}, {"id": 112, "type": "type_descriptor", "text": "", "parent": 110, "children": [113], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 65}}, {"id": 113, "type": "type_identifier", "text": "", "parent": 112, "children": [], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 65}}, {"id": 114, "type": "#endif", "text": "endif ", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 72, 92, 100], "variables": [16, 19, 22, 27, 32, 42, 70, 75, 80, 85, 94, 97, 103], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 14, 15, 18, 21, 23, 26, 28, 31, 34, 36, 38, 41, 43, 44, 46, 49, 51, 52, 54, 56, 59, 60, 62, 65, 67, 68, 73, 76, 79, 81, 84, 86, 89, 93, 95, 96, 101, 105, 107, 109, 110, 111, 113, 114], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "_min;", "text_snippet": "lass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbD"}, {"node_id": 72, "universal_type": "function", "name": "min,", "text_snippet": "etRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "raw() "}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "etFocusState(bool state) "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "include <view.h>\n\n"}, {"node_id": 7, "text": "include "}]}, "original_source_code": "//\n// rulerview.h\n// MelobaseStation\n//\n// Created by <NAME> on 2015-12-15.\n// Copyright \u00a9 2015-2019 <NAME>. All rights reserved.\n//\n\n#ifndef RULERVIEW_H\n#define RULERVIEW_H\n\n#include <view.h>\n\nclass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n unsigned int _nbDivisions;\n unsigned int _divStep;\n bool _hasFocus;\n \npublic:\n \n RulerView(std::string name, void *owner, float margin, int min = 0, unsigned int nbDivisions = 0, unsigned int divStep = 0);\n \n void setRange(unsigned int min, unsigned int nbDivisions, unsigned int divStep);\n \n void draw() override;\n \n void setFocusState(bool state) { _hasFocus = state; setDirty(); }\n \n};\n\n#endif // RULERVIEW_H\n\n"}
81,080
c
#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h #define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h // -*- C++ -*- // // Package: SiStripApvGainCalculator // Class: SiStripApvGainCalculator // /**\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME>, <NAME> // Created: Mon Nov 20 10:04:31 CET 2006 // // #include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" #include "CondFormats/SiStripObjects/interface/SiStripApvGain.h" #include <vector> class SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> { public: explicit SiStripGainRandomCalculator(const edm::ParameterSet&); ~SiStripGainRandomCalculator(); private: void algoAnalyze(const edm::Event &, const edm::EventSetup &); SiStripApvGain * getNewObject(); private: double meanGain_; double sigmaGain_; double minimumPosValue_; std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_; unsigned long long m_cacheID_; bool printdebug_; }; #endif
31.73
37
(translation_unit) "#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n// -*- C++ -*-\n//\n// Package: SiStripApvGainCalculator\n// Class: SiStripApvGainCalculator\n// \n/**\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/\n//\n// Original Author: <NAME>, <NAME>\n// Created: Mon Nov 20 10:04:31 CET 2006\n//\n//\n\n\n#include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h"\n#include "CondFormats/SiStripObjects/interface/SiStripApvGain.h"\n#include <vector>\n\nclass SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n};\n#endif\n" (preproc_ifdef) "#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n// -*- C++ -*-\n//\n// Package: SiStripApvGainCalculator\n// Class: SiStripApvGainCalculator\n// \n/**\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/\n//\n// Original Author: <NAME>, <NAME>\n// Created: Mon Nov 20 10:04:31 CET 2006\n//\n//\n\n\n#include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h"\n#include "CondFormats/SiStripObjects/interface/SiStripApvGain.h"\n#include <vector>\n\nclass SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n};\n#endif" (#ifndef) "#ifndef" (identifier) "CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h" (preproc_def) "#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n" (#define) "#define" (identifier) "CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h" (comment) "// -*- C++ -*-" (comment) "//" (comment) "// Package: SiStripApvGainCalculator" (comment) "// Class: SiStripApvGainCalculator" (comment) "// " (comment) "/**\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/" (comment) "//" (comment) "// Original Author: <NAME>, <NAME>" (comment) "// Created: Mon Nov 20 10:04:31 CET 2006" (comment) "//" (comment) "//" (preproc_include) "#include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h"\n" (#include) "#include" (string_literal) ""CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h"" (") """ (string_content) "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" (") """ (preproc_include) "#include "CondFormats/SiStripObjects/interface/SiStripApvGain.h"\n" (#include) "#include" (string_literal) ""CondFormats/SiStripObjects/interface/SiStripApvGain.h"" (") """ (string_content) "CondFormats/SiStripObjects/interface/SiStripApvGain.h" (") """ (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "class SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n}" (type_identifier) "class" (identifier) "SiStripGainRandomCalculator" (ERROR) ": public ConditionDBWriter<SiStripApvGain>" (:) ":" (identifier) "public" (identifier) "ConditionDBWriter" (<) "<" (identifier) "SiStripApvGain" (>) ">" (compound_statement) "{\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n}" ({) "{" (labeled_statement) "public:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);" (statement_identifier) "public" (:) ":" (declaration) "explicit SiStripGainRandomCalculator(const edm::ParameterSet&);" (type_identifier) "explicit" (function_declarator) "SiStripGainRandomCalculator(const edm::ParameterSet&)" (identifier) "SiStripGainRandomCalculator" (parameter_list) "(const edm::ParameterSet&)" (() "(" (parameter_declaration) "const edm::ParameterSet" (type_qualifier) "const" (const) "const" (type_identifier) "edm" (ERROR) "::" (:) ":" (:) ":" (identifier) "ParameterSet" (ERROR) "&" (&) "&" ()) ")" (;) ";" (expression_statement) "~SiStripGainRandomCalculator();" (unary_expression) "~SiStripGainRandomCalculator()" (~) "~" (call_expression) "SiStripGainRandomCalculator()" (identifier) "SiStripGainRandomCalculator" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);" (statement_identifier) "private" (:) ":" (declaration) "void algoAnalyze(const edm::Event &, const edm::EventSetup &);" (primitive_type) "void" (function_declarator) "algoAnalyze(const edm::Event &, const edm::EventSetup &)" (identifier) "algoAnalyze" (parameter_list) "(const edm::Event &, const edm::EventSetup &)" (() "(" (parameter_declaration) "const edm::Event" (type_qualifier) "const" (const) "const" (type_identifier) "edm" (ERROR) "::" (:) ":" (:) ":" (identifier) "Event" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "const edm::EventSetup" (type_qualifier) "const" (const) "const" (type_identifier) "edm" (ERROR) "::" (:) ":" (:) ":" (identifier) "EventSetup" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "SiStripApvGain * getNewObject();" (type_identifier) "SiStripApvGain" (pointer_declarator) "* getNewObject()" (*) "*" (function_declarator) "getNewObject()" (identifier) "getNewObject" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n\n double meanGain_;" (statement_identifier) "private" (:) ":" (declaration) "double meanGain_;" (primitive_type) "double" (identifier) "meanGain_" (;) ";" (declaration) "double sigmaGain_;" (primitive_type) "double" (identifier) "sigmaGain_" (;) ";" (declaration) "double minimumPosValue_;" (primitive_type) "double" (identifier) "minimumPosValue_" (;) ";" (labeled_statement) "std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;" (statement_identifier) "std" (ERROR) "::vector< std:" (:) ":" (:) ":" (binary_expression) "vector< std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "pair<uint32_t, unsigned short> > detid_apvs_;" (comma_expression) "pair<uint32_t, unsigned short> > detid_apvs_" (binary_expression) "pair<uint32_t" (identifier) "pair" (<) "<" (identifier) "uint32_t" (,) "," (binary_expression) "unsigned short> > detid_apvs_" (identifier) "unsigned" (ERROR) "short" (identifier) "short" (>) ">" (ERROR) ">" (>) ">" (identifier) "detid_apvs_" (;) ";" (declaration) "unsigned long long m_cacheID_;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "m_cacheID_" (;) ";" (declaration) "bool printdebug_;" (primitive_type) "bool" (identifier) "printdebug_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
174
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.73, "nodes": 95, "errors": 0, "source_hash": "3f38026171bd8f630dca3b28b6048925a153516ef93901dfa87e1de8536d715e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n// -*- C++ -*-\n//\n// Package: SiStripApvGainCalculator\n// Class: SiStripApvGainCalculator\n// \n/**\\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/\n//\n// Original Author: <NAME>, <NAME>\n// Created: Mon Nov 20 10:04:31 CET 2006\n//\n//\n\n\n#include \"CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h\"\n#include \"CondFormats/SiStripObjects/interface/SiStripApvGain.h\"\n#include <vector>\n\nclass SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n};\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 94], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 69}}, {"id": 3, "type": "preproc_def", "text": "#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 69}}, {"id": 6, "type": "preproc_include", "text": "#include \"CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h\"", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 70}}, {"id": 9, "type": "preproc_include", "text": "#include \"CondFormats/SiStripObjects/interface/SiStripApvGain.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"CondFormats/SiStripObjects/interface/SiStripApvGain.h\"", "parent": 9, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 64}}, {"id": 12, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<vector>", "parent": 12, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 17}}, {"id": 15, "type": "function_definition", "text": "class SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 16, "type": "identifier", "text": "SiStripGainRandomCalculator", "parent": 15, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 33}}, {"id": 17, "type": "ERROR", "text": ": public ConditionDBWriter<SiStripApvGain>", "parent": 15, "children": [18, 19, 20, 21], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 76}}, {"id": 18, "type": "identifier", "text": "ConditionDBWriter", "parent": 17, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 60}}, {"id": 19, "type": "<", "text": "<", "parent": 17, "children": [], "start_point": {"row": 25, "column": 60}, "end_point": {"row": 25, "column": 61}}, {"id": 20, "type": "identifier", "text": "SiStripApvGain", "parent": 17, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 75}}, {"id": 21, "type": ">", "text": ">", "parent": 17, "children": [], "start_point": {"row": 25, "column": 75}, "end_point": {"row": 25, "column": 76}}, {"id": 22, "type": "labeled_statement", "text": "public:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);", "parent": 15, "children": [23], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 29, "column": 65}}, {"id": 23, "type": "declaration", "text": "explicit SiStripGainRandomCalculator(const edm::ParameterSet&);", "parent": 22, "children": [24, 25], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 65}}, {"id": 24, "type": "type_identifier", "text": "explicit", "parent": 23, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 25, "type": "function_declarator", "text": "SiStripGainRandomCalculator(const edm::ParameterSet&)", "parent": 23, "children": [26, 27], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 64}}, {"id": 26, "type": "identifier", "text": "SiStripGainRandomCalculator", "parent": 25, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 38}}, {"id": 27, "type": "parameter_list", "text": "(const edm::ParameterSet&)", "parent": 25, "children": [28], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 64}}, {"id": 28, "type": "parameter_declaration", "text": "const edm::ParameterSet", "parent": 27, "children": [29, 30], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 62}}, {"id": 29, "type": "type_identifier", "text": "edm", "parent": 28, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 48}}, {"id": 30, "type": "identifier", "text": "ParameterSet", "parent": 28, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 62}}, {"id": 31, "type": "unary_expression", "text": "~SiStripGainRandomCalculator()", "parent": 15, "children": [32, 33], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 32}}, {"id": 32, "type": "~", "text": "~", "parent": 31, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 3}}, {"id": 33, "type": "call_expression", "text": "SiStripGainRandomCalculator()", "parent": 31, "children": [34, 35], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 32}}, {"id": 34, "type": "identifier", "text": "SiStripGainRandomCalculator", "parent": 33, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 30}}, {"id": 35, "type": "argument_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 32}}, {"id": 36, "type": "labeled_statement", "text": "private:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);", "parent": 15, "children": [37], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 64}}, {"id": 37, "type": "declaration", "text": "void algoAnalyze(const edm::Event &, const edm::EventSetup &);", "parent": 36, "children": [38, 39], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 64}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 39, "type": "function_declarator", "text": "algoAnalyze(const edm::Event &, const edm::EventSetup &)", "parent": 37, "children": [40, 41], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 63}}, {"id": 40, "type": "identifier", "text": "algoAnalyze", "parent": 39, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 18}}, {"id": 41, "type": "parameter_list", "text": "(const edm::Event &, const edm::EventSetup &)", "parent": 39, "children": [42, 45], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 63}}, {"id": 42, "type": "parameter_declaration", "text": "const edm::Event", "parent": 41, "children": [43, 44], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 35}}, {"id": 43, "type": "type_identifier", "text": "edm", "parent": 42, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 28}}, {"id": 44, "type": "identifier", "text": "Event", "parent": 42, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 35}}, {"id": 45, "type": "parameter_declaration", "text": "const edm::EventSetup", "parent": 41, "children": [46, 47], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 60}}, {"id": 46, "type": "type_identifier", "text": "edm", "parent": 45, "children": [], "start_point": {"row": 34, "column": 45}, "end_point": {"row": 34, "column": 48}}, {"id": 47, "type": "identifier", "text": "EventSetup", "parent": 45, "children": [], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 60}}, {"id": 48, "type": "declaration", "text": "SiStripApvGain * getNewObject();", "parent": 15, "children": [49, 50], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 34}}, {"id": 49, "type": "type_identifier", "text": "SiStripApvGain", "parent": 48, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 16}}, {"id": 50, "type": "pointer_declarator", "text": "* getNewObject()", "parent": 48, "children": [51, 52], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 33}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 18}}, {"id": 52, "type": "function_declarator", "text": "getNewObject()", "parent": 50, "children": [53, 54], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 33}}, {"id": 53, "type": "identifier", "text": "getNewObject", "parent": 52, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 31}}, {"id": 54, "type": "parameter_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 33}}, {"id": 55, "type": "labeled_statement", "text": "private:\n\n double meanGain_;", "parent": 15, "children": [56], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 40, "column": 19}}, {"id": 56, "type": "declaration", "text": "double meanGain_;", "parent": 55, "children": [57, 58], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 19}}, {"id": 57, "type": "primitive_type", "text": "double", "parent": 56, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 8}}, {"id": 58, "type": "identifier", "text": "meanGain_", "parent": 56, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 18}}, {"id": 59, "type": "declaration", "text": "double sigmaGain_;", "parent": 15, "children": [60, 61], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 20}}, {"id": 60, "type": "primitive_type", "text": "double", "parent": 59, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 8}}, {"id": 61, "type": "identifier", "text": "sigmaGain_", "parent": 59, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 19}}, {"id": 62, "type": "declaration", "text": "double minimumPosValue_;", "parent": 15, "children": [63, 64], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 26}}, {"id": 63, "type": "primitive_type", "text": "double", "parent": 62, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 8}}, {"id": 64, "type": "identifier", "text": "minimumPosValue_", "parent": 62, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 25}}, {"id": 65, "type": "labeled_statement", "text": "std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;", "parent": 15, "children": [66, 67], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 65}}, {"id": 66, "type": "statement_identifier", "text": "std", "parent": 65, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 5}}, {"id": 67, "type": "ERROR", "text": "::vector< std:", "parent": 65, "children": [68], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 19}}, {"id": 68, "type": "binary_expression", "text": "vector< std", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 18}}, {"id": 69, "type": "identifier", "text": "vector", "parent": 68, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 70, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 14}}, {"id": 71, "type": "identifier", "text": "std", "parent": 68, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 18}}, {"id": 72, "type": "comma_expression", "text": "pair<uint32_t, unsigned short> > detid_apvs_", "parent": 65, "children": [73, 77], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 64}}, {"id": 73, "type": "binary_expression", "text": "pair<uint32_t", "parent": 72, "children": [74, 75, 76], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 33}}, {"id": 74, "type": "identifier", "text": "pair", "parent": 73, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 24}}, {"id": 75, "type": "<", "text": "<", "parent": 73, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 25}}, {"id": 76, "type": "identifier", "text": "uint32_t", "parent": 73, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 33}}, {"id": 77, "type": "binary_expression", "text": "unsigned short> > detid_apvs_", "parent": 72, "children": [78, 79, 81, 82, 84], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 64}}, {"id": 78, "type": "identifier", "text": "unsigned", "parent": 77, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 43}}, {"id": 79, "type": "ERROR", "text": "short", "parent": 77, "children": [80], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 49}}, {"id": 80, "type": "identifier", "text": "short", "parent": 79, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 49}}, {"id": 81, "type": ">", "text": ">", "parent": 77, "children": [], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 50}}, {"id": 82, "type": "ERROR", "text": ">", "parent": 77, "children": [83], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 52}}, {"id": 83, "type": ">", "text": ">", "parent": 82, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 52}}, {"id": 84, "type": "identifier", "text": "detid_apvs_", "parent": 77, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 44, "column": 64}}, {"id": 85, "type": "declaration", "text": "unsigned long long m_cacheID_;", "parent": 15, "children": [86, 90], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 32}}, {"id": 86, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 20}}, {"id": 87, "type": "unsigned", "text": "unsigned", "parent": 86, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 88, "type": "long", "text": "long", "parent": 86, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 15}}, {"id": 89, "type": "long", "text": "long", "parent": 86, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 20}}, {"id": 90, "type": "identifier", "text": "m_cacheID_", "parent": 85, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 31}}, {"id": 91, "type": "declaration", "text": "bool printdebug_;", "parent": 15, "children": [92, 93], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 19}}, {"id": 92, "type": "primitive_type", "text": "bool", "parent": 91, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 93, "type": "identifier", "text": "printdebug_", "parent": 91, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 18}}, {"id": 94, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 25, 39, 52], "variables": [23, 28, 37, 42, 45, 48, 56, 59, 62, 85, 91], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [31, 33, 68, 72, 73, 77], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 20, 24, 26, 29, 30, 34, 40, 43, 44, 46, 47, 49, 53, 58, 61, 64, 66, 69, 71, 74, 76, 78, 80, 84, 86, 90, 93, 94], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "SiStripGainRandomCalculator", "text_snippet": "class SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit "}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "SiStripGainRandomCalculator(const edm::ParameterSet&)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "algoAnalyze(const edm::Event &, const edm::EventSetup &)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "getNewObject()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"CondFormats/SiStripObjects/interface/SiStripApvGain.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vector>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n// -*- C++ -*-\n//\n// Package: SiStripApvGainCalculator\n// Class: SiStripApvGainCalculator\n// \n/**\\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/SiStripChannelGain/src/SiStripApvGainCalculator.cc\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/\n//\n// Original Author: <NAME>, <NAME>\n// Created: Mon Nov 20 10:04:31 CET 2006\n//\n//\n\n\n#include \"CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h\"\n#include \"CondFormats/SiStripObjects/interface/SiStripApvGain.h\"\n#include <vector>\n\nclass SiStripGainRandomCalculator : public ConditionDBWriter<SiStripApvGain> {\n\npublic:\n\n explicit SiStripGainRandomCalculator(const edm::ParameterSet&);\n ~SiStripGainRandomCalculator();\n\nprivate:\n\n void algoAnalyze(const edm::Event &, const edm::EventSetup &);\n\n SiStripApvGain * getNewObject();\n\nprivate:\n\n double meanGain_;\n double sigmaGain_;\n double minimumPosValue_;\n\n std::vector< std::pair<uint32_t, unsigned short> > detid_apvs_;\n unsigned long long m_cacheID_;\n bool printdebug_;\n\n};\n#endif\n"}
81,081
c
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within this package. */ #ifndef _INC_WFEXT #define _INC_WFEXT #ifdef __cplusplus extern "C" { #endif #define MENU_TEXT_LEN 40 #define FMMENU_FIRST 1 #define FMMENU_LAST 99 #define FMEVENT_LOAD 100 #define FMEVENT_UNLOAD 101 #define FMEVENT_INITMENU 102 #define FMEVENT_USER_REFRESH 103 #define FMEVENT_SELCHANGE 104 #define FMEVENT_TOOLBARLOAD 105 #define FMEVENT_HELPSTRING 106 #define FMEVENT_HELPMENUITEM 107 #define FMFOCUS_DIR 1 #define FMFOCUS_TREE 2 #define FMFOCUS_DRIVES 3 #define FMFOCUS_SEARCH 4 #define FM_GETFOCUS (WM_USER + 0x0200) #define FM_GETSELCOUNT (WM_USER + 0x0202) #define FM_GETSELCOUNTLFN (WM_USER + 0x0203) #define FM_REFRESH_WINDOWS (WM_USER + 0x0206) #define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207) #define FM_GETDRIVEINFOA (WM_USER + 0x0201) #define FM_GETFILESELA (WM_USER + 0x0204) #define FM_GETFILESELLFNA (WM_USER + 0x0205) #define FM_GETDRIVEINFOW (WM_USER + 0x0211) #define FM_GETFILESELW (WM_USER + 0x0214) #define FM_GETFILESELLFNW (WM_USER + 0x0215) #ifdef UNICODE #define FM_GETDRIVEINFO FM_GETDRIVEINFOW #define FM_GETFILESEL FM_GETFILESELW #define FM_GETFILESELLFN FM_GETFILESELLFNW #else #define FM_GETDRIVEINFO FM_GETDRIVEINFOA #define FM_GETFILESEL FM_GETFILESELA #define FM_GETFILESELLFN FM_GETFILESELLFNA #endif typedef struct _FMS_GETFILESELA { FILETIME ftTime; DWORD dwSize; BYTE bAttr; CHAR szName[260]; } FMS_GETFILESELA,*LPFMS_GETFILESELA; typedef struct _FMS_GETFILESELW { FILETIME ftTime; DWORD dwSize; BYTE bAttr; WCHAR szName[260]; } FMS_GETFILESELW,*LPFMS_GETFILESELW; #ifdef UNICODE #define FMS_GETFILESEL FMS_GETFILESELW #define LPFMS_GETFILESEL LPFMS_GETFILESELW #else #define FMS_GETFILESEL FMS_GETFILESELA #define LPFMS_GETFILESEL LPFMS_GETFILESELA #endif typedef struct _FMS_GETDRIVEINFOA { DWORD dwTotalSpace; DWORD dwFreeSpace; CHAR szPath[260]; CHAR szVolume[14]; CHAR szShare[128]; } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA; typedef struct _FMS_GETDRIVEINFOW { DWORD dwTotalSpace; DWORD dwFreeSpace; WCHAR szPath[260]; WCHAR szVolume[14]; WCHAR szShare[128]; } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW; #ifdef UNICODE #define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW #else #define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA #endif typedef struct _FMS_LOADA { DWORD dwSize; CHAR szMenuName[MENU_TEXT_LEN]; HMENU hMenu; UINT wMenuDelta; } FMS_LOADA,*LPFMS_LOADA; typedef struct _FMS_LOADW { DWORD dwSize; WCHAR szMenuName[MENU_TEXT_LEN]; HMENU hMenu; UINT wMenuDelta; } FMS_LOADW,*LPFMS_LOADW; #ifdef UNICODE #define FMS_LOAD FMS_LOADW #define LPFMS_LOAD LPFMS_LOADW #else #define FMS_LOAD FMS_LOADA #define LPFMS_LOAD LPFMS_LOADA #endif typedef struct tagEXT_BUTTON { WORD idCommand; WORD idsHelp; WORD fsStyle; } EXT_BUTTON,*LPEXT_BUTTON; typedef struct tagFMS_TOOLBARLOAD { DWORD dwSize; LPEXT_BUTTON lpButtons; WORD cButtons; WORD cBitmaps; WORD idBitmap; HBITMAP hBitmap; } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD; typedef struct tagFMS_HELPSTRINGA { INT idCommand; HMENU hMenu; CHAR szHelp[128]; } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA; typedef struct tagFMS_HELPSTRINGW { INT idCommand; HMENU hMenu; WCHAR szHelp[128]; } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW; #ifdef UNICODE #define FMS_HELPSTRING FMS_HELPSTRINGW #define LPFMS_HELPSTRING LPFMS_HELPSTRINGW #else #define FMS_HELPSTRING FMS_HELPSTRINGA #define LPFMS_HELPSTRING LPFMS_HELPSTRINGA #endif typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG); typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR); #ifdef UNICODE LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam); #else LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam); #endif #ifdef __cplusplus } #endif #endif
27.21
145
(translation_unit) "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the w64 mingw-runtime package.\n * No warranty is given; refer to the file DISCLAIMER within this package.\n */\n#ifndef _INC_WFEXT\n#define _INC_WFEXT\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n" (comment) "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the w64 mingw-runtime package.\n * No warranty is given; refer to the file DISCLAIMER within this package.\n */" (preproc_ifdef) "#ifndef _INC_WFEXT\n#define _INC_WFEXT\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "_INC_WFEXT" (preproc_def) "#define _INC_WFEXT\n" (#define) "#define" (identifier) "_INC_WFEXT" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (preproc_def) "#define MENU_TEXT_LEN 40\n" (#define) "#define" (identifier) "MENU_TEXT_LEN" (preproc_arg) "40" (preproc_def) "#define FMMENU_FIRST 1\n" (#define) "#define" (identifier) "FMMENU_FIRST" (preproc_arg) "1" (preproc_def) "#define FMMENU_LAST 99\n" (#define) "#define" (identifier) "FMMENU_LAST" (preproc_arg) "99" (preproc_def) "#define FMEVENT_LOAD 100\n" (#define) "#define" (identifier) "FMEVENT_LOAD" (preproc_arg) "100" (preproc_def) "#define FMEVENT_UNLOAD 101\n" (#define) "#define" (identifier) "FMEVENT_UNLOAD" (preproc_arg) "101" (preproc_def) "#define FMEVENT_INITMENU 102\n" (#define) "#define" (identifier) "FMEVENT_INITMENU" (preproc_arg) "102" (preproc_def) "#define FMEVENT_USER_REFRESH 103\n" (#define) "#define" (identifier) "FMEVENT_USER_REFRESH" (preproc_arg) "103" (preproc_def) "#define FMEVENT_SELCHANGE 104\n" (#define) "#define" (identifier) "FMEVENT_SELCHANGE" (preproc_arg) "104" (preproc_def) "#define FMEVENT_TOOLBARLOAD 105\n" (#define) "#define" (identifier) "FMEVENT_TOOLBARLOAD" (preproc_arg) "105" (preproc_def) "#define FMEVENT_HELPSTRING 106\n" (#define) "#define" (identifier) "FMEVENT_HELPSTRING" (preproc_arg) "106" (preproc_def) "#define FMEVENT_HELPMENUITEM 107\n" (#define) "#define" (identifier) "FMEVENT_HELPMENUITEM" (preproc_arg) "107" (preproc_def) "#define FMFOCUS_DIR 1\n" (#define) "#define" (identifier) "FMFOCUS_DIR" (preproc_arg) "1" (preproc_def) "#define FMFOCUS_TREE 2\n" (#define) "#define" (identifier) "FMFOCUS_TREE" (preproc_arg) "2" (preproc_def) "#define FMFOCUS_DRIVES 3\n" (#define) "#define" (identifier) "FMFOCUS_DRIVES" (preproc_arg) "3" (preproc_def) "#define FMFOCUS_SEARCH 4\n" (#define) "#define" (identifier) "FMFOCUS_SEARCH" (preproc_arg) "4" (preproc_def) "#define FM_GETFOCUS (WM_USER + 0x0200)\n" (#define) "#define" (identifier) "FM_GETFOCUS" (preproc_arg) "(WM_USER + 0x0200)" (preproc_def) "#define FM_GETSELCOUNT (WM_USER + 0x0202)\n" (#define) "#define" (identifier) "FM_GETSELCOUNT" (preproc_arg) "(WM_USER + 0x0202)" (preproc_def) "#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n" (#define) "#define" (identifier) "FM_GETSELCOUNTLFN" (preproc_arg) "(WM_USER + 0x0203)" (preproc_def) "#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n" (#define) "#define" (identifier) "FM_REFRESH_WINDOWS" (preproc_arg) "(WM_USER + 0x0206)" (preproc_def) "#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n" (#define) "#define" (identifier) "FM_RELOAD_EXTENSIONS" (preproc_arg) "(WM_USER + 0x0207)" (preproc_def) "#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n" (#define) "#define" (identifier) "FM_GETDRIVEINFOA" (preproc_arg) "(WM_USER + 0x0201)" (preproc_def) "#define FM_GETFILESELA (WM_USER + 0x0204)\n" (#define) "#define" (identifier) "FM_GETFILESELA" (preproc_arg) "(WM_USER + 0x0204)" (preproc_def) "#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n" (#define) "#define" (identifier) "FM_GETFILESELLFNA" (preproc_arg) "(WM_USER + 0x0205)" (preproc_def) "#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n" (#define) "#define" (identifier) "FM_GETDRIVEINFOW" (preproc_arg) "(WM_USER + 0x0211)" (preproc_def) "#define FM_GETFILESELW (WM_USER + 0x0214)\n" (#define) "#define" (identifier) "FM_GETFILESELW" (preproc_arg) "(WM_USER + 0x0214)" (preproc_def) "#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n" (#define) "#define" (identifier) "FM_GETFILESELLFNW" (preproc_arg) "(WM_USER + 0x0215)" (preproc_ifdef) "#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (preproc_def) "#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n" (#define) "#define" (identifier) "FM_GETDRIVEINFO" (preproc_arg) "FM_GETDRIVEINFOW" (preproc_def) "#define FM_GETFILESEL FM_GETFILESELW\n" (#define) "#define" (identifier) "FM_GETFILESEL" (preproc_arg) "FM_GETFILESELW" (preproc_def) "#define FM_GETFILESELLFN FM_GETFILESELLFNW\n" (#define) "#define" (identifier) "FM_GETFILESELLFN" (preproc_arg) "FM_GETFILESELLFNW" (preproc_else) "#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n" (#else) "#else" (preproc_def) "#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n" (#define) "#define" (identifier) "FM_GETDRIVEINFO" (preproc_arg) "FM_GETDRIVEINFOA" (preproc_def) "#define FM_GETFILESEL FM_GETFILESELA\n" (#define) "#define" (identifier) "FM_GETFILESEL" (preproc_arg) "FM_GETFILESELA" (preproc_def) "#define FM_GETFILESELLFN FM_GETFILESELLFNA\n" (#define) "#define" (identifier) "FM_GETFILESELLFN" (preproc_arg) "FM_GETFILESELLFNA" (#endif) "#endif" (type_definition) "typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;" (typedef) "typedef" (struct_specifier) "struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n }" (struct) "struct" (type_identifier) "_FMS_GETFILESELA" (field_declaration_list) "{\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n }" ({) "{" (field_declaration) "FILETIME ftTime;" (type_identifier) "FILETIME" (field_identifier) "ftTime" (;) ";" (field_declaration) "DWORD dwSize;" (type_identifier) "DWORD" (field_identifier) "dwSize" (;) ";" (field_declaration) "BYTE bAttr;" (type_identifier) "BYTE" (field_identifier) "bAttr" (;) ";" (field_declaration) "CHAR szName[260];" (type_identifier) "CHAR" (array_declarator) "szName[260]" (field_identifier) "szName" ([) "[" (number_literal) "260" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_GETFILESELA" (,) "," (pointer_declarator) "*LPFMS_GETFILESELA" (*) "*" (type_identifier) "LPFMS_GETFILESELA" (;) ";" (type_definition) "typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;" (typedef) "typedef" (struct_specifier) "struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n }" (struct) "struct" (type_identifier) "_FMS_GETFILESELW" (field_declaration_list) "{\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n }" ({) "{" (field_declaration) "FILETIME ftTime;" (type_identifier) "FILETIME" (field_identifier) "ftTime" (;) ";" (field_declaration) "DWORD dwSize;" (type_identifier) "DWORD" (field_identifier) "dwSize" (;) ";" (field_declaration) "BYTE bAttr;" (type_identifier) "BYTE" (field_identifier) "bAttr" (;) ";" (field_declaration) "WCHAR szName[260];" (type_identifier) "WCHAR" (array_declarator) "szName[260]" (field_identifier) "szName" ([) "[" (number_literal) "260" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_GETFILESELW" (,) "," (pointer_declarator) "*LPFMS_GETFILESELW" (*) "*" (type_identifier) "LPFMS_GETFILESELW" (;) ";" (preproc_ifdef) "#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (preproc_def) "#define FMS_GETFILESEL FMS_GETFILESELW\n" (#define) "#define" (identifier) "FMS_GETFILESEL" (preproc_arg) "FMS_GETFILESELW" (preproc_def) "#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n" (#define) "#define" (identifier) "LPFMS_GETFILESEL" (preproc_arg) "LPFMS_GETFILESELW" (preproc_else) "#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n" (#else) "#else" (preproc_def) "#define FMS_GETFILESEL FMS_GETFILESELA\n" (#define) "#define" (identifier) "FMS_GETFILESEL" (preproc_arg) "FMS_GETFILESELA" (preproc_def) "#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n" (#define) "#define" (identifier) "LPFMS_GETFILESEL" (preproc_arg) "LPFMS_GETFILESELA" (#endif) "#endif" (type_definition) "typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;" (typedef) "typedef" (struct_specifier) "struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n }" (struct) "struct" (type_identifier) "_FMS_GETDRIVEINFOA" (field_declaration_list) "{\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n }" ({) "{" (field_declaration) "DWORD dwTotalSpace;" (type_identifier) "DWORD" (field_identifier) "dwTotalSpace" (;) ";" (field_declaration) "DWORD dwFreeSpace;" (type_identifier) "DWORD" (field_identifier) "dwFreeSpace" (;) ";" (field_declaration) "CHAR szPath[260];" (type_identifier) "CHAR" (array_declarator) "szPath[260]" (field_identifier) "szPath" ([) "[" (number_literal) "260" (]) "]" (;) ";" (field_declaration) "CHAR szVolume[14];" (type_identifier) "CHAR" (array_declarator) "szVolume[14]" (field_identifier) "szVolume" ([) "[" (number_literal) "14" (]) "]" (;) ";" (field_declaration) "CHAR szShare[128];" (type_identifier) "CHAR" (array_declarator) "szShare[128]" (field_identifier) "szShare" ([) "[" (number_literal) "128" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_GETDRIVEINFOA" (,) "," (pointer_declarator) "*LPFMS_GETDRIVEINFOA" (*) "*" (type_identifier) "LPFMS_GETDRIVEINFOA" (;) ";" (type_definition) "typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;" (typedef) "typedef" (struct_specifier) "struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n }" (struct) "struct" (type_identifier) "_FMS_GETDRIVEINFOW" (field_declaration_list) "{\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n }" ({) "{" (field_declaration) "DWORD dwTotalSpace;" (type_identifier) "DWORD" (field_identifier) "dwTotalSpace" (;) ";" (field_declaration) "DWORD dwFreeSpace;" (type_identifier) "DWORD" (field_identifier) "dwFreeSpace" (;) ";" (field_declaration) "WCHAR szPath[260];" (type_identifier) "WCHAR" (array_declarator) "szPath[260]" (field_identifier) "szPath" ([) "[" (number_literal) "260" (]) "]" (;) ";" (field_declaration) "WCHAR szVolume[14];" (type_identifier) "WCHAR" (array_declarator) "szVolume[14]" (field_identifier) "szVolume" ([) "[" (number_literal) "14" (]) "]" (;) ";" (field_declaration) "WCHAR szShare[128];" (type_identifier) "WCHAR" (array_declarator) "szShare[128]" (field_identifier) "szShare" ([) "[" (number_literal) "128" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_GETDRIVEINFOW" (,) "," (pointer_declarator) "*LPFMS_GETDRIVEINFOW" (*) "*" (type_identifier) "LPFMS_GETDRIVEINFOW" (;) ";" (preproc_ifdef) "#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (preproc_def) "#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n" (#define) "#define" (identifier) "FMS_GETDRIVEINFO" (preproc_arg) "FMS_GETDRIVEINFOW" (preproc_def) "#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n" (#define) "#define" (identifier) "LPFMS_GETDRIVEINFO" (preproc_arg) "LPFMS_GETDRIVEINFOW" (preproc_else) "#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n" (#else) "#else" (preproc_def) "#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n" (#define) "#define" (identifier) "FMS_GETDRIVEINFO" (preproc_arg) "FMS_GETDRIVEINFOA" (preproc_def) "#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n" (#define) "#define" (identifier) "LPFMS_GETDRIVEINFO" (preproc_arg) "LPFMS_GETDRIVEINFOA" (#endif) "#endif" (type_definition) "typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;" (typedef) "typedef" (struct_specifier) "struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }" (struct) "struct" (type_identifier) "_FMS_LOADA" (field_declaration_list) "{\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }" ({) "{" (field_declaration) "DWORD dwSize;" (type_identifier) "DWORD" (field_identifier) "dwSize" (;) ";" (field_declaration) "CHAR szMenuName[MENU_TEXT_LEN];" (type_identifier) "CHAR" (array_declarator) "szMenuName[MENU_TEXT_LEN]" (field_identifier) "szMenuName" ([) "[" (identifier) "MENU_TEXT_LEN" (]) "]" (;) ";" (field_declaration) "HMENU hMenu;" (type_identifier) "HMENU" (field_identifier) "hMenu" (;) ";" (field_declaration) "UINT wMenuDelta;" (type_identifier) "UINT" (field_identifier) "wMenuDelta" (;) ";" (}) "}" (type_identifier) "FMS_LOADA" (,) "," (pointer_declarator) "*LPFMS_LOADA" (*) "*" (type_identifier) "LPFMS_LOADA" (;) ";" (type_definition) "typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;" (typedef) "typedef" (struct_specifier) "struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }" (struct) "struct" (type_identifier) "_FMS_LOADW" (field_declaration_list) "{\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }" ({) "{" (field_declaration) "DWORD dwSize;" (type_identifier) "DWORD" (field_identifier) "dwSize" (;) ";" (field_declaration) "WCHAR szMenuName[MENU_TEXT_LEN];" (type_identifier) "WCHAR" (array_declarator) "szMenuName[MENU_TEXT_LEN]" (field_identifier) "szMenuName" ([) "[" (identifier) "MENU_TEXT_LEN" (]) "]" (;) ";" (field_declaration) "HMENU hMenu;" (type_identifier) "HMENU" (field_identifier) "hMenu" (;) ";" (field_declaration) "UINT wMenuDelta;" (type_identifier) "UINT" (field_identifier) "wMenuDelta" (;) ";" (}) "}" (type_identifier) "FMS_LOADW" (,) "," (pointer_declarator) "*LPFMS_LOADW" (*) "*" (type_identifier) "LPFMS_LOADW" (;) ";" (preproc_ifdef) "#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (preproc_def) "#define FMS_LOAD FMS_LOADW\n" (#define) "#define" (identifier) "FMS_LOAD" (preproc_arg) "FMS_LOADW" (preproc_def) "#define LPFMS_LOAD LPFMS_LOADW\n" (#define) "#define" (identifier) "LPFMS_LOAD" (preproc_arg) "LPFMS_LOADW" (preproc_else) "#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n" (#else) "#else" (preproc_def) "#define FMS_LOAD FMS_LOADA\n" (#define) "#define" (identifier) "FMS_LOAD" (preproc_arg) "FMS_LOADA" (preproc_def) "#define LPFMS_LOAD LPFMS_LOADA\n" (#define) "#define" (identifier) "LPFMS_LOAD" (preproc_arg) "LPFMS_LOADA" (#endif) "#endif" (type_definition) "typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;" (typedef) "typedef" (struct_specifier) "struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n }" (struct) "struct" (type_identifier) "tagEXT_BUTTON" (field_declaration_list) "{\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n }" ({) "{" (field_declaration) "WORD idCommand;" (type_identifier) "WORD" (field_identifier) "idCommand" (;) ";" (field_declaration) "WORD idsHelp;" (type_identifier) "WORD" (field_identifier) "idsHelp" (;) ";" (field_declaration) "WORD fsStyle;" (type_identifier) "WORD" (field_identifier) "fsStyle" (;) ";" (}) "}" (type_identifier) "EXT_BUTTON" (,) "," (pointer_declarator) "*LPEXT_BUTTON" (*) "*" (type_identifier) "LPEXT_BUTTON" (;) ";" (type_definition) "typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;" (typedef) "typedef" (struct_specifier) "struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n }" (struct) "struct" (type_identifier) "tagFMS_TOOLBARLOAD" (field_declaration_list) "{\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n }" ({) "{" (field_declaration) "DWORD dwSize;" (type_identifier) "DWORD" (field_identifier) "dwSize" (;) ";" (field_declaration) "LPEXT_BUTTON lpButtons;" (type_identifier) "LPEXT_BUTTON" (field_identifier) "lpButtons" (;) ";" (field_declaration) "WORD cButtons;" (type_identifier) "WORD" (field_identifier) "cButtons" (;) ";" (field_declaration) "WORD cBitmaps;" (type_identifier) "WORD" (field_identifier) "cBitmaps" (;) ";" (field_declaration) "WORD idBitmap;" (type_identifier) "WORD" (field_identifier) "idBitmap" (;) ";" (field_declaration) "HBITMAP hBitmap;" (type_identifier) "HBITMAP" (field_identifier) "hBitmap" (;) ";" (}) "}" (type_identifier) "FMS_TOOLBARLOAD" (,) "," (pointer_declarator) "*LPFMS_TOOLBARLOAD" (*) "*" (type_identifier) "LPFMS_TOOLBARLOAD" (;) ";" (type_definition) "typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;" (typedef) "typedef" (struct_specifier) "struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n }" (struct) "struct" (type_identifier) "tagFMS_HELPSTRINGA" (field_declaration_list) "{\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n }" ({) "{" (field_declaration) "INT idCommand;" (type_identifier) "INT" (field_identifier) "idCommand" (;) ";" (field_declaration) "HMENU hMenu;" (type_identifier) "HMENU" (field_identifier) "hMenu" (;) ";" (field_declaration) "CHAR szHelp[128];" (type_identifier) "CHAR" (array_declarator) "szHelp[128]" (field_identifier) "szHelp" ([) "[" (number_literal) "128" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_HELPSTRINGA" (,) "," (pointer_declarator) "*LPFMS_HELPSTRINGA" (*) "*" (type_identifier) "LPFMS_HELPSTRINGA" (;) ";" (type_definition) "typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;" (typedef) "typedef" (struct_specifier) "struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n }" (struct) "struct" (type_identifier) "tagFMS_HELPSTRINGW" (field_declaration_list) "{\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n }" ({) "{" (field_declaration) "INT idCommand;" (type_identifier) "INT" (field_identifier) "idCommand" (;) ";" (field_declaration) "HMENU hMenu;" (type_identifier) "HMENU" (field_identifier) "hMenu" (;) ";" (field_declaration) "WCHAR szHelp[128];" (type_identifier) "WCHAR" (array_declarator) "szHelp[128]" (field_identifier) "szHelp" ([) "[" (number_literal) "128" (]) "]" (;) ";" (}) "}" (type_identifier) "FMS_HELPSTRINGW" (,) "," (pointer_declarator) "*LPFMS_HELPSTRINGW" (*) "*" (type_identifier) "LPFMS_HELPSTRINGW" (;) ";" (preproc_ifdef) "#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (preproc_def) "#define FMS_HELPSTRING FMS_HELPSTRINGW\n" (#define) "#define" (identifier) "FMS_HELPSTRING" (preproc_arg) "FMS_HELPSTRINGW" (preproc_def) "#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n" (#define) "#define" (identifier) "LPFMS_HELPSTRING" (preproc_arg) "LPFMS_HELPSTRINGW" (preproc_else) "#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n" (#else) "#else" (preproc_def) "#define FMS_HELPSTRING FMS_HELPSTRINGA\n" (#define) "#define" (identifier) "FMS_HELPSTRING" (preproc_arg) "FMS_HELPSTRINGA" (preproc_def) "#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n" (#define) "#define" (identifier) "LPFMS_HELPSTRING" (preproc_arg) "LPFMS_HELPSTRINGA" (#endif) "#endif" (type_definition) "typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);" (typedef) "typedef" (macro_type_specifier) "DWORD (WINAPI *FM_EXT_PROC)" (identifier) "DWORD" (() "(" (ERROR) "WINAPI *" (type_descriptor) "WINAPI *" (type_identifier) "WINAPI" (abstract_pointer_declarator) "*" (*) "*" (type_descriptor) "FM_EXT_PROC" (type_identifier) "FM_EXT_PROC" ()) ")" (parenthesized_declarator) "(HWND" (() "(" (type_identifier) "HWND" ()) "" (,) "," (type_identifier) "WORD" (,) "," (type_identifier) "LONG" (ERROR) ")" ()) ")" (;) ";" (type_definition) "typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);" (typedef) "typedef" (macro_type_specifier) "DWORD (WINAPI *FM_UNDELETE_PROC)" (identifier) "DWORD" (() "(" (ERROR) "WINAPI *" (type_descriptor) "WINAPI *" (type_identifier) "WINAPI" (abstract_pointer_declarator) "*" (*) "*" (type_descriptor) "FM_UNDELETE_PROC" (type_identifier) "FM_UNDELETE_PROC" ()) ")" (parenthesized_declarator) "(HWND,LPTSTR)" (() "(" (ERROR) "HWND," (type_identifier) "HWND" (,) "," (type_identifier) "LPTSTR" ()) ")" (;) ";" (preproc_ifdef) "#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif" (#ifdef) "#ifdef" (identifier) "UNICODE" (declaration) "LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);" (type_identifier) "LONG" (ERROR) "WINAPI" (identifier) "WINAPI" (function_declarator) "FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam)" (identifier) "FMExtensionProcW" (parameter_list) "(HWND hwnd,WORD wEvent,LONG lParam)" (() "(" (parameter_declaration) "HWND hwnd" (type_identifier) "HWND" (identifier) "hwnd" (,) "," (parameter_declaration) "WORD wEvent" (type_identifier) "WORD" (identifier) "wEvent" (,) "," (parameter_declaration) "LONG lParam" (type_identifier) "LONG" (identifier) "lParam" ()) ")" (;) ";" (preproc_else) "#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);" (#else) "#else" (declaration) "LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);" (type_identifier) "LONG" (ERROR) "WINAPI" (identifier) "WINAPI" (function_declarator) "FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam)" (identifier) "FMExtensionProc" (parameter_list) "(HWND hwnd,WORD wEvent,LONG lParam)" (() "(" (parameter_declaration) "HWND hwnd" (type_identifier) "HWND" (identifier) "hwnd" (,) "," (parameter_declaration) "WORD wEvent" (type_identifier) "WORD" (identifier) "wEvent" (,) "," (parameter_declaration) "LONG lParam" (type_identifier) "LONG" (identifier) "lParam" ()) ")" (;) ";" (#endif) "#endif" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif"
695
6
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 27.21, "nodes": 547, "errors": 0, "source_hash": "ffd24a5092d1d5facbd5764e2f0b74bad979f72b4dcdd7a29af860119309bd8e", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _INC_WFEXT\n#define _INC_WFEXT\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 6, 546], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 170, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "_INC_WFEXT", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define _INC_WFEXT\n", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "_INC_WFEXT", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 18}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 545], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 169, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 168, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 14, "type": "preproc_def", "text": "#define MENU_TEXT_LEN 40\n", "parent": 9, "children": [15, 16, 17], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 16, "type": "identifier", "text": "MENU_TEXT_LEN", "parent": 14, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 21}}, {"id": 17, "type": "preproc_arg", "text": "40", "parent": 14, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 24}}, {"id": 18, "type": "preproc_def", "text": "#define FMMENU_FIRST 1\n", "parent": 9, "children": [19, 20, 21], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 20, "type": "identifier", "text": "FMMENU_FIRST", "parent": 18, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 20}}, {"id": 21, "type": "preproc_arg", "text": "1", "parent": 18, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 22, "type": "preproc_def", "text": "#define FMMENU_LAST 99\n", "parent": 9, "children": [23, 24, 25], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 24, "type": "identifier", "text": "FMMENU_LAST", "parent": 22, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 19}}, {"id": 25, "type": "preproc_arg", "text": "99", "parent": 22, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 22}}, {"id": 26, "type": "preproc_def", "text": "#define FMEVENT_LOAD 100\n", "parent": 9, "children": [27, 28, 29], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 28, "type": "identifier", "text": "FMEVENT_LOAD", "parent": 26, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 29, "type": "preproc_arg", "text": "100", "parent": 26, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 24}}, {"id": 30, "type": "preproc_def", "text": "#define FMEVENT_UNLOAD 101\n", "parent": 9, "children": [31, 32, 33], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 32, "type": "identifier", "text": "FMEVENT_UNLOAD", "parent": 30, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 22}}, {"id": 33, "type": "preproc_arg", "text": "101", "parent": 30, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 26}}, {"id": 34, "type": "preproc_def", "text": "#define FMEVENT_INITMENU 102\n", "parent": 9, "children": [35, 36, 37], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 36, "type": "identifier", "text": "FMEVENT_INITMENU", "parent": 34, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 24}}, {"id": 37, "type": "preproc_arg", "text": "102", "parent": 34, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 28}}, {"id": 38, "type": "preproc_def", "text": "#define FMEVENT_USER_REFRESH 103\n", "parent": 9, "children": [39, 40, 41], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 40, "type": "identifier", "text": "FMEVENT_USER_REFRESH", "parent": 38, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 41, "type": "preproc_arg", "text": "103", "parent": 38, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 32}}, {"id": 42, "type": "preproc_def", "text": "#define FMEVENT_SELCHANGE 104\n", "parent": 9, "children": [43, 44, 45], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 44, "type": "identifier", "text": "FMEVENT_SELCHANGE", "parent": 42, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 25}}, {"id": 45, "type": "preproc_arg", "text": "104", "parent": 42, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 29}}, {"id": 46, "type": "preproc_def", "text": "#define FMEVENT_TOOLBARLOAD 105\n", "parent": 9, "children": [47, 48, 49], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 48, "type": "identifier", "text": "FMEVENT_TOOLBARLOAD", "parent": 46, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 27}}, {"id": 49, "type": "preproc_arg", "text": "105", "parent": 46, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 50, "type": "preproc_def", "text": "#define FMEVENT_HELPSTRING 106\n", "parent": 9, "children": [51, 52, 53], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 52, "type": "identifier", "text": "FMEVENT_HELPSTRING", "parent": 50, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 26}}, {"id": 53, "type": "preproc_arg", "text": "106", "parent": 50, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 30}}, {"id": 54, "type": "preproc_def", "text": "#define FMEVENT_HELPMENUITEM 107\n", "parent": 9, "children": [55, 56, 57], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 56, "type": "identifier", "text": "FMEVENT_HELPMENUITEM", "parent": 54, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 28}}, {"id": 57, "type": "preproc_arg", "text": "107", "parent": 54, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 32}}, {"id": 58, "type": "preproc_def", "text": "#define FMFOCUS_DIR 1\n", "parent": 9, "children": [59, 60, 61], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 60, "type": "identifier", "text": "FMFOCUS_DIR", "parent": 58, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 61, "type": "preproc_arg", "text": "1", "parent": 58, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 62, "type": "preproc_def", "text": "#define FMFOCUS_TREE 2\n", "parent": 9, "children": [63, 64, 65], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 64, "type": "identifier", "text": "FMFOCUS_TREE", "parent": 62, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 20}}, {"id": 65, "type": "preproc_arg", "text": "2", "parent": 62, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 66, "type": "preproc_def", "text": "#define FMFOCUS_DRIVES 3\n", "parent": 9, "children": [67, 68, 69], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 68, "type": "identifier", "text": "FMFOCUS_DRIVES", "parent": 66, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 22}}, {"id": 69, "type": "preproc_arg", "text": "3", "parent": 66, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 70, "type": "preproc_def", "text": "#define FMFOCUS_SEARCH 4\n", "parent": 9, "children": [71, 72, 73], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 72, "type": "identifier", "text": "FMFOCUS_SEARCH", "parent": 70, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 22}}, {"id": 73, "type": "preproc_arg", "text": "4", "parent": 70, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 24}}, {"id": 74, "type": "preproc_def", "text": "#define FM_GETFOCUS (WM_USER + 0x0200)\n", "parent": 9, "children": [75, 76, 77], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 76, "type": "identifier", "text": "FM_GETFOCUS", "parent": 74, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 19}}, {"id": 77, "type": "preproc_arg", "text": "(WM_USER + 0x0200)", "parent": 74, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 38}}, {"id": 78, "type": "preproc_def", "text": "#define FM_GETSELCOUNT (WM_USER + 0x0202)\n", "parent": 9, "children": [79, 80, 81], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 80, "type": "identifier", "text": "FM_GETSELCOUNT", "parent": 78, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 22}}, {"id": 81, "type": "preproc_arg", "text": "(WM_USER + 0x0202)", "parent": 78, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 41}}, {"id": 82, "type": "preproc_def", "text": "#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n", "parent": 9, "children": [83, 84, 85], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 84, "type": "identifier", "text": "FM_GETSELCOUNTLFN", "parent": 82, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 25}}, {"id": 85, "type": "preproc_arg", "text": "(WM_USER + 0x0203)", "parent": 82, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 44}}, {"id": 86, "type": "preproc_def", "text": "#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n", "parent": 9, "children": [87, 88, 89], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 88, "type": "identifier", "text": "FM_REFRESH_WINDOWS", "parent": 86, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 26}}, {"id": 89, "type": "preproc_arg", "text": "(WM_USER + 0x0206)", "parent": 86, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 45}}, {"id": 90, "type": "preproc_def", "text": "#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n", "parent": 9, "children": [91, 92, 93], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 91, "type": "#define", "text": "#define", "parent": 90, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 92, "type": "identifier", "text": "FM_RELOAD_EXTENSIONS", "parent": 90, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 28}}, {"id": 93, "type": "preproc_arg", "text": "(WM_USER + 0x0207)", "parent": 90, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 47}}, {"id": 94, "type": "preproc_def", "text": "#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n", "parent": 9, "children": [95, 96, 97], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 96, "type": "identifier", "text": "FM_GETDRIVEINFOA", "parent": 94, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 24}}, {"id": 97, "type": "preproc_arg", "text": "(WM_USER + 0x0201)", "parent": 94, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 43}}, {"id": 98, "type": "preproc_def", "text": "#define FM_GETFILESELA (WM_USER + 0x0204)\n", "parent": 9, "children": [99, 100, 101], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 99, "type": "#define", "text": "#define", "parent": 98, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 100, "type": "identifier", "text": "FM_GETFILESELA", "parent": 98, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 22}}, {"id": 101, "type": "preproc_arg", "text": "(WM_USER + 0x0204)", "parent": 98, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 41}}, {"id": 102, "type": "preproc_def", "text": "#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n", "parent": 9, "children": [103, 104, 105], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 104, "type": "identifier", "text": "FM_GETFILESELLFNA", "parent": 102, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 25}}, {"id": 105, "type": "preproc_arg", "text": "(WM_USER + 0x0205)", "parent": 102, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 44}}, {"id": 106, "type": "preproc_def", "text": "#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n", "parent": 9, "children": [107, 108, 109], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 107, "type": "#define", "text": "#define", "parent": 106, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 108, "type": "identifier", "text": "FM_GETDRIVEINFOW", "parent": 106, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 24}}, {"id": 109, "type": "preproc_arg", "text": "(WM_USER + 0x0211)", "parent": 106, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 43}}, {"id": 110, "type": "preproc_def", "text": "#define FM_GETFILESELW (WM_USER + 0x0214)\n", "parent": 9, "children": [111, 112, 113], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 111, "type": "#define", "text": "#define", "parent": 110, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 112, "type": "identifier", "text": "FM_GETFILESELW", "parent": 110, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 22}}, {"id": 113, "type": "preproc_arg", "text": "(WM_USER + 0x0214)", "parent": 110, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 41}}, {"id": 114, "type": "preproc_def", "text": "#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n", "parent": 9, "children": [115, 116, 117], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 115, "type": "#define", "text": "#define", "parent": 114, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 116, "type": "identifier", "text": "FM_GETFILESELLFNW", "parent": 114, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 25}}, {"id": 117, "type": "preproc_arg", "text": "(WM_USER + 0x0215)", "parent": 114, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 44}}, {"id": 118, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif", "parent": 9, "children": [119, 120, 121, 125, 129, 133, 147], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 119, "type": "#ifdef", "text": "#ifdef", "parent": 118, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 120, "type": "identifier", "text": "UNICODE", "parent": 118, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 14}}, {"id": 121, "type": "preproc_def", "text": "#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n", "parent": 118, "children": [122, 123, 124], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 122, "type": "#define", "text": "#define", "parent": 121, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 123, "type": "identifier", "text": "FM_GETDRIVEINFO", "parent": 121, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 23}}, {"id": 124, "type": "preproc_arg", "text": "FM_GETDRIVEINFOW", "parent": 121, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 40}}, {"id": 125, "type": "preproc_def", "text": "#define FM_GETFILESEL FM_GETFILESELW\n", "parent": 118, "children": [126, 127, 128], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 126, "type": "#define", "text": "#define", "parent": 125, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 127, "type": "identifier", "text": "FM_GETFILESEL", "parent": 125, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 21}}, {"id": 128, "type": "preproc_arg", "text": "FM_GETFILESELW", "parent": 125, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 36}}, {"id": 129, "type": "preproc_def", "text": "#define FM_GETFILESELLFN FM_GETFILESELLFNW\n", "parent": 118, "children": [130, 131, 132], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 130, "type": "#define", "text": "#define", "parent": 129, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 131, "type": "identifier", "text": "FM_GETFILESELLFN", "parent": 129, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 24}}, {"id": 132, "type": "preproc_arg", "text": "FM_GETFILESELLFNW", "parent": 129, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 42}}, {"id": 133, "type": "preproc_else", "text": "#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n", "parent": 118, "children": [134, 135, 139, 143], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 134, "type": "#else", "text": "#else", "parent": 133, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 5}}, {"id": 135, "type": "preproc_def", "text": "#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n", "parent": 133, "children": [136, 137, 138], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 136, "type": "#define", "text": "#define", "parent": 135, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 137, "type": "identifier", "text": "FM_GETDRIVEINFO", "parent": 135, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 23}}, {"id": 138, "type": "preproc_arg", "text": "FM_GETDRIVEINFOA", "parent": 135, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 40}}, {"id": 139, "type": "preproc_def", "text": "#define FM_GETFILESEL FM_GETFILESELA\n", "parent": 133, "children": [140, 141, 142], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 140, "type": "#define", "text": "#define", "parent": 139, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 141, "type": "identifier", "text": "FM_GETFILESEL", "parent": 139, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 21}}, {"id": 142, "type": "preproc_arg", "text": "FM_GETFILESELA", "parent": 139, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 36}}, {"id": 143, "type": "preproc_def", "text": "#define FM_GETFILESELLFN FM_GETFILESELLFNA\n", "parent": 133, "children": [144, 145, 146], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 144, "type": "#define", "text": "#define", "parent": 143, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 145, "type": "identifier", "text": "FM_GETFILESELLFN", "parent": 143, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 24}}, {"id": 146, "type": "preproc_arg", "text": "FM_GETFILESELLFNA", "parent": 143, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 42}}, {"id": 147, "type": "#endif", "text": "#endif", "parent": 118, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 148, "type": "type_definition", "text": "typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;", "parent": 9, "children": [149, 150, 167, 168], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 60, "column": 39}}, {"id": 149, "type": "typedef", "text": "typedef", "parent": 148, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 9}}, {"id": 150, "type": "struct_specifier", "text": "struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n }", "parent": 148, "children": [151, 152], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 60, "column": 3}}, {"id": 151, "type": "struct", "text": "struct", "parent": 150, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 16}}, {"id": 152, "type": "type_identifier", "text": "_FMS_GETFILESELA", "parent": 150, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 33}}, {"id": 153, "type": "field_declaration", "text": "FILETIME ftTime;", "parent": 150, "children": [154, 155], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 20}}, {"id": 154, "type": "type_identifier", "text": "FILETIME", "parent": 153, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 12}}, {"id": 155, "type": "field_identifier", "text": "ftTime", "parent": 153, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 19}}, {"id": 156, "type": "field_declaration", "text": "DWORD dwSize;", "parent": 150, "children": [157, 158], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 157, "type": "type_identifier", "text": "DWORD", "parent": 156, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 9}}, {"id": 158, "type": "field_identifier", "text": "dwSize", "parent": 156, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 16}}, {"id": 159, "type": "field_declaration", "text": "BYTE bAttr;", "parent": 150, "children": [160, 161], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 15}}, {"id": 160, "type": "type_identifier", "text": "BYTE", "parent": 159, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 161, "type": "field_identifier", "text": "bAttr", "parent": 159, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 14}}, {"id": 162, "type": "field_declaration", "text": "CHAR szName[260];", "parent": 150, "children": [163, 164], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 21}}, {"id": 163, "type": "type_identifier", "text": "CHAR", "parent": 162, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 164, "type": "array_declarator", "text": "szName[260]", "parent": 162, "children": [165, 166], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 20}}, {"id": 165, "type": "field_identifier", "text": "szName", "parent": 164, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 15}}, {"id": 166, "type": "number_literal", "text": "260", "parent": 164, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 19}}, {"id": 167, "type": "type_identifier", "text": "FMS_GETFILESELA", "parent": 148, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 19}}, {"id": 168, "type": "pointer_declarator", "text": "*LPFMS_GETFILESELA", "parent": 148, "children": [169, 170], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 38}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 170, "type": "type_identifier", "text": "LPFMS_GETFILESELA", "parent": 168, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 38}}, {"id": 171, "type": "type_definition", "text": "typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;", "parent": 9, "children": [172, 173, 190, 191], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 67, "column": 39}}, {"id": 172, "type": "typedef", "text": "typedef", "parent": 171, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 9}}, {"id": 173, "type": "struct_specifier", "text": "struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n }", "parent": 171, "children": [174, 175], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 67, "column": 3}}, {"id": 174, "type": "struct", "text": "struct", "parent": 173, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 16}}, {"id": 175, "type": "type_identifier", "text": "_FMS_GETFILESELW", "parent": 173, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 33}}, {"id": 176, "type": "field_declaration", "text": "FILETIME ftTime;", "parent": 173, "children": [177, 178], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 20}}, {"id": 177, "type": "type_identifier", "text": "FILETIME", "parent": 176, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 12}}, {"id": 178, "type": "field_identifier", "text": "ftTime", "parent": 176, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 19}}, {"id": 179, "type": "field_declaration", "text": "DWORD dwSize;", "parent": 173, "children": [180, 181], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 17}}, {"id": 180, "type": "type_identifier", "text": "DWORD", "parent": 179, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 9}}, {"id": 181, "type": "field_identifier", "text": "dwSize", "parent": 179, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 16}}, {"id": 182, "type": "field_declaration", "text": "BYTE bAttr;", "parent": 173, "children": [183, 184], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 15}}, {"id": 183, "type": "type_identifier", "text": "BYTE", "parent": 182, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 8}}, {"id": 184, "type": "field_identifier", "text": "bAttr", "parent": 182, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 14}}, {"id": 185, "type": "field_declaration", "text": "WCHAR szName[260];", "parent": 173, "children": [186, 187], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 22}}, {"id": 186, "type": "type_identifier", "text": "WCHAR", "parent": 185, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 9}}, {"id": 187, "type": "array_declarator", "text": "szName[260]", "parent": 185, "children": [188, 189], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 21}}, {"id": 188, "type": "field_identifier", "text": "szName", "parent": 187, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 16}}, {"id": 189, "type": "number_literal", "text": "260", "parent": 187, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 20}}, {"id": 190, "type": "type_identifier", "text": "FMS_GETFILESELW", "parent": 171, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 19}}, {"id": 191, "type": "pointer_declarator", "text": "*LPFMS_GETFILESELW", "parent": 171, "children": [192, 193], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 38}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 193, "type": "type_identifier", "text": "LPFMS_GETFILESELW", "parent": 191, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 38}}, {"id": 194, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif", "parent": 9, "children": [195, 196, 197, 201, 205, 215], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 195, "type": "#ifdef", "text": "#ifdef", "parent": 194, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 196, "type": "identifier", "text": "UNICODE", "parent": 194, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 14}}, {"id": 197, "type": "preproc_def", "text": "#define FMS_GETFILESEL FMS_GETFILESELW\n", "parent": 194, "children": [198, 199, 200], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 198, "type": "#define", "text": "#define", "parent": 197, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 199, "type": "identifier", "text": "FMS_GETFILESEL", "parent": 197, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 22}}, {"id": 200, "type": "preproc_arg", "text": "FMS_GETFILESELW", "parent": 197, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 38}}, {"id": 201, "type": "preproc_def", "text": "#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n", "parent": 194, "children": [202, 203, 204], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 0}}, {"id": 202, "type": "#define", "text": "#define", "parent": 201, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 203, "type": "identifier", "text": "LPFMS_GETFILESEL", "parent": 201, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 24}}, {"id": 204, "type": "preproc_arg", "text": "LPFMS_GETFILESELW", "parent": 201, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 42}}, {"id": 205, "type": "preproc_else", "text": "#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n", "parent": 194, "children": [206, 207, 211], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 206, "type": "#else", "text": "#else", "parent": 205, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 5}}, {"id": 207, "type": "preproc_def", "text": "#define FMS_GETFILESEL FMS_GETFILESELA\n", "parent": 205, "children": [208, 209, 210], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 208, "type": "#define", "text": "#define", "parent": 207, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 209, "type": "identifier", "text": "FMS_GETFILESEL", "parent": 207, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 22}}, {"id": 210, "type": "preproc_arg", "text": "FMS_GETFILESELA", "parent": 207, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 38}}, {"id": 211, "type": "preproc_def", "text": "#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n", "parent": 205, "children": [212, 213, 214], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 212, "type": "#define", "text": "#define", "parent": 211, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 213, "type": "identifier", "text": "LPFMS_GETFILESEL", "parent": 211, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 24}}, {"id": 214, "type": "preproc_arg", "text": "LPFMS_GETFILESELA", "parent": 211, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 42}}, {"id": 215, "type": "#endif", "text": "#endif", "parent": 194, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 216, "type": "type_definition", "text": "typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;", "parent": 9, "children": [217, 218, 242, 243], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 83, "column": 43}}, {"id": 217, "type": "typedef", "text": "typedef", "parent": 216, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 9}}, {"id": 218, "type": "struct_specifier", "text": "struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n }", "parent": 216, "children": [219, 220], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 83, "column": 3}}, {"id": 219, "type": "struct", "text": "struct", "parent": 218, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 16}}, {"id": 220, "type": "type_identifier", "text": "_FMS_GETDRIVEINFOA", "parent": 218, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 35}}, {"id": 221, "type": "field_declaration", "text": "DWORD dwTotalSpace;", "parent": 218, "children": [222, 223], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 23}}, {"id": 222, "type": "type_identifier", "text": "DWORD", "parent": 221, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 9}}, {"id": 223, "type": "field_identifier", "text": "dwTotalSpace", "parent": 221, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 22}}, {"id": 224, "type": "field_declaration", "text": "DWORD dwFreeSpace;", "parent": 218, "children": [225, 226], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 22}}, {"id": 225, "type": "type_identifier", "text": "DWORD", "parent": 224, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 226, "type": "field_identifier", "text": "dwFreeSpace", "parent": 224, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 21}}, {"id": 227, "type": "field_declaration", "text": "CHAR szPath[260];", "parent": 218, "children": [228, 229], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 21}}, {"id": 228, "type": "type_identifier", "text": "CHAR", "parent": 227, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 229, "type": "array_declarator", "text": "szPath[260]", "parent": 227, "children": [230, 231], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 20}}, {"id": 230, "type": "field_identifier", "text": "szPath", "parent": 229, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 231, "type": "number_literal", "text": "260", "parent": 229, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 19}}, {"id": 232, "type": "field_declaration", "text": "CHAR szVolume[14];", "parent": 218, "children": [233, 234], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 22}}, {"id": 233, "type": "type_identifier", "text": "CHAR", "parent": 232, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 234, "type": "array_declarator", "text": "szVolume[14]", "parent": 232, "children": [235, 236], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 21}}, {"id": 235, "type": "field_identifier", "text": "szVolume", "parent": 234, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 17}}, {"id": 236, "type": "number_literal", "text": "14", "parent": 234, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 20}}, {"id": 237, "type": "field_declaration", "text": "CHAR szShare[128];", "parent": 218, "children": [238, 239], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 22}}, {"id": 238, "type": "type_identifier", "text": "CHAR", "parent": 237, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 8}}, {"id": 239, "type": "array_declarator", "text": "szShare[128]", "parent": 237, "children": [240, 241], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 21}}, {"id": 240, "type": "field_identifier", "text": "szShare", "parent": 239, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 16}}, {"id": 241, "type": "number_literal", "text": "128", "parent": 239, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 20}}, {"id": 242, "type": "type_identifier", "text": "FMS_GETDRIVEINFOA", "parent": 216, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 21}}, {"id": 243, "type": "pointer_declarator", "text": "*LPFMS_GETDRIVEINFOA", "parent": 216, "children": [244, 245], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 42}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 23}}, {"id": 245, "type": "type_identifier", "text": "LPFMS_GETDRIVEINFOA", "parent": 243, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 42}}, {"id": 246, "type": "type_definition", "text": "typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;", "parent": 9, "children": [247, 248, 272, 273], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 91, "column": 43}}, {"id": 247, "type": "typedef", "text": "typedef", "parent": 246, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 9}}, {"id": 248, "type": "struct_specifier", "text": "struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n }", "parent": 246, "children": [249, 250], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 91, "column": 3}}, {"id": 249, "type": "struct", "text": "struct", "parent": 248, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 16}}, {"id": 250, "type": "type_identifier", "text": "_FMS_GETDRIVEINFOW", "parent": 248, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 35}}, {"id": 251, "type": "field_declaration", "text": "DWORD dwTotalSpace;", "parent": 248, "children": [252, 253], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 23}}, {"id": 252, "type": "type_identifier", "text": "DWORD", "parent": 251, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 9}}, {"id": 253, "type": "field_identifier", "text": "dwTotalSpace", "parent": 251, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 22}}, {"id": 254, "type": "field_declaration", "text": "DWORD dwFreeSpace;", "parent": 248, "children": [255, 256], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 22}}, {"id": 255, "type": "type_identifier", "text": "DWORD", "parent": 254, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 9}}, {"id": 256, "type": "field_identifier", "text": "dwFreeSpace", "parent": 254, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 21}}, {"id": 257, "type": "field_declaration", "text": "WCHAR szPath[260];", "parent": 248, "children": [258, 259], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 22}}, {"id": 258, "type": "type_identifier", "text": "WCHAR", "parent": 257, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 259, "type": "array_declarator", "text": "szPath[260]", "parent": 257, "children": [260, 261], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 21}}, {"id": 260, "type": "field_identifier", "text": "szPath", "parent": 259, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 16}}, {"id": 261, "type": "number_literal", "text": "260", "parent": 259, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 20}}, {"id": 262, "type": "field_declaration", "text": "WCHAR szVolume[14];", "parent": 248, "children": [263, 264], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 23}}, {"id": 263, "type": "type_identifier", "text": "WCHAR", "parent": 262, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 9}}, {"id": 264, "type": "array_declarator", "text": "szVolume[14]", "parent": 262, "children": [265, 266], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 22}}, {"id": 265, "type": "field_identifier", "text": "szVolume", "parent": 264, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 18}}, {"id": 266, "type": "number_literal", "text": "14", "parent": 264, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 21}}, {"id": 267, "type": "field_declaration", "text": "WCHAR szShare[128];", "parent": 248, "children": [268, 269], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 23}}, {"id": 268, "type": "type_identifier", "text": "WCHAR", "parent": 267, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 9}}, {"id": 269, "type": "array_declarator", "text": "szShare[128]", "parent": 267, "children": [270, 271], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 22}}, {"id": 270, "type": "field_identifier", "text": "szShare", "parent": 269, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 17}}, {"id": 271, "type": "number_literal", "text": "128", "parent": 269, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 21}}, {"id": 272, "type": "type_identifier", "text": "FMS_GETDRIVEINFOW", "parent": 246, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 21}}, {"id": 273, "type": "pointer_declarator", "text": "*LPFMS_GETDRIVEINFOW", "parent": 246, "children": [274, 275], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 42}}, {"id": 274, "type": "*", "text": "*", "parent": 273, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 23}}, {"id": 275, "type": "type_identifier", "text": "LPFMS_GETDRIVEINFOW", "parent": 273, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 42}}, {"id": 276, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif", "parent": 9, "children": [277, 278, 279, 283, 287, 297], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 277, "type": "#ifdef", "text": "#ifdef", "parent": 276, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 278, "type": "identifier", "text": "UNICODE", "parent": 276, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 14}}, {"id": 279, "type": "preproc_def", "text": "#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n", "parent": 276, "children": [280, 281, 282], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 280, "type": "#define", "text": "#define", "parent": 279, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 281, "type": "identifier", "text": "FMS_GETDRIVEINFO", "parent": 279, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 24}}, {"id": 282, "type": "preproc_arg", "text": "FMS_GETDRIVEINFOW", "parent": 279, "children": [], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 42}}, {"id": 283, "type": "preproc_def", "text": "#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n", "parent": 276, "children": [284, 285, 286], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 0}}, {"id": 284, "type": "#define", "text": "#define", "parent": 283, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 285, "type": "identifier", "text": "LPFMS_GETDRIVEINFO", "parent": 283, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 26}}, {"id": 286, "type": "preproc_arg", "text": "LPFMS_GETDRIVEINFOW", "parent": 283, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 46}}, {"id": 287, "type": "preproc_else", "text": "#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n", "parent": 276, "children": [288, 289, 293], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 288, "type": "#else", "text": "#else", "parent": 287, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 5}}, {"id": 289, "type": "preproc_def", "text": "#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n", "parent": 287, "children": [290, 291, 292], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 0}}, {"id": 290, "type": "#define", "text": "#define", "parent": 289, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 7}}, {"id": 291, "type": "identifier", "text": "FMS_GETDRIVEINFO", "parent": 289, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 24}}, {"id": 292, "type": "preproc_arg", "text": "FMS_GETDRIVEINFOA", "parent": 289, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 42}}, {"id": 293, "type": "preproc_def", "text": "#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n", "parent": 287, "children": [294, 295, 296], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 294, "type": "#define", "text": "#define", "parent": 293, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 295, "type": "identifier", "text": "LPFMS_GETDRIVEINFO", "parent": 293, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 26}}, {"id": 296, "type": "preproc_arg", "text": "LPFMS_GETDRIVEINFOA", "parent": 293, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 46}}, {"id": 297, "type": "#endif", "text": "#endif", "parent": 276, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 298, "type": "type_definition", "text": "typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;", "parent": 9, "children": [299, 300, 317, 318], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 106, "column": 27}}, {"id": 299, "type": "typedef", "text": "typedef", "parent": 298, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 9}}, {"id": 300, "type": "struct_specifier", "text": "struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }", "parent": 298, "children": [301, 302], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 106, "column": 3}}, {"id": 301, "type": "struct", "text": "struct", "parent": 300, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 16}}, {"id": 302, "type": "type_identifier", "text": "_FMS_LOADA", "parent": 300, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 27}}, {"id": 303, "type": "field_declaration", "text": "DWORD dwSize;", "parent": 300, "children": [304, 305], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 17}}, {"id": 304, "type": "type_identifier", "text": "DWORD", "parent": 303, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 9}}, {"id": 305, "type": "field_identifier", "text": "dwSize", "parent": 303, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 16}}, {"id": 306, "type": "field_declaration", "text": "CHAR szMenuName[MENU_TEXT_LEN];", "parent": 300, "children": [307, 308], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 35}}, {"id": 307, "type": "type_identifier", "text": "CHAR", "parent": 306, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 308, "type": "array_declarator", "text": "szMenuName[MENU_TEXT_LEN]", "parent": 306, "children": [309, 310], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 34}}, {"id": 309, "type": "field_identifier", "text": "szMenuName", "parent": 308, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 19}}, {"id": 310, "type": "identifier", "text": "MENU_TEXT_LEN", "parent": 308, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 33}}, {"id": 311, "type": "field_declaration", "text": "HMENU hMenu;", "parent": 300, "children": [312, 313], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 16}}, {"id": 312, "type": "type_identifier", "text": "HMENU", "parent": 311, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 9}}, {"id": 313, "type": "field_identifier", "text": "hMenu", "parent": 311, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 15}}, {"id": 314, "type": "field_declaration", "text": "UINT wMenuDelta;", "parent": 300, "children": [315, 316], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 20}}, {"id": 315, "type": "type_identifier", "text": "UINT", "parent": 314, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 8}}, {"id": 316, "type": "field_identifier", "text": "wMenuDelta", "parent": 314, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 19}}, {"id": 317, "type": "type_identifier", "text": "FMS_LOADA", "parent": 298, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 13}}, {"id": 318, "type": "pointer_declarator", "text": "*LPFMS_LOADA", "parent": 298, "children": [319, 320], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 26}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 15}}, {"id": 320, "type": "type_identifier", "text": "LPFMS_LOADA", "parent": 318, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 26}}, {"id": 321, "type": "type_definition", "text": "typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;", "parent": 9, "children": [322, 323, 340, 341], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 113, "column": 27}}, {"id": 322, "type": "typedef", "text": "typedef", "parent": 321, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 9}}, {"id": 323, "type": "struct_specifier", "text": "struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n }", "parent": 321, "children": [324, 325], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 113, "column": 3}}, {"id": 324, "type": "struct", "text": "struct", "parent": 323, "children": [], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 16}}, {"id": 325, "type": "type_identifier", "text": "_FMS_LOADW", "parent": 323, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 27}}, {"id": 326, "type": "field_declaration", "text": "DWORD dwSize;", "parent": 323, "children": [327, 328], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 17}}, {"id": 327, "type": "type_identifier", "text": "DWORD", "parent": 326, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 9}}, {"id": 328, "type": "field_identifier", "text": "dwSize", "parent": 326, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 16}}, {"id": 329, "type": "field_declaration", "text": "WCHAR szMenuName[MENU_TEXT_LEN];", "parent": 323, "children": [330, 331], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 36}}, {"id": 330, "type": "type_identifier", "text": "WCHAR", "parent": 329, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 9}}, {"id": 331, "type": "array_declarator", "text": "szMenuName[MENU_TEXT_LEN]", "parent": 329, "children": [332, 333], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 35}}, {"id": 332, "type": "field_identifier", "text": "szMenuName", "parent": 331, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 20}}, {"id": 333, "type": "identifier", "text": "MENU_TEXT_LEN", "parent": 331, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 34}}, {"id": 334, "type": "field_declaration", "text": "HMENU hMenu;", "parent": 323, "children": [335, 336], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 16}}, {"id": 335, "type": "type_identifier", "text": "HMENU", "parent": 334, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 9}}, {"id": 336, "type": "field_identifier", "text": "hMenu", "parent": 334, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 15}}, {"id": 337, "type": "field_declaration", "text": "UINT wMenuDelta;", "parent": 323, "children": [338, 339], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 20}}, {"id": 338, "type": "type_identifier", "text": "UINT", "parent": 337, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 8}}, {"id": 339, "type": "field_identifier", "text": "wMenuDelta", "parent": 337, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 19}}, {"id": 340, "type": "type_identifier", "text": "FMS_LOADW", "parent": 321, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 13}}, {"id": 341, "type": "pointer_declarator", "text": "*LPFMS_LOADW", "parent": 321, "children": [342, 343], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 26}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 15}}, {"id": 343, "type": "type_identifier", "text": "LPFMS_LOADW", "parent": 341, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 26}}, {"id": 344, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif", "parent": 9, "children": [345, 346, 347, 351, 355, 365], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 345, "type": "#ifdef", "text": "#ifdef", "parent": 344, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 6}}, {"id": 346, "type": "identifier", "text": "UNICODE", "parent": 344, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 14}}, {"id": 347, "type": "preproc_def", "text": "#define FMS_LOAD FMS_LOADW\n", "parent": 344, "children": [348, 349, 350], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 348, "type": "#define", "text": "#define", "parent": 347, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 349, "type": "identifier", "text": "FMS_LOAD", "parent": 347, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 16}}, {"id": 350, "type": "preproc_arg", "text": "FMS_LOADW", "parent": 347, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 26}}, {"id": 351, "type": "preproc_def", "text": "#define LPFMS_LOAD LPFMS_LOADW\n", "parent": 344, "children": [352, 353, 354], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 352, "type": "#define", "text": "#define", "parent": 351, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 353, "type": "identifier", "text": "LPFMS_LOAD", "parent": 351, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 18}}, {"id": 354, "type": "preproc_arg", "text": "LPFMS_LOADW", "parent": 351, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 30}}, {"id": 355, "type": "preproc_else", "text": "#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n", "parent": 344, "children": [356, 357, 361], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 356, "type": "#else", "text": "#else", "parent": 355, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 5}}, {"id": 357, "type": "preproc_def", "text": "#define FMS_LOAD FMS_LOADA\n", "parent": 355, "children": [358, 359, 360], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 358, "type": "#define", "text": "#define", "parent": 357, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 7}}, {"id": 359, "type": "identifier", "text": "FMS_LOAD", "parent": 357, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 16}}, {"id": 360, "type": "preproc_arg", "text": "FMS_LOADA", "parent": 357, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 26}}, {"id": 361, "type": "preproc_def", "text": "#define LPFMS_LOAD LPFMS_LOADA\n", "parent": 355, "children": [362, 363, 364], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 362, "type": "#define", "text": "#define", "parent": 361, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 363, "type": "identifier", "text": "LPFMS_LOAD", "parent": 361, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 18}}, {"id": 364, "type": "preproc_arg", "text": "LPFMS_LOADA", "parent": 361, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 30}}, {"id": 365, "type": "#endif", "text": "#endif", "parent": 344, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 366, "type": "type_definition", "text": "typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;", "parent": 9, "children": [367, 368, 380, 381], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 127, "column": 29}}, {"id": 367, "type": "typedef", "text": "typedef", "parent": 366, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 9}}, {"id": 368, "type": "struct_specifier", "text": "struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n }", "parent": 366, "children": [369, 370], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 127, "column": 3}}, {"id": 369, "type": "struct", "text": "struct", "parent": 368, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 16}}, {"id": 370, "type": "type_identifier", "text": "tagEXT_BUTTON", "parent": 368, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 30}}, {"id": 371, "type": "field_declaration", "text": "WORD idCommand;", "parent": 368, "children": [372, 373], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 19}}, {"id": 372, "type": "type_identifier", "text": "WORD", "parent": 371, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 8}}, {"id": 373, "type": "field_identifier", "text": "idCommand", "parent": 371, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 18}}, {"id": 374, "type": "field_declaration", "text": "WORD idsHelp;", "parent": 368, "children": [375, 376], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 17}}, {"id": 375, "type": "type_identifier", "text": "WORD", "parent": 374, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 8}}, {"id": 376, "type": "field_identifier", "text": "idsHelp", "parent": 374, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 16}}, {"id": 377, "type": "field_declaration", "text": "WORD fsStyle;", "parent": 368, "children": [378, 379], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 17}}, {"id": 378, "type": "type_identifier", "text": "WORD", "parent": 377, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 8}}, {"id": 379, "type": "field_identifier", "text": "fsStyle", "parent": 377, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 16}}, {"id": 380, "type": "type_identifier", "text": "EXT_BUTTON", "parent": 366, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 14}}, {"id": 381, "type": "pointer_declarator", "text": "*LPEXT_BUTTON", "parent": 366, "children": [382, 383], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 28}}, {"id": 382, "type": "*", "text": "*", "parent": 381, "children": [], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 16}}, {"id": 383, "type": "type_identifier", "text": "LPEXT_BUTTON", "parent": 381, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 28}}, {"id": 384, "type": "type_definition", "text": "typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;", "parent": 9, "children": [385, 386, 407, 408], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 136, "column": 39}}, {"id": 385, "type": "typedef", "text": "typedef", "parent": 384, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 9}}, {"id": 386, "type": "struct_specifier", "text": "struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n }", "parent": 384, "children": [387, 388], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 136, "column": 3}}, {"id": 387, "type": "struct", "text": "struct", "parent": 386, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 16}}, {"id": 388, "type": "type_identifier", "text": "tagFMS_TOOLBARLOAD", "parent": 386, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 35}}, {"id": 389, "type": "field_declaration", "text": "DWORD dwSize;", "parent": 386, "children": [390, 391], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 17}}, {"id": 390, "type": "type_identifier", "text": "DWORD", "parent": 389, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 9}}, {"id": 391, "type": "field_identifier", "text": "dwSize", "parent": 389, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 16}}, {"id": 392, "type": "field_declaration", "text": "LPEXT_BUTTON lpButtons;", "parent": 386, "children": [393, 394], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 27}}, {"id": 393, "type": "type_identifier", "text": "LPEXT_BUTTON", "parent": 392, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 16}}, {"id": 394, "type": "field_identifier", "text": "lpButtons", "parent": 392, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 26}}, {"id": 395, "type": "field_declaration", "text": "WORD cButtons;", "parent": 386, "children": [396, 397], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 18}}, {"id": 396, "type": "type_identifier", "text": "WORD", "parent": 395, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 397, "type": "field_identifier", "text": "cButtons", "parent": 395, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 17}}, {"id": 398, "type": "field_declaration", "text": "WORD cBitmaps;", "parent": 386, "children": [399, 400], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 18}}, {"id": 399, "type": "type_identifier", "text": "WORD", "parent": 398, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 8}}, {"id": 400, "type": "field_identifier", "text": "cBitmaps", "parent": 398, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 17}}, {"id": 401, "type": "field_declaration", "text": "WORD idBitmap;", "parent": 386, "children": [402, 403], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 18}}, {"id": 402, "type": "type_identifier", "text": "WORD", "parent": 401, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 8}}, {"id": 403, "type": "field_identifier", "text": "idBitmap", "parent": 401, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 17}}, {"id": 404, "type": "field_declaration", "text": "HBITMAP hBitmap;", "parent": 386, "children": [405, 406], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 20}}, {"id": 405, "type": "type_identifier", "text": "HBITMAP", "parent": 404, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 11}}, {"id": 406, "type": "field_identifier", "text": "hBitmap", "parent": 404, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 19}}, {"id": 407, "type": "type_identifier", "text": "FMS_TOOLBARLOAD", "parent": 384, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 19}}, {"id": 408, "type": "pointer_declarator", "text": "*LPFMS_TOOLBARLOAD", "parent": 384, "children": [409, 410], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 38}}, {"id": 409, "type": "*", "text": "*", "parent": 408, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 410, "type": "type_identifier", "text": "LPFMS_TOOLBARLOAD", "parent": 408, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 38}}, {"id": 411, "type": "type_definition", "text": "typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;", "parent": 9, "children": [412, 413, 427, 428], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 142, "column": 39}}, {"id": 412, "type": "typedef", "text": "typedef", "parent": 411, "children": [], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 9}}, {"id": 413, "type": "struct_specifier", "text": "struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n }", "parent": 411, "children": [414, 415], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 142, "column": 3}}, {"id": 414, "type": "struct", "text": "struct", "parent": 413, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 16}}, {"id": 415, "type": "type_identifier", "text": "tagFMS_HELPSTRINGA", "parent": 413, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 35}}, {"id": 416, "type": "field_declaration", "text": "INT idCommand;", "parent": 413, "children": [417, 418], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 18}}, {"id": 417, "type": "type_identifier", "text": "INT", "parent": 416, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 7}}, {"id": 418, "type": "field_identifier", "text": "idCommand", "parent": 416, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 17}}, {"id": 419, "type": "field_declaration", "text": "HMENU hMenu;", "parent": 413, "children": [420, 421], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 16}}, {"id": 420, "type": "type_identifier", "text": "HMENU", "parent": 419, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 9}}, {"id": 421, "type": "field_identifier", "text": "hMenu", "parent": 419, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 15}}, {"id": 422, "type": "field_declaration", "text": "CHAR szHelp[128];", "parent": 413, "children": [423, 424], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 21}}, {"id": 423, "type": "type_identifier", "text": "CHAR", "parent": 422, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 8}}, {"id": 424, "type": "array_declarator", "text": "szHelp[128]", "parent": 422, "children": [425, 426], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 20}}, {"id": 425, "type": "field_identifier", "text": "szHelp", "parent": 424, "children": [], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 15}}, {"id": 426, "type": "number_literal", "text": "128", "parent": 424, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 19}}, {"id": 427, "type": "type_identifier", "text": "FMS_HELPSTRINGA", "parent": 411, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 19}}, {"id": 428, "type": "pointer_declarator", "text": "*LPFMS_HELPSTRINGA", "parent": 411, "children": [429, 430], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 38}}, {"id": 429, "type": "*", "text": "*", "parent": 428, "children": [], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 21}}, {"id": 430, "type": "type_identifier", "text": "LPFMS_HELPSTRINGA", "parent": 428, "children": [], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 38}}, {"id": 431, "type": "type_definition", "text": "typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;", "parent": 9, "children": [432, 433, 447, 448], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 148, "column": 39}}, {"id": 432, "type": "typedef", "text": "typedef", "parent": 431, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 9}}, {"id": 433, "type": "struct_specifier", "text": "struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n }", "parent": 431, "children": [434, 435], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 148, "column": 3}}, {"id": 434, "type": "struct", "text": "struct", "parent": 433, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 16}}, {"id": 435, "type": "type_identifier", "text": "tagFMS_HELPSTRINGW", "parent": 433, "children": [], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 35}}, {"id": 436, "type": "field_declaration", "text": "INT idCommand;", "parent": 433, "children": [437, 438], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 18}}, {"id": 437, "type": "type_identifier", "text": "INT", "parent": 436, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 7}}, {"id": 438, "type": "field_identifier", "text": "idCommand", "parent": 436, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 17}}, {"id": 439, "type": "field_declaration", "text": "HMENU hMenu;", "parent": 433, "children": [440, 441], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 16}}, {"id": 440, "type": "type_identifier", "text": "HMENU", "parent": 439, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 9}}, {"id": 441, "type": "field_identifier", "text": "hMenu", "parent": 439, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 15}}, {"id": 442, "type": "field_declaration", "text": "WCHAR szHelp[128];", "parent": 433, "children": [443, 444], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 22}}, {"id": 443, "type": "type_identifier", "text": "WCHAR", "parent": 442, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 9}}, {"id": 444, "type": "array_declarator", "text": "szHelp[128]", "parent": 442, "children": [445, 446], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 21}}, {"id": 445, "type": "field_identifier", "text": "szHelp", "parent": 444, "children": [], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 16}}, {"id": 446, "type": "number_literal", "text": "128", "parent": 444, "children": [], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 20}}, {"id": 447, "type": "type_identifier", "text": "FMS_HELPSTRINGW", "parent": 431, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 19}}, {"id": 448, "type": "pointer_declarator", "text": "*LPFMS_HELPSTRINGW", "parent": 431, "children": [449, 450], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 38}}, {"id": 449, "type": "*", "text": "*", "parent": 448, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 21}}, {"id": 450, "type": "type_identifier", "text": "LPFMS_HELPSTRINGW", "parent": 448, "children": [], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 38}}, {"id": 451, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif", "parent": 9, "children": [452, 453, 454, 458, 462, 472], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 156, "column": 6}}, {"id": 452, "type": "#ifdef", "text": "#ifdef", "parent": 451, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 6}}, {"id": 453, "type": "identifier", "text": "UNICODE", "parent": 451, "children": [], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 14}}, {"id": 454, "type": "preproc_def", "text": "#define FMS_HELPSTRING FMS_HELPSTRINGW\n", "parent": 451, "children": [455, 456, 457], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 152, "column": 0}}, {"id": 455, "type": "#define", "text": "#define", "parent": 454, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 7}}, {"id": 456, "type": "identifier", "text": "FMS_HELPSTRING", "parent": 454, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 22}}, {"id": 457, "type": "preproc_arg", "text": "FMS_HELPSTRINGW", "parent": 454, "children": [], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 38}}, {"id": 458, "type": "preproc_def", "text": "#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n", "parent": 451, "children": [459, 460, 461], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 153, "column": 0}}, {"id": 459, "type": "#define", "text": "#define", "parent": 458, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 7}}, {"id": 460, "type": "identifier", "text": "LPFMS_HELPSTRING", "parent": 458, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 24}}, {"id": 461, "type": "preproc_arg", "text": "LPFMS_HELPSTRINGW", "parent": 458, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 42}}, {"id": 462, "type": "preproc_else", "text": "#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n", "parent": 451, "children": [463, 464, 468], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 463, "type": "#else", "text": "#else", "parent": 462, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 5}}, {"id": 464, "type": "preproc_def", "text": "#define FMS_HELPSTRING FMS_HELPSTRINGA\n", "parent": 462, "children": [465, 466, 467], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 0}}, {"id": 465, "type": "#define", "text": "#define", "parent": 464, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 7}}, {"id": 466, "type": "identifier", "text": "FMS_HELPSTRING", "parent": 464, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 22}}, {"id": 467, "type": "preproc_arg", "text": "FMS_HELPSTRINGA", "parent": 464, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 38}}, {"id": 468, "type": "preproc_def", "text": "#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n", "parent": 462, "children": [469, 470, 471], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 469, "type": "#define", "text": "#define", "parent": 468, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 470, "type": "identifier", "text": "LPFMS_HELPSTRING", "parent": 468, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 24}}, {"id": 471, "type": "preproc_arg", "text": "LPFMS_HELPSTRINGA", "parent": 468, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 42}}, {"id": 472, "type": "#endif", "text": "#endif", "parent": 451, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 6}}, {"id": 473, "type": "type_definition", "text": "typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);", "parent": 9, "children": [474, 475, 484, 486, 487], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 54}}, {"id": 474, "type": "typedef", "text": "typedef", "parent": 473, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 9}}, {"id": 475, "type": "macro_type_specifier", "text": "DWORD (WINAPI *FM_EXT_PROC)", "parent": 473, "children": [476, 477, 482], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 37}}, {"id": 476, "type": "identifier", "text": "DWORD", "parent": 475, "children": [], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 15}}, {"id": 477, "type": "ERROR", "text": "WINAPI *", "parent": 475, "children": [478], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 25}}, {"id": 478, "type": "type_descriptor", "text": "WINAPI *", "parent": 477, "children": [479, 480], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 25}}, {"id": 479, "type": "type_identifier", "text": "WINAPI", "parent": 478, "children": [], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 23}}, {"id": 480, "type": "abstract_pointer_declarator", "text": "*", "parent": 478, "children": [481], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 25}}, {"id": 481, "type": "*", "text": "*", "parent": 480, "children": [], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 25}}, {"id": 482, "type": "type_descriptor", "text": "FM_EXT_PROC", "parent": 475, "children": [483], "start_point": {"row": 158, "column": 25}, "end_point": {"row": 158, "column": 36}}, {"id": 483, "type": "type_identifier", "text": "FM_EXT_PROC", "parent": 482, "children": [], "start_point": {"row": 158, "column": 25}, "end_point": {"row": 158, "column": 36}}, {"id": 484, "type": "parenthesized_declarator", "text": "(HWND", "parent": 473, "children": [485], "start_point": {"row": 158, "column": 37}, "end_point": {"row": 158, "column": 42}}, {"id": 485, "type": "type_identifier", "text": "HWND", "parent": 484, "children": [], "start_point": {"row": 158, "column": 38}, "end_point": {"row": 158, "column": 42}}, {"id": 486, "type": "type_identifier", "text": "WORD", "parent": 473, "children": [], "start_point": {"row": 158, "column": 43}, "end_point": {"row": 158, "column": 47}}, {"id": 487, "type": "type_identifier", "text": "LONG", "parent": 473, "children": [], "start_point": {"row": 158, "column": 48}, "end_point": {"row": 158, "column": 52}}, {"id": 488, "type": "type_definition", "text": "typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);", "parent": 9, "children": [489, 490, 499], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 56}}, {"id": 489, "type": "typedef", "text": "typedef", "parent": 488, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 9}}, {"id": 490, "type": "macro_type_specifier", "text": "DWORD (WINAPI *FM_UNDELETE_PROC)", "parent": 488, "children": [491, 492, 497], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 42}}, {"id": 491, "type": "identifier", "text": "DWORD", "parent": 490, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 15}}, {"id": 492, "type": "ERROR", "text": "WINAPI *", "parent": 490, "children": [493], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 25}}, {"id": 493, "type": "type_descriptor", "text": "WINAPI *", "parent": 492, "children": [494, 495], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 25}}, {"id": 494, "type": "type_identifier", "text": "WINAPI", "parent": 493, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 23}}, {"id": 495, "type": "abstract_pointer_declarator", "text": "*", "parent": 493, "children": [496], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 25}}, {"id": 496, "type": "*", "text": "*", "parent": 495, "children": [], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 25}}, {"id": 497, "type": "type_descriptor", "text": "FM_UNDELETE_PROC", "parent": 490, "children": [498], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 41}}, {"id": 498, "type": "type_identifier", "text": "FM_UNDELETE_PROC", "parent": 497, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 41}}, {"id": 499, "type": "parenthesized_declarator", "text": "(HWND,LPTSTR)", "parent": 488, "children": [500, 502], "start_point": {"row": 159, "column": 42}, "end_point": {"row": 159, "column": 55}}, {"id": 500, "type": "ERROR", "text": "HWND,", "parent": 499, "children": [501], "start_point": {"row": 159, "column": 43}, "end_point": {"row": 159, "column": 48}}, {"id": 501, "type": "type_identifier", "text": "HWND", "parent": 500, "children": [], "start_point": {"row": 159, "column": 43}, "end_point": {"row": 159, "column": 47}}, {"id": 502, "type": "type_identifier", "text": "LPTSTR", "parent": 499, "children": [], "start_point": {"row": 159, "column": 48}, "end_point": {"row": 159, "column": 54}}, {"id": 503, "type": "preproc_ifdef", "text": "#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif", "parent": 9, "children": [504, 505, 506, 522, 540], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 165, "column": 6}}, {"id": 504, "type": "#ifdef", "text": "#ifdef", "parent": 503, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 6}}, {"id": 505, "type": "identifier", "text": "UNICODE", "parent": 503, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 14}}, {"id": 506, "type": "declaration", "text": "LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);", "parent": 503, "children": [507, 508, 510], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 66}}, {"id": 507, "type": "type_identifier", "text": "LONG", "parent": 506, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 6}}, {"id": 508, "type": "ERROR", "text": "WINAPI", "parent": 506, "children": [509], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 13}}, {"id": 509, "type": "identifier", "text": "WINAPI", "parent": 508, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 13}}, {"id": 510, "type": "function_declarator", "text": "FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam)", "parent": 506, "children": [511, 512], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 65}}, {"id": 511, "type": "identifier", "text": "FMExtensionProcW", "parent": 510, "children": [], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 30}}, {"id": 512, "type": "parameter_list", "text": "(HWND hwnd,WORD wEvent,LONG lParam)", "parent": 510, "children": [513, 516, 519], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 65}}, {"id": 513, "type": "parameter_declaration", "text": "HWND hwnd", "parent": 512, "children": [514, 515], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 40}}, {"id": 514, "type": "type_identifier", "text": "HWND", "parent": 513, "children": [], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 35}}, {"id": 515, "type": "identifier", "text": "hwnd", "parent": 513, "children": [], "start_point": {"row": 162, "column": 36}, "end_point": {"row": 162, "column": 40}}, {"id": 516, "type": "parameter_declaration", "text": "WORD wEvent", "parent": 512, "children": [517, 518], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 52}}, {"id": 517, "type": "type_identifier", "text": "WORD", "parent": 516, "children": [], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 45}}, {"id": 518, "type": "identifier", "text": "wEvent", "parent": 516, "children": [], "start_point": {"row": 162, "column": 46}, "end_point": {"row": 162, "column": 52}}, {"id": 519, "type": "parameter_declaration", "text": "LONG lParam", "parent": 512, "children": [520, 521], "start_point": {"row": 162, "column": 53}, "end_point": {"row": 162, "column": 64}}, {"id": 520, "type": "type_identifier", "text": "LONG", "parent": 519, "children": [], "start_point": {"row": 162, "column": 53}, "end_point": {"row": 162, "column": 57}}, {"id": 521, "type": "identifier", "text": "lParam", "parent": 519, "children": [], "start_point": {"row": 162, "column": 58}, "end_point": {"row": 162, "column": 64}}, {"id": 522, "type": "preproc_else", "text": "#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);", "parent": 503, "children": [523, 524], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 164, "column": 65}}, {"id": 523, "type": "#else", "text": "#else", "parent": 522, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 5}}, {"id": 524, "type": "declaration", "text": "LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);", "parent": 522, "children": [525, 526, 528], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 65}}, {"id": 525, "type": "type_identifier", "text": "LONG", "parent": 524, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 6}}, {"id": 526, "type": "ERROR", "text": "WINAPI", "parent": 524, "children": [527], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 13}}, {"id": 527, "type": "identifier", "text": "WINAPI", "parent": 526, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 13}}, {"id": 528, "type": "function_declarator", "text": "FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam)", "parent": 524, "children": [529, 530], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 64}}, {"id": 529, "type": "identifier", "text": "FMExtensionProc", "parent": 528, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 29}}, {"id": 530, "type": "parameter_list", "text": "(HWND hwnd,WORD wEvent,LONG lParam)", "parent": 528, "children": [531, 534, 537], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 64}}, {"id": 531, "type": "parameter_declaration", "text": "HWND hwnd", "parent": 530, "children": [532, 533], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 39}}, {"id": 532, "type": "type_identifier", "text": "HWND", "parent": 531, "children": [], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 34}}, {"id": 533, "type": "identifier", "text": "hwnd", "parent": 531, "children": [], "start_point": {"row": 164, "column": 35}, "end_point": {"row": 164, "column": 39}}, {"id": 534, "type": "parameter_declaration", "text": "WORD wEvent", "parent": 530, "children": [535, 536], "start_point": {"row": 164, "column": 40}, "end_point": {"row": 164, "column": 51}}, {"id": 535, "type": "type_identifier", "text": "WORD", "parent": 534, "children": [], "start_point": {"row": 164, "column": 40}, "end_point": {"row": 164, "column": 44}}, {"id": 536, "type": "identifier", "text": "wEvent", "parent": 534, "children": [], "start_point": {"row": 164, "column": 45}, "end_point": {"row": 164, "column": 51}}, {"id": 537, "type": "parameter_declaration", "text": "LONG lParam", "parent": 530, "children": [538, 539], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 63}}, {"id": 538, "type": "type_identifier", "text": "LONG", "parent": 537, "children": [], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 56}}, {"id": 539, "type": "identifier", "text": "lParam", "parent": 537, "children": [], "start_point": {"row": 164, "column": 57}, "end_point": {"row": 164, "column": 63}}, {"id": 540, "type": "#endif", "text": "#endif", "parent": 503, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 6}}, {"id": 541, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [542, 543, 544], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 18}}, {"id": 542, "type": "#ifdef", "text": "#ifdef", "parent": 541, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 6}}, {"id": 543, "type": "identifier", "text": "__cplusplus", "parent": 541, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 18}}, {"id": 544, "type": "#endif", "text": "", "parent": 541, "children": [], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 167, "column": 18}}, {"id": 545, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 6}}, {"id": 546, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 6}}]}, "node_categories": {"declarations": {"functions": [510, 528], "variables": [148, 153, 156, 159, 162, 171, 176, 179, 182, 185, 216, 221, 224, 227, 232, 237, 246, 251, 254, 257, 262, 267, 298, 303, 306, 311, 314, 321, 326, 329, 334, 337, 366, 371, 374, 377, 384, 389, 392, 395, 398, 401, 404, 411, 416, 419, 422, 431, 436, 439, 442, 473, 488, 506, 513, 516, 519, 524, 531, 534, 537], "classes": [150, 151, 173, 174, 218, 219, 248, 249, 300, 301, 323, 324, 368, 369, 386, 387, 413, 414, 433, 434], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 118, 119, 120, 123, 127, 131, 137, 141, 145, 147, 152, 154, 155, 157, 158, 160, 161, 163, 165, 167, 170, 175, 177, 178, 180, 181, 183, 184, 186, 188, 190, 193, 194, 195, 196, 199, 203, 209, 213, 215, 220, 222, 223, 225, 226, 228, 230, 233, 235, 238, 240, 242, 245, 250, 252, 253, 255, 256, 258, 260, 263, 265, 268, 270, 272, 275, 276, 277, 278, 281, 285, 291, 295, 297, 302, 304, 305, 307, 309, 310, 312, 313, 315, 316, 317, 320, 325, 327, 328, 330, 332, 333, 335, 336, 338, 339, 340, 343, 344, 345, 346, 349, 353, 359, 363, 365, 370, 372, 373, 375, 376, 378, 379, 380, 383, 388, 390, 391, 393, 394, 396, 397, 399, 400, 402, 403, 405, 406, 407, 410, 415, 417, 418, 420, 421, 423, 425, 427, 430, 435, 437, 438, 440, 441, 443, 445, 447, 450, 451, 452, 453, 456, 460, 466, 470, 472, 475, 476, 479, 483, 485, 486, 487, 490, 491, 494, 498, 501, 502, 503, 504, 505, 507, 509, 511, 514, 515, 517, 518, 520, 521, 525, 527, 529, 532, 533, 535, 536, 538, 539, 540, 541, 542, 543, 544, 545, 546], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11, 166, 189, 231, 236, 241, 261, 266, 271, 426, 446], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 510, "universal_type": "function", "name": "unknown", "text_snippet": "FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam)"}, {"node_id": 528, "universal_type": "function", "name": "unknown", "text_snippet": "FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam)"}], "class_declarations": [{"node_id": 150, "universal_type": "class", "name": "_FMS_GETFILESELA", "text_snippet": "struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260"}, {"node_id": 151, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 173, "universal_type": "class", "name": "_FMS_GETFILESELW", "text_snippet": "struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[26"}, {"node_id": 174, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 218, "universal_type": "class", "name": "_FMS_GETDRIVEINFOA", "text_snippet": "struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n "}, {"node_id": 219, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 248, "universal_type": "class", "name": "_FMS_GETDRIVEINFOW", "text_snippet": "struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n "}, {"node_id": 249, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 300, "universal_type": "class", "name": "_FMS_LOADA", "text_snippet": "struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT "}, {"node_id": 301, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 323, "universal_type": "class", "name": "_FMS_LOADW", "text_snippet": "struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT"}, {"node_id": 324, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 368, "universal_type": "class", "name": "tagEXT_BUTTON", "text_snippet": "struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n }"}, {"node_id": 369, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 386, "universal_type": "class", "name": "tagFMS_TOOLBARLOAD", "text_snippet": "struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WOR"}, {"node_id": 387, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 413, "universal_type": "class", "name": "tagFMS_HELPSTRINGA", "text_snippet": "struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n }"}, {"node_id": 414, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 433, "universal_type": "class", "name": "tagFMS_HELPSTRINGW", "text_snippet": "struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n }"}, {"node_id": 434, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the w64 mingw-runtime package.\n * No warranty is given; refer to the file DISCLAIMER within this package.\n */\n#ifndef _INC_WFEXT\n#define _INC_WFEXT\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define MENU_TEXT_LEN 40\n\n#define FMMENU_FIRST 1\n#define FMMENU_LAST 99\n\n#define FMEVENT_LOAD 100\n#define FMEVENT_UNLOAD 101\n#define FMEVENT_INITMENU 102\n#define FMEVENT_USER_REFRESH 103\n#define FMEVENT_SELCHANGE 104\n#define FMEVENT_TOOLBARLOAD 105\n#define FMEVENT_HELPSTRING 106\n#define FMEVENT_HELPMENUITEM 107\n\n#define FMFOCUS_DIR 1\n#define FMFOCUS_TREE 2\n#define FMFOCUS_DRIVES 3\n#define FMFOCUS_SEARCH 4\n\n#define FM_GETFOCUS (WM_USER + 0x0200)\n#define FM_GETSELCOUNT (WM_USER + 0x0202)\n#define FM_GETSELCOUNTLFN (WM_USER + 0x0203)\n#define FM_REFRESH_WINDOWS (WM_USER + 0x0206)\n#define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)\n\n#define FM_GETDRIVEINFOA (WM_USER + 0x0201)\n#define FM_GETFILESELA (WM_USER + 0x0204)\n#define FM_GETFILESELLFNA (WM_USER + 0x0205)\n\n#define FM_GETDRIVEINFOW (WM_USER + 0x0211)\n#define FM_GETFILESELW (WM_USER + 0x0214)\n#define FM_GETFILESELLFNW (WM_USER + 0x0215)\n\n#ifdef UNICODE\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOW\n#define FM_GETFILESEL FM_GETFILESELW\n#define FM_GETFILESELLFN FM_GETFILESELLFNW\n#else\n#define FM_GETDRIVEINFO FM_GETDRIVEINFOA\n#define FM_GETFILESEL FM_GETFILESELA\n#define FM_GETFILESELLFN FM_GETFILESELLFNA\n#endif\n\n typedef struct _FMS_GETFILESELA {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n CHAR szName[260];\n } FMS_GETFILESELA,*LPFMS_GETFILESELA;\n\n typedef struct _FMS_GETFILESELW {\n FILETIME ftTime;\n DWORD dwSize;\n BYTE bAttr;\n WCHAR szName[260];\n } FMS_GETFILESELW,*LPFMS_GETFILESELW;\n\n#ifdef UNICODE\n#define FMS_GETFILESEL FMS_GETFILESELW\n#define LPFMS_GETFILESEL LPFMS_GETFILESELW\n#else\n#define FMS_GETFILESEL FMS_GETFILESELA\n#define LPFMS_GETFILESEL LPFMS_GETFILESELA\n#endif\n\n typedef struct _FMS_GETDRIVEINFOA {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n CHAR szPath[260];\n CHAR szVolume[14];\n CHAR szShare[128];\n } FMS_GETDRIVEINFOA,*LPFMS_GETDRIVEINFOA;\n\n typedef struct _FMS_GETDRIVEINFOW {\n DWORD dwTotalSpace;\n DWORD dwFreeSpace;\n WCHAR szPath[260];\n WCHAR szVolume[14];\n WCHAR szShare[128];\n } FMS_GETDRIVEINFOW,*LPFMS_GETDRIVEINFOW;\n\n#ifdef UNICODE\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW\n#else\n#define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA\n#define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA\n#endif\n\n typedef struct _FMS_LOADA {\n DWORD dwSize;\n CHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADA,*LPFMS_LOADA;\n\n typedef struct _FMS_LOADW {\n DWORD dwSize;\n WCHAR szMenuName[MENU_TEXT_LEN];\n HMENU hMenu;\n UINT wMenuDelta;\n } FMS_LOADW,*LPFMS_LOADW;\n\n#ifdef UNICODE\n#define FMS_LOAD FMS_LOADW\n#define LPFMS_LOAD LPFMS_LOADW\n#else\n#define FMS_LOAD FMS_LOADA\n#define LPFMS_LOAD LPFMS_LOADA\n#endif\n\n typedef struct tagEXT_BUTTON {\n WORD idCommand;\n WORD idsHelp;\n WORD fsStyle;\n } EXT_BUTTON,*LPEXT_BUTTON;\n\n typedef struct tagFMS_TOOLBARLOAD {\n DWORD dwSize;\n LPEXT_BUTTON lpButtons;\n WORD cButtons;\n WORD cBitmaps;\n WORD idBitmap;\n HBITMAP hBitmap;\n } FMS_TOOLBARLOAD,*LPFMS_TOOLBARLOAD;\n\n typedef struct tagFMS_HELPSTRINGA {\n INT idCommand;\n HMENU hMenu;\n CHAR szHelp[128];\n } FMS_HELPSTRINGA,*LPFMS_HELPSTRINGA;\n\n typedef struct tagFMS_HELPSTRINGW {\n INT idCommand;\n HMENU hMenu;\n WCHAR szHelp[128];\n } FMS_HELPSTRINGW,*LPFMS_HELPSTRINGW;\n\n#ifdef UNICODE\n#define FMS_HELPSTRING FMS_HELPSTRINGW\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGW\n#else\n#define FMS_HELPSTRING FMS_HELPSTRINGA\n#define LPFMS_HELPSTRING LPFMS_HELPSTRINGA\n#endif\n\n typedef DWORD (WINAPI *FM_EXT_PROC)(HWND,WORD,LONG);\n typedef DWORD (WINAPI *FM_UNDELETE_PROC)(HWND,LPTSTR);\n\n#ifdef UNICODE\n LONG WINAPI FMExtensionProcW(HWND hwnd,WORD wEvent,LONG lParam);\n#else\n LONG WINAPI FMExtensionProc(HWND hwnd,WORD wEvent,LONG lParam);\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n"}
81,082
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "TVMusicMPObjectMediaItem.h" @class MPModelTVEpisode; @interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem { } - (id)mediaItemMetadataForProperty:(id)arg1; // IMP=0x00000001000917dc - (_Bool)useBookmarks; // IMP=0x00000001000917d4 @property(readonly, nonatomic) MPModelTVEpisode *tvEpisode; - (id)initWithTVEpisode:(id)arg1; // IMP=0x00000001000917b8 - (id)initWithTVEpisode:(id)arg1 mediaItemMetadata:(id)arg2; // IMP=0x0000000100091748 @end
36.25
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "TVMusicMPObjectMediaItem.h"\n\n@class MPModelTVEpisode;\n\n@interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}\n\n- (id)mediaItemMetadataForProperty:(id)arg1; // IMP=0x00000001000917dc\n- (_Bool)useBookmarks; // IMP=0x00000001000917d4\n@property(readonly, nonatomic) MPModelTVEpisode *tvEpisode;\n- (id)initWithTVEpisode:(id)arg1; // IMP=0x00000001000917b8\n- (id)initWithTVEpisode:(id)arg1 mediaItemMetadata:(id)arg2; // IMP=0x0000000100091748\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "TVMusicMPObjectMediaItem.h"\n" (preproc_directive) "#import" (preproc_arg) ""TVMusicMPObjectMediaItem.h"" (ERROR) "@" (ERROR) "@" (declaration) "class MPModelTVEpisode;" (type_identifier) "class" (identifier) "MPModelTVEpisode" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}" (type_identifier) "interface" (identifier) "TVMusicMPTVEpisodeMediaItem" (ERROR) ": TVMusicMPObjectMediaItem" (:) ":" (identifier) "TVMusicMPObjectMediaItem" (compound_statement) "{\n}" ({) "{" (}) "}" (expression_statement) "- (id)mediaItemMetadataForProperty:(id)arg1;" (unary_expression) "- (id)mediaItemMetadataForProperty" (-) "-" (cast_expression) "(id)mediaItemMetadataForProperty" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "mediaItemMetadataForProperty" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (comment) "// IMP=0x00000001000917dc" (expression_statement) "- (_Bool)useBookmarks;" (unary_expression) "- (_Bool)useBookmarks" (-) "-" (cast_expression) "(_Bool)useBookmarks" (() "(" (type_descriptor) "_Bool" (type_identifier) "_Bool" ()) ")" (identifier) "useBookmarks" (;) ";" (comment) "// IMP=0x00000001000917d4" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, nonatomic)" (call_expression) "property(readonly, nonatomic)" (identifier) "property" (argument_list) "(readonly, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "MPModelTVEpisode *tvEpisode;" (type_identifier) "MPModelTVEpisode" (pointer_declarator) "*tvEpisode" (*) "*" (identifier) "tvEpisode" (;) ";" (expression_statement) "- (id)initWithTVEpisode:(id)arg1;" (unary_expression) "- (id)initWithTVEpisode" (-) "-" (cast_expression) "(id)initWithTVEpisode" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithTVEpisode" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (comment) "// IMP=0x00000001000917b8" (ERROR) "- (id)initWithTVEpisode:(id)" (unary_expression) "- (id)initWithTVEpisode" (-) "-" (cast_expression) "(id)initWithTVEpisode" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithTVEpisode" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 mediaItemMetadata:(id)arg2;" (type_identifier) "arg1" (identifier) "mediaItemMetadata" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (comment) "// IMP=0x0000000100091748" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
118
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.25, "nodes": 66, "errors": 0, "source_hash": "0e172b50fda5967f3d21db819daa7275253609a176d0f84b6673fc3604229026", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"TVMusicMPObjectMediaItem.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"TVMusicMPObjectMediaItem.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 36}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "declaration", "text": "class MPModelTVEpisode;", "parent": null, "children": [6], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 24}}, {"id": 6, "type": "identifier", "text": "MPModelTVEpisode", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 23}}, {"id": 7, "type": "ERROR", "text": "@", "parent": null, "children": [8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 8, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 9, "type": "function_definition", "text": "interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}", "parent": null, "children": [10, 11, 12], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "interface", "parent": 9, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 11, "type": "identifier", "text": "TVMusicMPTVEpisodeMediaItem", "parent": 9, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 38}}, {"id": 12, "type": "ERROR", "text": ": TVMusicMPObjectMediaItem", "parent": 9, "children": [13], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 65}}, {"id": 13, "type": "identifier", "text": "TVMusicMPObjectMediaItem", "parent": 12, "children": [], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 65}}, {"id": 14, "type": "unary_expression", "text": "- (id)mediaItemMetadataForProperty", "parent": null, "children": [15, 16], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 34}}, {"id": 15, "type": "-", "text": "-", "parent": 14, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "(id)mediaItemMetadataForProperty", "parent": 14, "children": [17, 19], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 34}}, {"id": 17, "type": "type_descriptor", "text": "id", "parent": 16, "children": [18], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 18, "type": "type_identifier", "text": "id", "parent": 17, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 19, "type": "identifier", "text": "mediaItemMetadataForProperty", "parent": 16, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 34}}, {"id": 20, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [21, 22], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 43}}, {"id": 21, "type": "identifier", "text": "id", "parent": 20, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 38}}, {"id": 22, "type": "identifier", "text": "arg1", "parent": 20, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 43}}, {"id": 23, "type": "unary_expression", "text": "- (_Bool)useBookmarks", "parent": null, "children": [24, 25], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 21}}, {"id": 24, "type": "-", "text": "-", "parent": 23, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 25, "type": "cast_expression", "text": "(_Bool)useBookmarks", "parent": 23, "children": [26, 28], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 21}}, {"id": 26, "type": "type_descriptor", "text": "_Bool", "parent": 25, "children": [27], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 8}}, {"id": 27, "type": "type_identifier", "text": "_Bool", "parent": 26, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 8}}, {"id": 28, "type": "identifier", "text": "useBookmarks", "parent": 25, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 21}}, {"id": 29, "type": "ERROR", "text": "@", "parent": null, "children": [30], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 30, "type": "ERROR", "text": "@", "parent": 29, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 31, "type": "call_expression", "text": "property(readonly, nonatomic)", "parent": null, "children": [32, 33], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 30}}, {"id": 32, "type": "identifier", "text": "property", "parent": 31, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 33, "type": "argument_list", "text": "(readonly, nonatomic)", "parent": 31, "children": [34, 35], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 30}}, {"id": 34, "type": "identifier", "text": "readonly", "parent": 33, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 18}}, {"id": 35, "type": "identifier", "text": "nonatomic", "parent": 33, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 29}}, {"id": 36, "type": "declaration", "text": "MPModelTVEpisode *tvEpisode;", "parent": null, "children": [37, 38], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 59}}, {"id": 37, "type": "type_identifier", "text": "MPModelTVEpisode", "parent": 36, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 47}}, {"id": 38, "type": "pointer_declarator", "text": "*tvEpisode", "parent": 36, "children": [39, 40], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 58}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 49}}, {"id": 40, "type": "identifier", "text": "tvEpisode", "parent": 38, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 58}}, {"id": 41, "type": "unary_expression", "text": "- (id)initWithTVEpisode", "parent": null, "children": [42, 43], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 23}}, {"id": 42, "type": "-", "text": "-", "parent": 41, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 43, "type": "cast_expression", "text": "(id)initWithTVEpisode", "parent": 41, "children": [44, 46], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 23}}, {"id": 44, "type": "type_descriptor", "text": "id", "parent": 43, "children": [45], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 45, "type": "type_identifier", "text": "id", "parent": 44, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 46, "type": "identifier", "text": "initWithTVEpisode", "parent": 43, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 23}}, {"id": 47, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [48, 49], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 32}}, {"id": 48, "type": "identifier", "text": "id", "parent": 47, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 27}}, {"id": 49, "type": "identifier", "text": "arg1", "parent": 47, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 32}}, {"id": 50, "type": "ERROR", "text": "- (id)initWithTVEpisode:(id)", "parent": null, "children": [51, 57], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 28}}, {"id": 51, "type": "unary_expression", "text": "- (id)initWithTVEpisode", "parent": 50, "children": [52, 53], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 23}}, {"id": 52, "type": "-", "text": "-", "parent": 51, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 53, "type": "cast_expression", "text": "(id)initWithTVEpisode", "parent": 51, "children": [54, 56], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 23}}, {"id": 54, "type": "type_descriptor", "text": "id", "parent": 53, "children": [55], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 55, "type": "type_identifier", "text": "id", "parent": 54, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 56, "type": "identifier", "text": "initWithTVEpisode", "parent": 53, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 23}}, {"id": 57, "type": "identifier", "text": "id", "parent": 50, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 27}}, {"id": 58, "type": "declaration", "text": "arg1 mediaItemMetadata:(id)arg2;", "parent": null, "children": [59, 60, 61], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 60}}, {"id": 59, "type": "type_identifier", "text": "arg1", "parent": 58, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 32}}, {"id": 60, "type": "identifier", "text": "mediaItemMetadata", "parent": 58, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 50}}, {"id": 61, "type": "ERROR", "text": ":(id)arg2", "parent": 58, "children": [62, 63], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 59}}, {"id": 62, "type": "identifier", "text": "id", "parent": 61, "children": [], "start_point": {"row": 18, "column": 52}, "end_point": {"row": 18, "column": 54}}, {"id": 63, "type": "identifier", "text": "arg2", "parent": 61, "children": [], "start_point": {"row": 18, "column": 55}, "end_point": {"row": 18, "column": 59}}, {"id": 64, "type": "ERROR", "text": "@", "parent": null, "children": [65], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 65, "type": "ERROR", "text": "@", "parent": 64, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}]}, "node_categories": {"declarations": {"functions": [9], "variables": [5, 36, 58], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [14, 16, 23, 25, 31, 41, 43, 51, 53], "assignments": [], "loops": [], "conditionals": [6, 10, 11, 13, 18, 19, 21, 22, 27, 28, 32, 34, 35, 37, 40, 45, 46, 48, 49, 55, 56, 57, 59, 60, 62, 63], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "TVMusicMPTVEpisodeMediaItem", "text_snippet": "interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"TVMusicMPObjectMediaItem.h\"\n\n@class MPModelTVEpisode;\n\n@interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}\n\n- (id)mediaItemMetadataForProperty:(id)arg1;\t// IMP=0x00000001000917dc\n- (_Bool)useBookmarks;\t// IMP=0x00000001000917d4\n@property(readonly, nonatomic) MPModelTVEpisode *tvEpisode;\n- (id)initWithTVEpisode:(id)arg1;\t// IMP=0x00000001000917b8\n- (id)initWithTVEpisode:(id)arg1 mediaItemMetadata:(id)arg2;\t// IMP=0x0000000100091748\n\n@end\n\n"}
81,083
c
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express // or implied. See the License for the specific language governing permissions and limitations under the License. #pragma once #include <memory> #include "SearchTask.h" namespace milvus { namespace scheduler { class TestTask : public XSearchTask { public: explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label); public: void Load(LoadType type, uint8_t device_id) override; void Execute() override; void Wait(); public: uint64_t load_count_ = 0; uint64_t exec_count_ = 0; bool done_ = false; std::mutex mutex_; std::condition_variable cv_; }; } // namespace scheduler } // namespace milvus
33.94
34
(translation_unit) "// Copyright (C) 2019-2020 Zilliz. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software distributed under the License\n// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n// or implied. See the License for the specific language governing permissions and limitations under the License.\n\n#pragma once\n\n#include <memory>\n\n#include "SearchTask.h"\n\nnamespace milvus {\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n} // namespace scheduler\n} // namespace milvus\n" (comment) "// Copyright (C) 2019-2020 Zilliz. All rights reserved." (comment) "//" (comment) "// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance" (comment) "// with the License. You may obtain a copy of the License at" (comment) "//" (comment) "// http://www.apache.org/licenses/LICENSE-2.0" (comment) "//" (comment) "// Unless required by applicable law or agreed to in writing, software distributed under the License" (comment) "// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express" (comment) "// or implied. See the License for the specific language governing permissions and limitations under the License." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include "SearchTask.h"\n" (#include) "#include" (string_literal) ""SearchTask.h"" (") """ (string_content) "SearchTask.h" (") """ (function_definition) "namespace milvus {\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n} // namespace scheduler\n}" (type_identifier) "namespace" (identifier) "milvus" (compound_statement) "{\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n} // namespace scheduler\n}" ({) "{" (function_definition) "namespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n}" (type_identifier) "namespace" (identifier) "scheduler" (compound_statement) "{\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n}" ({) "{" (function_definition) "class TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n}" (type_identifier) "class" (ERROR) "TestTask : public" (identifier) "TestTask" (:) ":" (identifier) "public" (identifier) "XSearchTask" (compound_statement) "{\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n}" ({) "{" (labeled_statement) "public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);" (statement_identifier) "public" (:) ":" (declaration) "explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);" (type_identifier) "explicit" (function_declarator) "TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label)" (identifier) "TestTask" (parameter_list) "(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label)" (() "(" (parameter_declaration) "const std::shared_ptr<server::Context>& context" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::shared_ptr<server::Context>&" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "server" (:) ":" (:) ":" (identifier) "Context" (>) ">" (&) "&" (identifier) "context" (,) "," (parameter_declaration) "TableFileSchemaPtr& file" (type_identifier) "TableFileSchemaPtr" (ERROR) "&" (&) "&" (identifier) "file" (,) "," (parameter_declaration) "TaskLabelPtr label" (type_identifier) "TaskLabelPtr" (identifier) "label" ()) ")" (;) ";" (labeled_statement) "public:\n void\n Load(LoadType type, uint8_t device_id) override;" (statement_identifier) "public" (:) ":" (ERROR) "void\n Load(LoadType type, uint8_t device_id) override" (primitive_type) "void" (function_declarator) "Load(LoadType type, uint8_t device_id) override" (identifier) "Load" (parameter_list) "(LoadType type, uint8_t device_id)" (() "(" (parameter_declaration) "LoadType type" (type_identifier) "LoadType" (identifier) "type" (,) "," (parameter_declaration) "uint8_t device_id" (primitive_type) "uint8_t" (identifier) "device_id" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;" (primitive_type) "void" (function_declarator) "Execute()" (identifier) "Execute" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;" (type_identifier) "override" (identifier) "" (;) ";" (declaration) "void\n Wait();" (primitive_type) "void" (function_declarator) "Wait()" (identifier) "Wait" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "public:" (type_identifier) "public" (:) ":" (declaration) "uint64_t load_count_ = 0;" (primitive_type) "uint64_t" (init_declarator) "load_count_ = 0" (identifier) "load_count_" (=) "=" (number_literal) "0" (;) ";" (declaration) "uint64_t exec_count_ = 0;" (primitive_type) "uint64_t" (init_declarator) "exec_count_ = 0" (identifier) "exec_count_" (=) "=" (number_literal) "0" (;) ";" (declaration) "bool done_ = false;" (primitive_type) "bool" (init_declarator) "done_ = false" (identifier) "done_" (=) "=" (false) "false" (;) ";" (declaration) "std::mutex mutex_;" (type_identifier) "std" (ERROR) "::mutex" (:) ":" (:) ":" (identifier) "mutex" (identifier) "mutex_" (;) ";" (declaration) "std::condition_variable cv_;" (type_identifier) "std" (ERROR) "::condition_variable" (:) ":" (:) ":" (identifier) "condition_variable" (identifier) "cv_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace scheduler" (}) "}" (comment) "// namespace milvus"
165
8
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.94, "nodes": 95, "errors": 0, "source_hash": "55ab91e8591e7c82b3bcb54a900ecaadf3b232ea9c0967496447f546837bdeb2", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <memory>\n", "parent": null, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<memory>", "parent": 3, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"SearchTask.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"SearchTask.h\"", "parent": 6, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 23}}, {"id": 9, "type": "function_definition", "text": "namespace milvus {\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n} // namespace scheduler\n}", "parent": null, "children": [10, 11], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 9}}, {"id": 11, "type": "identifier", "text": "milvus", "parent": 9, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 16}}, {"id": 12, "type": "function_definition", "text": "namespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 14, "type": "identifier", "text": "scheduler", "parent": 12, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 19}}, {"id": 15, "type": "function_definition", "text": "class TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n}", "parent": 12, "children": [16, 18], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 16, "type": "ERROR", "text": "TestTask : public", "parent": 15, "children": [17], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 23}}, {"id": 17, "type": "identifier", "text": "TestTask", "parent": 16, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 14}}, {"id": 18, "type": "identifier", "text": "XSearchTask", "parent": 15, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 35}}, {"id": 19, "type": "labeled_statement", "text": "public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);", "parent": 15, "children": [20], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 22, "column": 117}}, {"id": 20, "type": "declaration", "text": "explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);", "parent": 19, "children": [21, 22], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 117}}, {"id": 21, "type": "type_identifier", "text": "explicit", "parent": 20, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 22, "type": "function_declarator", "text": "TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label)", "parent": 20, "children": [23, 24], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 116}}, {"id": 23, "type": "identifier", "text": "TestTask", "parent": 22, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 21}}, {"id": 24, "type": "parameter_list", "text": "(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label)", "parent": 22, "children": [25, 34, 37], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 116}}, {"id": 25, "type": "parameter_declaration", "text": "const std::shared_ptr<server::Context>& context", "parent": 24, "children": [26, 27, 33], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 69}}, {"id": 26, "type": "type_identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 27, "type": "ERROR", "text": "::shared_ptr<server::Context>&", "parent": 25, "children": [28, 29, 30, 31, 32], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 61}}, {"id": 28, "type": "identifier", "text": "shared_ptr", "parent": 27, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 43}}, {"id": 29, "type": "<", "text": "<", "parent": 27, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 44}}, {"id": 30, "type": "identifier", "text": "server", "parent": 27, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 50}}, {"id": 31, "type": "identifier", "text": "Context", "parent": 27, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 59}}, {"id": 32, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 22, "column": 59}, "end_point": {"row": 22, "column": 60}}, {"id": 33, "type": "identifier", "text": "context", "parent": 25, "children": [], "start_point": {"row": 22, "column": 62}, "end_point": {"row": 22, "column": 69}}, {"id": 34, "type": "parameter_declaration", "text": "TableFileSchemaPtr& file", "parent": 24, "children": [35, 36], "start_point": {"row": 22, "column": 71}, "end_point": {"row": 22, "column": 95}}, {"id": 35, "type": "type_identifier", "text": "TableFileSchemaPtr", "parent": 34, "children": [], "start_point": {"row": 22, "column": 71}, "end_point": {"row": 22, "column": 89}}, {"id": 36, "type": "identifier", "text": "file", "parent": 34, "children": [], "start_point": {"row": 22, "column": 91}, "end_point": {"row": 22, "column": 95}}, {"id": 37, "type": "parameter_declaration", "text": "TaskLabelPtr label", "parent": 24, "children": [38, 39], "start_point": {"row": 22, "column": 97}, "end_point": {"row": 22, "column": 115}}, {"id": 38, "type": "type_identifier", "text": "TaskLabelPtr", "parent": 37, "children": [], "start_point": {"row": 22, "column": 97}, "end_point": {"row": 22, "column": 109}}, {"id": 39, "type": "identifier", "text": "label", "parent": 37, "children": [], "start_point": {"row": 22, "column": 110}, "end_point": {"row": 22, "column": 115}}, {"id": 40, "type": "labeled_statement", "text": "public:\n void\n Load(LoadType type, uint8_t device_id) override;", "parent": 15, "children": [41], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 26, "column": 52}}, {"id": 41, "type": "ERROR", "text": "void\n Load(LoadType type, uint8_t device_id) override", "parent": 40, "children": [42, 43], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 26, "column": 51}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 43, "type": "function_declarator", "text": "Load(LoadType type, uint8_t device_id) override", "parent": 41, "children": [44, 45, 52], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 51}}, {"id": 44, "type": "identifier", "text": "Load", "parent": 43, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 8}}, {"id": 45, "type": "parameter_list", "text": "(LoadType type, uint8_t device_id)", "parent": 43, "children": [46, 49], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 42}}, {"id": 46, "type": "parameter_declaration", "text": "LoadType type", "parent": 45, "children": [47, 48], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 22}}, {"id": 47, "type": "type_identifier", "text": "LoadType", "parent": 46, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 17}}, {"id": 48, "type": "identifier", "text": "type", "parent": 46, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 22}}, {"id": 49, "type": "parameter_declaration", "text": "uint8_t device_id", "parent": 45, "children": [50, 51], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 41}}, {"id": 50, "type": "primitive_type", "text": "uint8_t", "parent": 49, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 31}}, {"id": 51, "type": "identifier", "text": "device_id", "parent": 49, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 41}}, {"id": 52, "type": "identifier", "text": "override", "parent": 43, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 51}}, {"id": 53, "type": "ERROR", "text": "void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;", "parent": 15, "children": [54, 55, 58, 61, 66, 67, 73, 79, 85, 90], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 40, "column": 32}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 55, "type": "function_declarator", "text": "Execute()", "parent": 53, "children": [56, 57], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 13}}, {"id": 56, "type": "identifier", "text": "Execute", "parent": 55, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 13}}, {"id": 58, "type": "declaration", "text": "override;", "parent": 53, "children": [59, 60], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 23}}, {"id": 59, "type": "type_identifier", "text": "override", "parent": 58, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 22}}, {"id": 60, "type": "identifier", "text": "", "parent": 58, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 22}}, {"id": 61, "type": "declaration", "text": "void\n Wait();", "parent": 53, "children": [62, 63], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 62, "type": "primitive_type", "text": "void", "parent": 61, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 63, "type": "function_declarator", "text": "Wait()", "parent": 61, "children": [64, 65], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 64, "type": "identifier", "text": "Wait", "parent": 63, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 8}}, {"id": 65, "type": "parameter_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 10}}, {"id": 66, "type": "ERROR", "text": "public:", "parent": 53, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 8}}, {"id": 67, "type": "declaration", "text": "uint64_t load_count_ = 0;", "parent": 53, "children": [68, 69], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 29}}, {"id": 68, "type": "primitive_type", "text": "uint64_t", "parent": 67, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 12}}, {"id": 69, "type": "init_declarator", "text": "load_count_ = 0", "parent": 67, "children": [70, 71, 72], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 28}}, {"id": 70, "type": "identifier", "text": "load_count_", "parent": 69, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 24}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 26}}, {"id": 72, "type": "number_literal", "text": "0", "parent": 69, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 73, "type": "declaration", "text": "uint64_t exec_count_ = 0;", "parent": 53, "children": [74, 75], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 29}}, {"id": 74, "type": "primitive_type", "text": "uint64_t", "parent": 73, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 75, "type": "init_declarator", "text": "exec_count_ = 0", "parent": 73, "children": [76, 77, 78], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 28}}, {"id": 76, "type": "identifier", "text": "exec_count_", "parent": 75, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 24}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 26}}, {"id": 78, "type": "number_literal", "text": "0", "parent": 75, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 28}}, {"id": 79, "type": "declaration", "text": "bool done_ = false;", "parent": 53, "children": [80, 81], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 23}}, {"id": 80, "type": "primitive_type", "text": "bool", "parent": 79, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 81, "type": "init_declarator", "text": "done_ = false", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 22}}, {"id": 82, "type": "identifier", "text": "done_", "parent": 81, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 14}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 84, "type": "false", "text": "false", "parent": 81, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 22}}, {"id": 85, "type": "declaration", "text": "std::mutex mutex_;", "parent": 53, "children": [86, 87, 89], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 22}}, {"id": 86, "type": "type_identifier", "text": "std", "parent": 85, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 87, "type": "ERROR", "text": "::mutex", "parent": 85, "children": [88], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 14}}, {"id": 88, "type": "identifier", "text": "mutex", "parent": 87, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 14}}, {"id": 89, "type": "identifier", "text": "mutex_", "parent": 85, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 21}}, {"id": 90, "type": "declaration", "text": "std::condition_variable cv_;", "parent": 53, "children": [91, 92, 94], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 32}}, {"id": 91, "type": "type_identifier", "text": "std", "parent": 90, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 92, "type": "ERROR", "text": "::condition_variable", "parent": 90, "children": [93], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 27}}, {"id": 93, "type": "identifier", "text": "condition_variable", "parent": 92, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 27}}, {"id": 94, "type": "identifier", "text": "cv_", "parent": 90, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 31}}]}, "node_categories": {"declarations": {"functions": [9, 12, 15, 22, 43, 55, 63], "variables": [20, 25, 34, 37, 46, 49, 58, 61, 67, 73, 79, 85, 90], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 14, 17, 18, 21, 23, 26, 28, 30, 31, 33, 35, 36, 38, 39, 44, 47, 48, 51, 52, 56, 59, 60, 64, 70, 76, 82, 86, 88, 89, 91, 93, 94], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 72, 78], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "TestTask", "text_snippet": "namespace milvus {\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explici"}, {"node_id": 12, "universal_type": "function", "name": "TestTask", "text_snippet": "namespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const st"}, {"node_id": 15, "universal_type": "function", "name": "TestTask", "text_snippet": "class TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::C"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr lab"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "Load(LoadType type, uint8_t device_id) override"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "Execute()"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "Wait()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <memory>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"SearchTask.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// Copyright (C) 2019-2020 Zilliz. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software distributed under the License\n// is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n// or implied. See the License for the specific language governing permissions and limitations under the License.\n\n#pragma once\n\n#include <memory>\n\n#include \"SearchTask.h\"\n\nnamespace milvus {\nnamespace scheduler {\n\nclass TestTask : public XSearchTask {\n public:\n explicit TestTask(const std::shared_ptr<server::Context>& context, TableFileSchemaPtr& file, TaskLabelPtr label);\n\n public:\n void\n Load(LoadType type, uint8_t device_id) override;\n\n void\n Execute() override;\n\n void\n Wait();\n\n public:\n uint64_t load_count_ = 0;\n uint64_t exec_count_ = 0;\n\n bool done_ = false;\n std::mutex mutex_;\n std::condition_variable cv_;\n};\n\n} // namespace scheduler\n} // namespace milvus\n"}
81,084
c
#ifndef CONTEXT_H_ #define CONTEXT_H_ struct context; struct context *ContextCreate(const char *, const char *, const char *); void ContextFree(struct context *); const char *ContextAuth(struct context *ctx); int ContextEmpty(struct context *ctx); double ContextGetAltitude(struct context *, double, double); #endif // CONTEXT_H_
35.67
9
(translation_unit) "#ifndef CONTEXT_H_\n#define CONTEXT_H_\n\nstruct context;\nstruct context *ContextCreate(const char *, const char *, const char *);\nvoid ContextFree(struct context *);\nconst char *ContextAuth(struct context *ctx);\nint ContextEmpty(struct context *ctx);\ndouble ContextGetAltitude(struct context *, double, double);\n\n#endif // CONTEXT_H_\n" (preproc_ifdef) "#ifndef CONTEXT_H_\n#define CONTEXT_H_\n\nstruct context;\nstruct context *ContextCreate(const char *, const char *, const char *);\nvoid ContextFree(struct context *);\nconst char *ContextAuth(struct context *ctx);\nint ContextEmpty(struct context *ctx);\ndouble ContextGetAltitude(struct context *, double, double);\n\n#endif" (#ifndef) "#ifndef" (identifier) "CONTEXT_H_" (preproc_def) "#define CONTEXT_H_\n" (#define) "#define" (identifier) "CONTEXT_H_" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (;) ";" (declaration) "struct context *ContextCreate(const char *, const char *, const char *);" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (pointer_declarator) "*ContextCreate(const char *, const char *, const char *)" (*) "*" (function_declarator) "ContextCreate(const char *, const char *, const char *)" (identifier) "ContextCreate" (parameter_list) "(const char *, const char *, const char *)" (() "(" (parameter_declaration) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void ContextFree(struct context *);" (primitive_type) "void" (function_declarator) "ContextFree(struct context *)" (identifier) "ContextFree" (parameter_list) "(struct context *)" (() "(" (parameter_declaration) "struct context *" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "const char *ContextAuth(struct context *ctx);" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ContextAuth(struct context *ctx)" (*) "*" (function_declarator) "ContextAuth(struct context *ctx)" (identifier) "ContextAuth" (parameter_list) "(struct context *ctx)" (() "(" (parameter_declaration) "struct context *ctx" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" ()) ")" (;) ";" (declaration) "int ContextEmpty(struct context *ctx);" (primitive_type) "int" (function_declarator) "ContextEmpty(struct context *ctx)" (identifier) "ContextEmpty" (parameter_list) "(struct context *ctx)" (() "(" (parameter_declaration) "struct context *ctx" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (pointer_declarator) "*ctx" (*) "*" (identifier) "ctx" ()) ")" (;) ";" (declaration) "double ContextGetAltitude(struct context *, double, double);" (primitive_type) "double" (function_declarator) "ContextGetAltitude(struct context *, double, double)" (identifier) "ContextGetAltitude" (parameter_list) "(struct context *, double, double)" (() "(" (parameter_declaration) "struct context *" (struct_specifier) "struct context" (struct) "struct" (type_identifier) "context" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "double" (primitive_type) "double" (,) "," (parameter_declaration) "double" (primitive_type) "double" ()) ")" (;) ";" (#endif) "#endif" (comment) "// CONTEXT_H_"
113
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.67, "nodes": 83, "errors": 0, "source_hash": "4588f2f32421b54a35afd4d2b0b829037fc315c128e14b2af7c5c157cd2752bf", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CONTEXT_H_\n#define CONTEXT_H_\n\nstruct context;\nstruct context *ContextCreate(const char *, const char *, const char *);\nvoid ContextFree(struct context *);\nconst char *ContextAuth(struct context *ctx);\nint ContextEmpty(struct context *ctx);\ndouble ContextGetAltitude(struct context *, double, double);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 30, 41, 55, 67, 82], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "CONTEXT_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define CONTEXT_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "CONTEXT_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "struct_specifier", "text": "struct context", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 14}}, {"id": 7, "type": "struct", "text": "struct", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "type_identifier", "text": "context", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 14}}, {"id": 9, "type": "declaration", "text": "struct context *ContextCreate(const char *, const char *, const char *);", "parent": 0, "children": [10, 13], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 72}}, {"id": 10, "type": "struct_specifier", "text": "struct context", "parent": 9, "children": [11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 14}}, {"id": 11, "type": "struct", "text": "struct", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 12, "type": "type_identifier", "text": "context", "parent": 10, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 14}}, {"id": 13, "type": "pointer_declarator", "text": "*ContextCreate(const char *, const char *, const char *)", "parent": 9, "children": [14, 15], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 71}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 16}}, {"id": 15, "type": "function_declarator", "text": "ContextCreate(const char *, const char *, const char *)", "parent": 13, "children": [16, 17], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 71}}, {"id": 16, "type": "identifier", "text": "ContextCreate", "parent": 15, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 29}}, {"id": 17, "type": "parameter_list", "text": "(const char *, const char *, const char *)", "parent": 15, "children": [18, 22, 26], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 71}}, {"id": 18, "type": "parameter_declaration", "text": "const char *", "parent": 17, "children": [19, 20], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 42}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 40}}, {"id": 20, "type": "abstract_pointer_declarator", "text": "*", "parent": 18, "children": [21], "start_point": {"row": 4, "column": 41}, "end_point": {"row": 4, "column": 42}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 4, "column": 41}, "end_point": {"row": 4, "column": 42}}, {"id": 22, "type": "parameter_declaration", "text": "const char *", "parent": 17, "children": [23, 24], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 56}}, {"id": 23, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 4, "column": 50}, "end_point": {"row": 4, "column": 54}}, {"id": 24, "type": "abstract_pointer_declarator", "text": "*", "parent": 22, "children": [25], "start_point": {"row": 4, "column": 55}, "end_point": {"row": 4, "column": 56}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 4, "column": 55}, "end_point": {"row": 4, "column": 56}}, {"id": 26, "type": "parameter_declaration", "text": "const char *", "parent": 17, "children": [27, 28], "start_point": {"row": 4, "column": 58}, "end_point": {"row": 4, "column": 70}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 26, "children": [], "start_point": {"row": 4, "column": 64}, "end_point": {"row": 4, "column": 68}}, {"id": 28, "type": "abstract_pointer_declarator", "text": "*", "parent": 26, "children": [29], "start_point": {"row": 4, "column": 69}, "end_point": {"row": 4, "column": 70}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 4, "column": 69}, "end_point": {"row": 4, "column": 70}}, {"id": 30, "type": "declaration", "text": "void ContextFree(struct context *);", "parent": 0, "children": [31, 32], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 35}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 30, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 32, "type": "function_declarator", "text": "ContextFree(struct context *)", "parent": 30, "children": [33, 34], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 34}}, {"id": 33, "type": "identifier", "text": "ContextFree", "parent": 32, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 16}}, {"id": 34, "type": "parameter_list", "text": "(struct context *)", "parent": 32, "children": [35], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 34}}, {"id": 35, "type": "parameter_declaration", "text": "struct context *", "parent": 34, "children": [36, 39], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 33}}, {"id": 36, "type": "struct_specifier", "text": "struct context", "parent": 35, "children": [37, 38], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 31}}, {"id": 37, "type": "struct", "text": "struct", "parent": 36, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 23}}, {"id": 38, "type": "type_identifier", "text": "context", "parent": 36, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 31}}, {"id": 39, "type": "abstract_pointer_declarator", "text": "*", "parent": 35, "children": [40], "start_point": {"row": 5, "column": 32}, "end_point": {"row": 5, "column": 33}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 5, "column": 32}, "end_point": {"row": 5, "column": 33}}, {"id": 41, "type": "declaration", "text": "const char *ContextAuth(struct context *ctx);", "parent": 0, "children": [42, 43], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 45}}, {"id": 42, "type": "primitive_type", "text": "char", "parent": 41, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 10}}, {"id": 43, "type": "pointer_declarator", "text": "*ContextAuth(struct context *ctx)", "parent": 41, "children": [44, 45], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 44}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 12}}, {"id": 45, "type": "function_declarator", "text": "ContextAuth(struct context *ctx)", "parent": 43, "children": [46, 47], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 44}}, {"id": 46, "type": "identifier", "text": "ContextAuth", "parent": 45, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 23}}, {"id": 47, "type": "parameter_list", "text": "(struct context *ctx)", "parent": 45, "children": [48], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 44}}, {"id": 48, "type": "parameter_declaration", "text": "struct context *ctx", "parent": 47, "children": [49, 52], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 43}}, {"id": 49, "type": "struct_specifier", "text": "struct context", "parent": 48, "children": [50, 51], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 38}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 30}}, {"id": 51, "type": "type_identifier", "text": "context", "parent": 49, "children": [], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 38}}, {"id": 52, "type": "pointer_declarator", "text": "*ctx", "parent": 48, "children": [53, 54], "start_point": {"row": 6, "column": 39}, "end_point": {"row": 6, "column": 43}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 6, "column": 39}, "end_point": {"row": 6, "column": 40}}, {"id": 54, "type": "identifier", "text": "ctx", "parent": 52, "children": [], "start_point": {"row": 6, "column": 40}, "end_point": {"row": 6, "column": 43}}, {"id": 55, "type": "declaration", "text": "int ContextEmpty(struct context *ctx);", "parent": 0, "children": [56, 57], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 38}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 3}}, {"id": 57, "type": "function_declarator", "text": "ContextEmpty(struct context *ctx)", "parent": 55, "children": [58, 59], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 37}}, {"id": 58, "type": "identifier", "text": "ContextEmpty", "parent": 57, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 16}}, {"id": 59, "type": "parameter_list", "text": "(struct context *ctx)", "parent": 57, "children": [60], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 37}}, {"id": 60, "type": "parameter_declaration", "text": "struct context *ctx", "parent": 59, "children": [61, 64], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 36}}, {"id": 61, "type": "struct_specifier", "text": "struct context", "parent": 60, "children": [62, 63], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 31}}, {"id": 62, "type": "struct", "text": "struct", "parent": 61, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 23}}, {"id": 63, "type": "type_identifier", "text": "context", "parent": 61, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 31}}, {"id": 64, "type": "pointer_declarator", "text": "*ctx", "parent": 60, "children": [65, 66], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 36}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 33}}, {"id": 66, "type": "identifier", "text": "ctx", "parent": 64, "children": [], "start_point": {"row": 7, "column": 33}, "end_point": {"row": 7, "column": 36}}, {"id": 67, "type": "declaration", "text": "double ContextGetAltitude(struct context *, double, double);", "parent": 0, "children": [68, 69], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 60}}, {"id": 68, "type": "primitive_type", "text": "double", "parent": 67, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 69, "type": "function_declarator", "text": "ContextGetAltitude(struct context *, double, double)", "parent": 67, "children": [70, 71], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 59}}, {"id": 70, "type": "identifier", "text": "ContextGetAltitude", "parent": 69, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 25}}, {"id": 71, "type": "parameter_list", "text": "(struct context *, double, double)", "parent": 69, "children": [72, 78, 80], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 59}}, {"id": 72, "type": "parameter_declaration", "text": "struct context *", "parent": 71, "children": [73, 76], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 42}}, {"id": 73, "type": "struct_specifier", "text": "struct context", "parent": 72, "children": [74, 75], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 40}}, {"id": 74, "type": "struct", "text": "struct", "parent": 73, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 32}}, {"id": 75, "type": "type_identifier", "text": "context", "parent": 73, "children": [], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 40}}, {"id": 76, "type": "abstract_pointer_declarator", "text": "*", "parent": 72, "children": [77], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 42}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 42}}, {"id": 78, "type": "parameter_declaration", "text": "double", "parent": 71, "children": [79], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 50}}, {"id": 79, "type": "primitive_type", "text": "double", "parent": 78, "children": [], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 50}}, {"id": 80, "type": "parameter_declaration", "text": "double", "parent": 71, "children": [81], "start_point": {"row": 8, "column": 52}, "end_point": {"row": 8, "column": 58}}, {"id": 81, "type": "primitive_type", "text": "double", "parent": 80, "children": [], "start_point": {"row": 8, "column": 52}, "end_point": {"row": 8, "column": 58}}, {"id": 82, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 32, 45, 57, 69], "variables": [9, 18, 22, 26, 30, 35, 41, 48, 55, 60, 67, 72, 78, 80], "classes": [6, 7, 10, 11, 36, 37, 49, 50, 61, 62, 73, 74], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 33, 38, 46, 51, 54, 58, 63, 66, 70, 75, 82], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "ContextCreate(const char *, const char *, const char *)"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "ContextFree(struct context *)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "ContextAuth(struct context *ctx)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "ContextEmpty(struct context *ctx)"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "ContextGetAltitude(struct context *, double, double)"}], "class_declarations": [{"node_id": 6, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 7, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 10, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 11, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 36, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 49, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 61, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 73, "universal_type": "class", "name": "context", "text_snippet": "struct context"}, {"node_id": 74, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef CONTEXT_H_\n#define CONTEXT_H_\n\nstruct context;\nstruct context *ContextCreate(const char *, const char *, const char *);\nvoid ContextFree(struct context *);\nconst char *ContextAuth(struct context *ctx);\nint ContextEmpty(struct context *ctx);\ndouble ContextGetAltitude(struct context *, double, double);\n\n#endif // CONTEXT_H_\n"}
81,085
c
// Time: O(m + n) // Space: O(1) /** * Definition for singly-linked list. * struct ListNode{ * int val; * struct ListNode *next; * }; */ struct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){ if(l1 == NULL) return l2; if(l2 == NULL) return l1; struct ListNode *pa, *pb, *pc, *l3; pa = l1; pb = l2; if(pa->val <= pb->val){ l3 = pc = pa; pa = pa->next; }else{ l3 = pc = pb; pb = pb->next; } while(pa && pb){ if(pa->val <= pb->val){ pc->next = pa; pc = pa; pa = pa->next; }else{ pc->next = pb; pc = pb; pb = pb->next; } } pc->next = pa?pa : pb; return l3; }
16.32
37
(translation_unit) "// Time: O(m + n)\n// Space: O(1)\n\n/**\n * Definition for singly-linked list.\n * struct ListNode{\n * int val;\n * struct ListNode *next;\n * };\n */\nstruct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n if(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n struct ListNode *pa, *pb, *pc, *l3;\n pa = l1;\n pb = l2;\n\n if(pa->val <= pb->val){\n l3 = pc = pa;\n pa = pa->next;\n }else{\n l3 = pc = pb;\n pb = pb->next;\n }\n\n while(pa && pb){\n if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }\n }\n \n pc->next = pa?pa : pb;\n return l3;\n}\n" (comment) "// Time: O(m + n)" (comment) "// Space: O(1)" (comment) "/**\n * Definition for singly-linked list.\n * struct ListNode{\n * int val;\n * struct ListNode *next;\n * };\n */" (function_definition) "struct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n if(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n struct ListNode *pa, *pb, *pc, *l3;\n pa = l1;\n pb = l2;\n\n if(pa->val <= pb->val){\n l3 = pc = pa;\n pa = pa->next;\n }else{\n l3 = pc = pb;\n pb = pb->next;\n }\n\n while(pa && pb){\n if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }\n }\n \n pc->next = pa?pa : pb;\n return l3;\n}" (struct_specifier) "struct ListNode" (struct) "struct" (type_identifier) "ListNode" (pointer_declarator) "* mergeTwoLists(struct ListNode* l1, strust ListNode* l2)" (*) "*" (function_declarator) "mergeTwoLists(struct ListNode* l1, strust ListNode* l2)" (identifier) "mergeTwoLists" (parameter_list) "(struct ListNode* l1, strust ListNode* l2)" (() "(" (parameter_declaration) "struct ListNode* l1" (struct_specifier) "struct ListNode" (struct) "struct" (type_identifier) "ListNode" (pointer_declarator) "* l1" (*) "*" (identifier) "l1" (,) "," (parameter_declaration) "strust ListNode* l2" (type_identifier) "strust" (ERROR) "ListNode" (identifier) "ListNode" (pointer_declarator) "* l2" (*) "*" (identifier) "l2" ()) ")" (compound_statement) "{\n if(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n struct ListNode *pa, *pb, *pc, *l3;\n pa = l1;\n pb = l2;\n\n if(pa->val <= pb->val){\n l3 = pc = pa;\n pa = pa->next;\n }else{\n l3 = pc = pb;\n pb = pb->next;\n }\n\n while(pa && pb){\n if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }\n }\n \n pc->next = pa?pa : pb;\n return l3;\n}" ({) "{" (if_statement) "if(l1 == NULL) return l2;" (if) "if" (parenthesized_expression) "(l1 == NULL)" (() "(" (binary_expression) "l1 == NULL" (identifier) "l1" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return l2;" (return) "return" (identifier) "l2" (;) ";" (if_statement) "if(l2 == NULL) return l1;" (if) "if" (parenthesized_expression) "(l2 == NULL)" (() "(" (binary_expression) "l2 == NULL" (identifier) "l2" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return l1;" (return) "return" (identifier) "l1" (;) ";" (declaration) "struct ListNode *pa, *pb, *pc, *l3;" (struct_specifier) "struct ListNode" (struct) "struct" (type_identifier) "ListNode" (pointer_declarator) "*pa" (*) "*" (identifier) "pa" (,) "," (pointer_declarator) "*pb" (*) "*" (identifier) "pb" (,) "," (pointer_declarator) "*pc" (*) "*" (identifier) "pc" (,) "," (pointer_declarator) "*l3" (*) "*" (identifier) "l3" (;) ";" (expression_statement) "pa = l1;" (assignment_expression) "pa = l1" (identifier) "pa" (=) "=" (identifier) "l1" (;) ";" (expression_statement) "pb = l2;" (assignment_expression) "pb = l2" (identifier) "pb" (=) "=" (identifier) "l2" (;) ";" (if_statement) "if(pa->val <= pb->val){\n l3 = pc = pa;\n pa = pa->next;\n }else{\n l3 = pc = pb;\n pb = pb->next;\n }" (if) "if" (parenthesized_expression) "(pa->val <= pb->val)" (() "(" (binary_expression) "pa->val <= pb->val" (field_expression) "pa->val" (identifier) "pa" (->) "->" (field_identifier) "val" (<=) "<=" (field_expression) "pb->val" (identifier) "pb" (->) "->" (field_identifier) "val" ()) ")" (compound_statement) "{\n l3 = pc = pa;\n pa = pa->next;\n }" ({) "{" (expression_statement) "l3 = pc = pa;" (assignment_expression) "l3 = pc = pa" (identifier) "l3" (=) "=" (assignment_expression) "pc = pa" (identifier) "pc" (=) "=" (identifier) "pa" (;) ";" (expression_statement) "pa = pa->next;" (assignment_expression) "pa = pa->next" (identifier) "pa" (=) "=" (field_expression) "pa->next" (identifier) "pa" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (else_clause) "else{\n l3 = pc = pb;\n pb = pb->next;\n }" (else) "else" (compound_statement) "{\n l3 = pc = pb;\n pb = pb->next;\n }" ({) "{" (expression_statement) "l3 = pc = pb;" (assignment_expression) "l3 = pc = pb" (identifier) "l3" (=) "=" (assignment_expression) "pc = pb" (identifier) "pc" (=) "=" (identifier) "pb" (;) ";" (expression_statement) "pb = pb->next;" (assignment_expression) "pb = pb->next" (identifier) "pb" (=) "=" (field_expression) "pb->next" (identifier) "pb" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (while_statement) "while(pa && pb){\n if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }\n }" (while) "while" (parenthesized_expression) "(pa && pb)" (() "(" (binary_expression) "pa && pb" (identifier) "pa" (&&) "&&" (identifier) "pb" ()) ")" (compound_statement) "{\n if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }\n }" ({) "{" (if_statement) "if(pa->val <= pb->val){\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }" (if) "if" (parenthesized_expression) "(pa->val <= pb->val)" (() "(" (binary_expression) "pa->val <= pb->val" (field_expression) "pa->val" (identifier) "pa" (->) "->" (field_identifier) "val" (<=) "<=" (field_expression) "pb->val" (identifier) "pb" (->) "->" (field_identifier) "val" ()) ")" (compound_statement) "{\n pc->next = pa;\n pc = pa;\n pa = pa->next;\n }" ({) "{" (expression_statement) "pc->next = pa;" (assignment_expression) "pc->next = pa" (field_expression) "pc->next" (identifier) "pc" (->) "->" (field_identifier) "next" (=) "=" (identifier) "pa" (;) ";" (expression_statement) "pc = pa;" (assignment_expression) "pc = pa" (identifier) "pc" (=) "=" (identifier) "pa" (;) ";" (expression_statement) "pa = pa->next;" (assignment_expression) "pa = pa->next" (identifier) "pa" (=) "=" (field_expression) "pa->next" (identifier) "pa" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (else_clause) "else{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }" (else) "else" (compound_statement) "{\n pc->next = pb;\n pc = pb;\n pb = pb->next;\n }" ({) "{" (expression_statement) "pc->next = pb;" (assignment_expression) "pc->next = pb" (field_expression) "pc->next" (identifier) "pc" (->) "->" (field_identifier) "next" (=) "=" (identifier) "pb" (;) ";" (expression_statement) "pc = pb;" (assignment_expression) "pc = pb" (identifier) "pc" (=) "=" (identifier) "pb" (;) ";" (expression_statement) "pb = pb->next;" (assignment_expression) "pb = pb->next" (identifier) "pb" (=) "=" (field_expression) "pb->next" (identifier) "pb" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (}) "}" (expression_statement) "pc->next = pa?pa : pb;" (assignment_expression) "pc->next = pa?pa : pb" (field_expression) "pc->next" (identifier) "pc" (->) "->" (field_identifier) "next" (=) "=" (conditional_expression) "pa?pa : pb" (identifier) "pa" (?) "?" (identifier) "pa" (:) ":" (identifier) "pb" (;) ";" (return_statement) "return l3;" (return) "return" (identifier) "l3" (;) ";" (}) "}"
253
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.32, "nodes": 163, "errors": 0, "source_hash": "0bda37681517a1f1e9ab116caf2e960cb98244d40ccef64377ffc29c28edb909", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "struct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n\tif(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n struct ListNode *pa, *pb, *pc, *l3;\n\tpa = l1;\n\tpb = l2;\n\n\tif(pa->val <= pb->val){\n\t\tl3 = pc = pa;\n\t\tpa = pa->next;\n\t}else{\n\t\tl3 = pc = pb;\n\t\tpb = pb->next;\n\t}\n\n\twhile(pa && pb){\n\t\tif(pa->val <= pb->val){\n\t\t\tpc->next = pa;\n\t\t\tpc = pa;\n\t\t\tpa = pa->next;\n\t\t}else{\n\t\t\tpc->next = pb;\n\t\t\tpc = pb;\n\t\t\tpb = pb->next;\n\t\t}\n\t}\n\t\n\tpc->next = pa?pa : pb;\n\treturn l3;\n}", "parent": null, "children": [1, 4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 1, "type": "struct_specifier", "text": "struct ListNode", "parent": 0, "children": [2, 3], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 15}}, {"id": 2, "type": "struct", "text": "struct", "parent": 1, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 3, "type": "type_identifier", "text": "ListNode", "parent": 1, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 15}}, {"id": 4, "type": "pointer_declarator", "text": "* mergeTwoLists(struct ListNode* l1, strust ListNode* l2)", "parent": 0, "children": [5, 6], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 72}}, {"id": 5, "type": "*", "text": "*", "parent": 4, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 6, "type": "function_declarator", "text": "mergeTwoLists(struct ListNode* l1, strust ListNode* l2)", "parent": 4, "children": [7, 8], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 72}}, {"id": 7, "type": "identifier", "text": "mergeTwoLists", "parent": 6, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 30}}, {"id": 8, "type": "parameter_list", "text": "(struct ListNode* l1, strust ListNode* l2)", "parent": 6, "children": [9, 16], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 72}}, {"id": 9, "type": "parameter_declaration", "text": "struct ListNode* l1", "parent": 8, "children": [10, 13], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 50}}, {"id": 10, "type": "struct_specifier", "text": "struct ListNode", "parent": 9, "children": [11, 12], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 46}}, {"id": 11, "type": "struct", "text": "struct", "parent": 10, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 37}}, {"id": 12, "type": "type_identifier", "text": "ListNode", "parent": 10, "children": [], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 46}}, {"id": 13, "type": "pointer_declarator", "text": "* l1", "parent": 9, "children": [14, 15], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 50}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 47}}, {"id": 15, "type": "identifier", "text": "l1", "parent": 13, "children": [], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 50}}, {"id": 16, "type": "parameter_declaration", "text": "strust ListNode* l2", "parent": 8, "children": [17, 18, 20], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 71}}, {"id": 17, "type": "type_identifier", "text": "strust", "parent": 16, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 58}}, {"id": 18, "type": "ERROR", "text": "ListNode", "parent": 16, "children": [19], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 67}}, {"id": 19, "type": "identifier", "text": "ListNode", "parent": 18, "children": [], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 67}}, {"id": 20, "type": "pointer_declarator", "text": "* l2", "parent": 16, "children": [21, 22], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 71}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 68}}, {"id": 22, "type": "identifier", "text": "l2", "parent": 20, "children": [], "start_point": {"row": 10, "column": 69}, "end_point": {"row": 10, "column": 71}}, {"id": 23, "type": "if_statement", "text": "if(l1 == NULL) return l2;", "parent": 0, "children": [24, 30], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 26}}, {"id": 24, "type": "parenthesized_expression", "text": "(l1 == NULL)", "parent": 23, "children": [25], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 15}}, {"id": 25, "type": "binary_expression", "text": "l1 == NULL", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 26, "type": "identifier", "text": "l1", "parent": 25, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 6}}, {"id": 27, "type": "==", "text": "==", "parent": 25, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 9}}, {"id": 28, "type": "null", "text": "NULL", "parent": 25, "children": [29], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 29, "type": "NULL", "text": "NULL", "parent": 28, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 30, "type": "return_statement", "text": "return l2;", "parent": 23, "children": [31], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 26}}, {"id": 31, "type": "identifier", "text": "l2", "parent": 30, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 25}}, {"id": 32, "type": "if_statement", "text": "if(l2 == NULL) return l1;", "parent": 0, "children": [33, 39], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 29}}, {"id": 33, "type": "parenthesized_expression", "text": "(l2 == NULL)", "parent": 32, "children": [34], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 18}}, {"id": 34, "type": "binary_expression", "text": "l2 == NULL", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 17}}, {"id": 35, "type": "identifier", "text": "l2", "parent": 34, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 9}}, {"id": 36, "type": "==", "text": "==", "parent": 34, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 12}}, {"id": 37, "type": "null", "text": "NULL", "parent": 34, "children": [38], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 38, "type": "NULL", "text": "NULL", "parent": 37, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 39, "type": "return_statement", "text": "return l1;", "parent": 32, "children": [40], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 29}}, {"id": 40, "type": "identifier", "text": "l1", "parent": 39, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 28}}, {"id": 41, "type": "declaration", "text": "struct ListNode *pa, *pb, *pc, *l3;", "parent": 0, "children": [42, 45, 48, 51, 54], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 39}}, {"id": 42, "type": "struct_specifier", "text": "struct ListNode", "parent": 41, "children": [43, 44], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 19}}, {"id": 43, "type": "struct", "text": "struct", "parent": 42, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 44, "type": "type_identifier", "text": "ListNode", "parent": 42, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 45, "type": "pointer_declarator", "text": "*pa", "parent": 41, "children": [46, 47], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 23}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 47, "type": "identifier", "text": "pa", "parent": 45, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 23}}, {"id": 48, "type": "pointer_declarator", "text": "*pb", "parent": 41, "children": [49, 50], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 28}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 26}}, {"id": 50, "type": "identifier", "text": "pb", "parent": 48, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 28}}, {"id": 51, "type": "pointer_declarator", "text": "*pc", "parent": 41, "children": [52, 53], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 33}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 53, "type": "identifier", "text": "pc", "parent": 51, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 33}}, {"id": 54, "type": "pointer_declarator", "text": "*l3", "parent": 41, "children": [55, 56], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 38}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 36}}, {"id": 56, "type": "identifier", "text": "l3", "parent": 54, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 38}}, {"id": 57, "type": "assignment_expression", "text": "pa = l1", "parent": 0, "children": [58, 59, 60], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 58, "type": "identifier", "text": "pa", "parent": 57, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 3}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 5}}, {"id": 60, "type": "identifier", "text": "l1", "parent": 57, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 8}}, {"id": 61, "type": "assignment_expression", "text": "pb = l2", "parent": 0, "children": [62, 63, 64], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 8}}, {"id": 62, "type": "identifier", "text": "pb", "parent": 61, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 3}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 5}}, {"id": 64, "type": "identifier", "text": "l2", "parent": 61, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 8}}, {"id": 65, "type": "if_statement", "text": "if(pa->val <= pb->val){\n\t\tl3 = pc = pa;\n\t\tpa = pa->next;\n\t}else{\n\t\tl3 = pc = pb;\n\t\tpb = pb->next;\n\t}", "parent": 0, "children": [66, 88], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 23, "column": 2}}, {"id": 66, "type": "parenthesized_expression", "text": "(pa->val <= pb->val)", "parent": 65, "children": [67], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 23}}, {"id": 67, "type": "binary_expression", "text": "pa->val <= pb->val", "parent": 66, "children": [68, 71, 72], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 22}}, {"id": 68, "type": "field_expression", "text": "pa->val", "parent": 67, "children": [69, 70], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 69, "type": "identifier", "text": "pa", "parent": 68, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 6}}, {"id": 70, "type": "field_identifier", "text": "val", "parent": 68, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 71, "type": "<=", "text": "<=", "parent": 67, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 14}}, {"id": 72, "type": "field_expression", "text": "pb->val", "parent": 67, "children": [73, 74], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 22}}, {"id": 73, "type": "identifier", "text": "pb", "parent": 72, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 17}}, {"id": 74, "type": "field_identifier", "text": "val", "parent": 72, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 22}}, {"id": 75, "type": "assignment_expression", "text": "l3 = pc = pa", "parent": 65, "children": [76, 77, 78], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 14}}, {"id": 76, "type": "identifier", "text": "l3", "parent": 75, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 4}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 6}}, {"id": 78, "type": "assignment_expression", "text": "pc = pa", "parent": 75, "children": [79, 80, 81], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 14}}, {"id": 79, "type": "identifier", "text": "pc", "parent": 78, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 9}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 81, "type": "identifier", "text": "pa", "parent": 78, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 14}}, {"id": 82, "type": "assignment_expression", "text": "pa = pa->next", "parent": 65, "children": [83, 84, 85], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 15}}, {"id": 83, "type": "identifier", "text": "pa", "parent": 82, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 4}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 6}}, {"id": 85, "type": "field_expression", "text": "pa->next", "parent": 82, "children": [86, 87], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 15}}, {"id": 86, "type": "identifier", "text": "pa", "parent": 85, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 9}}, {"id": 87, "type": "field_identifier", "text": "next", "parent": 85, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 88, "type": "else_clause", "text": "else{\n\t\tl3 = pc = pb;\n\t\tpb = pb->next;\n\t}", "parent": 65, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 23, "column": 2}}, {"id": 89, "type": "assignment_expression", "text": "l3 = pc = pb", "parent": 88, "children": [90, 91, 92], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 14}}, {"id": 90, "type": "identifier", "text": "l3", "parent": 89, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 4}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 6}}, {"id": 92, "type": "assignment_expression", "text": "pc = pb", "parent": 89, "children": [93, 94, 95], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 14}}, {"id": 93, "type": "identifier", "text": "pc", "parent": 92, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 9}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 95, "type": "identifier", "text": "pb", "parent": 92, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 14}}, {"id": 96, "type": "assignment_expression", "text": "pb = pb->next", "parent": 88, "children": [97, 98, 99], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 15}}, {"id": 97, "type": "identifier", "text": "pb", "parent": 96, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 4}}, {"id": 98, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 6}}, {"id": 99, "type": "field_expression", "text": "pb->next", "parent": 96, "children": [100, 101], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 100, "type": "identifier", "text": "pb", "parent": 99, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 9}}, {"id": 101, "type": "field_identifier", "text": "next", "parent": 99, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 102, "type": "while_statement", "text": "while(pa && pb){\n\t\tif(pa->val <= pb->val){\n\t\t\tpc->next = pa;\n\t\t\tpc = pa;\n\t\t\tpa = pa->next;\n\t\t}else{\n\t\t\tpc->next = pb;\n\t\t\tpc = pb;\n\t\t\tpb = pb->next;\n\t\t}\n\t}", "parent": 0, "children": [103], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 103, "type": "parenthesized_expression", "text": "(pa && pb)", "parent": 102, "children": [104], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 16}}, {"id": 104, "type": "binary_expression", "text": "pa && pb", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 15}}, {"id": 105, "type": "identifier", "text": "pa", "parent": 104, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 9}}, {"id": 106, "type": "&&", "text": "&&", "parent": 104, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 12}}, {"id": 107, "type": "identifier", "text": "pb", "parent": 104, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 15}}, {"id": 108, "type": "if_statement", "text": "if(pa->val <= pb->val){\n\t\t\tpc->next = pa;\n\t\t\tpc = pa;\n\t\t\tpa = pa->next;\n\t\t}else{\n\t\t\tpc->next = pb;\n\t\t\tpc = pb;\n\t\t\tpb = pb->next;\n\t\t}", "parent": 102, "children": [109, 134], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 34, "column": 3}}, {"id": 109, "type": "parenthesized_expression", "text": "(pa->val <= pb->val)", "parent": 108, "children": [110], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 24}}, {"id": 110, "type": "binary_expression", "text": "pa->val <= pb->val", "parent": 109, "children": [111, 114, 115], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 23}}, {"id": 111, "type": "field_expression", "text": "pa->val", "parent": 110, "children": [112, 113], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 12}}, {"id": 112, "type": "identifier", "text": "pa", "parent": 111, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 7}}, {"id": 113, "type": "field_identifier", "text": "val", "parent": 111, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 12}}, {"id": 114, "type": "<=", "text": "<=", "parent": 110, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 15}}, {"id": 115, "type": "field_expression", "text": "pb->val", "parent": 110, "children": [116, 117], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 23}}, {"id": 116, "type": "identifier", "text": "pb", "parent": 115, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 18}}, {"id": 117, "type": "field_identifier", "text": "val", "parent": 115, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 23}}, {"id": 118, "type": "assignment_expression", "text": "pc->next = pa", "parent": 108, "children": [119, 122, 123], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 16}}, {"id": 119, "type": "field_expression", "text": "pc->next", "parent": 118, "children": [120, 121], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 11}}, {"id": 120, "type": "identifier", "text": "pc", "parent": 119, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 121, "type": "field_identifier", "text": "next", "parent": 119, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 11}}, {"id": 122, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 123, "type": "identifier", "text": "pa", "parent": 118, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 16}}, {"id": 124, "type": "assignment_expression", "text": "pc = pa", "parent": 108, "children": [125, 126, 127], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 10}}, {"id": 125, "type": "identifier", "text": "pc", "parent": 124, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 5}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 127, "type": "identifier", "text": "pa", "parent": 124, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 10}}, {"id": 128, "type": "assignment_expression", "text": "pa = pa->next", "parent": 108, "children": [129, 130, 131], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 16}}, {"id": 129, "type": "identifier", "text": "pa", "parent": 128, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 130, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 7}}, {"id": 131, "type": "field_expression", "text": "pa->next", "parent": 128, "children": [132, 133], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 132, "type": "identifier", "text": "pa", "parent": 131, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 10}}, {"id": 133, "type": "field_identifier", "text": "next", "parent": 131, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 16}}, {"id": 134, "type": "else_clause", "text": "else{\n\t\t\tpc->next = pb;\n\t\t\tpc = pb;\n\t\t\tpb = pb->next;\n\t\t}", "parent": 108, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 34, "column": 3}}, {"id": 135, "type": "assignment_expression", "text": "pc->next = pb", "parent": 134, "children": [136, 139, 140], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 16}}, {"id": 136, "type": "field_expression", "text": "pc->next", "parent": 135, "children": [137, 138], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 11}}, {"id": 137, "type": "identifier", "text": "pc", "parent": 136, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 5}}, {"id": 138, "type": "field_identifier", "text": "next", "parent": 136, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 139, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 13}}, {"id": 140, "type": "identifier", "text": "pb", "parent": 135, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 16}}, {"id": 141, "type": "assignment_expression", "text": "pc = pb", "parent": 134, "children": [142, 143, 144], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 10}}, {"id": 142, "type": "identifier", "text": "pc", "parent": 141, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 7}}, {"id": 144, "type": "identifier", "text": "pb", "parent": 141, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 10}}, {"id": 145, "type": "assignment_expression", "text": "pb = pb->next", "parent": 134, "children": [146, 147, 148], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 16}}, {"id": 146, "type": "identifier", "text": "pb", "parent": 145, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 7}}, {"id": 148, "type": "field_expression", "text": "pb->next", "parent": 145, "children": [149, 150], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 16}}, {"id": 149, "type": "identifier", "text": "pb", "parent": 148, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 10}}, {"id": 150, "type": "field_identifier", "text": "next", "parent": 148, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 16}}, {"id": 151, "type": "assignment_expression", "text": "pc->next = pa?pa : pb", "parent": 0, "children": [152, 155, 156], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 22}}, {"id": 152, "type": "field_expression", "text": "pc->next", "parent": 151, "children": [153, 154], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 153, "type": "identifier", "text": "pc", "parent": 152, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 3}}, {"id": 154, "type": "field_identifier", "text": "next", "parent": 152, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 9}}, {"id": 155, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 156, "type": "conditional_expression", "text": "pa?pa : pb", "parent": 151, "children": [157, 158, 159, 160], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 22}}, {"id": 157, "type": "identifier", "text": "pa", "parent": 156, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 14}}, {"id": 158, "type": "?", "text": "?", "parent": 156, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 159, "type": "identifier", "text": "pa", "parent": 156, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 17}}, {"id": 160, "type": "identifier", "text": "pb", "parent": 156, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 22}}, {"id": 161, "type": "return_statement", "text": "return l3;", "parent": 0, "children": [162], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 11}}, {"id": 162, "type": "identifier", "text": "l3", "parent": 161, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 10}}]}, "node_categories": {"declarations": {"functions": [0, 6], "variables": [9, 16, 41], "classes": [1, 2, 10, 11, 42, 43], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [24, 25, 33, 34, 66, 67, 68, 72, 85, 99, 103, 104, 109, 110, 111, 115, 119, 131, 136, 148, 152], "assignments": [57, 61, 75, 78, 82, 89, 92, 96, 118, 124, 128, 135, 141, 145, 151], "loops": [102], "conditionals": [3, 7, 12, 15, 17, 19, 22, 23, 26, 31, 32, 35, 40, 44, 47, 50, 53, 56, 58, 60, 62, 64, 65, 69, 70, 73, 74, 76, 79, 81, 83, 86, 87, 90, 93, 95, 97, 100, 101, 105, 107, 108, 112, 113, 116, 117, 120, 121, 123, 125, 127, 129, 132, 133, 137, 138, 140, 142, 144, 146, 149, 150, 153, 154, 156, 157, 159, 160, 162], "returns": [30, 39, 161], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "ListNode*", "text_snippet": "struct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n\tif(l1 == NULL) return l2;"}, {"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "mergeTwoLists(struct ListNode* l1, strust ListNode* l2)"}], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "ListNode", "text_snippet": "struct ListNode"}, {"node_id": 2, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 10, "universal_type": "class", "name": "ListNode", "text_snippet": "struct ListNode"}, {"node_id": 11, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 42, "universal_type": "class", "name": "ListNode", "text_snippet": "struct ListNode"}, {"node_id": 43, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "// Time: O(m + n)\n// Space: O(1)\n\n/**\n * Definition for singly-linked list.\n * struct ListNode{\n * int val;\n * struct ListNode *next;\n * };\n */\nstruct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n\tif(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n struct ListNode *pa, *pb, *pc, *l3;\n\tpa = l1;\n\tpb = l2;\n\n\tif(pa->val <= pb->val){\n\t\tl3 = pc = pa;\n\t\tpa = pa->next;\n\t}else{\n\t\tl3 = pc = pb;\n\t\tpb = pb->next;\n\t}\n\n\twhile(pa && pb){\n\t\tif(pa->val <= pb->val){\n\t\t\tpc->next = pa;\n\t\t\tpc = pa;\n\t\t\tpa = pa->next;\n\t\t}else{\n\t\t\tpc->next = pb;\n\t\t\tpc = pb;\n\t\t\tpb = pb->next;\n\t\t}\n\t}\n\t\n\tpc->next = pa?pa : pb;\n\treturn l3;\n}\n"}
81,086
c
/* * fs/partitions/msdos.h */ #define MSDOS_LABEL_MAGIC 0xAA55 int msdos_partition(struct parsed_partitions *state);
23.2
5
(translation_unit) "/*\n * fs/partitions/msdos.h\n */\n\n#define MSDOS_LABEL_MAGIC 0xAA55\n\nint msdos_partition(struct parsed_partitions *state);\n" (comment) "/*\n * fs/partitions/msdos.h\n */" (preproc_def) "#define MSDOS_LABEL_MAGIC 0xAA55\n" (#define) "#define" (identifier) "MSDOS_LABEL_MAGIC" (preproc_arg) "0xAA55" (declaration) "int msdos_partition(struct parsed_partitions *state);" (primitive_type) "int" (function_declarator) "msdos_partition(struct parsed_partitions *state)" (identifier) "msdos_partition" (parameter_list) "(struct parsed_partitions *state)" (() "(" (parameter_declaration) "struct parsed_partitions *state" (struct_specifier) "struct parsed_partitions" (struct) "struct" (type_identifier) "parsed_partitions" (pointer_declarator) "*state" (*) "*" (identifier) "state" ()) ")" (;) ";"
21
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.2, "nodes": 16, "errors": 0, "source_hash": "5c02690f42baa411ecd307f2eb2a6c7c0a218d63db65c565c780702dd5b6ad84", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MSDOS_LABEL_MAGIC\t\t0xAA55\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "MSDOS_LABEL_MAGIC", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 25}}, {"id": 3, "type": "preproc_arg", "text": "0xAA55", "parent": 0, "children": [], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 33}}, {"id": 4, "type": "declaration", "text": "int msdos_partition(struct parsed_partitions *state);", "parent": null, "children": [5, 6], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 53}}, {"id": 5, "type": "primitive_type", "text": "int", "parent": 4, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 6, "type": "function_declarator", "text": "msdos_partition(struct parsed_partitions *state)", "parent": 4, "children": [7, 8], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 52}}, {"id": 7, "type": "identifier", "text": "msdos_partition", "parent": 6, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 19}}, {"id": 8, "type": "parameter_list", "text": "(struct parsed_partitions *state)", "parent": 6, "children": [9], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 52}}, {"id": 9, "type": "parameter_declaration", "text": "struct parsed_partitions *state", "parent": 8, "children": [10, 13], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 51}}, {"id": 10, "type": "struct_specifier", "text": "struct parsed_partitions", "parent": 9, "children": [11, 12], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 44}}, {"id": 11, "type": "struct", "text": "struct", "parent": 10, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 26}}, {"id": 12, "type": "type_identifier", "text": "parsed_partitions", "parent": 10, "children": [], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 6, "column": 44}}, {"id": 13, "type": "pointer_declarator", "text": "*state", "parent": 9, "children": [14, 15], "start_point": {"row": 6, "column": 45}, "end_point": {"row": 6, "column": 51}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 6, "column": 45}, "end_point": {"row": 6, "column": 46}}, {"id": 15, "type": "identifier", "text": "state", "parent": 13, "children": [], "start_point": {"row": 6, "column": 46}, "end_point": {"row": 6, "column": 51}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [4, 9], "classes": [10, 11], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 7, 12, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "msdos_partition(struct parsed_partitions *state)"}], "class_declarations": [{"node_id": 10, "universal_type": "class", "name": "parsed_partitions", "text_snippet": "struct parsed_partitions"}, {"node_id": 11, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/*\n * fs/partitions/msdos.h\n */\n\n#define MSDOS_LABEL_MAGIC\t\t0xAA55\n\nint msdos_partition(struct parsed_partitions *state);\n"}
81,087
c
#pragma once #include "Cpp/Features.h" #include "Cpp/Warnings.h" #include "Meta/TypeList.h" INTRA_PUSH_DISABLE_REDUNDANT_WARNINGS INTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED namespace Intra { namespace Meta { template<typename... Args> struct Tuple; namespace D { template<int...> struct index_tuple {}; template<int I, typename IndexTuple, typename... Types> struct make_indexes_impl; template<int I, int... Indexes, typename T, typename ... Types> struct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...> { typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _; }; template<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}; template<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {}; } template<typename ...Args> struct Tuple; template<> struct Tuple<> { typedef TypeList<> TL; enum {ElementCount=0}; }; template<typename H, typename... Args> struct Tuple<H, Args...> { typedef Tuple<Args...> NextTuple; typedef TypeList<H, Args...> TL; enum {ElementCount = 1+sizeof...(Args)}; template<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args): first(Cpp::Forward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {} constexpr Tuple(const Tuple& rhs) = default; template<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args): first(Cpp::Forward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {} constexpr Tuple(): first() {} bool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first && next==rhs.next;} bool operator!=(const Tuple<H, Args...>& rhs) {return !operator==(rhs);} H first; NextTuple next; public: }; template<typename H> struct Tuple<H> { private: typedef RemoveConstRef<H> HNoCR; public: typedef Tuple<> NextTuple; typedef TypeList<H> TL; enum {ElementCount=1}; template<typename H1> constexpr Tuple(const Tuple<H1>& h): first(h.first) {} constexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {} constexpr Tuple(const HNoCR& h): first(h) {} constexpr Tuple(const Tuple& rhs) = default; //constexpr Tuple(const H& h, const Tuple<>&): first(h) {} //constexpr Tuple(H&& h, Tuple<>&&): first(Cpp::Forward<H>(h)) {} constexpr Tuple(): first() {} //~Tuple() {first.~H();} bool operator==(const Tuple<H>& rhs) {return first==rhs.first;} bool operator!=(const Tuple<H>& rhs) {return !operator==(rhs);} H first; }; template<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args) {return Tuple<Args...>(Cpp::Forward<Args>(args)...);} } } INTRA_WARNING_POP
35.79
72
(translation_unit) "ragma once\n\n#include "Cpp/Features.h"\n#include "Cpp/Warnings.h"\n\n#include "Meta/TypeList.h"\n\nINTRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nINTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\nnamespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\ntemplate<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}\n\n\ntemplate<typename ...Args> struct Tuple;\ntemplate<> struct Tuple<>\n{\n typedef TypeList<> TL;\n enum {ElementCount=0};\n};\n\n\ntemplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<Args...> NextTuple;\n typedef TypeList<H, Args...> TL;\n enum {ElementCount = 1+sizeof...(Args)};\n\n template<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n first(Cpp::Forward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {}\n\n constexpr Tuple(const Tuple& rhs) = default;\n\n template<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n first(Cpp::Forward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {}\n\n constexpr Tuple(): first() {}\n\n bool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first && next==rhs.next;}\n bool operator!=(const Tuple<H, Args...>& rhs) {return !operator==(rhs);}\n\n H first;\n NextTuple next;\n\npublic:\n};\n\n\ntemplate<typename H> struct Tuple<H>\n{\nprivate:\n typedef RemoveConstRef<H> HNoCR;\npublic:\n typedef Tuple<> NextTuple;\n typedef TypeList<H> TL;\n enum {ElementCount=1};\n\n template<typename H1> constexpr Tuple(const Tuple<H1>& h): first(h.first) {}\n\n constexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n constexpr Tuple(const HNoCR& h): first(h) {}\n\n constexpr Tuple(const Tuple& rhs) = default;\n //constexpr Tuple(const H& h, const Tuple<>&): first(h) {}\n //constexpr Tuple(H&& h, Tuple<>&&): first(Cpp::Forward<H>(h)) {}\n constexpr Tuple(): first() {}\n //~Tuple() {first.~H();}\n\n bool operator==(const Tuple<H>& rhs) {return first==rhs.first;}\n bool operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n H first;\n};\n\ntemplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{return Tuple<Args...>(Cpp::Forward<Args>(args)...);}\n\n}\n\n\n}\n\nINTRA_WARNING_POP\n" (preproc_call) "ragma once\n\n#" (preproc_directive) "ragma o" (preproc_arg) "ce\n\n" (preproc_include) "nclude "Cpp/Features.h"\n#i" (#include) "nclude "" (string_literal) "pp/Features.h"\n#" (") "p" (string_content) "p/Features.h"\n" (") "#" (preproc_include) "nclude "Cpp/Warnings.h"\n\n#" (#include) "nclude "" (string_literal) "pp/Warnings.h"\n\n" (") "p" (string_content) "p/Warnings.h"\n" (") "\n" (preproc_include) "nclude "Meta/TypeList.h"\n\nI" (#include) "nclude "" (string_literal) "eta/TypeList.h"\n\n" (") "e" (string_content) "ta/TypeList.h"\n" (") "\n" (declaration) "TRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nINTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\n" (type_identifier) "TRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nI" (identifier) "TRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\n" (;) "" (function_definition) "mespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\ntemplate<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}\n\n" (type_identifier) "mespace I" (identifier) "tra {" (compound_statement) "namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\ntemplate<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}\n\n" ({) "n" (function_definition) "mespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\n" (type_identifier) "mespace M" (identifier) "ta {" (compound_statement) "\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\n" ({) "\n" (expression_statement) "mplate<typename... Args> struct Tuple;\n\n" (binary_expression) "mplate<typename... Args> struct T" (binary_expression) "mplate<typename.." (identifier) "mplate<t" (<) "y" (identifier) "pename.." (ERROR) ". Args> " (...) ". A" (identifier) "gs> " (>) "s" (identifier) "ruct T" (ERROR) "ple;\n" (identifier) "ple;\n" (;) "\n" (function_definition) "mespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\n" (type_identifier) "mespace D" (identifier) "{" (compound_statement) "template<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\n" ({) "t" (ERROR) "mplate<int...> struct index_tuple {" (binary_expression) "mplate<int...> struct i" (binary_expression) "mplate<int.." (identifier) "mplate<i" (<) "n" (identifier) "t.." (ERROR) ".> " (...) ".> " (>) "s" (identifier) "ruct i" (identifier) "dex_tuple {" (compound_statement) ";\n" ({) ";" (}) "\n" (expression_statement) "t" (;) "t" (expression_statement) "mplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\n" (comma_expression) "mplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n" (binary_expression) "mplate<int I" (identifier) "mplate<i" (<) "n" (identifier) "t I" (ERROR) " " (identifier) " " (,) "t" (ERROR) "pename I" (identifier) "pename I" (comma_expression) "dexTuple, typename... Types> struct make_indexes_impl;\n" (identifier) "dexTuple, " (,) "t" (binary_expression) "pename... Types> struct make_indexes_impl;\n" (identifier) "pename.." (ERROR) ". Types> " (...) ". T" (identifier) "pes> " (>) "s" (ERROR) "ruct m" (identifier) "ruct m" (identifier) "ke_indexes_impl;\n" (;) "\n" (expression_statement) "mplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n}" (comma_expression) "mplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (binary_expression) "mplate<int I" (identifier) "mplate<i" (<) "n" (identifier) "t I" (ERROR) " " (identifier) " " (,) "i" (ERROR) "t... I" (identifier) "t.." (...) ". I" (comma_expression) "dexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (identifier) "dexes, " (,) "t" (comma_expression) "pename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (identifier) "pename T" (ERROR) " " (identifier) " " (,) "t" (comma_expression) "pename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (binary_expression) "pename ... Types>\nstruct make_indexes_impl<I, " (binary_expression) "pename ... Types>\nstruct make_indexes_impl<I" (identifier) "pename ." (ERROR) ". Types>\n" (...) ". T" (identifier) "pes>\n" (>) "s" (ERROR) "ruct m" (identifier) "ruct m" (identifier) "ke_indexes_impl<I" (<) "," (identifier) " " (,) "i" (comma_expression) "dex_tuple<Indexes...>, T, Types...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (binary_expression) "dex_tuple<Indexes...>, T, " (binary_expression) "dex_tuple<Indexes.." (identifier) "dex_tuple<I" (<) "n" (identifier) "dexes.." (ERROR) ".>," (...) ".>," (>) " " (ERROR) "T" (,) "T" (identifier) " " (,) "T" (comma_expression) "pes...>\n{\n typedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n" (binary_expression) "pes...>\n{\n typedef typename make_indexes_impl<I+1, " (binary_expression) "pes...>\n{\n typedef typename make_indexes_impl<I" (identifier) "pes.." (ERROR) ".>\n" (...) ".>\n" (>) "{" (ERROR) " typedef typename m" ({) " " (typedef) "pedef t" (identifier) "pename m" (identifier) "ke_indexes_impl<I" (<) "+" (binary_expression) "1, " (identifier) "1" (+) "," (number_literal) " " (,) "i" (comma_expression) "dex_tuple<Indexes..., I>, Types...>::_ _;\n" (binary_expression) "dex_tuple<Indexes.." (identifier) "dex_tuple<I" (<) "n" (identifier) "dexes.." (ERROR) "., " (...) "., " (,) "I" (binary_expression) ", Types...>::_ _;\n" (binary_expression) ", Types.." (identifier) "," (>) " " (ERROR) "T" (,) "T" (identifier) "pes.." (ERROR) ".>:" (...) ".>:" (>) ":" (ERROR) "_ _" (:) "_" (:) " " (identifier) "_" (identifier) "\n" (;) "}" (}) "\n" (expression_statement) "t" (;) "t" (expression_statement) "mplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};" (comma_expression) "mplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}" (binary_expression) "mplate<int I" (identifier) "mplate<i" (<) "n" (identifier) "t I" (ERROR) " " (identifier) " " (,) "i" (ERROR) "t... I" (identifier) "t.." (...) ". I" (comma_expression) "dexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}" (binary_expression) "dexes> struct make_indexes_impl<I, " (binary_expression) "dexes> struct make_indexes_impl<I" (identifier) "dexes> " (>) "s" (ERROR) "ruct m" (identifier) "ruct m" (identifier) "ke_indexes_impl<I" (<) "," (identifier) " " (,) "i" (binary_expression) "dex_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}" (binary_expression) "dex_tuple<Indexes...>> {typedef index_tuple<Indexes.." (binary_expression) "dex_tuple<Indexes...>> {typedef index_tuple<I" (identifier) "dex_tuple<I" (<) "n" (binary_expression) "dexes...>> {typedef index_tuple<I" (identifier) "dexes.." (ERROR) ".>>" (...) ".>>" (>>) " {" (ERROR) "ypedef i" ({) "y" (typedef) "pedef i" (identifier) "dex_tuple<I" (<) "n" (identifier) "dexes.." (ERROR) ".> " (...) ".> " (>) "_" (identifier) "}" (;) ";" (}) "\n" (expression_statement) "t" (;) "t" (expression_statement) "mplate<typename... Types> struct m" (binary_expression) "mplate<typename... Types> struct m" (binary_expression) "mplate<typename.." (identifier) "mplate<t" (<) "y" (identifier) "pename.." (ERROR) ". Types> " (...) ". T" (identifier) "pes> " (>) "s" (identifier) "ruct m" (;) "" (labeled_statement) "ke_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}" (statement_identifier) "ke_indexes: " (:) "m" (expression_statement) "ke_indexes_impl<0, index_tuple<>, Types...> {};\n}" (comma_expression) "ke_indexes_impl<0, index_tuple<>, Types.." (binary_expression) "ke_indexes_impl<0, " (identifier) "ke_indexes_impl<0" (<) "," (number_literal) " " (,) "i" (binary_expression) "dex_tuple<>, Types.." (identifier) "dex_tuple<>" (<) "," (ERROR) " T" (>) " " (,) "T" (identifier) "pes.." (ERROR) ".> {};\n" (...) ".> " (>) "{" ({) ";" (}) "\n" (;) "}" (}) "\n" (ERROR) "mplate<typename ...Args> struct Tuple;\ntemplate<> s" (binary_expression) "mplate<typename ...Args> struct Tuple;\ntemplate<>" (binary_expression) "mplate<typename ." (identifier) "mplate<t" (<) "y" (identifier) "pename ." (ERROR) ".Args> " (...) ".Ar" (identifier) "gs> " (>) "s" (ERROR) "ruct Tuple;\nt" (identifier) "ruct T" (identifier) "ple;\n" (;) "t" (identifier) "mplate<>" (<) " " (>) "s" (struct_specifier) "ruct Tuple<>\n{\n typedef TypeList<> TL;\n enum {ElementCount=0};\n};\n" (struct) "ruct T" (type_identifier) "ple<>" (ERROR) "\n{" (<) "\n" (>) "{" (field_declaration_list) " typedef TypeList<> TL;\n enum {ElementCount=0};\n};\n" ({) " " (field_declaration) "pedef TypeList<> TL;\n " (type_identifier) "pedef T" (field_identifier) "peList<>" (ERROR) " TL;\n" (<) " " (>) "T" (identifier) ";\n" (;) " " (field_declaration) "um {ElementCount=0};\n}" (enum_specifier) "um {ElementCount=0};\n" (enum) "um {" (enumerator_list) "lementCount=0};\n" ({) "l" (enumerator) "ementCount=0};" (identifier) "ementCount=0" (=) "}" (number_literal) ";" (}) "\n" (;) "}" (}) "\n" (;) "\n" (expression_statement) "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<Args...> NextTuple;\n " (update_expression) "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<Args...> NextTuple;\n" (binary_expression) "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<Args...> NextTuple;\n" (binary_expression) "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<Args.." (binary_expression) "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n typedef Tuple<A" (binary_expression) "mplate<typename H, typename... Args> struct Tuple<H, " (binary_expression) "mplate<typename H, typename... Args> struct T" (binary_expression) "mplate<typename H" (identifier) "mplate<t" (<) "y" (identifier) "pename H" (ERROR) " typename... Args> " (identifier) " " (,) "t" (identifier) "pename.." (...) ". A" (identifier) "gs> " (>) "s" (identifier) "ruct T" (ERROR) "ple<H" (identifier) "ple<H" (<) "," (identifier) " " (ERROR) "Args...>\n" (,) "A" (identifier) "gs.." (...) ".>\n" (>) "{" (ERROR) " typedef T" ({) " " (typedef) "pedef T" (identifier) "ple<A" (<) "r" (identifier) "gs.." (ERROR) ".> " (...) ".> " (>) "N" (identifier) "xtTuple;\n" (--) "" (;) " " (type_definition) "pedef TypeList<H, Args...> TL;\n " (typedef) "pedef T" (type_identifier) "peList<H" (ERROR) "," (<) "," (type_identifier) " " (,) "A" (type_identifier) "gs.." (ERROR) ".> TL;\n" (...) ".> " (>) "T" (identifier) ";\n" (;) " " (enum_specifier) "um {ElementCount = 1+sizeof...(Args)};\n" (enum) "um {" (enumerator_list) "lementCount = 1+sizeof...(Args)};\n" ({) "l" (enumerator) "ementCount = 1+sizeof...(Args)}" (identifier) "ementCount =" (=) "1" (binary_expression) "sizeof...(Args)}" (number_literal) "s" (+) "i" (sizeof_expression) "zeof...(Args)}" (sizeof) "zeof.." (ERROR) ".(Ar" (.) "." (.) "(" (.) "A" (() "r" (identifier) "gs)}" (ERROR) ";" ()) ";" (}) "\n" (;) "\n" (ERROR) "mplate<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n " (binary_expression) "mplate<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n" (binary_expression) "mplate<typename H" (identifier) "mplate<t" (<) "y" (identifier) "pename H" (ERROR) ", typename H2, typename... Args1> " (identifier) ", " (,) "t" (identifier) "pename H" (identifier) ", " (,) "t" (identifier) "pename.." (...) ". A" (identifier) "gs1> " (>) "c" (ERROR) "nstexpr T" (identifier) "nstexpr T" (call_expression) "ple(H1&& h, H2&& h2, Args1&&... args):\n" (identifier) "ple(H" (argument_list) "1&& h, H2&& h2, Args1&&... args):\n" (() "1" (binary_expression) "&& h, " (identifier) "&&" (&&) " h" (identifier) " " (,) "H" (binary_expression) "&& h2, " (identifier) "&&" (&&) " h" (identifier) ", " (,) "A" (binary_expression) "gs1&&... args):" (identifier) "gs1&&" (&&) ".." (ERROR) ". a" (.) "." (.) " " (.) "a" (identifier) "gs):" ()) "\n" (:) " " (labeled_statement) "rst(Cpp::Forward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {" (statement_identifier) "rst(C" (ERROR) "pp::F" (() "p" (type_descriptor) "p::" (type_identifier) "p::" (:) "F" (:) "o" (expression_statement) "rward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {" (comma_expression) "rward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {" (binary_expression) "rward<H1>(h))," (binary_expression) "rward<H1>(" (identifier) "rward<H" (<) "1" (identifier) ">(" (>) "h" (parenthesized_expression) "))," (() ")" (identifier) ")" ()) "," (ERROR) " " ()) " " (,) "n" (call_expression) "xt(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {" (identifier) "xt(C" (argument_list) "pp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {" (() "p" (ERROR) "p::Fo" (identifier) "p::" (:) "F" (:) "o" (binary_expression) "rward<H2>(h2), " (binary_expression) "rward<H2>(" (identifier) "rward<H" (<) "2" (identifier) ">(" (>) "h" (parenthesized_expression) "2), " (() "2" (identifier) ")," ()) " " (,) "C" (ERROR) "p::Fo" (identifier) "p::" (:) "F" (:) "o" (binary_expression) "rward<Args1>(args).." (binary_expression) "rward<Args1>(" (identifier) "rward<A" (<) "r" (identifier) "gs1>(" (>) "a" (parenthesized_expression) "rgs).." (() "r" (identifier) "gs)." ()) "." (ERROR) ".) " (...) ".) " ()) "{" (;) "" (compound_statement) "\n\n" ({) "\n" (}) "\n" (declaration) "nstexpr Tuple(const Tuple& rhs) = default;\n\n" (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(const Tuple& rhs) =" (identifier) "ple(c" (() "o" (type_descriptor) "nst Tuple& " (type_qualifier) "nst T" (const) "nst T" (type_identifier) "ple& " (ERROR) "rhs) " (&) "r" (identifier) "s) " ()) "=" (init_declarator) " default;\n" (identifier) "" (=) "d" (identifier) "fault;\n" (;) "\n" (ERROR) "mplate<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n " (binary_expression) "mplate<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n" (binary_expression) "mplate<typename H" (identifier) "mplate<t" (<) "y" (identifier) "pename H" (ERROR) "> " (identifier) "> " (>) "c" (ERROR) "nstexpr explicit T" (identifier) "nstexpr e" (identifier) "plicit T" (call_expression) "ple(H1&& h, Tuple<Args...>&& args):\n" (identifier) "ple(H" (argument_list) "1&& h, Tuple<Args...>&& args):\n" (() "1" (binary_expression) "&& h, " (identifier) "&&" (&&) " h" (identifier) " " (,) "T" (binary_expression) "ple<Args...>&& args):" (binary_expression) "ple<Args.." (identifier) "ple<A" (<) "r" (identifier) "gs.." (ERROR) ".>&" (...) ".>&" (>) "&" (pointer_expression) " args):" (&) " " (pointer_expression) "args):" (&) "a" (identifier) "gs):" ()) "\n" (:) " " (labeled_statement) "rst(Cpp::Forward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {" (statement_identifier) "rst(C" (ERROR) "pp::F" (() "p" (type_descriptor) "p::" (type_identifier) "p::" (:) "F" (:) "o" (expression_statement) "rward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {" (comma_expression) "rward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {" (binary_expression) "rward<H>(h))," (binary_expression) "rward<H>(" (identifier) "rward<H" (<) ">" (identifier) "(" (>) "h" (parenthesized_expression) "))," (() ")" (identifier) ")" ()) "," (ERROR) " " ()) " " (,) "n" (call_expression) "xt(Cpp::Forward<Tuple<Args...>>(args)) {" (identifier) "xt(C" (argument_list) "pp::Forward<Tuple<Args...>>(args)) {" (() "p" (ERROR) "p::Fo" (identifier) "p::" (:) "F" (:) "o" (binary_expression) "rward<Tuple<Args...>>(args)) " (binary_expression) "rward<Tuple<A" (identifier) "rward<T" (<) "u" (identifier) "ple<A" (<) "r" (binary_expression) "gs...>>(args)) " (identifier) "gs.." (ERROR) ".>>" (...) ".>>" (>>) "(a" (parenthesized_expression) "rgs)) " (() "r" (identifier) "gs))" ()) " " ()) "{" (;) "" (compound_statement) "\n\n" ({) "\n" (}) "\n" (function_definition) "nstexpr Tuple(): first() {}\n\n bool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first && next==rhs.next;}\n " (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(): first() {}\n\n bool operator==(const Tuple<H, Args...>& rhs) {" (identifier) "ple()" (() ":" (ERROR) " first() {}\n\n bool operator==(const Tuple<H, A" ()) " " (:) "f" (type_descriptor) "rst() {" (type_identifier) "rst()" (abstract_function_declarator) " {" (parameter_list) " {" (() " " ()) "{" ({) "\n" (}) "\n" (type_descriptor) "ol operator==(const T" (primitive_type) "ol o" (ERROR) "erator==(co" (identifier) "erator==" (==) "(c" (() "o" (type_qualifier) "nst T" (const) "nst T" (identifier) "ple<H" (<) "," (type_descriptor) " " (type_identifier) " " (,) "A" (type_descriptor) "gs.." (type_identifier) "gs.." (ERROR) ".>& rhs) " (...) ".>&" (>) " " (&) "r" (identifier) "s) " ()) "{" (identifier) "" (compound_statement) "eturn first==rhs.first && next==rhs.next;}\n " ({) "e" (return_statement) "turn first==rhs.first && next==rhs.next;}\n" (return) "turn f" (binary_expression) "rst==rhs.first && next==rhs.next;}" (binary_expression) "rst==rhs.first &" (identifier) "rst==" (==) "rh" (field_expression) "s.first &" (identifier) "s.f" (.) "i" (field_identifier) "rst &" (&&) " n" (binary_expression) "xt==rhs.next;}" (identifier) "xt==" (==) "rh" (field_expression) "s.next;}" (identifier) "s.n" (.) "e" (field_identifier) "xt;}" (;) "\n" (}) " " (ERROR) "ol operator!=(const Tuple<H, Args...>& rhs) {" (primitive_type) "ol o" (identifier) "erator!=" (ERROR) "(const Tuple<H, " (!=) "(c" (() "o" (const) "nst T" (identifier) "ple<H" (<) "," (identifier) " " (,) "A" (identifier) "gs.." (...) ".>&" (>) " " (&) "r" (identifier) "s) " ()) "{" (compound_statement) "eturn !operator==(rhs);}\n\n" ({) "e" (return_statement) "turn !operator==(rhs);}\n" (return) "turn !" (binary_expression) "perator==(rhs);}" (unary_expression) "perator==" (!) "p" (identifier) "erator==" (==) "(r" (parenthesized_expression) "hs);}" (() "h" (identifier) "s);" ()) "}" (;) "\n" (}) "\n" (declaration) "first;\n " (type_identifier) "f" (identifier) "rst;\n" (;) " " (declaration) "xtTuple next;\n\n" (type_identifier) "xtTuple n" (identifier) "xt;\n" (;) "\n" (labeled_statement) "blic:\n};\n\n" (statement_identifier) "blic:\n" (:) "}" (ERROR) "\n" (}) "\n" (expression_statement) "\n" (;) "\n" (ERROR) "mplate<typename H> struct Tuple<H>\n{" (binary_expression) "mplate<typename H> struct Tuple<H>\n" (binary_expression) "mplate<typename H> struct T" (binary_expression) "mplate<typename H" (identifier) "mplate<t" (<) "y" (identifier) "pename H" (ERROR) " " (identifier) " " (>) "s" (identifier) "ruct T" (ERROR) "ple<H" (identifier) "ple<H" (<) ">" (identifier) "\n" (>) "{" (compound_statement) "private:\n typedef RemoveConstRef<H> HNoCR;\npublic:\n typedef Tuple<> NextTuple;\n typedef TypeList<H> TL;\n enum {ElementCount=1};\n\n template<typename H1> constexpr Tuple(const Tuple<H1>& h): first(h.first) {}\n\n constexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n constexpr Tuple(const HNoCR& h): first(h) {}\n\n constexpr Tuple(const Tuple& rhs) = default;\n //constexpr Tuple(const H& h, const Tuple<>&): first(h) {}\n //constexpr Tuple(H&& h, Tuple<>&&): first(Cpp::Forward<H>(h)) {}\n constexpr Tuple(): first() {}\n //~Tuple() {first.~H();}\n\n bool operator==(const Tuple<H>& rhs) {return first==rhs.first;}\n bool operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n H first;\n};\n" ({) "p" (expression_statement) "ivate:\n typedef RemoveConstRef<H> HNoCR;\np" (binary_expression) "ivate:\n typedef RemoveConstRef<H> HNoCR;\n" (binary_expression) "ivate:\n typedef RemoveConstRef<H> " (identifier) "ivate:\n" (ERROR) " typedef RemoveConstRef<H" (:) " " (type_identifier) "pedef R" (identifier) "moveConstRef<H" (<) ">" (identifier) " " (>) "H" (identifier) "oCR;\n" (;) "p" (labeled_statement) "blic:\n typedef Tuple<> NextTuple;\n " (statement_identifier) "blic:\n" (:) " " (declaration) "pedef Tuple<> NextTuple;\n " (type_identifier) "pedef T" (ERROR) "ple<> N" (identifier) "ple<>" (<) " " (>) "N" (identifier) "xtTuple;\n" (;) " " (type_definition) "pedef TypeList<H> TL;\n " (typedef) "pedef T" (type_identifier) "peList<H" (ERROR) "> T" (<) ">" (type_identifier) " " (>) "T" (type_identifier) ";\n" (;) " " (enum_specifier) "um {ElementCount=1};\n" (enum) "um {" (enumerator_list) "lementCount=1};\n" ({) "l" (enumerator) "ementCount=1};" (identifier) "ementCount=1" (=) "}" (number_literal) ";" (}) "\n" (;) "\n" (expression_statement) "mplate<typename H1> constexpr T" (binary_expression) "mplate<typename H1> constexpr T" (binary_expression) "mplate<typename H" (identifier) "mplate<t" (<) "y" (identifier) "pename H" (ERROR) "> " (identifier) "> " (>) "c" (identifier) "nstexpr T" (;) "" (ERROR) "ple(const Tuple<H1>& h): f" (binary_expression) "ple(const Tuple<H1>& h):" (binary_expression) "ple(const Tuple<H1>&" (identifier) "ple(c" (ERROR) "onst Tuple<H" (() "o" (type_descriptor) "nst Tuple<H" (type_qualifier) "nst T" (const) "nst T" (type_identifier) "ple<H" (<) "1" (identifier) ">&" (>) " " (pointer_expression) "h):" (&) "h" (identifier) ":" ()) " " (:) "f" (expression_statement) "rst(h.first) {" (call_expression) "rst(h.first) {" (identifier) "rst(h" (argument_list) ".first) {" (() "." (field_expression) "first) " (identifier) "f" (.) "i" (field_identifier) "rst) " ()) "{" (;) "" (compound_statement) "\n\n" ({) "\n" (}) "\n" (function_definition) "nstexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n " (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(HNoCR&& h): " (identifier) "ple(H" (() "N" (type_descriptor) "oCR&&" (type_identifier) "oCR&&" (ERROR) " h):" (&&) " h" (identifier) ":" ()) " " (ERROR) "f" (:) "f" (function_declarator) "rst(Cpp::Move(h)) {" (identifier) "rst(C" (parameter_list) "pp::Move(h)) {" (() "p" (parameter_declaration) "p::Move(h)) " (type_identifier) "p::" (ERROR) "Mo" (:) "M" (:) "o" (function_declarator) "ve(h)) " (identifier) "ve(h" (parameter_list) ")) " (() ")" (parameter_declaration) ")" (type_identifier) ")" ()) " " ()) "{" (compound_statement) "\n " ({) "\n" (}) " " (function_definition) "nstexpr Tuple(const HNoCR& h): first(h) {}\n\n" (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(const HNoCR& h): " (identifier) "ple(c" (() "o" (type_descriptor) "nst HNoCR& " (type_qualifier) "nst H" (const) "nst H" (type_identifier) "oCR& " (ERROR) "h):" (&) "h" (identifier) ":" ()) " " (ERROR) "f" (:) "f" (function_declarator) "rst(h) {" (identifier) "rst(h" (parameter_list) ") {" (() ")" (parameter_declaration) " " (type_identifier) " " ()) "{" (compound_statement) "\n\n" ({) "\n" (}) "\n" (declaration) "nstexpr Tuple(const Tuple& rhs) = default;\n " (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(const Tuple& rhs) =" (identifier) "ple(c" (() "o" (type_descriptor) "nst Tuple& " (type_qualifier) "nst T" (const) "nst T" (type_identifier) "ple& " (ERROR) "rhs) " (&) "r" (identifier) "s) " ()) "=" (init_declarator) " default;\n" (identifier) "" (=) "d" (identifier) "fault;\n" (;) " " (comment) "constexpr Tuple(const H& h, const Tuple<>&): first(h) {}\n " (comment) "constexpr Tuple(H&& h, Tuple<>&&): first(Cpp::Forward<H>(h)) {}\n " (function_definition) "nstexpr Tuple(): first() {}\n //~Tuple() {first.~H();}\n\n bool operator==(const Tuple<H>& rhs) {return first==rhs.first;}\n " (type_qualifier) "nstexpr T" (constexpr) "nstexpr T" (macro_type_specifier) "ple(): first() {}\n //~Tuple() {first.~H();}\n\n bool operator==(const Tuple<H>& rhs) {" (identifier) "ple()" (() ":" (ERROR) " first() {}\n " ()) " " (:) "f" (type_descriptor) "rst() {" (type_identifier) "rst()" (abstract_function_declarator) " {" (parameter_list) " {" (() " " ()) "{" ({) "\n" (}) " " (comment) "~Tuple() {first.~H();}\n\n" (type_descriptor) "ol operator==(const T" (primitive_type) "ol o" (ERROR) "erator==(co" (identifier) "erator==" (==) "(c" (() "o" (type_qualifier) "nst T" (const) "nst T" (ERROR) "ple<H>& rhs) " (identifier) "ple<H" (<) ">" (identifier) "&" (>) " " (&) "r" (identifier) "s) " ()) "{" (identifier) "" (compound_statement) "eturn first==rhs.first;}\n " ({) "e" (return_statement) "turn first==rhs.first;}\n" (return) "turn f" (binary_expression) "rst==rhs.first;}" (identifier) "rst==" (==) "rh" (field_expression) "s.first;}" (identifier) "s.f" (.) "i" (field_identifier) "rst;}" (;) "\n" (}) " " (function_definition) "ol operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n" (primitive_type) "ol o" (identifier) "erator!=" (ERROR) "(const Tuple<H>& rhs) {" (!=) "(c" (() "o" (const) "nst T" (identifier) "ple<H" (<) ">" (identifier) "&" (>) " " (&) "r" (identifier) "s) " ()) "{" (compound_statement) "eturn !operator==(rhs);}\n\n" ({) "e" (return_statement) "turn !operator==(rhs);}\n" (return) "turn !" (binary_expression) "perator==(rhs);}" (unary_expression) "perator==" (!) "p" (identifier) "erator==" (==) "(r" (parenthesized_expression) "hs);}" (() "h" (identifier) "s);" ()) "}" (;) "\n" (}) "\n" (declaration) "first;\n}" (type_identifier) "f" (identifier) "rst;\n" (;) "}" (}) "\n" (expression_statement) "\n" (;) "\n" (ERROR) "mplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{" (binary_expression) "mplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{" (binary_expression) "mplate<typename... Args> forceinline Tuple<Args.." (binary_expression) "mplate<typename... Args> forceinline T" (binary_expression) "mplate<typename.." (identifier) "mplate<t" (<) "y" (identifier) "pename.." (ERROR) ". Args> " (...) ". A" (identifier) "gs> " (>) "f" (identifier) "rceinline T" (ERROR) "ple<A" (identifier) "ple<A" (<) "r" (identifier) "gs.." (ERROR) ".> " (...) ".> " (>) "T" (call_expression) "pleL(Args&&... args)\n{" (identifier) "pleL(A" (argument_list) "rgs&&... args)\n{" (() "r" (binary_expression) "gs&&... args)\n" (identifier) "gs&&" (&&) ".." (ERROR) ". a" (.) "." (.) " " (.) "a" (identifier) "gs)\n" ()) "{" (compound_statement) "eturn Tuple<Args...>(Cpp::Forward<Args>(args)...);}\n\n" ({) "e" (return_statement) "turn Tuple<Args...>(Cpp::Forward<Args>(args)...);}\n" (return) "turn T" (binary_expression) "ple<Args...>(Cpp::Forward<Args>(args)...);}" (binary_expression) "ple<Args.." (identifier) "ple<A" (<) "r" (identifier) "gs.." (ERROR) ".>(" (...) ".>(" (>) "C" (parenthesized_expression) "pp::Forward<Args>(args)...);}" (() "p" (ERROR) "p::Fo" (identifier) "p::" (:) "F" (:) "o" (binary_expression) "rward<Args>(args).." (binary_expression) "rward<Args>(" (identifier) "rward<A" (<) "r" (identifier) "gs>(" (>) "a" (parenthesized_expression) "rgs).." (() "r" (identifier) "gs)." ()) "." (ERROR) ".);" (...) ".);" ()) "}" (;) "\n" (}) "\n" (ERROR) "\n\n}\n\n" (}) "\n" (}) "\n" (expression_statement) "TRA_WARNING_POP\n" (identifier) "TRA_WARNING_POP\n" (;) ""
1,051
96
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 35.79, "nodes": 719, "errors": 0, "source_hash": "ea6b49441ead260f48897b9e196db23e8d2a370bc97afd1c9899e48cd19f9a1c", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n\n#", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "preproc_arg", "text": "ce\n\n", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "nclude \"Cpp/Features.h\"\n#i", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude \"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "pp/Features.h\"\n#", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "nclude \"Cpp/Warnings.h\"\n\n#", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude \"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "pp/Warnings.h\"\n\n", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "nclude \"Meta/TypeList.h\"\n\nI", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "nclude \"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "string_literal", "text": "eta/TypeList.h\"\n\n", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 26}}, {"id": 12, "type": "declaration", "text": "TRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nINTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 60}}, {"id": 13, "type": "type_identifier", "text": "TRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nI", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 37}}, {"id": 14, "type": "identifier", "text": "TRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\n", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 60}}, {"id": 15, "type": "function_definition", "text": "mespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\ntemplate<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}\n\n", "parent": null, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "mespace I", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 17, "type": "identifier", "text": "tra {", "parent": 15, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 15}}, {"id": 18, "type": "function_definition", "text": "mespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\n", "parent": 15, "children": [19, 20], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 24, "column": 121}}, {"id": 19, "type": "type_identifier", "text": "mespace M", "parent": 18, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 27}}, {"id": 20, "type": "identifier", "text": "ta {", "parent": 18, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 32}}, {"id": 21, "type": "binary_expression", "text": "mplate<typename... Args> struct T", "parent": 18, "children": [22, 26, 29, 30], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 33}}, {"id": 22, "type": "binary_expression", "text": "mplate<typename..", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 17}}, {"id": 23, "type": "identifier", "text": "mplate<t", "parent": 22, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 24, "type": "<", "text": "y", "parent": 22, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 25, "type": "identifier", "text": "pename..", "parent": 22, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 26, "type": "ERROR", "text": ". Args> ", "parent": 21, "children": [27, 28], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 25}}, {"id": 27, "type": "...", "text": ". A", "parent": 26, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 20}}, {"id": 28, "type": "identifier", "text": "gs> ", "parent": 26, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 25}}, {"id": 29, "type": ">", "text": "s", "parent": 21, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 26}}, {"id": 30, "type": "identifier", "text": "ruct T", "parent": 21, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 33}}, {"id": 31, "type": "ERROR", "text": "ple;\n", "parent": 18, "children": [32], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 39}}, {"id": 32, "type": "identifier", "text": "ple;\n", "parent": 31, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 39}}, {"id": 33, "type": "function_definition", "text": "mespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\n", "parent": 18, "children": [34], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 34, "type": "type_identifier", "text": "mespace D", "parent": 33, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 35, "type": "ERROR", "text": "mplate<int...> struct index_tuple {", "parent": 33, "children": [36, 45], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 35}}, {"id": 36, "type": "binary_expression", "text": "mplate<int...> struct i", "parent": 35, "children": [37, 41, 43, 44], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 23}}, {"id": 37, "type": "binary_expression", "text": "mplate<int..", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 12}}, {"id": 38, "type": "identifier", "text": "mplate<i", "parent": 37, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 39, "type": "<", "text": "n", "parent": 37, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 40, "type": "identifier", "text": "t..", "parent": 37, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 12}}, {"id": 41, "type": "ERROR", "text": ".> ", "parent": 36, "children": [42], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 15}}, {"id": 42, "type": "...", "text": ".> ", "parent": 41, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 15}}, {"id": 43, "type": ">", "text": "s", "parent": 36, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 16}}, {"id": 44, "type": "identifier", "text": "ruct i", "parent": 36, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 23}}, {"id": 45, "type": "identifier", "text": "dex_tuple {", "parent": 35, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 35}}, {"id": 46, "type": "comma_expression", "text": "mplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n", "parent": 33, "children": [47, 51, 53, 55], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 80}}, {"id": 47, "type": "binary_expression", "text": "mplate<int I", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 12}}, {"id": 48, "type": "identifier", "text": "mplate<i", "parent": 47, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 49, "type": "<", "text": "n", "parent": 47, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 50, "type": "identifier", "text": "t I", "parent": 47, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 12}}, {"id": 51, "type": "ERROR", "text": " ", "parent": 46, "children": [52], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 14}}, {"id": 52, "type": "identifier", "text": " ", "parent": 51, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 14}}, {"id": 53, "type": "ERROR", "text": "pename I", "parent": 46, "children": [54], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 24}}, {"id": 54, "type": "identifier", "text": "pename I", "parent": 53, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 24}}, {"id": 55, "type": "comma_expression", "text": "dexTuple, typename... Types> struct make_indexes_impl;\n", "parent": 46, "children": [56, 57], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 80}}, {"id": 56, "type": "identifier", "text": "dexTuple, ", "parent": 55, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 35}}, {"id": 57, "type": "binary_expression", "text": "pename... Types> struct make_indexes_impl;\n", "parent": 55, "children": [58, 59, 62, 63, 65], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 80}}, {"id": 58, "type": "identifier", "text": "pename..", "parent": 57, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 45}}, {"id": 59, "type": "ERROR", "text": ". Types> ", "parent": 57, "children": [60, 61], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 54}}, {"id": 60, "type": "...", "text": ". T", "parent": 59, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 48}}, {"id": 61, "type": "identifier", "text": "pes> ", "parent": 59, "children": [], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 54}}, {"id": 62, "type": ">", "text": "s", "parent": 57, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 63, "type": "ERROR", "text": "ruct m", "parent": 57, "children": [64], "start_point": {"row": 17, "column": 56}, "end_point": {"row": 17, "column": 62}}, {"id": 64, "type": "identifier", "text": "ruct m", "parent": 63, "children": [], "start_point": {"row": 17, "column": 56}, "end_point": {"row": 17, "column": 62}}, {"id": 65, "type": "identifier", "text": "ke_indexes_impl;\n", "parent": 57, "children": [], "start_point": {"row": 17, "column": 63}, "end_point": {"row": 17, "column": 80}}, {"id": 66, "type": "comma_expression", "text": "mplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 33, "children": [67, 71, 73, 76], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 22, "column": 83}}, {"id": 67, "type": "binary_expression", "text": "mplate<int I", "parent": 66, "children": [68, 69, 70], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 12}}, {"id": 68, "type": "identifier", "text": "mplate<i", "parent": 67, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 69, "type": "<", "text": "n", "parent": 67, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 70, "type": "identifier", "text": "t I", "parent": 67, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 12}}, {"id": 71, "type": "ERROR", "text": " ", "parent": 66, "children": [72], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 72, "type": "identifier", "text": " ", "parent": 71, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 73, "type": "ERROR", "text": "t... I", "parent": 66, "children": [74, 75], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 74, "type": "identifier", "text": "t..", "parent": 73, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 19}}, {"id": 75, "type": "...", "text": ". I", "parent": 73, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 22}}, {"id": 76, "type": "comma_expression", "text": "dexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 66, "children": [77, 78], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 22, "column": 83}}, {"id": 77, "type": "identifier", "text": "dexes, ", "parent": 76, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 30}}, {"id": 78, "type": "comma_expression", "text": "pename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 76, "children": [79, 80, 82], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 22, "column": 83}}, {"id": 79, "type": "identifier", "text": "pename T", "parent": 78, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 40}}, {"id": 80, "type": "ERROR", "text": " ", "parent": 78, "children": [81], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 81, "type": "identifier", "text": " ", "parent": 80, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 82, "type": "comma_expression", "text": "pename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 78, "children": [83, 94], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 22, "column": 83}}, {"id": 83, "type": "binary_expression", "text": "pename ... Types>\nstruct make_indexes_impl<I, ", "parent": 82, "children": [84, 93], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 20, "column": 26}}, {"id": 84, "type": "binary_expression", "text": "pename ... Types>\nstruct make_indexes_impl<I", "parent": 83, "children": [85, 86, 89, 90, 92], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 20, "column": 24}}, {"id": 85, "type": "identifier", "text": "pename .", "parent": 84, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 52}}, {"id": 86, "type": "ERROR", "text": ". Types>\n", "parent": 84, "children": [87, 88], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 62}}, {"id": 87, "type": "...", "text": ". T", "parent": 86, "children": [], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 56}}, {"id": 88, "type": "identifier", "text": "pes>\n", "parent": 86, "children": [], "start_point": {"row": 19, "column": 57}, "end_point": {"row": 19, "column": 62}}, {"id": 89, "type": ">", "text": "s", "parent": 84, "children": [], "start_point": {"row": 19, "column": 62}, "end_point": {"row": 19, "column": 63}}, {"id": 90, "type": "ERROR", "text": "ruct m", "parent": 84, "children": [91], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 91, "type": "identifier", "text": "ruct m", "parent": 90, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 92, "type": "identifier", "text": "ke_indexes_impl<I", "parent": 84, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 24}}, {"id": 93, "type": "identifier", "text": " ", "parent": 83, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 94, "type": "comma_expression", "text": "dex_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 82, "children": [95, 105], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 22, "column": 83}}, {"id": 95, "type": "binary_expression", "text": "dex_tuple<Indexes...>, T, ", "parent": 94, "children": [96, 100, 102, 103, 104], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 54}}, {"id": 96, "type": "binary_expression", "text": "dex_tuple<Indexes..", "parent": 95, "children": [97, 98, 99], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 47}}, {"id": 97, "type": "identifier", "text": "dex_tuple<I", "parent": 96, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 39}}, {"id": 98, "type": "<", "text": "n", "parent": 96, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 40}}, {"id": 99, "type": "identifier", "text": "dexes..", "parent": 96, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 47}}, {"id": 100, "type": "ERROR", "text": ".>,", "parent": 95, "children": [101], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 101, "type": "...", "text": ".>,", "parent": 100, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 102, "type": ">", "text": " ", "parent": 95, "children": [], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 51}}, {"id": 103, "type": "ERROR", "text": "T", "parent": 95, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 52}}, {"id": 104, "type": "identifier", "text": " ", "parent": 95, "children": [], "start_point": {"row": 20, "column": 53}, "end_point": {"row": 20, "column": 54}}, {"id": 105, "type": "comma_expression", "text": "pes...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 94, "children": [106, 119], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 22, "column": 83}}, {"id": 106, "type": "binary_expression", "text": "pes...>\n{\n\ttypedef typename make_indexes_impl<I+1, ", "parent": 105, "children": [107, 115, 116], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 22, "column": 39}}, {"id": 107, "type": "binary_expression", "text": "pes...>\n{\n\ttypedef typename make_indexes_impl<I", "parent": 106, "children": [108, 109, 111, 114], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 22, "column": 35}}, {"id": 108, "type": "identifier", "text": "pes..", "parent": 107, "children": [], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 61}}, {"id": 109, "type": "ERROR", "text": ".>\n", "parent": 107, "children": [110], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 64}}, {"id": 110, "type": "...", "text": ".>\n", "parent": 109, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 64}}, {"id": 111, "type": "ERROR", "text": "\ttypedef typename m", "parent": 107, "children": [112, 113], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 17}}, {"id": 112, "type": "typedef", "text": "pedef t", "parent": 111, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 8}}, {"id": 113, "type": "identifier", "text": "pename m", "parent": 111, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 17}}, {"id": 114, "type": "identifier", "text": "ke_indexes_impl<I", "parent": 107, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 35}}, {"id": 115, "type": "<", "text": "+", "parent": 106, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 116, "type": "binary_expression", "text": "1, ", "parent": 106, "children": [117, 118], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 39}}, {"id": 117, "type": "identifier", "text": "1", "parent": 116, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 37}}, {"id": 118, "type": "number_literal", "text": " ", "parent": 116, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 119, "type": "comma_expression", "text": "dex_tuple<Indexes..., I>, Types...>::_ _;\n", "parent": 105, "children": [120, 124, 126], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 83}}, {"id": 120, "type": "binary_expression", "text": "dex_tuple<Indexes..", "parent": 119, "children": [121, 122, 123], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 60}}, {"id": 121, "type": "identifier", "text": "dex_tuple<I", "parent": 120, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 52}}, {"id": 122, "type": "<", "text": "n", "parent": 120, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 53}}, {"id": 123, "type": "identifier", "text": "dexes..", "parent": 120, "children": [], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 60}}, {"id": 124, "type": "ERROR", "text": "., ", "parent": 119, "children": [125], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 63}}, {"id": 125, "type": "...", "text": "., ", "parent": 124, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 63}}, {"id": 126, "type": "binary_expression", "text": ", Types...>::_ _;\n", "parent": 119, "children": [127, 131, 133, 135], "start_point": {"row": 22, "column": 65}, "end_point": {"row": 22, "column": 83}}, {"id": 127, "type": "binary_expression", "text": ", Types..", "parent": 126, "children": [128, 129, 130], "start_point": {"row": 22, "column": 65}, "end_point": {"row": 22, "column": 74}}, {"id": 128, "type": ">", "text": " ", "parent": 127, "children": [], "start_point": {"row": 22, "column": 66}, "end_point": {"row": 22, "column": 67}}, {"id": 129, "type": "ERROR", "text": "T", "parent": 127, "children": [], "start_point": {"row": 22, "column": 67}, "end_point": {"row": 22, "column": 68}}, {"id": 130, "type": "identifier", "text": "pes..", "parent": 127, "children": [], "start_point": {"row": 22, "column": 69}, "end_point": {"row": 22, "column": 74}}, {"id": 131, "type": "ERROR", "text": ".>:", "parent": 126, "children": [132], "start_point": {"row": 22, "column": 74}, "end_point": {"row": 22, "column": 77}}, {"id": 132, "type": "...", "text": ".>:", "parent": 131, "children": [], "start_point": {"row": 22, "column": 74}, "end_point": {"row": 22, "column": 77}}, {"id": 133, "type": "ERROR", "text": "_ _", "parent": 126, "children": [134], "start_point": {"row": 22, "column": 78}, "end_point": {"row": 22, "column": 81}}, {"id": 134, "type": "identifier", "text": "_", "parent": 133, "children": [], "start_point": {"row": 22, "column": 80}, "end_point": {"row": 22, "column": 81}}, {"id": 135, "type": "identifier", "text": "\n", "parent": 126, "children": [], "start_point": {"row": 22, "column": 82}, "end_point": {"row": 22, "column": 83}}, {"id": 136, "type": "comma_expression", "text": "mplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}", "parent": 18, "children": [137, 141, 143, 146], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 119}}, {"id": 137, "type": "binary_expression", "text": "mplate<int I", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 12}}, {"id": 138, "type": "identifier", "text": "mplate<i", "parent": 137, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 139, "type": "<", "text": "n", "parent": 137, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 140, "type": "identifier", "text": "t I", "parent": 137, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 141, "type": "ERROR", "text": " ", "parent": 136, "children": [142], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 142, "type": "identifier", "text": " ", "parent": 141, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 143, "type": "ERROR", "text": "t... I", "parent": 136, "children": [144, 145], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 144, "type": "identifier", "text": "t..", "parent": 143, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 19}}, {"id": 145, "type": "...", "text": ". I", "parent": 143, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 22}}, {"id": 146, "type": "comma_expression", "text": "dexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}", "parent": 136, "children": [147, 155], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 119}}, {"id": 147, "type": "binary_expression", "text": "dexes> struct make_indexes_impl<I, ", "parent": 146, "children": [148, 154], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 58}}, {"id": 148, "type": "binary_expression", "text": "dexes> struct make_indexes_impl<I", "parent": 147, "children": [149, 150, 151, 153], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 56}}, {"id": 149, "type": "identifier", "text": "dexes> ", "parent": 148, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 150, "type": ">", "text": "s", "parent": 148, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 31}}, {"id": 151, "type": "ERROR", "text": "ruct m", "parent": 148, "children": [152], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 38}}, {"id": 152, "type": "identifier", "text": "ruct m", "parent": 151, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 38}}, {"id": 153, "type": "identifier", "text": "ke_indexes_impl<I", "parent": 148, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 56}}, {"id": 154, "type": "identifier", "text": " ", "parent": 147, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 58}}, {"id": 155, "type": "binary_expression", "text": "dex_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;}", "parent": 146, "children": [156, 169, 171], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 119}}, {"id": 156, "type": "binary_expression", "text": "dex_tuple<Indexes...>> {typedef index_tuple<Indexes..", "parent": 155, "children": [157, 167, 168], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 113}}, {"id": 157, "type": "binary_expression", "text": "dex_tuple<Indexes...>> {typedef index_tuple<I", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 105}}, {"id": 158, "type": "identifier", "text": "dex_tuple<I", "parent": 157, "children": [], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 71}}, {"id": 159, "type": "<", "text": "n", "parent": 157, "children": [], "start_point": {"row": 24, "column": 71}, "end_point": {"row": 24, "column": 72}}, {"id": 160, "type": "binary_expression", "text": "dexes...>> {typedef index_tuple<I", "parent": 157, "children": [161, 162, 164, 166], "start_point": {"row": 24, "column": 72}, "end_point": {"row": 24, "column": 105}}, {"id": 161, "type": "identifier", "text": "dexes..", "parent": 160, "children": [], "start_point": {"row": 24, "column": 72}, "end_point": {"row": 24, "column": 79}}, {"id": 162, "type": "ERROR", "text": ".>>", "parent": 160, "children": [163], "start_point": {"row": 24, "column": 79}, "end_point": {"row": 24, "column": 82}}, {"id": 163, "type": "...", "text": ".>>", "parent": 162, "children": [], "start_point": {"row": 24, "column": 79}, "end_point": {"row": 24, "column": 82}}, {"id": 164, "type": "ERROR", "text": "ypedef i", "parent": 160, "children": [165], "start_point": {"row": 24, "column": 85}, "end_point": {"row": 24, "column": 93}}, {"id": 165, "type": "typedef", "text": "pedef i", "parent": 164, "children": [], "start_point": {"row": 24, "column": 86}, "end_point": {"row": 24, "column": 93}}, {"id": 166, "type": "identifier", "text": "dex_tuple<I", "parent": 160, "children": [], "start_point": {"row": 24, "column": 94}, "end_point": {"row": 24, "column": 105}}, {"id": 167, "type": "<", "text": "n", "parent": 156, "children": [], "start_point": {"row": 24, "column": 105}, "end_point": {"row": 24, "column": 106}}, {"id": 168, "type": "identifier", "text": "dexes..", "parent": 156, "children": [], "start_point": {"row": 24, "column": 106}, "end_point": {"row": 24, "column": 113}}, {"id": 169, "type": "ERROR", "text": ".> ", "parent": 155, "children": [170], "start_point": {"row": 24, "column": 113}, "end_point": {"row": 24, "column": 116}}, {"id": 170, "type": "...", "text": ".> ", "parent": 169, "children": [], "start_point": {"row": 24, "column": 113}, "end_point": {"row": 24, "column": 116}}, {"id": 171, "type": ">", "text": "_", "parent": 155, "children": [], "start_point": {"row": 24, "column": 116}, "end_point": {"row": 24, "column": 117}}, {"id": 172, "type": "binary_expression", "text": "mplate<typename... Types> struct m", "parent": 15, "children": [173, 177, 180, 181], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 34}}, {"id": 173, "type": "binary_expression", "text": "mplate<typename..", "parent": 172, "children": [174, 175, 176], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 17}}, {"id": 174, "type": "identifier", "text": "mplate<t", "parent": 173, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 175, "type": "<", "text": "y", "parent": 173, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 9}}, {"id": 176, "type": "identifier", "text": "pename..", "parent": 173, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 177, "type": "ERROR", "text": ". Types> ", "parent": 172, "children": [178, 179], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 26}}, {"id": 178, "type": "...", "text": ". T", "parent": 177, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 20}}, {"id": 179, "type": "identifier", "text": "pes> ", "parent": 177, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 26}}, {"id": 180, "type": ">", "text": "s", "parent": 172, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 27}}, {"id": 181, "type": "identifier", "text": "ruct m", "parent": 172, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 34}}, {"id": 182, "type": "labeled_statement", "text": "ke_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}", "parent": 15, "children": [183], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 98}}, {"id": 183, "type": "statement_identifier", "text": "ke_indexes: ", "parent": 182, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 47}}, {"id": 184, "type": "comma_expression", "text": "ke_indexes_impl<0, index_tuple<>, Types..", "parent": 182, "children": [185, 188], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 90}}, {"id": 185, "type": "binary_expression", "text": "ke_indexes_impl<0, ", "parent": 184, "children": [186, 187], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 68}}, {"id": 186, "type": "identifier", "text": "ke_indexes_impl<0", "parent": 185, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 66}}, {"id": 187, "type": "number_literal", "text": " ", "parent": 185, "children": [], "start_point": {"row": 25, "column": 67}, "end_point": {"row": 25, "column": 68}}, {"id": 188, "type": "binary_expression", "text": "dex_tuple<>, Types..", "parent": 184, "children": [189, 190, 192], "start_point": {"row": 25, "column": 70}, "end_point": {"row": 25, "column": 90}}, {"id": 189, "type": "identifier", "text": "dex_tuple<>", "parent": 188, "children": [], "start_point": {"row": 25, "column": 70}, "end_point": {"row": 25, "column": 81}}, {"id": 190, "type": "ERROR", "text": " T", "parent": 188, "children": [191], "start_point": {"row": 25, "column": 82}, "end_point": {"row": 25, "column": 84}}, {"id": 191, "type": ">", "text": " ", "parent": 190, "children": [], "start_point": {"row": 25, "column": 82}, "end_point": {"row": 25, "column": 83}}, {"id": 192, "type": "identifier", "text": "pes..", "parent": 188, "children": [], "start_point": {"row": 25, "column": 85}, "end_point": {"row": 25, "column": 90}}, {"id": 193, "type": "ERROR", "text": ".> {};\n", "parent": 182, "children": [194], "start_point": {"row": 25, "column": 90}, "end_point": {"row": 25, "column": 97}}, {"id": 194, "type": "...", "text": ".> ", "parent": 193, "children": [], "start_point": {"row": 25, "column": 90}, "end_point": {"row": 25, "column": 93}}, {"id": 195, "type": "ERROR", "text": "mplate<typename ...Args> struct Tuple;\ntemplate<> s", "parent": null, "children": [196, 209, 210], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 10}}, {"id": 196, "type": "binary_expression", "text": "mplate<typename ...Args> struct Tuple;\ntemplate<>", "parent": 195, "children": [197, 201, 204, 205, 208], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 197, "type": "binary_expression", "text": "mplate<typename .", "parent": 196, "children": [198, 199, 200], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 17}}, {"id": 198, "type": "identifier", "text": "mplate<t", "parent": 197, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 199, "type": "<", "text": "y", "parent": 197, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 200, "type": "identifier", "text": "pename .", "parent": 197, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 17}}, {"id": 201, "type": "ERROR", "text": ".Args> ", "parent": 196, "children": [202, 203], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 25}}, {"id": 202, "type": "...", "text": ".Ar", "parent": 201, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 21}}, {"id": 203, "type": "identifier", "text": "gs> ", "parent": 201, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 25}}, {"id": 204, "type": ">", "text": "s", "parent": 196, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 205, "type": "ERROR", "text": "ruct Tuple;\nt", "parent": 196, "children": [206, 207], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 40}}, {"id": 206, "type": "identifier", "text": "ruct T", "parent": 205, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 33}}, {"id": 207, "type": "identifier", "text": "ple;\n", "parent": 205, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 39}}, {"id": 208, "type": "identifier", "text": "mplate<>", "parent": 196, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 209, "type": "<", "text": " ", "parent": 195, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 210, "type": ">", "text": "s", "parent": 195, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 211, "type": "struct_specifier", "text": "ruct Tuple<>\n{\n\ttypedef TypeList<> TL;\n\tenum {ElementCount=0};\n};\n", "parent": null, "children": [212, 213], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 34, "column": 1}}, {"id": 212, "type": "struct", "text": "ruct T", "parent": 211, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 17}}, {"id": 213, "type": "type_identifier", "text": "ple<>", "parent": 211, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 23}}, {"id": 214, "type": "<", "text": "\n", "parent": 211, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 24}}, {"id": 215, "type": "field_declaration", "text": "pedef TypeList<> TL;\n\t", "parent": 211, "children": [216, 217, 218], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 23}}, {"id": 216, "type": "type_identifier", "text": "pedef T", "parent": 215, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 8}}, {"id": 217, "type": "field_identifier", "text": "peList<>", "parent": 215, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 218, "type": "ERROR", "text": " TL;\n", "parent": 215, "children": [219, 220], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 22}}, {"id": 219, "type": "<", "text": " ", "parent": 218, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 220, "type": ">", "text": "T", "parent": 218, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 221, "type": "field_declaration", "text": "um {ElementCount=0};\n}", "parent": 211, "children": [222], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 23}}, {"id": 222, "type": "enum_specifier", "text": "um {ElementCount=0};\n", "parent": 221, "children": [223, 224], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 22}}, {"id": 223, "type": "enum", "text": "um {", "parent": 222, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 5}}, {"id": 224, "type": "enumerator_list", "text": "lementCount=0};\n", "parent": 222, "children": [225], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 22}}, {"id": 225, "type": "enumerator", "text": "ementCount=0};", "parent": 224, "children": [226], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 21}}, {"id": 226, "type": "identifier", "text": "ementCount=0", "parent": 225, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 19}}, {"id": 227, "type": "update_expression", "text": "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n\ttypedef Tuple<Args...> NextTuple;\n", "parent": null, "children": [228, 259], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 33}}, {"id": 228, "type": "binary_expression", "text": "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n\ttypedef Tuple<Args...> NextTuple;\n", "parent": 227, "children": [229, 255, 257, 258], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 33}}, {"id": 229, "type": "binary_expression", "text": "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n\ttypedef Tuple<Args..", "parent": 228, "children": [230, 253, 254], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 19}}, {"id": 230, "type": "binary_expression", "text": "mplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n\ttypedef Tuple<A", "parent": 229, "children": [231, 247, 250, 252], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 14}}, {"id": 231, "type": "binary_expression", "text": "mplate<typename H, typename... Args> struct Tuple<H, ", "parent": 230, "children": [232, 244, 246], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 53}}, {"id": 232, "type": "binary_expression", "text": "mplate<typename H, typename... Args> struct T", "parent": 231, "children": [233, 237, 242, 243], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 45}}, {"id": 233, "type": "binary_expression", "text": "mplate<typename H", "parent": 232, "children": [234, 235, 236], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 17}}, {"id": 234, "type": "identifier", "text": "mplate<t", "parent": 233, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 235, "type": "<", "text": "y", "parent": 233, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 236, "type": "identifier", "text": "pename H", "parent": 233, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 237, "type": "ERROR", "text": " typename... Args> ", "parent": 232, "children": [238, 239, 240, 241], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 37}}, {"id": 238, "type": "identifier", "text": " ", "parent": 237, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 239, "type": "identifier", "text": "pename..", "parent": 237, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 29}}, {"id": 240, "type": "...", "text": ". A", "parent": 237, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 32}}, {"id": 241, "type": "identifier", "text": "gs> ", "parent": 237, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 37}}, {"id": 242, "type": ">", "text": "s", "parent": 232, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 38}}, {"id": 243, "type": "identifier", "text": "ruct T", "parent": 232, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 45}}, {"id": 244, "type": "ERROR", "text": "ple<H", "parent": 231, "children": [245], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 51}}, {"id": 245, "type": "identifier", "text": "ple<H", "parent": 244, "children": [], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 51}}, {"id": 246, "type": "identifier", "text": " ", "parent": 231, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 53}}, {"id": 247, "type": "ERROR", "text": "Args...>\n", "parent": 230, "children": [248, 249], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 62}}, {"id": 248, "type": "identifier", "text": "gs..", "parent": 247, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 59}}, {"id": 249, "type": "...", "text": ".>\n", "parent": 247, "children": [], "start_point": {"row": 37, "column": 59}, "end_point": {"row": 37, "column": 62}}, {"id": 250, "type": "ERROR", "text": "\ttypedef T", "parent": 230, "children": [251], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 251, "type": "typedef", "text": "pedef T", "parent": 250, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 8}}, {"id": 252, "type": "identifier", "text": "ple<A", "parent": 230, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 14}}, {"id": 253, "type": "<", "text": "r", "parent": 229, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 15}}, {"id": 254, "type": "identifier", "text": "gs..", "parent": 229, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 19}}, {"id": 255, "type": "ERROR", "text": ".> ", "parent": 228, "children": [256], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 22}}, {"id": 256, "type": "...", "text": ".> ", "parent": 255, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 22}}, {"id": 257, "type": ">", "text": "N", "parent": 228, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 258, "type": "identifier", "text": "xtTuple;\n", "parent": 228, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 33}}, {"id": 259, "type": "--", "text": "", "parent": 227, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 33}}, {"id": 260, "type": "type_definition", "text": "pedef TypeList<H, Args...> TL;\n\t", "parent": null, "children": [261, 262, 263, 264, 265], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 33}}, {"id": 261, "type": "typedef", "text": "pedef T", "parent": 260, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 8}}, {"id": 262, "type": "type_identifier", "text": "peList<H", "parent": 260, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 17}}, {"id": 263, "type": "type_identifier", "text": " ", "parent": 260, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 19}}, {"id": 264, "type": "type_identifier", "text": "gs..", "parent": 260, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 25}}, {"id": 265, "type": "ERROR", "text": ".> TL;\n", "parent": 260, "children": [266, 267], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 32}}, {"id": 266, "type": "...", "text": ".> ", "parent": 265, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 28}}, {"id": 267, "type": ">", "text": "T", "parent": 265, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 268, "type": "enum_specifier", "text": "um {ElementCount = 1+sizeof...(Args)};\n", "parent": null, "children": [269, 270], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 40}}, {"id": 269, "type": "enum", "text": "um {", "parent": 268, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 270, "type": "enumerator_list", "text": "lementCount = 1+sizeof...(Args)};\n", "parent": 268, "children": [271], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 40}}, {"id": 271, "type": "enumerator", "text": "ementCount = 1+sizeof...(Args)}", "parent": 270, "children": [272, 273, 274], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 38}}, {"id": 272, "type": "identifier", "text": "ementCount =", "parent": 271, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 19}}, {"id": 273, "type": "=", "text": "1", "parent": 271, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 274, "type": "binary_expression", "text": "sizeof...(Args)}", "parent": 271, "children": [275, 276, 277], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 38}}, {"id": 275, "type": "number_literal", "text": "s", "parent": 274, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 23}}, {"id": 276, "type": "+", "text": "i", "parent": 274, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 277, "type": "sizeof_expression", "text": "zeof...(Args)}", "parent": 274, "children": [278, 279, 280], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 38}}, {"id": 278, "type": "sizeof", "text": "zeof..", "parent": 277, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 30}}, {"id": 279, "type": "ERROR", "text": ".(Ar", "parent": 277, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 34}}, {"id": 280, "type": "identifier", "text": "gs)}", "parent": 277, "children": [], "start_point": {"row": 41, "column": 34}, "end_point": {"row": 41, "column": 38}}, {"id": 281, "type": "ERROR", "text": "mplate<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n\t", "parent": null, "children": [282], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 105}}, {"id": 282, "type": "binary_expression", "text": "mplate<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n", "parent": 281, "children": [283, 287, 292, 293, 295], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 104}}, {"id": 283, "type": "binary_expression", "text": "mplate<typename H", "parent": 282, "children": [284, 285, 286], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 18}}, {"id": 284, "type": "identifier", "text": "mplate<t", "parent": 283, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 285, "type": "<", "text": "y", "parent": 283, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 286, "type": "identifier", "text": "pename H", "parent": 283, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 18}}, {"id": 287, "type": "ERROR", "text": ", typename H2, typename... Args1> ", "parent": 282, "children": [288, 289, 290, 291], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 53}}, {"id": 288, "type": "identifier", "text": "pename H", "parent": 287, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 31}}, {"id": 289, "type": "identifier", "text": "pename..", "parent": 287, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 44}}, {"id": 290, "type": "...", "text": ". A", "parent": 287, "children": [], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 47}}, {"id": 291, "type": "identifier", "text": "gs1> ", "parent": 287, "children": [], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 53}}, {"id": 292, "type": ">", "text": "c", "parent": 282, "children": [], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 54}}, {"id": 293, "type": "ERROR", "text": "nstexpr T", "parent": 282, "children": [294], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 64}}, {"id": 294, "type": "identifier", "text": "nstexpr T", "parent": 293, "children": [], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 64}}, {"id": 295, "type": "call_expression", "text": "ple(H1&& h, H2&& h2, Args1&&... args):\n", "parent": 282, "children": [296, 297], "start_point": {"row": 43, "column": 65}, "end_point": {"row": 43, "column": 104}}, {"id": 296, "type": "identifier", "text": "ple(H", "parent": 295, "children": [], "start_point": {"row": 43, "column": 65}, "end_point": {"row": 43, "column": 70}}, {"id": 297, "type": "argument_list", "text": "1&& h, H2&& h2, Args1&&... args):\n", "parent": 295, "children": [298, 302, 305], "start_point": {"row": 43, "column": 70}, "end_point": {"row": 43, "column": 104}}, {"id": 298, "type": "binary_expression", "text": "&& h, ", "parent": 297, "children": [299, 300, 301], "start_point": {"row": 43, "column": 71}, "end_point": {"row": 43, "column": 77}}, {"id": 299, "type": "identifier", "text": "&&", "parent": 298, "children": [], "start_point": {"row": 43, "column": 71}, "end_point": {"row": 43, "column": 73}}, {"id": 300, "type": "&&", "text": " h", "parent": 298, "children": [], "start_point": {"row": 43, "column": 73}, "end_point": {"row": 43, "column": 75}}, {"id": 301, "type": "identifier", "text": " ", "parent": 298, "children": [], "start_point": {"row": 43, "column": 76}, "end_point": {"row": 43, "column": 77}}, {"id": 302, "type": "binary_expression", "text": "&& h2, ", "parent": 297, "children": [303, 304], "start_point": {"row": 43, "column": 79}, "end_point": {"row": 43, "column": 86}}, {"id": 303, "type": "identifier", "text": "&&", "parent": 302, "children": [], "start_point": {"row": 43, "column": 79}, "end_point": {"row": 43, "column": 81}}, {"id": 304, "type": "&&", "text": " h", "parent": 302, "children": [], "start_point": {"row": 43, "column": 81}, "end_point": {"row": 43, "column": 83}}, {"id": 305, "type": "binary_expression", "text": "gs1&&... args):", "parent": 297, "children": [306, 307, 308, 309], "start_point": {"row": 43, "column": 88}, "end_point": {"row": 43, "column": 103}}, {"id": 306, "type": "identifier", "text": "gs1&&", "parent": 305, "children": [], "start_point": {"row": 43, "column": 88}, "end_point": {"row": 43, "column": 93}}, {"id": 307, "type": "&&", "text": "..", "parent": 305, "children": [], "start_point": {"row": 43, "column": 93}, "end_point": {"row": 43, "column": 95}}, {"id": 308, "type": "ERROR", "text": ". a", "parent": 305, "children": [], "start_point": {"row": 43, "column": 95}, "end_point": {"row": 43, "column": 98}}, {"id": 309, "type": "identifier", "text": "gs):", "parent": 305, "children": [], "start_point": {"row": 43, "column": 99}, "end_point": {"row": 43, "column": 103}}, {"id": 310, "type": "labeled_statement", "text": "rst(Cpp::Forward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {", "parent": null, "children": [311, 312], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 86}}, {"id": 311, "type": "statement_identifier", "text": "rst(C", "parent": 310, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 7}}, {"id": 312, "type": "ERROR", "text": "pp::F", "parent": 310, "children": [313], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 12}}, {"id": 313, "type": "type_descriptor", "text": "p::", "parent": 312, "children": [314], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 11}}, {"id": 314, "type": "type_identifier", "text": "p::", "parent": 313, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 11}}, {"id": 315, "type": "comma_expression", "text": "rward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {", "parent": 310, "children": [316, 323, 324], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 86}}, {"id": 316, "type": "binary_expression", "text": "rward<H1>(h)),", "parent": 315, "children": [317, 321, 322], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 27}}, {"id": 317, "type": "binary_expression", "text": "rward<H1>(", "parent": 316, "children": [318, 319, 320], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 23}}, {"id": 318, "type": "identifier", "text": "rward<H", "parent": 317, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 20}}, {"id": 319, "type": "<", "text": "1", "parent": 317, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 21}}, {"id": 320, "type": "identifier", "text": ">(", "parent": 317, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 23}}, {"id": 321, "type": ">", "text": "h", "parent": 316, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 24}}, {"id": 322, "type": "parenthesized_expression", "text": ")),", "parent": 316, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 27}}, {"id": 323, "type": "ERROR", "text": " ", "parent": 315, "children": [], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 28}}, {"id": 324, "type": "call_expression", "text": "xt(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {", "parent": 315, "children": [325, 326], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 86}}, {"id": 325, "type": "identifier", "text": "xt(C", "parent": 324, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 34}}, {"id": 326, "type": "argument_list", "text": "pp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {", "parent": 324, "children": [327, 329, 337, 339, 347], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 86}}, {"id": 327, "type": "ERROR", "text": "p::Fo", "parent": 326, "children": [328], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 40}}, {"id": 328, "type": "identifier", "text": "p::", "parent": 327, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 38}}, {"id": 329, "type": "binary_expression", "text": "rward<H2>(h2), ", "parent": 326, "children": [330, 334, 335], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 55}}, {"id": 330, "type": "binary_expression", "text": "rward<H2>(", "parent": 329, "children": [331, 332, 333], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 50}}, {"id": 331, "type": "identifier", "text": "rward<H", "parent": 330, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 47}}, {"id": 332, "type": "<", "text": "2", "parent": 330, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 48}}, {"id": 333, "type": "identifier", "text": ">(", "parent": 330, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 50}}, {"id": 334, "type": ">", "text": "h", "parent": 329, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 51}}, {"id": 335, "type": "parenthesized_expression", "text": "2), ", "parent": 329, "children": [336], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 55}}, {"id": 336, "type": "identifier", "text": "),", "parent": 335, "children": [], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 54}}, {"id": 337, "type": "ERROR", "text": "p::Fo", "parent": 326, "children": [338], "start_point": {"row": 44, "column": 57}, "end_point": {"row": 44, "column": 62}}, {"id": 338, "type": "identifier", "text": "p::", "parent": 337, "children": [], "start_point": {"row": 44, "column": 57}, "end_point": {"row": 44, "column": 60}}, {"id": 339, "type": "binary_expression", "text": "rward<Args1>(args)..", "parent": 326, "children": [340, 344, 345], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 82}}, {"id": 340, "type": "binary_expression", "text": "rward<Args1>(", "parent": 339, "children": [341, 342, 343], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 75}}, {"id": 341, "type": "identifier", "text": "rward<A", "parent": 340, "children": [], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 69}}, {"id": 342, "type": "<", "text": "r", "parent": 340, "children": [], "start_point": {"row": 44, "column": 69}, "end_point": {"row": 44, "column": 70}}, {"id": 343, "type": "identifier", "text": "gs1>(", "parent": 340, "children": [], "start_point": {"row": 44, "column": 70}, "end_point": {"row": 44, "column": 75}}, {"id": 344, "type": ">", "text": "a", "parent": 339, "children": [], "start_point": {"row": 44, "column": 75}, "end_point": {"row": 44, "column": 76}}, {"id": 345, "type": "parenthesized_expression", "text": "rgs)..", "parent": 339, "children": [346], "start_point": {"row": 44, "column": 76}, "end_point": {"row": 44, "column": 82}}, {"id": 346, "type": "identifier", "text": "gs).", "parent": 345, "children": [], "start_point": {"row": 44, "column": 77}, "end_point": {"row": 44, "column": 81}}, {"id": 347, "type": "ERROR", "text": ".) ", "parent": 326, "children": [348], "start_point": {"row": 44, "column": 82}, "end_point": {"row": 44, "column": 85}}, {"id": 348, "type": "...", "text": ".) ", "parent": 347, "children": [], "start_point": {"row": 44, "column": 82}, "end_point": {"row": 44, "column": 85}}, {"id": 349, "type": "declaration", "text": "nstexpr Tuple(const Tuple& rhs) = default;\n\n", "parent": null, "children": [350, 352, 360], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 45}}, {"id": 350, "type": "type_qualifier", "text": "nstexpr T", "parent": 349, "children": [351], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 10}}, {"id": 351, "type": "constexpr", "text": "nstexpr T", "parent": 350, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 10}}, {"id": 352, "type": "macro_type_specifier", "text": "ple(const Tuple& rhs) =", "parent": 349, "children": [353, 354, 357], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 34}}, {"id": 353, "type": "identifier", "text": "ple(c", "parent": 352, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 16}}, {"id": 354, "type": "type_descriptor", "text": "nst Tuple& ", "parent": 352, "children": [355, 356], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 28}}, {"id": 355, "type": "type_qualifier", "text": "nst T", "parent": 354, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 22}}, {"id": 356, "type": "type_identifier", "text": "ple& ", "parent": 354, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 28}}, {"id": 357, "type": "ERROR", "text": "rhs) ", "parent": 352, "children": [358, 359], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 33}}, {"id": 358, "type": "&", "text": "r", "parent": 357, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 29}}, {"id": 359, "type": "identifier", "text": "s) ", "parent": 357, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 33}}, {"id": 360, "type": "init_declarator", "text": " default;\n", "parent": 349, "children": [361, 362, 363], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 44}}, {"id": 361, "type": "identifier", "text": "", "parent": 360, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 34}}, {"id": 362, "type": "=", "text": "d", "parent": 360, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 36}}, {"id": 363, "type": "identifier", "text": "fault;\n", "parent": 360, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 44}}, {"id": 364, "type": "ERROR", "text": "mplate<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n\t", "parent": null, "children": [365], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 79}}, {"id": 365, "type": "binary_expression", "text": "mplate<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n", "parent": 364, "children": [366, 370, 372, 373, 376], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 78}}, {"id": 366, "type": "binary_expression", "text": "mplate<typename H", "parent": 365, "children": [367, 368, 369], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 18}}, {"id": 367, "type": "identifier", "text": "mplate<t", "parent": 366, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 9}}, {"id": 368, "type": "<", "text": "y", "parent": 366, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 369, "type": "identifier", "text": "pename H", "parent": 366, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 18}}, {"id": 370, "type": "ERROR", "text": "> ", "parent": 365, "children": [371], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 21}}, {"id": 371, "type": "identifier", "text": "> ", "parent": 370, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 21}}, {"id": 372, "type": ">", "text": "c", "parent": 365, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 22}}, {"id": 373, "type": "ERROR", "text": "nstexpr explicit T", "parent": 365, "children": [374, 375], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 41}}, {"id": 374, "type": "identifier", "text": "nstexpr e", "parent": 373, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 32}}, {"id": 375, "type": "identifier", "text": "plicit T", "parent": 373, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 41}}, {"id": 376, "type": "call_expression", "text": "ple(H1&& h, Tuple<Args...>&& args):\n", "parent": 365, "children": [377, 378], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 78}}, {"id": 377, "type": "identifier", "text": "ple(H", "parent": 376, "children": [], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 47}}, {"id": 378, "type": "argument_list", "text": "1&& h, Tuple<Args...>&& args):\n", "parent": 376, "children": [379, 383], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 78}}, {"id": 379, "type": "binary_expression", "text": "&& h, ", "parent": 378, "children": [380, 381, 382], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 54}}, {"id": 380, "type": "identifier", "text": "&&", "parent": 379, "children": [], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 50}}, {"id": 381, "type": "&&", "text": " h", "parent": 379, "children": [], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 52}}, {"id": 382, "type": "identifier", "text": " ", "parent": 379, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 54}}, {"id": 383, "type": "binary_expression", "text": "ple<Args...>&& args):", "parent": 378, "children": [384, 388, 390], "start_point": {"row": 48, "column": 56}, "end_point": {"row": 48, "column": 77}}, {"id": 384, "type": "binary_expression", "text": "ple<Args..", "parent": 383, "children": [385, 386, 387], "start_point": {"row": 48, "column": 56}, "end_point": {"row": 48, "column": 66}}, {"id": 385, "type": "identifier", "text": "ple<A", "parent": 384, "children": [], "start_point": {"row": 48, "column": 56}, "end_point": {"row": 48, "column": 61}}, {"id": 386, "type": "<", "text": "r", "parent": 384, "children": [], "start_point": {"row": 48, "column": 61}, "end_point": {"row": 48, "column": 62}}, {"id": 387, "type": "identifier", "text": "gs..", "parent": 384, "children": [], "start_point": {"row": 48, "column": 62}, "end_point": {"row": 48, "column": 66}}, {"id": 388, "type": "ERROR", "text": ".>&", "parent": 383, "children": [389], "start_point": {"row": 48, "column": 66}, "end_point": {"row": 48, "column": 69}}, {"id": 389, "type": "...", "text": ".>&", "parent": 388, "children": [], "start_point": {"row": 48, "column": 66}, "end_point": {"row": 48, "column": 69}}, {"id": 390, "type": "pointer_expression", "text": " args):", "parent": 383, "children": [391, 392], "start_point": {"row": 48, "column": 70}, "end_point": {"row": 48, "column": 77}}, {"id": 391, "type": "&", "text": " ", "parent": 390, "children": [], "start_point": {"row": 48, "column": 70}, "end_point": {"row": 48, "column": 71}}, {"id": 392, "type": "pointer_expression", "text": "args):", "parent": 390, "children": [393, 394], "start_point": {"row": 48, "column": 71}, "end_point": {"row": 48, "column": 77}}, {"id": 393, "type": "&", "text": "a", "parent": 392, "children": [], "start_point": {"row": 48, "column": 71}, "end_point": {"row": 48, "column": 72}}, {"id": 394, "type": "identifier", "text": "gs):", "parent": 392, "children": [], "start_point": {"row": 48, "column": 73}, "end_point": {"row": 48, "column": 77}}, {"id": 395, "type": "labeled_statement", "text": "rst(Cpp::Forward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {", "parent": null, "children": [396, 397], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 69}}, {"id": 396, "type": "statement_identifier", "text": "rst(C", "parent": 395, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 397, "type": "ERROR", "text": "pp::F", "parent": 395, "children": [398], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 12}}, {"id": 398, "type": "type_descriptor", "text": "p::", "parent": 397, "children": [399], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 11}}, {"id": 399, "type": "type_identifier", "text": "p::", "parent": 398, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 11}}, {"id": 400, "type": "comma_expression", "text": "rward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {", "parent": 395, "children": [401, 407, 408], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 69}}, {"id": 401, "type": "binary_expression", "text": "rward<H>(h)),", "parent": 400, "children": [402, 405, 406], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 26}}, {"id": 402, "type": "binary_expression", "text": "rward<H>(", "parent": 401, "children": [403, 404], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 22}}, {"id": 403, "type": "identifier", "text": "rward<H", "parent": 402, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 20}}, {"id": 404, "type": "<", "text": ">", "parent": 402, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 405, "type": ">", "text": "h", "parent": 401, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 406, "type": "parenthesized_expression", "text": ")),", "parent": 401, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 26}}, {"id": 407, "type": "ERROR", "text": " ", "parent": 400, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 27}}, {"id": 408, "type": "call_expression", "text": "xt(Cpp::Forward<Tuple<Args...>>(args)) {", "parent": 400, "children": [409, 410], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 69}}, {"id": 409, "type": "identifier", "text": "xt(C", "parent": 408, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 33}}, {"id": 410, "type": "argument_list", "text": "pp::Forward<Tuple<Args...>>(args)) {", "parent": 408, "children": [411, 413], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 69}}, {"id": 411, "type": "ERROR", "text": "p::Fo", "parent": 410, "children": [412], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 39}}, {"id": 412, "type": "identifier", "text": "p::", "parent": 411, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 37}}, {"id": 413, "type": "binary_expression", "text": "rward<Tuple<Args...>>(args)) ", "parent": 410, "children": [414, 418, 419], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 68}}, {"id": 414, "type": "binary_expression", "text": "rward<Tuple<A", "parent": 413, "children": [415, 416, 417], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 52}}, {"id": 415, "type": "identifier", "text": "rward<T", "parent": 414, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 46}}, {"id": 416, "type": "<", "text": "u", "parent": 414, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 47}}, {"id": 417, "type": "identifier", "text": "ple<A", "parent": 414, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 52}}, {"id": 418, "type": "<", "text": "r", "parent": 413, "children": [], "start_point": {"row": 49, "column": 52}, "end_point": {"row": 49, "column": 53}}, {"id": 419, "type": "binary_expression", "text": "gs...>>(args)) ", "parent": 413, "children": [420, 421, 423, 424], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 68}}, {"id": 420, "type": "identifier", "text": "gs..", "parent": 419, "children": [], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 57}}, {"id": 421, "type": "ERROR", "text": ".>>", "parent": 419, "children": [422], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 60}}, {"id": 422, "type": "...", "text": ".>>", "parent": 421, "children": [], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 60}}, {"id": 423, "type": ">>", "text": "(a", "parent": 419, "children": [], "start_point": {"row": 49, "column": 60}, "end_point": {"row": 49, "column": 62}}, {"id": 424, "type": "parenthesized_expression", "text": "rgs)) ", "parent": 419, "children": [425], "start_point": {"row": 49, "column": 62}, "end_point": {"row": 49, "column": 68}}, {"id": 425, "type": "identifier", "text": "gs))", "parent": 424, "children": [], "start_point": {"row": 49, "column": 63}, "end_point": {"row": 49, "column": 67}}, {"id": 426, "type": "function_definition", "text": "nstexpr Tuple(): first() {}\n\n\tbool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first && next==rhs.next;}\n\t", "parent": null, "children": [427, 429, 450], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 53, "column": 91}}, {"id": 427, "type": "type_qualifier", "text": "nstexpr T", "parent": 426, "children": [428], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 10}}, {"id": 428, "type": "constexpr", "text": "nstexpr T", "parent": 427, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 10}}, {"id": 429, "type": "macro_type_specifier", "text": "ple(): first() {}\n\n\tbool operator==(const Tuple<H, Args...>& rhs) {", "parent": 426, "children": [430, 431, 443, 445], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 53, "column": 46}}, {"id": 430, "type": "identifier", "text": "ple()", "parent": 429, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 16}}, {"id": 431, "type": "ERROR", "text": " first() {}\n\n\tbool operator==(const Tuple<H, A", "parent": 429, "children": [432, 434, 440, 441], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 53, "column": 31}}, {"id": 432, "type": "type_descriptor", "text": "rst() {", "parent": 431, "children": [433], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 27}}, {"id": 433, "type": "type_identifier", "text": "rst()", "parent": 432, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 25}}, {"id": 434, "type": "type_descriptor", "text": "ol operator==(const T", "parent": 431, "children": [435, 436, 439], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 22}}, {"id": 435, "type": "primitive_type", "text": "ol o", "parent": 434, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 436, "type": "ERROR", "text": "erator==(co", "parent": 434, "children": [437, 438], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 17}}, {"id": 437, "type": "identifier", "text": "erator==", "parent": 436, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 14}}, {"id": 438, "type": "==", "text": "(c", "parent": 436, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 439, "type": "type_qualifier", "text": "nst T", "parent": 434, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 22}}, {"id": 440, "type": "identifier", "text": "ple<H", "parent": 431, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 28}}, {"id": 441, "type": "type_descriptor", "text": " ", "parent": 431, "children": [442], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 442, "type": "type_identifier", "text": " ", "parent": 441, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 443, "type": "type_descriptor", "text": "gs..", "parent": 429, "children": [444], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 36}}, {"id": 444, "type": "type_identifier", "text": "gs..", "parent": 443, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 36}}, {"id": 445, "type": "ERROR", "text": ".>& rhs) ", "parent": 429, "children": [446, 447, 448, 449], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 45}}, {"id": 446, "type": "...", "text": ".>&", "parent": 445, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 39}}, {"id": 447, "type": ">", "text": " ", "parent": 445, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 40}}, {"id": 448, "type": "&", "text": "r", "parent": 445, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 41}}, {"id": 449, "type": "identifier", "text": "s) ", "parent": 445, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 45}}, {"id": 450, "type": "identifier", "text": "", "parent": 426, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 46}}, {"id": 451, "type": "return_statement", "text": "turn first==rhs.first && next==rhs.next;}\n", "parent": 426, "children": [452], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 90}}, {"id": 452, "type": "binary_expression", "text": "rst==rhs.first && next==rhs.next;}", "parent": 451, "children": [453, 459, 460], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 89}}, {"id": 453, "type": "binary_expression", "text": "rst==rhs.first &", "parent": 452, "children": [454, 455, 456], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 71}}, {"id": 454, "type": "identifier", "text": "rst==", "parent": 453, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 60}}, {"id": 455, "type": "==", "text": "rh", "parent": 453, "children": [], "start_point": {"row": 53, "column": 60}, "end_point": {"row": 53, "column": 62}}, {"id": 456, "type": "field_expression", "text": "s.first &", "parent": 453, "children": [457, 458], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 71}}, {"id": 457, "type": "identifier", "text": "s.f", "parent": 456, "children": [], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 65}}, {"id": 458, "type": "field_identifier", "text": "rst &", "parent": 456, "children": [], "start_point": {"row": 53, "column": 66}, "end_point": {"row": 53, "column": 71}}, {"id": 459, "type": "&&", "text": " n", "parent": 452, "children": [], "start_point": {"row": 53, "column": 72}, "end_point": {"row": 53, "column": 74}}, {"id": 460, "type": "binary_expression", "text": "xt==rhs.next;}", "parent": 452, "children": [461, 462, 463], "start_point": {"row": 53, "column": 75}, "end_point": {"row": 53, "column": 89}}, {"id": 461, "type": "identifier", "text": "xt==", "parent": 460, "children": [], "start_point": {"row": 53, "column": 75}, "end_point": {"row": 53, "column": 79}}, {"id": 462, "type": "==", "text": "rh", "parent": 460, "children": [], "start_point": {"row": 53, "column": 79}, "end_point": {"row": 53, "column": 81}}, {"id": 463, "type": "field_expression", "text": "s.next;}", "parent": 460, "children": [464, 465], "start_point": {"row": 53, "column": 81}, "end_point": {"row": 53, "column": 89}}, {"id": 464, "type": "identifier", "text": "s.n", "parent": 463, "children": [], "start_point": {"row": 53, "column": 81}, "end_point": {"row": 53, "column": 84}}, {"id": 465, "type": "field_identifier", "text": "xt;}", "parent": 463, "children": [], "start_point": {"row": 53, "column": 85}, "end_point": {"row": 53, "column": 89}}, {"id": 466, "type": "ERROR", "text": "ol operator!=(const Tuple<H, Args...>& rhs) {", "parent": null, "children": [467, 468, 469, 473, 474, 475, 476, 477], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 46}}, {"id": 467, "type": "primitive_type", "text": "ol o", "parent": 466, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 5}}, {"id": 468, "type": "identifier", "text": "erator!=", "parent": 466, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 14}}, {"id": 469, "type": "ERROR", "text": "(const Tuple<H, ", "parent": 466, "children": [470, 471, 472], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 30}}, {"id": 470, "type": "!=", "text": "(c", "parent": 469, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 16}}, {"id": 471, "type": "identifier", "text": "ple<H", "parent": 469, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 28}}, {"id": 472, "type": "identifier", "text": " ", "parent": 469, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 30}}, {"id": 473, "type": "identifier", "text": "gs..", "parent": 466, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 36}}, {"id": 474, "type": "...", "text": ".>&", "parent": 466, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 39}}, {"id": 475, "type": ">", "text": " ", "parent": 466, "children": [], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 40}}, {"id": 476, "type": "&", "text": "r", "parent": 466, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 41}}, {"id": 477, "type": "identifier", "text": "s) ", "parent": 466, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 45}}, {"id": 478, "type": "return_statement", "text": "turn !operator==(rhs);}\n", "parent": null, "children": [479], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 72}}, {"id": 479, "type": "binary_expression", "text": "perator==(rhs);}", "parent": 478, "children": [480, 483, 484], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 71}}, {"id": 480, "type": "unary_expression", "text": "perator==", "parent": 479, "children": [481, 482], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 64}}, {"id": 481, "type": "!", "text": "p", "parent": 480, "children": [], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 56}}, {"id": 482, "type": "identifier", "text": "erator==", "parent": 480, "children": [], "start_point": {"row": 54, "column": 56}, "end_point": {"row": 54, "column": 64}}, {"id": 483, "type": "==", "text": "(r", "parent": 479, "children": [], "start_point": {"row": 54, "column": 64}, "end_point": {"row": 54, "column": 66}}, {"id": 484, "type": "parenthesized_expression", "text": "hs);}", "parent": 479, "children": [485], "start_point": {"row": 54, "column": 66}, "end_point": {"row": 54, "column": 71}}, {"id": 485, "type": "identifier", "text": "s);", "parent": 484, "children": [], "start_point": {"row": 54, "column": 67}, "end_point": {"row": 54, "column": 70}}, {"id": 486, "type": "declaration", "text": "first;\n\t", "parent": null, "children": [487, 488], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 9}}, {"id": 487, "type": "type_identifier", "text": "f", "parent": 486, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 2}}, {"id": 488, "type": "identifier", "text": "rst;\n", "parent": 486, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 8}}, {"id": 489, "type": "declaration", "text": "xtTuple next;\n\n", "parent": null, "children": [490, 491], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 16}}, {"id": 490, "type": "type_identifier", "text": "xtTuple n", "parent": 489, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 10}}, {"id": 491, "type": "identifier", "text": "xt;\n", "parent": 489, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 15}}, {"id": 492, "type": "labeled_statement", "text": "blic:\n};\n\n", "parent": null, "children": [493, 494], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 2}}, {"id": 493, "type": "statement_identifier", "text": "blic:\n", "parent": 492, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 494, "type": "ERROR", "text": "\n", "parent": 492, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 495, "type": "ERROR", "text": "mplate<typename H> struct Tuple<H>\n{", "parent": null, "children": [496], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 36}}, {"id": 496, "type": "binary_expression", "text": "mplate<typename H> struct Tuple<H>\n", "parent": 495, "children": [497, 506, 508, 509], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 35}}, {"id": 497, "type": "binary_expression", "text": "mplate<typename H> struct T", "parent": 496, "children": [498, 502, 504, 505], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 27}}, {"id": 498, "type": "binary_expression", "text": "mplate<typename H", "parent": 497, "children": [499, 500, 501], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 17}}, {"id": 499, "type": "identifier", "text": "mplate<t", "parent": 498, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 500, "type": "<", "text": "y", "parent": 498, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 501, "type": "identifier", "text": "pename H", "parent": 498, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 17}}, {"id": 502, "type": "ERROR", "text": " ", "parent": 497, "children": [503], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 19}}, {"id": 503, "type": "identifier", "text": " ", "parent": 502, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 19}}, {"id": 504, "type": ">", "text": "s", "parent": 497, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 20}}, {"id": 505, "type": "identifier", "text": "ruct T", "parent": 497, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 27}}, {"id": 506, "type": "ERROR", "text": "ple<H", "parent": 496, "children": [507], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 33}}, {"id": 507, "type": "identifier", "text": "ple<H", "parent": 506, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 33}}, {"id": 508, "type": "<", "text": ">", "parent": 496, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 34}}, {"id": 509, "type": "identifier", "text": "\n", "parent": 496, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 35}}, {"id": 510, "type": "binary_expression", "text": "ivate:\n\ttypedef RemoveConstRef<H> HNoCR;\n", "parent": null, "children": [511, 518, 519], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 32}}, {"id": 511, "type": "binary_expression", "text": "ivate:\n\ttypedef RemoveConstRef<H> ", "parent": 510, "children": [512, 513, 516, 517], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 25}}, {"id": 512, "type": "identifier", "text": "ivate:\n", "parent": 511, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 513, "type": "ERROR", "text": "\ttypedef RemoveConstRef<H", "parent": 511, "children": [514, 515], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 66, "column": 23}}, {"id": 514, "type": "type_identifier", "text": "pedef R", "parent": 513, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 8}}, {"id": 515, "type": "identifier", "text": "moveConstRef<H", "parent": 513, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 23}}, {"id": 516, "type": "<", "text": ">", "parent": 511, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 24}}, {"id": 517, "type": "identifier", "text": " ", "parent": 511, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 518, "type": ">", "text": "H", "parent": 510, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 26}}, {"id": 519, "type": "identifier", "text": "oCR;\n", "parent": 510, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 32}}, {"id": 520, "type": "labeled_statement", "text": "blic:\n\ttypedef Tuple<> NextTuple;\n\t", "parent": null, "children": [521, 522], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 27}}, {"id": 521, "type": "statement_identifier", "text": "blic:\n", "parent": 520, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 522, "type": "declaration", "text": "pedef Tuple<> NextTuple;\n\t", "parent": 520, "children": [523, 524, 528], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 27}}, {"id": 523, "type": "type_identifier", "text": "pedef T", "parent": 522, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 524, "type": "ERROR", "text": "ple<> N", "parent": 522, "children": [525, 526, 527], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 16}}, {"id": 525, "type": "identifier", "text": "ple<>", "parent": 524, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 14}}, {"id": 526, "type": "<", "text": " ", "parent": 524, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 527, "type": ">", "text": "N", "parent": 524, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 16}}, {"id": 528, "type": "identifier", "text": "xtTuple;\n", "parent": 522, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 26}}, {"id": 529, "type": "type_definition", "text": "pedef TypeList<H> TL;\n\t", "parent": null, "children": [530, 531, 532], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 24}}, {"id": 530, "type": "typedef", "text": "pedef T", "parent": 529, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 8}}, {"id": 531, "type": "type_identifier", "text": "peList<H", "parent": 529, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 17}}, {"id": 532, "type": "ERROR", "text": "> T", "parent": 529, "children": [533, 534, 535], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 20}}, {"id": 533, "type": "<", "text": ">", "parent": 532, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 18}}, {"id": 534, "type": "type_identifier", "text": " ", "parent": 532, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 535, "type": ">", "text": "T", "parent": 532, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 20}}, {"id": 536, "type": "enum_specifier", "text": "um {ElementCount=1};\n", "parent": null, "children": [537, 538], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 22}}, {"id": 537, "type": "enum", "text": "um {", "parent": 536, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 5}}, {"id": 538, "type": "enumerator_list", "text": "lementCount=1};\n", "parent": 536, "children": [539], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 22}}, {"id": 539, "type": "enumerator", "text": "ementCount=1};", "parent": 538, "children": [540], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 21}}, {"id": 540, "type": "identifier", "text": "ementCount=1", "parent": 539, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 19}}, {"id": 541, "type": "binary_expression", "text": "mplate<typename H1> constexpr T", "parent": null, "children": [542, 546, 548, 549], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 32}}, {"id": 542, "type": "binary_expression", "text": "mplate<typename H", "parent": 541, "children": [543, 544, 545], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 18}}, {"id": 543, "type": "identifier", "text": "mplate<t", "parent": 542, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 9}}, {"id": 544, "type": "<", "text": "y", "parent": 542, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 10}}, {"id": 545, "type": "identifier", "text": "pename H", "parent": 542, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 18}}, {"id": 546, "type": "ERROR", "text": "> ", "parent": 541, "children": [547], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 21}}, {"id": 547, "type": "identifier", "text": "> ", "parent": 546, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 21}}, {"id": 548, "type": ">", "text": "c", "parent": 541, "children": [], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 22}}, {"id": 549, "type": "identifier", "text": "nstexpr T", "parent": 541, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 32}}, {"id": 550, "type": "ERROR", "text": "ple(const Tuple<H1>& h): f", "parent": null, "children": [551], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 59}}, {"id": 551, "type": "binary_expression", "text": "ple(const Tuple<H1>& h):", "parent": 550, "children": [552, 560, 561], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 57}}, {"id": 552, "type": "binary_expression", "text": "ple(const Tuple<H1>&", "parent": 551, "children": [553, 554, 558, 559], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 53}}, {"id": 553, "type": "identifier", "text": "ple(c", "parent": 552, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 38}}, {"id": 554, "type": "ERROR", "text": "onst Tuple<H", "parent": 552, "children": [555], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 50}}, {"id": 555, "type": "type_descriptor", "text": "nst Tuple<H", "parent": 554, "children": [556, 557], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 50}}, {"id": 556, "type": "type_qualifier", "text": "nst T", "parent": 555, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 44}}, {"id": 557, "type": "type_identifier", "text": "ple<H", "parent": 555, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 50}}, {"id": 558, "type": "<", "text": "1", "parent": 552, "children": [], "start_point": {"row": 72, "column": 50}, "end_point": {"row": 72, "column": 51}}, {"id": 559, "type": "identifier", "text": ">&", "parent": 552, "children": [], "start_point": {"row": 72, "column": 51}, "end_point": {"row": 72, "column": 53}}, {"id": 560, "type": ">", "text": " ", "parent": 551, "children": [], "start_point": {"row": 72, "column": 53}, "end_point": {"row": 72, "column": 54}}, {"id": 561, "type": "pointer_expression", "text": "h):", "parent": 551, "children": [562], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 72, "column": 57}}, {"id": 562, "type": "&", "text": "h", "parent": 561, "children": [], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 72, "column": 55}}, {"id": 563, "type": "call_expression", "text": "rst(h.first) {", "parent": null, "children": [564, 565], "start_point": {"row": 72, "column": 60}, "end_point": {"row": 72, "column": 74}}, {"id": 564, "type": "identifier", "text": "rst(h", "parent": 563, "children": [], "start_point": {"row": 72, "column": 60}, "end_point": {"row": 72, "column": 65}}, {"id": 565, "type": "argument_list", "text": ".first) {", "parent": 563, "children": [566], "start_point": {"row": 72, "column": 65}, "end_point": {"row": 72, "column": 74}}, {"id": 566, "type": "field_expression", "text": "first) ", "parent": 565, "children": [567, 568], "start_point": {"row": 72, "column": 66}, "end_point": {"row": 72, "column": 73}}, {"id": 567, "type": "identifier", "text": "f", "parent": 566, "children": [], "start_point": {"row": 72, "column": 66}, "end_point": {"row": 72, "column": 67}}, {"id": 568, "type": "field_identifier", "text": "rst) ", "parent": 566, "children": [], "start_point": {"row": 72, "column": 68}, "end_point": {"row": 72, "column": 73}}, {"id": 569, "type": "function_definition", "text": "nstexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n\t", "parent": null, "children": [570, 572, 578, 579], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 51}}, {"id": 570, "type": "type_qualifier", "text": "nstexpr T", "parent": 569, "children": [571], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 10}}, {"id": 571, "type": "constexpr", "text": "nstexpr T", "parent": 570, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 10}}, {"id": 572, "type": "macro_type_specifier", "text": "ple(HNoCR&& h): ", "parent": 569, "children": [573, 574, 576], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 27}}, {"id": 573, "type": "identifier", "text": "ple(H", "parent": 572, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 16}}, {"id": 574, "type": "type_descriptor", "text": "oCR&&", "parent": 572, "children": [575], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 22}}, {"id": 575, "type": "type_identifier", "text": "oCR&&", "parent": 574, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 22}}, {"id": 576, "type": "ERROR", "text": " h):", "parent": 572, "children": [577], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 26}}, {"id": 577, "type": "&&", "text": " h", "parent": 576, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 24}}, {"id": 578, "type": "ERROR", "text": "f", "parent": 569, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 28}}, {"id": 579, "type": "function_declarator", "text": "rst(Cpp::Move(h)) {", "parent": 569, "children": [580, 581], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 48}}, {"id": 580, "type": "identifier", "text": "rst(C", "parent": 579, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 34}}, {"id": 581, "type": "parameter_list", "text": "pp::Move(h)) {", "parent": 579, "children": [582], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 48}}, {"id": 582, "type": "parameter_declaration", "text": "p::Move(h)) ", "parent": 581, "children": [583, 584, 585], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 47}}, {"id": 583, "type": "type_identifier", "text": "p::", "parent": 582, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 38}}, {"id": 584, "type": "ERROR", "text": "Mo", "parent": 582, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 40}}, {"id": 585, "type": "function_declarator", "text": "ve(h)) ", "parent": 582, "children": [586, 587], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 47}}, {"id": 586, "type": "identifier", "text": "ve(h", "parent": 585, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 44}}, {"id": 587, "type": "parameter_list", "text": ")) ", "parent": 585, "children": [], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 47}}, {"id": 588, "type": "function_definition", "text": "nstexpr Tuple(const HNoCR& h): first(h) {}\n\n", "parent": null, "children": [589, 591, 598, 599], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 45}}, {"id": 589, "type": "type_qualifier", "text": "nstexpr T", "parent": 588, "children": [590], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 10}}, {"id": 590, "type": "constexpr", "text": "nstexpr T", "parent": 589, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 10}}, {"id": 591, "type": "macro_type_specifier", "text": "ple(const HNoCR& h): ", "parent": 588, "children": [592, 593, 596], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 32}}, {"id": 592, "type": "identifier", "text": "ple(c", "parent": 591, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 16}}, {"id": 593, "type": "type_descriptor", "text": "nst HNoCR& ", "parent": 591, "children": [594, 595], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 28}}, {"id": 594, "type": "type_qualifier", "text": "nst H", "parent": 593, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 22}}, {"id": 595, "type": "type_identifier", "text": "oCR& ", "parent": 593, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 28}}, {"id": 596, "type": "ERROR", "text": "h):", "parent": 591, "children": [597], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 31}}, {"id": 597, "type": "&", "text": "h", "parent": 596, "children": [], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 29}}, {"id": 598, "type": "ERROR", "text": "f", "parent": 588, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 33}}, {"id": 599, "type": "function_declarator", "text": "rst(h) {", "parent": 588, "children": [600, 601], "start_point": {"row": 75, "column": 34}, "end_point": {"row": 75, "column": 42}}, {"id": 600, "type": "identifier", "text": "rst(h", "parent": 599, "children": [], "start_point": {"row": 75, "column": 34}, "end_point": {"row": 75, "column": 39}}, {"id": 601, "type": "parameter_list", "text": ") {", "parent": 599, "children": [602], "start_point": {"row": 75, "column": 39}, "end_point": {"row": 75, "column": 42}}, {"id": 602, "type": "parameter_declaration", "text": " ", "parent": 601, "children": [603], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 41}}, {"id": 603, "type": "type_identifier", "text": " ", "parent": 602, "children": [], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 41}}, {"id": 604, "type": "declaration", "text": "nstexpr Tuple(const Tuple& rhs) = default;\n\t", "parent": null, "children": [605, 607, 615], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 45}}, {"id": 605, "type": "type_qualifier", "text": "nstexpr T", "parent": 604, "children": [606], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 606, "type": "constexpr", "text": "nstexpr T", "parent": 605, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 607, "type": "macro_type_specifier", "text": "ple(const Tuple& rhs) =", "parent": 604, "children": [608, 609, 612], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 34}}, {"id": 608, "type": "identifier", "text": "ple(c", "parent": 607, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 16}}, {"id": 609, "type": "type_descriptor", "text": "nst Tuple& ", "parent": 607, "children": [610, 611], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 28}}, {"id": 610, "type": "type_qualifier", "text": "nst T", "parent": 609, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 22}}, {"id": 611, "type": "type_identifier", "text": "ple& ", "parent": 609, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 28}}, {"id": 612, "type": "ERROR", "text": "rhs) ", "parent": 607, "children": [613, 614], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 33}}, {"id": 613, "type": "&", "text": "r", "parent": 612, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 29}}, {"id": 614, "type": "identifier", "text": "s) ", "parent": 612, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 33}}, {"id": 615, "type": "init_declarator", "text": " default;\n", "parent": 604, "children": [616, 617, 618], "start_point": {"row": 77, "column": 34}, "end_point": {"row": 77, "column": 44}}, {"id": 616, "type": "identifier", "text": "", "parent": 615, "children": [], "start_point": {"row": 77, "column": 34}, "end_point": {"row": 77, "column": 34}}, {"id": 617, "type": "=", "text": "d", "parent": 615, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 36}}, {"id": 618, "type": "identifier", "text": "fault;\n", "parent": 615, "children": [], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 44}}, {"id": 619, "type": "function_definition", "text": "nstexpr Tuple(): first() {}\n\t//~Tuple() {first.~H();}\n\n\tbool operator==(const Tuple<H>& rhs) {return first==rhs.first;}\n\t", "parent": null, "children": [620, 622, 639], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 83, "column": 64}}, {"id": 620, "type": "type_qualifier", "text": "nstexpr T", "parent": 619, "children": [621], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 10}}, {"id": 621, "type": "constexpr", "text": "nstexpr T", "parent": 620, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 10}}, {"id": 622, "type": "macro_type_specifier", "text": "ple(): first() {}\n\t//~Tuple() {first.~H();}\n\n\tbool operator==(const Tuple<H>& rhs) {", "parent": 619, "children": [623, 624, 627, 633], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 83, "column": 37}}, {"id": 623, "type": "identifier", "text": "ple()", "parent": 622, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 16}}, {"id": 624, "type": "ERROR", "text": " first() {}\n\t", "parent": 622, "children": [625], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 30}}, {"id": 625, "type": "type_descriptor", "text": "rst() {", "parent": 624, "children": [626], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 27}}, {"id": 626, "type": "type_identifier", "text": "rst()", "parent": 625, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 25}}, {"id": 627, "type": "type_descriptor", "text": "ol operator==(const T", "parent": 622, "children": [628, 629, 632], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 22}}, {"id": 628, "type": "primitive_type", "text": "ol o", "parent": 627, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 5}}, {"id": 629, "type": "ERROR", "text": "erator==(co", "parent": 627, "children": [630, 631], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 17}}, {"id": 630, "type": "identifier", "text": "erator==", "parent": 629, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 14}}, {"id": 631, "type": "==", "text": "(c", "parent": 629, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 16}}, {"id": 632, "type": "type_qualifier", "text": "nst T", "parent": 627, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 22}}, {"id": 633, "type": "ERROR", "text": "ple<H>& rhs) ", "parent": 622, "children": [634, 635, 636, 637, 638], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 36}}, {"id": 634, "type": "identifier", "text": "ple<H", "parent": 633, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 28}}, {"id": 635, "type": "<", "text": ">", "parent": 633, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 29}}, {"id": 636, "type": ">", "text": " ", "parent": 633, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 31}}, {"id": 637, "type": "&", "text": "r", "parent": 633, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 32}}, {"id": 638, "type": "identifier", "text": "s) ", "parent": 633, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 36}}, {"id": 639, "type": "identifier", "text": "", "parent": 619, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 37}}, {"id": 640, "type": "return_statement", "text": "turn first==rhs.first;}\n", "parent": 619, "children": [641], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 63}}, {"id": 641, "type": "binary_expression", "text": "rst==rhs.first;}", "parent": 640, "children": [642, 643, 644], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 62}}, {"id": 642, "type": "identifier", "text": "rst==", "parent": 641, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 51}}, {"id": 643, "type": "==", "text": "rh", "parent": 641, "children": [], "start_point": {"row": 83, "column": 51}, "end_point": {"row": 83, "column": 53}}, {"id": 644, "type": "field_expression", "text": "s.first;}", "parent": 641, "children": [645, 646], "start_point": {"row": 83, "column": 53}, "end_point": {"row": 83, "column": 62}}, {"id": 645, "type": "identifier", "text": "s.f", "parent": 644, "children": [], "start_point": {"row": 83, "column": 53}, "end_point": {"row": 83, "column": 56}}, {"id": 646, "type": "field_identifier", "text": "rst;}", "parent": 644, "children": [], "start_point": {"row": 83, "column": 57}, "end_point": {"row": 83, "column": 62}}, {"id": 647, "type": "function_definition", "text": "ol operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n", "parent": null, "children": [648, 649, 650], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 64}}, {"id": 648, "type": "primitive_type", "text": "ol o", "parent": 647, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 5}}, {"id": 649, "type": "identifier", "text": "erator!=", "parent": 647, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 14}}, {"id": 650, "type": "ERROR", "text": "(const Tuple<H>& rhs) {", "parent": 647, "children": [651, 652, 653, 654, 655, 656], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 37}}, {"id": 651, "type": "!=", "text": "(c", "parent": 650, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 16}}, {"id": 652, "type": "identifier", "text": "ple<H", "parent": 650, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 28}}, {"id": 653, "type": "<", "text": ">", "parent": 650, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 654, "type": ">", "text": " ", "parent": 650, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 31}}, {"id": 655, "type": "&", "text": "r", "parent": 650, "children": [], "start_point": {"row": 84, "column": 31}, "end_point": {"row": 84, "column": 32}}, {"id": 656, "type": "identifier", "text": "s) ", "parent": 650, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 36}}, {"id": 657, "type": "return_statement", "text": "turn !operator==(rhs);}\n", "parent": 647, "children": [658], "start_point": {"row": 84, "column": 39}, "end_point": {"row": 84, "column": 63}}, {"id": 658, "type": "binary_expression", "text": "perator==(rhs);}", "parent": 657, "children": [659, 662, 663], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 62}}, {"id": 659, "type": "unary_expression", "text": "perator==", "parent": 658, "children": [660, 661], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 55}}, {"id": 660, "type": "!", "text": "p", "parent": 659, "children": [], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 47}}, {"id": 661, "type": "identifier", "text": "erator==", "parent": 659, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 55}}, {"id": 662, "type": "==", "text": "(r", "parent": 658, "children": [], "start_point": {"row": 84, "column": 55}, "end_point": {"row": 84, "column": 57}}, {"id": 663, "type": "parenthesized_expression", "text": "hs);}", "parent": 658, "children": [664], "start_point": {"row": 84, "column": 57}, "end_point": {"row": 84, "column": 62}}, {"id": 664, "type": "identifier", "text": "s);", "parent": 663, "children": [], "start_point": {"row": 84, "column": 58}, "end_point": {"row": 84, "column": 61}}, {"id": 665, "type": "declaration", "text": "first;\n}", "parent": null, "children": [666, 667], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 9}}, {"id": 666, "type": "type_identifier", "text": "f", "parent": 665, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 2}}, {"id": 667, "type": "identifier", "text": "rst;\n", "parent": 665, "children": [], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 8}}, {"id": 668, "type": "ERROR", "text": "mplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{", "parent": null, "children": [669], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 76}}, {"id": 669, "type": "binary_expression", "text": "mplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{", "parent": 668, "children": [670, 685, 687, 688], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 76}}, {"id": 670, "type": "binary_expression", "text": "mplate<typename... Args> forceinline Tuple<Args..", "parent": 669, "children": [671, 681, 683, 684], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 49}}, {"id": 671, "type": "binary_expression", "text": "mplate<typename... Args> forceinline T", "parent": 670, "children": [672, 676, 679, 680], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 38}}, {"id": 672, "type": "binary_expression", "text": "mplate<typename..", "parent": 671, "children": [673, 674, 675], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 17}}, {"id": 673, "type": "identifier", "text": "mplate<t", "parent": 672, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 8}}, {"id": 674, "type": "<", "text": "y", "parent": 672, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 675, "type": "identifier", "text": "pename..", "parent": 672, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 17}}, {"id": 676, "type": "ERROR", "text": ". Args> ", "parent": 671, "children": [677, 678], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 25}}, {"id": 677, "type": "...", "text": ". A", "parent": 676, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 20}}, {"id": 678, "type": "identifier", "text": "gs> ", "parent": 676, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 25}}, {"id": 679, "type": ">", "text": "f", "parent": 671, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 26}}, {"id": 680, "type": "identifier", "text": "rceinline T", "parent": 671, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 38}}, {"id": 681, "type": "ERROR", "text": "ple<A", "parent": 670, "children": [682], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 44}}, {"id": 682, "type": "identifier", "text": "ple<A", "parent": 681, "children": [], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 44}}, {"id": 683, "type": "<", "text": "r", "parent": 670, "children": [], "start_point": {"row": 89, "column": 44}, "end_point": {"row": 89, "column": 45}}, {"id": 684, "type": "identifier", "text": "gs..", "parent": 670, "children": [], "start_point": {"row": 89, "column": 45}, "end_point": {"row": 89, "column": 49}}, {"id": 685, "type": "ERROR", "text": ".> ", "parent": 669, "children": [686], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 52}}, {"id": 686, "type": "...", "text": ".> ", "parent": 685, "children": [], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 52}}, {"id": 687, "type": ">", "text": "T", "parent": 669, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 53}}, {"id": 688, "type": "call_expression", "text": "pleL(Args&&... args)\n{", "parent": 669, "children": [689, 690], "start_point": {"row": 89, "column": 54}, "end_point": {"row": 89, "column": 76}}, {"id": 689, "type": "identifier", "text": "pleL(A", "parent": 688, "children": [], "start_point": {"row": 89, "column": 54}, "end_point": {"row": 89, "column": 60}}, {"id": 690, "type": "argument_list", "text": "rgs&&... args)\n{", "parent": 688, "children": [691], "start_point": {"row": 89, "column": 60}, "end_point": {"row": 89, "column": 76}}, {"id": 691, "type": "binary_expression", "text": "gs&&... args)\n", "parent": 690, "children": [692, 693, 694, 695], "start_point": {"row": 89, "column": 61}, "end_point": {"row": 89, "column": 75}}, {"id": 692, "type": "identifier", "text": "gs&&", "parent": 691, "children": [], "start_point": {"row": 89, "column": 61}, "end_point": {"row": 89, "column": 65}}, {"id": 693, "type": "&&", "text": "..", "parent": 691, "children": [], "start_point": {"row": 89, "column": 65}, "end_point": {"row": 89, "column": 67}}, {"id": 694, "type": "ERROR", "text": ". a", "parent": 691, "children": [], "start_point": {"row": 89, "column": 67}, "end_point": {"row": 89, "column": 70}}, {"id": 695, "type": "identifier", "text": "gs)\n", "parent": 691, "children": [], "start_point": {"row": 89, "column": 71}, "end_point": {"row": 89, "column": 75}}, {"id": 696, "type": "return_statement", "text": "turn Tuple<Args...>(Cpp::Forward<Args>(args)...);}\n", "parent": null, "children": [697], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 52}}, {"id": 697, "type": "binary_expression", "text": "ple<Args...>(Cpp::Forward<Args>(args)...);}", "parent": 696, "children": [698, 702, 704, 705], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 51}}, {"id": 698, "type": "binary_expression", "text": "ple<Args..", "parent": 697, "children": [699, 700, 701], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 18}}, {"id": 699, "type": "identifier", "text": "ple<A", "parent": 698, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 13}}, {"id": 700, "type": "<", "text": "r", "parent": 698, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 701, "type": "identifier", "text": "gs..", "parent": 698, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 18}}, {"id": 702, "type": "ERROR", "text": ".>(", "parent": 697, "children": [703], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 21}}, {"id": 703, "type": "...", "text": ".>(", "parent": 702, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 21}}, {"id": 704, "type": ">", "text": "C", "parent": 697, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 22}}, {"id": 705, "type": "parenthesized_expression", "text": "pp::Forward<Args>(args)...);}", "parent": 697, "children": [706, 708, 716], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 51}}, {"id": 706, "type": "ERROR", "text": "p::Fo", "parent": 705, "children": [707], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 28}}, {"id": 707, "type": "identifier", "text": "p::", "parent": 706, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 26}}, {"id": 708, "type": "binary_expression", "text": "rward<Args>(args)..", "parent": 705, "children": [709, 713, 714], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 47}}, {"id": 709, "type": "binary_expression", "text": "rward<Args>(", "parent": 708, "children": [710, 711, 712], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 40}}, {"id": 710, "type": "identifier", "text": "rward<A", "parent": 709, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 35}}, {"id": 711, "type": "<", "text": "r", "parent": 709, "children": [], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 36}}, {"id": 712, "type": "identifier", "text": "gs>(", "parent": 709, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 40}}, {"id": 713, "type": ">", "text": "a", "parent": 708, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 41}}, {"id": 714, "type": "parenthesized_expression", "text": "rgs)..", "parent": 708, "children": [715], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 47}}, {"id": 715, "type": "identifier", "text": "gs).", "parent": 714, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 46}}, {"id": 716, "type": "ERROR", "text": ".);", "parent": 705, "children": [717], "start_point": {"row": 90, "column": 47}, "end_point": {"row": 90, "column": 50}}, {"id": 717, "type": "...", "text": ".);", "parent": 716, "children": [], "start_point": {"row": 90, "column": 47}, "end_point": {"row": 90, "column": 50}}, {"id": 718, "type": "identifier", "text": "TRA_WARNING_POP\n", "parent": null, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 17}}]}, "node_categories": {"declarations": {"functions": [15, 18, 33, 426, 569, 579, 585, 588, 599, 619, 647], "variables": [12, 215, 221, 260, 349, 486, 489, 522, 529, 582, 602, 604, 665], "classes": [211, 212], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": [222, 223, 224, 225, 268, 269, 270, 271, 536, 537, 538, 539]}, "statements": {"expressions": [21, 22, 36, 37, 46, 47, 55, 57, 66, 67, 76, 78, 82, 83, 84, 94, 95, 96, 105, 106, 107, 116, 119, 120, 126, 127, 136, 137, 146, 147, 148, 155, 156, 157, 160, 172, 173, 184, 185, 188, 196, 197, 227, 228, 229, 230, 231, 232, 233, 274, 277, 282, 283, 295, 298, 302, 305, 315, 316, 317, 322, 324, 329, 330, 335, 339, 340, 345, 365, 366, 376, 379, 383, 384, 390, 392, 400, 401, 402, 406, 408, 413, 414, 419, 424, 452, 453, 456, 460, 463, 479, 480, 484, 496, 497, 498, 510, 511, 541, 542, 551, 552, 561, 563, 566, 641, 644, 658, 659, 663, 669, 670, 671, 672, 688, 691, 697, 698, 705, 708, 709, 714], "assignments": [], "loops": [], "conditionals": [13, 14, 16, 17, 19, 20, 23, 25, 28, 30, 32, 34, 38, 40, 44, 45, 48, 50, 52, 54, 56, 58, 61, 64, 65, 68, 70, 72, 74, 77, 79, 81, 85, 88, 91, 92, 93, 97, 99, 104, 108, 113, 114, 117, 121, 123, 130, 134, 135, 138, 140, 142, 144, 149, 152, 153, 154, 158, 161, 166, 168, 174, 176, 179, 181, 183, 186, 189, 192, 198, 200, 203, 206, 207, 208, 213, 216, 217, 226, 234, 236, 238, 239, 241, 243, 245, 246, 248, 252, 254, 258, 262, 263, 264, 272, 280, 284, 286, 288, 289, 291, 294, 296, 299, 301, 303, 306, 309, 311, 314, 318, 320, 325, 328, 331, 333, 336, 338, 341, 343, 346, 350, 352, 353, 355, 356, 359, 361, 363, 367, 369, 371, 374, 375, 377, 380, 382, 385, 387, 394, 396, 399, 403, 409, 412, 415, 417, 420, 425, 427, 429, 430, 433, 437, 439, 440, 442, 444, 449, 450, 454, 457, 458, 461, 464, 465, 468, 471, 472, 473, 477, 482, 485, 487, 488, 490, 491, 493, 499, 501, 503, 505, 507, 509, 512, 514, 515, 517, 519, 521, 523, 525, 528, 531, 534, 540, 543, 545, 547, 549, 553, 556, 557, 559, 564, 567, 568, 570, 572, 573, 575, 580, 583, 586, 589, 591, 592, 594, 595, 600, 603, 605, 607, 608, 610, 611, 614, 616, 618, 620, 622, 623, 626, 630, 632, 634, 638, 639, 642, 645, 646, 649, 652, 656, 661, 664, 666, 667, 673, 675, 678, 680, 682, 684, 689, 692, 695, 699, 701, 707, 710, 712, 715, 718], "returns": [451, 478, 640, 657, 696], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 118, 187, 275], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "Tuple;", "text_snippet": "mespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<"}, {"node_id": 18, "universal_type": "function", "name": "Tuple;", "text_snippet": "mespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct ind"}, {"node_id": 33, "universal_type": "function", "name": "index_tuple", "text_snippet": "mespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename..."}, {"node_id": 426, "universal_type": "function", "name": "operator==", "text_snippet": "nstexpr Tuple(): first() {}\n\n\tbool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first"}, {"node_id": 569, "universal_type": "function", "name": "unknown", "text_snippet": "nstexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n\t"}, {"node_id": 579, "universal_type": "function", "name": "unknown", "text_snippet": "rst(Cpp::Move(h)) {"}, {"node_id": 585, "universal_type": "function", "name": "unknown", "text_snippet": "ve(h)) "}, {"node_id": 588, "universal_type": "function", "name": "unknown", "text_snippet": "nstexpr Tuple(const HNoCR& h): first(h) {}\n\n"}, {"node_id": 599, "universal_type": "function", "name": "unknown", "text_snippet": "rst(h) {"}, {"node_id": 619, "universal_type": "function", "name": "operator==", "text_snippet": "nstexpr Tuple(): first() {}\n\t//~Tuple() {first.~H();}\n\n\tbool operator==(const Tuple<H>& rhs) {return"}, {"node_id": 647, "universal_type": "function", "name": "unknown", "text_snippet": "ol operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n"}], "class_declarations": [{"node_id": 211, "universal_type": "class", "name": "unknown", "text_snippet": "ruct Tuple<>\n{\n\ttypedef TypeList<> TL;\n\tenum {ElementCount=0};\n};\n"}, {"node_id": 212, "universal_type": "class", "name": "unknown", "text_snippet": "ruct T"}], "import_statements": [{"node_id": 3, "text": "nclude \"Cpp/Features.h\"\n#i"}, {"node_id": 4, "text": "nclude \""}, {"node_id": 6, "text": "nclude \"Cpp/Warnings.h\"\n\n#"}, {"node_id": 7, "text": "nclude \""}, {"node_id": 9, "text": "nclude \"Meta/TypeList.h\"\n\nI"}, {"node_id": 10, "text": "nclude \""}]}, "original_source_code": "\ufeff#pragma once\n\n#include \"Cpp/Features.h\"\n#include \"Cpp/Warnings.h\"\n\n#include \"Meta/TypeList.h\"\n\nINTRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nINTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\nnamespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {\ntemplate<int...> struct index_tuple {};\ntemplate<int I, typename IndexTuple, typename... Types> struct make_indexes_impl;\n\ntemplate<int I, int... Indexes, typename T, typename ... Types>\nstruct make_indexes_impl<I, index_tuple<Indexes...>, T, Types...>\n{\n\ttypedef typename make_indexes_impl<I+1, index_tuple<Indexes..., I>, Types...>::_ _;\n};\ntemplate<int I, int... Indexes> struct make_indexes_impl<I, index_tuple<Indexes...>> {typedef index_tuple<Indexes...> _;};\ntemplate<typename... Types> struct make_indexes: make_indexes_impl<0, index_tuple<>, Types...> {};\n}\n\n\ntemplate<typename ...Args> struct Tuple;\ntemplate<> struct Tuple<>\n{\n\ttypedef TypeList<> TL;\n\tenum {ElementCount=0};\n};\n\n\ntemplate<typename H, typename... Args> struct Tuple<H, Args...>\n{\n\ttypedef Tuple<Args...> NextTuple;\n\ttypedef TypeList<H, Args...> TL;\n\tenum {ElementCount = 1+sizeof...(Args)};\n\n\ttemplate<typename H1, typename H2, typename... Args1> constexpr Tuple(H1&& h, H2&& h2, Args1&&... args):\n\t\tfirst(Cpp::Forward<H1>(h)), next(Cpp::Forward<H2>(h2), Cpp::Forward<Args1>(args)...) {}\n\n\tconstexpr Tuple(const Tuple& rhs) = default;\n\n\ttemplate<typename H1> constexpr explicit Tuple(H1&& h, Tuple<Args...>&& args):\n\t\tfirst(Cpp::Forward<H>(h)), next(Cpp::Forward<Tuple<Args...>>(args)) {}\n\n\tconstexpr Tuple(): first() {}\n\n\tbool operator==(const Tuple<H, Args...>& rhs) {return first==rhs.first && next==rhs.next;}\n\tbool operator!=(const Tuple<H, Args...>& rhs) {return !operator==(rhs);}\n\n\tH first;\n\tNextTuple next;\n\npublic:\n};\n\n\ntemplate<typename H> struct Tuple<H>\n{\nprivate:\n\ttypedef RemoveConstRef<H> HNoCR;\npublic:\n\ttypedef Tuple<> NextTuple;\n\ttypedef TypeList<H> TL;\n\tenum {ElementCount=1};\n\n\ttemplate<typename H1> constexpr Tuple(const Tuple<H1>& h): first(h.first) {}\n\n\tconstexpr Tuple(HNoCR&& h): first(Cpp::Move(h)) {}\n\tconstexpr Tuple(const HNoCR& h): first(h) {}\n\n\tconstexpr Tuple(const Tuple& rhs) = default;\n\t//constexpr Tuple(const H& h, const Tuple<>&): first(h) {}\n\t//constexpr Tuple(H&& h, Tuple<>&&): first(Cpp::Forward<H>(h)) {}\n\tconstexpr Tuple(): first() {}\n\t//~Tuple() {first.~H();}\n\n\tbool operator==(const Tuple<H>& rhs) {return first==rhs.first;}\n\tbool operator!=(const Tuple<H>& rhs) {return !operator==(rhs);}\n\n\tH first;\n};\n\ntemplate<typename... Args> forceinline Tuple<Args...> TupleL(Args&&... args)\n{return Tuple<Args...>(Cpp::Forward<Args>(args)...);}\n\n}\n\n\n}\n\nINTRA_WARNING_POP\n"}
81,088
c
#pragma once #include "CoreDEF.h" namespace bv { // *********************** // enum RenderingMode { RM_RenderRealTime, RM_RenderOffscreen, RM_Total }; // *********************** // class TimerMode { private: unsigned int m_frameNumber; unsigned long m_startTime; ///< Milliseconds TimeType m_currentTime; ///< Milliseconds TimeType m_realTime; RenderingMode m_renderMode; UInt64 m_framesToRender; ///< Only RenderToFile mode TimeType m_nextFrameOffset; ///< Only RenderToFile mode unsigned long m_fps; public: explicit TimerMode(); void SetStartTime ( unsigned long time ); void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); TimeType StartFrame ( unsigned long millis ); TimeType GetFramesDelta () const; unsigned long GetStartTime () const { return m_startTime; } RenderingMode GetRenderingMode () const { return m_renderMode; } TimeType GetFrameTime () const { return m_currentTime; } unsigned int GetFrameNumber () const { return m_frameNumber; } TimeType GetRealTime () const { return m_realTime; } }; } // bv
24.19
58
(translation_unit) "#pragma once \n \n#include "CoreDEF.h" \n \n \n \nnamespace bv \n{ \n \n \n// *********************** \n// \nenum RenderingMode \n{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}; \n \n \n// *********************** \n// \nclass TimerMode \n{ \nprivate: \n \n unsigned int m_frameNumber; \n unsigned long m_startTime; ///< Milliseconds \n TimeType m_currentTime; ///< Milliseconds \n TimeType m_realTime; \n \n RenderingMode m_renderMode; \n UInt64 m_framesToRender; ///< Only RenderToFile mode \n TimeType m_nextFrameOffset; ///< Only RenderToFile mode \n \n unsigned long m_fps; \n \npublic: \n \n explicit TimerMode(); \n \n void SetStartTime ( unsigned long time ); \n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); \n \n TimeType StartFrame ( unsigned long millis ); \n TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; } \n TimeType GetFrameTime () const { return m_currentTime; } \n unsigned int GetFrameNumber () const { return m_frameNumber; } \n TimeType GetRealTime () const { return m_realTime; } \n \n}; \n \n \n} // bv" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "CoreDEF.h" \n" (#include) "#include" (string_literal) ""CoreDEF.h"" (") """ (string_content) "CoreDEF.h" (") """ (function_definition) "namespace bv \n{ \n \n \n// *********************** \n// \nenum RenderingMode \n{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}; \n \n \n// *********************** \n// \nclass TimerMode \n{ \nprivate: \n \n unsigned int m_frameNumber; \n unsigned long m_startTime; ///< Milliseconds \n TimeType m_currentTime; ///< Milliseconds \n TimeType m_realTime; \n \n RenderingMode m_renderMode; \n UInt64 m_framesToRender; ///< Only RenderToFile mode \n TimeType m_nextFrameOffset; ///< Only RenderToFile mode \n \n unsigned long m_fps; \n \npublic: \n \n explicit TimerMode(); \n \n void SetStartTime ( unsigned long time ); \n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); \n \n TimeType StartFrame ( unsigned long millis ); \n TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; } \n TimeType GetFrameTime () const { return m_currentTime; } \n unsigned int GetFrameNumber () const { return m_frameNumber; } \n TimeType GetRealTime () const { return m_realTime; } \n \n}; \n \n \n}" (type_identifier) "namespace" (identifier) "bv" (compound_statement) "{ \n \n \n// *********************** \n// \nenum RenderingMode \n{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}; \n \n \n// *********************** \n// \nclass TimerMode \n{ \nprivate: \n \n unsigned int m_frameNumber; \n unsigned long m_startTime; ///< Milliseconds \n TimeType m_currentTime; ///< Milliseconds \n TimeType m_realTime; \n \n RenderingMode m_renderMode; \n UInt64 m_framesToRender; ///< Only RenderToFile mode \n TimeType m_nextFrameOffset; ///< Only RenderToFile mode \n \n unsigned long m_fps; \n \npublic: \n \n explicit TimerMode(); \n \n void SetStartTime ( unsigned long time ); \n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); \n \n TimeType StartFrame ( unsigned long millis ); \n TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; } \n TimeType GetFrameTime () const { return m_currentTime; } \n unsigned int GetFrameNumber () const { return m_frameNumber; } \n TimeType GetRealTime () const { return m_realTime; } \n \n}; \n \n \n}" ({) "{" (comment) "// *********************** " (comment) "// " (enum_specifier) "enum RenderingMode \n{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}" (enum) "enum" (type_identifier) "RenderingMode" (enumerator_list) "{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}" ({) "{" (enumerator) "RM_RenderRealTime" (identifier) "RM_RenderRealTime" (,) "," (enumerator) "RM_RenderOffscreen" (identifier) "RM_RenderOffscreen" (,) "," (enumerator) "RM_Total" (identifier) "RM_Total" (}) "}" (;) ";" (comment) "// *********************** " (comment) "// " (function_definition) "class TimerMode \n{ \nprivate: \n \n unsigned int m_frameNumber; \n unsigned long m_startTime; ///< Milliseconds \n TimeType m_currentTime; ///< Milliseconds \n TimeType m_realTime; \n \n RenderingMode m_renderMode; \n UInt64 m_framesToRender; ///< Only RenderToFile mode \n TimeType m_nextFrameOffset; ///< Only RenderToFile mode \n \n unsigned long m_fps; \n \npublic: \n \n explicit TimerMode(); \n \n void SetStartTime ( unsigned long time ); \n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); \n \n TimeType StartFrame ( unsigned long millis ); \n TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; } \n TimeType GetFrameTime () const { return m_currentTime; } \n unsigned int GetFrameNumber () const { return m_frameNumber; } \n TimeType GetRealTime () const { return m_realTime; } \n \n}" (type_identifier) "class" (identifier) "TimerMode" (compound_statement) "{ \nprivate: \n \n unsigned int m_frameNumber; \n unsigned long m_startTime; ///< Milliseconds \n TimeType m_currentTime; ///< Milliseconds \n TimeType m_realTime; \n \n RenderingMode m_renderMode; \n UInt64 m_framesToRender; ///< Only RenderToFile mode \n TimeType m_nextFrameOffset; ///< Only RenderToFile mode \n \n unsigned long m_fps; \n \npublic: \n \n explicit TimerMode(); \n \n void SetStartTime ( unsigned long time ); \n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames ); \n \n TimeType StartFrame ( unsigned long millis ); \n TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; } \n TimeType GetFrameTime () const { return m_currentTime; } \n unsigned int GetFrameNumber () const { return m_frameNumber; } \n TimeType GetRealTime () const { return m_realTime; } \n \n}" ({) "{" (labeled_statement) "private: \n \n unsigned int m_frameNumber;" (statement_identifier) "private" (:) ":" (declaration) "unsigned int m_frameNumber;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_frameNumber" (;) ";" (declaration) "unsigned long m_startTime;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "m_startTime" (;) ";" (comment) "///< Milliseconds " (declaration) "TimeType m_currentTime;" (type_identifier) "TimeType" (identifier) "m_currentTime" (;) ";" (comment) "///< Milliseconds " (declaration) "TimeType m_realTime;" (type_identifier) "TimeType" (identifier) "m_realTime" (;) ";" (declaration) "RenderingMode m_renderMode;" (type_identifier) "RenderingMode" (identifier) "m_renderMode" (;) ";" (declaration) "UInt64 m_framesToRender;" (type_identifier) "UInt64" (identifier) "m_framesToRender" (;) ";" (comment) "///< Only RenderToFile mode " (declaration) "TimeType m_nextFrameOffset;" (type_identifier) "TimeType" (identifier) "m_nextFrameOffset" (;) ";" (comment) "///< Only RenderToFile mode " (declaration) "unsigned long m_fps;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "m_fps" (;) ";" (labeled_statement) "public: \n \n explicit TimerMode();" (statement_identifier) "public" (:) ":" (declaration) "explicit TimerMode();" (type_identifier) "explicit" (function_declarator) "TimerMode()" (identifier) "TimerMode" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetStartTime ( unsigned long time );" (primitive_type) "void" (function_declarator) "SetStartTime ( unsigned long time )" (identifier) "SetStartTime" (parameter_list) "( unsigned long time )" (() "(" (parameter_declaration) "unsigned long time" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "time" ()) ")" (;) ";" (declaration) "void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames );" (primitive_type) "void" (function_declarator) "SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames )" (identifier) "SetOffscreenRenderMode" (parameter_list) "( float requestedFPS, UInt64 numFrames )" (() "(" (parameter_declaration) "float requestedFPS" (primitive_type) "float" (identifier) "requestedFPS" (,) "," (parameter_declaration) "UInt64 numFrames" (type_identifier) "UInt64" (identifier) "numFrames" ()) ")" (;) ";" (declaration) "TimeType StartFrame ( unsigned long millis );" (type_identifier) "TimeType" (function_declarator) "StartFrame ( unsigned long millis )" (identifier) "StartFrame" (parameter_list) "( unsigned long millis )" (() "(" (parameter_declaration) "unsigned long millis" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "millis" ()) ")" (;) ";" (function_definition) "TimeType GetFramesDelta () const; \n \n unsigned long GetStartTime () const { return m_startTime; } \n RenderingMode GetRenderingMode () const { return m_renderMode; }" (type_identifier) "TimeType" (function_declarator) "GetFramesDelta ()" (identifier) "GetFramesDelta" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; \n \n unsigned long GetStartTime () const { return m_startTime;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (ERROR) "GetStartTime () const { return" (function_declarator) "GetStartTime () const" (identifier) "GetStartTime" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "m_startTime" (;) ";" (ERROR) "} \n RenderingMode GetRenderingMode () const" (}) "}" (type_identifier) "RenderingMode" (function_declarator) "GetRenderingMode () const" (identifier) "GetRenderingMode" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return m_renderMode; }" ({) "{" (return_statement) "return m_renderMode;" (return) "return" (identifier) "m_renderMode" (;) ";" (}) "}" (ERROR) "TimeType GetFrameTime () const" (type_identifier) "TimeType" (function_declarator) "GetFrameTime ()" (identifier) "GetFrameTime" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_currentTime; }" ({) "{" (return_statement) "return m_currentTime;" (return) "return" (identifier) "m_currentTime" (;) ";" (}) "}" (ERROR) "unsigned int GetFrameNumber () const" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "GetFrameNumber ()" (identifier) "GetFrameNumber" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_frameNumber; }" ({) "{" (return_statement) "return m_frameNumber;" (return) "return" (identifier) "m_frameNumber" (;) ";" (}) "}" (ERROR) "TimeType GetRealTime () const" (type_identifier) "TimeType" (function_declarator) "GetRealTime ()" (identifier) "GetRealTime" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_realTime; }" ({) "{" (return_statement) "return m_realTime;" (return) "return" (identifier) "m_realTime" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// bv"
233
6
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.19, "nodes": 133, "errors": 0, "source_hash": "25311dd6fe243d4b1e1bdbf223a6ad2b350bcc0ac95b9ca58328a27f9b02c778", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once\r", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 3, "type": "preproc_include", "text": "#include \"CoreDEF.h\"\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"CoreDEF.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 6, "type": "function_definition", "text": "namespace bv\r\n{\r\n\r\n\r\n// ***********************\r\n//\r\nenum RenderingMode\r\n{\r\n RM_RenderRealTime,\r\n RM_RenderOffscreen,\r\n\r\n RM_Total\r\n};\r\n\r\n\r\n// ***********************\r\n//\r\nclass TimerMode\r\n{\r\nprivate:\r\n\r\n unsigned int m_frameNumber;\r\n unsigned long m_startTime; ///< Milliseconds\r\n TimeType m_currentTime; ///< Milliseconds\r\n TimeType m_realTime;\r\n\r\n RenderingMode m_renderMode;\r\n UInt64 m_framesToRender; ///< Only RenderToFile mode\r\n TimeType m_nextFrameOffset; ///< Only RenderToFile mode\r\n\r\n unsigned long\t\tm_fps;\r\n\r\npublic:\r\n\r\n explicit TimerMode();\r\n\r\n void SetStartTime ( unsigned long time );\r\n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames );\r\n\r\n TimeType StartFrame ( unsigned long millis );\r\n TimeType\t GetFramesDelta\t\t\t\t() const;\r\n\r\n unsigned long GetStartTime () const { return m_startTime; }\r\n RenderingMode GetRenderingMode () const { return m_renderMode; }\r\n TimeType GetFrameTime () const { return m_currentTime; }\r\n unsigned int GetFrameNumber () const { return m_frameNumber; }\r\n TimeType GetRealTime () const { return m_realTime; }\r\n\r\n};\r\n\r\n\r\n}", "parent": null, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 8, "type": "identifier", "text": "bv", "parent": 6, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 12}}, {"id": 9, "type": "enum_specifier", "text": "enum RenderingMode\r\n{\r\n RM_RenderRealTime,\r\n RM_RenderOffscreen,\r\n\r\n RM_Total\r\n}", "parent": 6, "children": [10, 11, 12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 10, "type": "enum", "text": "enum", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 11, "type": "type_identifier", "text": "RenderingMode", "parent": 9, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 18}}, {"id": 12, "type": "enumerator_list", "text": "{\r\n RM_RenderRealTime,\r\n RM_RenderOffscreen,\r\n\r\n RM_Total\r\n}", "parent": 9, "children": [13, 15, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 13, "type": "enumerator", "text": "RM_RenderRealTime", "parent": 12, "children": [14], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 21}}, {"id": 14, "type": "identifier", "text": "RM_RenderRealTime", "parent": 13, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 21}}, {"id": 15, "type": "enumerator", "text": "RM_RenderOffscreen", "parent": 12, "children": [16], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 16, "type": "identifier", "text": "RM_RenderOffscreen", "parent": 15, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 17, "type": "enumerator", "text": "RM_Total", "parent": 12, "children": [18], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 18, "type": "identifier", "text": "RM_Total", "parent": 17, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 19, "type": "function_definition", "text": "class TimerMode\r\n{\r\nprivate:\r\n\r\n unsigned int m_frameNumber;\r\n unsigned long m_startTime; ///< Milliseconds\r\n TimeType m_currentTime; ///< Milliseconds\r\n TimeType m_realTime;\r\n\r\n RenderingMode m_renderMode;\r\n UInt64 m_framesToRender; ///< Only RenderToFile mode\r\n TimeType m_nextFrameOffset; ///< Only RenderToFile mode\r\n\r\n unsigned long\t\tm_fps;\r\n\r\npublic:\r\n\r\n explicit TimerMode();\r\n\r\n void SetStartTime ( unsigned long time );\r\n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames );\r\n\r\n TimeType StartFrame ( unsigned long millis );\r\n TimeType\t GetFramesDelta\t\t\t\t() const;\r\n\r\n unsigned long GetStartTime () const { return m_startTime; }\r\n RenderingMode GetRenderingMode () const { return m_renderMode; }\r\n TimeType GetFrameTime () const { return m_currentTime; }\r\n unsigned int GetFrameNumber () const { return m_frameNumber; }\r\n TimeType GetRealTime () const { return m_realTime; }\r\n\r\n}", "parent": 6, "children": [20], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 20, "type": "identifier", "text": "TimerMode", "parent": 19, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 15}}, {"id": 21, "type": "labeled_statement", "text": "private:\r\n\r\n unsigned int m_frameNumber;", "parent": 19, "children": [22], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 27, "column": 38}}, {"id": 22, "type": "declaration", "text": "unsigned int m_frameNumber;", "parent": 21, "children": [23, 26], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 38}}, {"id": 23, "type": "sized_type_specifier", "text": "unsigned int", "parent": 22, "children": [24, 25], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 24, "type": "unsigned", "text": "unsigned", "parent": 23, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 16}}, {"id": 26, "type": "identifier", "text": "m_frameNumber", "parent": 22, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 37}}, {"id": 27, "type": "declaration", "text": "unsigned long m_startTime;", "parent": 19, "children": [28, 31], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 36}}, {"id": 28, "type": "sized_type_specifier", "text": "unsigned long", "parent": 27, "children": [29, 30], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 17}}, {"id": 29, "type": "unsigned", "text": "unsigned", "parent": 28, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 12}}, {"id": 30, "type": "long", "text": "long", "parent": 28, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 17}}, {"id": 31, "type": "identifier", "text": "m_startTime", "parent": 27, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 35}}, {"id": 32, "type": "declaration", "text": "TimeType m_currentTime;", "parent": 19, "children": [33, 34], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 38}}, {"id": 33, "type": "type_identifier", "text": "TimeType", "parent": 32, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 34, "type": "identifier", "text": "m_currentTime", "parent": 32, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 37}}, {"id": 35, "type": "declaration", "text": "TimeType m_realTime;", "parent": 19, "children": [36, 37], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 35}}, {"id": 36, "type": "type_identifier", "text": "TimeType", "parent": 35, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 12}}, {"id": 37, "type": "identifier", "text": "m_realTime", "parent": 35, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 34}}, {"id": 38, "type": "declaration", "text": "RenderingMode m_renderMode;", "parent": 19, "children": [39, 40], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 37}}, {"id": 39, "type": "type_identifier", "text": "RenderingMode", "parent": 38, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 17}}, {"id": 40, "type": "identifier", "text": "m_renderMode", "parent": 38, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 36}}, {"id": 41, "type": "declaration", "text": "UInt64 m_framesToRender;", "parent": 19, "children": [42, 43], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 41}}, {"id": 42, "type": "type_identifier", "text": "UInt64", "parent": 41, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 43, "type": "identifier", "text": "m_framesToRender", "parent": 41, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 40}}, {"id": 44, "type": "declaration", "text": "TimeType m_nextFrameOffset;", "parent": 19, "children": [45, 46], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 42}}, {"id": 45, "type": "type_identifier", "text": "TimeType", "parent": 44, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 12}}, {"id": 46, "type": "identifier", "text": "m_nextFrameOffset", "parent": 44, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 41}}, {"id": 47, "type": "declaration", "text": "unsigned long\t\tm_fps;", "parent": 19, "children": [48, 51], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 25}}, {"id": 48, "type": "sized_type_specifier", "text": "unsigned long", "parent": 47, "children": [49, 50], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 17}}, {"id": 49, "type": "unsigned", "text": "unsigned", "parent": 48, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 50, "type": "long", "text": "long", "parent": 48, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 51, "type": "identifier", "text": "m_fps", "parent": 47, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 24}}, {"id": 52, "type": "labeled_statement", "text": "public:\r\n\r\n explicit TimerMode();", "parent": 19, "children": [53], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 40, "column": 32}}, {"id": 53, "type": "declaration", "text": "explicit TimerMode();", "parent": 52, "children": [54, 55], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 32}}, {"id": 54, "type": "type_identifier", "text": "explicit", "parent": 53, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 12}}, {"id": 55, "type": "function_declarator", "text": "TimerMode()", "parent": 53, "children": [56, 57], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 31}}, {"id": 56, "type": "identifier", "text": "TimerMode", "parent": 55, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 29}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 31}}, {"id": 58, "type": "declaration", "text": "void SetStartTime ( unsigned long time );", "parent": 19, "children": [59, 60], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 71}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 60, "type": "function_declarator", "text": "SetStartTime ( unsigned long time )", "parent": 58, "children": [61, 62], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 70}}, {"id": 61, "type": "identifier", "text": "SetStartTime", "parent": 60, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 32}}, {"id": 62, "type": "parameter_list", "text": "( unsigned long time )", "parent": 60, "children": [63], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 70}}, {"id": 63, "type": "parameter_declaration", "text": "unsigned long time", "parent": 62, "children": [64, 67], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 68}}, {"id": 64, "type": "sized_type_specifier", "text": "unsigned long", "parent": 63, "children": [65, 66], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 63}}, {"id": 65, "type": "unsigned", "text": "unsigned", "parent": 64, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 58}}, {"id": 66, "type": "long", "text": "long", "parent": 64, "children": [], "start_point": {"row": 42, "column": 59}, "end_point": {"row": 42, "column": 63}}, {"id": 67, "type": "identifier", "text": "time", "parent": 63, "children": [], "start_point": {"row": 42, "column": 64}, "end_point": {"row": 42, "column": 68}}, {"id": 68, "type": "declaration", "text": "void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames );", "parent": 19, "children": [69, 70], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 89}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 70, "type": "function_declarator", "text": "SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames )", "parent": 68, "children": [71, 72], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 88}}, {"id": 71, "type": "identifier", "text": "SetOffscreenRenderMode", "parent": 70, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 42}}, {"id": 72, "type": "parameter_list", "text": "( float requestedFPS, UInt64 numFrames )", "parent": 70, "children": [73, 76], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 88}}, {"id": 73, "type": "parameter_declaration", "text": "float requestedFPS", "parent": 72, "children": [74, 75], "start_point": {"row": 43, "column": 50}, "end_point": {"row": 43, "column": 68}}, {"id": 74, "type": "primitive_type", "text": "float", "parent": 73, "children": [], "start_point": {"row": 43, "column": 50}, "end_point": {"row": 43, "column": 55}}, {"id": 75, "type": "identifier", "text": "requestedFPS", "parent": 73, "children": [], "start_point": {"row": 43, "column": 56}, "end_point": {"row": 43, "column": 68}}, {"id": 76, "type": "parameter_declaration", "text": "UInt64 numFrames", "parent": 72, "children": [77, 78], "start_point": {"row": 43, "column": 70}, "end_point": {"row": 43, "column": 86}}, {"id": 77, "type": "type_identifier", "text": "UInt64", "parent": 76, "children": [], "start_point": {"row": 43, "column": 70}, "end_point": {"row": 43, "column": 76}}, {"id": 78, "type": "identifier", "text": "numFrames", "parent": 76, "children": [], "start_point": {"row": 43, "column": 77}, "end_point": {"row": 43, "column": 86}}, {"id": 79, "type": "declaration", "text": "TimeType StartFrame ( unsigned long millis );", "parent": 19, "children": [80, 81], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 73}}, {"id": 80, "type": "type_identifier", "text": "TimeType", "parent": 79, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 12}}, {"id": 81, "type": "function_declarator", "text": "StartFrame ( unsigned long millis )", "parent": 79, "children": [82, 83], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 72}}, {"id": 82, "type": "identifier", "text": "StartFrame", "parent": 81, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 30}}, {"id": 83, "type": "parameter_list", "text": "( unsigned long millis )", "parent": 81, "children": [84], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 72}}, {"id": 84, "type": "parameter_declaration", "text": "unsigned long millis", "parent": 83, "children": [85, 88], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 70}}, {"id": 85, "type": "sized_type_specifier", "text": "unsigned long", "parent": 84, "children": [86, 87], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 63}}, {"id": 86, "type": "unsigned", "text": "unsigned", "parent": 85, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 58}}, {"id": 87, "type": "long", "text": "long", "parent": 85, "children": [], "start_point": {"row": 45, "column": 59}, "end_point": {"row": 45, "column": 63}}, {"id": 88, "type": "identifier", "text": "millis", "parent": 84, "children": [], "start_point": {"row": 45, "column": 64}, "end_point": {"row": 45, "column": 70}}, {"id": 89, "type": "function_definition", "text": "TimeType\t GetFramesDelta\t\t\t\t() const;\r\n\r\n unsigned long GetStartTime () const { return m_startTime; }\r\n RenderingMode GetRenderingMode () const { return m_renderMode; }", "parent": 19, "children": [90, 91, 94, 103], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 49, "column": 84}}, {"id": 90, "type": "type_identifier", "text": "TimeType", "parent": 89, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 12}}, {"id": 91, "type": "function_declarator", "text": "GetFramesDelta\t\t\t\t()", "parent": 89, "children": [92, 93], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 37}}, {"id": 92, "type": "identifier", "text": "GetFramesDelta", "parent": 91, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 31}}, {"id": 93, "type": "parameter_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 37}}, {"id": 94, "type": "declaration", "text": "const;\r\n\r\n unsigned long GetStartTime () const { return m_startTime;", "parent": 89, "children": [95, 98, 102], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 48, "column": 81}}, {"id": 95, "type": "sized_type_specifier", "text": "unsigned long", "parent": 94, "children": [96, 97], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 17}}, {"id": 96, "type": "unsigned", "text": "unsigned", "parent": 95, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 12}}, {"id": 97, "type": "long", "text": "long", "parent": 95, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 98, "type": "ERROR", "text": "GetStartTime () const { return", "parent": 94, "children": [99], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 68}}, {"id": 99, "type": "function_declarator", "text": "GetStartTime () const", "parent": 98, "children": [100, 101], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 56}}, {"id": 100, "type": "identifier", "text": "GetStartTime", "parent": 99, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 32}}, {"id": 101, "type": "parameter_list", "text": "()", "parent": 99, "children": [], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 50}}, {"id": 102, "type": "identifier", "text": "m_startTime", "parent": 94, "children": [], "start_point": {"row": 48, "column": 69}, "end_point": {"row": 48, "column": 80}}, {"id": 103, "type": "ERROR", "text": "}\r\n RenderingMode GetRenderingMode () const", "parent": 89, "children": [104, 105], "start_point": {"row": 48, "column": 82}, "end_point": {"row": 49, "column": 56}}, {"id": 104, "type": "type_identifier", "text": "RenderingMode", "parent": 103, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 17}}, {"id": 105, "type": "function_declarator", "text": "GetRenderingMode () const", "parent": 103, "children": [106, 107], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 56}}, {"id": 106, "type": "identifier", "text": "GetRenderingMode", "parent": 105, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 36}}, {"id": 107, "type": "parameter_list", "text": "()", "parent": 105, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 50}}, {"id": 108, "type": "return_statement", "text": "return m_renderMode;", "parent": 89, "children": [109], "start_point": {"row": 49, "column": 62}, "end_point": {"row": 49, "column": 82}}, {"id": 109, "type": "identifier", "text": "m_renderMode", "parent": 108, "children": [], "start_point": {"row": 49, "column": 69}, "end_point": {"row": 49, "column": 81}}, {"id": 110, "type": "ERROR", "text": "TimeType GetFrameTime () const", "parent": 19, "children": [111, 112], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 56}}, {"id": 111, "type": "type_identifier", "text": "TimeType", "parent": 110, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 12}}, {"id": 112, "type": "function_declarator", "text": "GetFrameTime ()", "parent": 110, "children": [113, 114], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 50}}, {"id": 113, "type": "identifier", "text": "GetFrameTime", "parent": 112, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 32}}, {"id": 114, "type": "parameter_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 50}}, {"id": 115, "type": "return_statement", "text": "return m_currentTime;", "parent": 19, "children": [116], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 83}}, {"id": 116, "type": "identifier", "text": "m_currentTime", "parent": 115, "children": [], "start_point": {"row": 50, "column": 69}, "end_point": {"row": 50, "column": 82}}, {"id": 117, "type": "ERROR", "text": "unsigned int GetFrameNumber () const", "parent": 19, "children": [118, 121], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 56}}, {"id": 118, "type": "sized_type_specifier", "text": "unsigned int", "parent": 117, "children": [119, 120], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 16}}, {"id": 119, "type": "unsigned", "text": "unsigned", "parent": 118, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 12}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 16}}, {"id": 121, "type": "function_declarator", "text": "GetFrameNumber ()", "parent": 117, "children": [122, 123], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 50}}, {"id": 122, "type": "identifier", "text": "GetFrameNumber", "parent": 121, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 34}}, {"id": 123, "type": "parameter_list", "text": "()", "parent": 121, "children": [], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 50}}, {"id": 124, "type": "return_statement", "text": "return m_frameNumber;", "parent": 19, "children": [125], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 83}}, {"id": 125, "type": "identifier", "text": "m_frameNumber", "parent": 124, "children": [], "start_point": {"row": 51, "column": 69}, "end_point": {"row": 51, "column": 82}}, {"id": 126, "type": "ERROR", "text": "TimeType GetRealTime () const", "parent": 19, "children": [127, 128], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 56}}, {"id": 127, "type": "type_identifier", "text": "TimeType", "parent": 126, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 12}}, {"id": 128, "type": "function_declarator", "text": "GetRealTime ()", "parent": 126, "children": [129, 130], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 50}}, {"id": 129, "type": "identifier", "text": "GetRealTime", "parent": 128, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 31}}, {"id": 130, "type": "parameter_list", "text": "()", "parent": 128, "children": [], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 50}}, {"id": 131, "type": "return_statement", "text": "return m_realTime;", "parent": 19, "children": [132], "start_point": {"row": 52, "column": 62}, "end_point": {"row": 52, "column": 80}}, {"id": 132, "type": "identifier", "text": "m_realTime", "parent": 131, "children": [], "start_point": {"row": 52, "column": 69}, "end_point": {"row": 52, "column": 79}}]}, "node_categories": {"declarations": {"functions": [6, 19, 55, 60, 70, 81, 89, 91, 99, 105, 112, 121, 128], "variables": [22, 27, 32, 35, 38, 41, 44, 47, 53, 58, 63, 68, 73, 76, 79, 84, 94], "classes": [], "imports": [3, 4], "modules": [], "enums": [9, 10, 12, 13, 15, 17]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [7, 8, 11, 14, 16, 18, 20, 23, 26, 28, 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, 46, 48, 51, 54, 56, 61, 64, 67, 71, 75, 77, 78, 80, 82, 85, 88, 90, 92, 95, 100, 102, 104, 106, 109, 111, 113, 116, 118, 122, 125, 127, 129, 132], "returns": [108, 115, 124, 131], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "TimerMode", "text_snippet": "namespace bv\r\n{\r\n\r\n\r\n// ***********************\r\n//\r\nenum RenderingMode\r\n{\r\n RM_RenderRealTime,\r\n"}, {"node_id": 19, "universal_type": "function", "name": "TimerMode", "text_snippet": "class TimerMode\r\n{\r\nprivate:\r\n\r\n unsigned int m_frameNumber;\r\n unsigned long m_st"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "TimerMode()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "SetStartTime ( unsigned long time )"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames )"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "StartFrame ( unsigned long millis )"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "TimeType\t GetFramesDelta\t\t\t\t() const;\r\n\r\n unsigned long GetStartTime () const"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "GetFramesDelta\t\t\t\t()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "GetStartTime () const"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "GetRenderingMode () const"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "GetFrameTime ()"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "GetFrameNumber ()"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "GetRealTime ()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreDEF.h\"\r\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\r\n\r\n#include \"CoreDEF.h\"\r\n\r\n\r\n\r\nnamespace bv\r\n{\r\n\r\n\r\n// ***********************\r\n//\r\nenum RenderingMode\r\n{\r\n RM_RenderRealTime,\r\n RM_RenderOffscreen,\r\n\r\n RM_Total\r\n};\r\n\r\n\r\n// ***********************\r\n//\r\nclass TimerMode\r\n{\r\nprivate:\r\n\r\n unsigned int m_frameNumber;\r\n unsigned long m_startTime; ///< Milliseconds\r\n TimeType m_currentTime; ///< Milliseconds\r\n TimeType m_realTime;\r\n\r\n RenderingMode m_renderMode;\r\n UInt64 m_framesToRender; ///< Only RenderToFile mode\r\n TimeType m_nextFrameOffset; ///< Only RenderToFile mode\r\n\r\n unsigned long\t\tm_fps;\r\n\r\npublic:\r\n\r\n explicit TimerMode();\r\n\r\n void SetStartTime ( unsigned long time );\r\n void SetOffscreenRenderMode ( float requestedFPS, UInt64 numFrames );\r\n\r\n TimeType StartFrame ( unsigned long millis );\r\n TimeType\t GetFramesDelta\t\t\t\t() const;\r\n\r\n unsigned long GetStartTime () const { return m_startTime; }\r\n RenderingMode GetRenderingMode () const { return m_renderMode; }\r\n TimeType GetFrameTime () const { return m_currentTime; }\r\n unsigned int GetFrameNumber () const { return m_frameNumber; }\r\n TimeType GetRealTime () const { return m_realTime; }\r\n\r\n};\r\n\r\n\r\n}\t// bv"}
81,089
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_YJKit_TestsVersionString[];
37
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_YJKit_TestsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber;" (type_identifier) "FOUNDATION_EXPORT" (ERROR) "double" (identifier) "double" (identifier) "Pods_YJKit_TestsVersionNumber" (;) ";" (declaration) "FOUNDATION_EXPORT const unsigned" (type_identifier) "FOUNDATION_EXPORT" (type_qualifier) "const" (const) "const" (identifier) "unsigned" (;) "" (declaration) "char Pods_YJKit_TestsVersionString[];" (primitive_type) "char" (array_declarator) "Pods_YJKit_TestsVersionString[]" (identifier) "Pods_YJKit_TestsVersionString" ([) "[" (]) "]" (;) ";"
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.0, "nodes": 15, "errors": 0, "source_hash": "914d7bd1bcbf44483b38adabbcec4415cfc2bdcc33a769cbc8330727c675a35b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "declaration", "text": "FOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber;", "parent": null, "children": [4, 5, 7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 55}}, {"id": 4, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 17}}, {"id": 5, "type": "ERROR", "text": "double", "parent": 3, "children": [6], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 24}}, {"id": 6, "type": "identifier", "text": "double", "parent": 5, "children": [], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 24}}, {"id": 7, "type": "identifier", "text": "Pods_YJKit_TestsVersionNumber", "parent": 3, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 54}}, {"id": 8, "type": "declaration", "text": "FOUNDATION_EXPORT const unsigned", "parent": null, "children": [9, 10], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 32}}, {"id": 9, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 8, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 17}}, {"id": 10, "type": "identifier", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 32}}, {"id": 11, "type": "declaration", "text": "char Pods_YJKit_TestsVersionString[];", "parent": null, "children": [12, 13], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 70}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "Pods_YJKit_TestsVersionString[]", "parent": 11, "children": [14], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 69}}, {"id": 14, "type": "identifier", "text": "Pods_YJKit_TestsVersionString", "parent": 13, "children": [], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 67}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3, 8, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 7, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_YJKit_TestsVersionString[];\n\n"}
81,090
c
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* always defined to indicate that i18n is enabled */ #define ENABLE_NLS 1 /* The prefix for our gettext translation domains. */ #define GETTEXT_PACKAGE "gtk30" /* Disable deprecation warnings from glib */ #define GLIB_DISABLE_DEPRECATION_WARNINGS 1 /* Define if debugging is enabled */ #define GTK_COMPILED_WITH_DEBUGGING "minimum" /* Define the location where the catalogs will be installed */ #define GTK_LOCALEDIR "/usr/local/share/locale" /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #define HAVE_BIND_TEXTDOMAIN_CODESET 1 /* Define to 1 if you have the `cairo_surface_set_device_scale' function. */ #define HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE 1 /* define if we have colord */ /* #undef HAVE_COLORD */ /* Define to 1 if you have the <crt_externs.h> header file. */ /* #undef HAVE_CRT_EXTERNS_H */ /* Define to 1 if CUPS 1.6 API is available */ /* #undef HAVE_CUPS_API_1_6 */ /* Define to 1 if you have the `dcgettext' function. */ #define HAVE_DCGETTEXT 1 /* Define to 1 if you have the declaration of `isinf', and to 0 if you don't. */ #define HAVE_DECL_ISINF 1 /* Define to 1 if you have the declaration of `isnan', and to 0 if you don't. */ #define HAVE_DECL_ISNAN 1 /* Define to 1 if you have the <dlfcn.h> header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you have the <ftw.h> header file. */ #define HAVE_FTW_H 1 /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 /* Define to 1 if you have the `getresuid' function. */ #define HAVE_GETRESUID 1 /* Define if the GNU gettext() function is already present or preinstalled. */ #define HAVE_GETTEXT 1 /* Define if gio-unix is available */ #define HAVE_GIO_UNIX 1 /* Have GNU ftw */ #define HAVE_GNU_FTW 1 /* Define to 1 if you have the `httpGetAuthString' function. */ /* #undef HAVE_HTTPGETAUTHSTRING */ /* Define if cups http_t authstring field is accessible */ /* #undef HAVE_HTTP_AUTHSTRING */ /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if the system has the type `IPrintDialogCallback'. */ /* #undef HAVE_IPRINTDIALOGCALLBACK */ /* Define if your <locale.h> file defines LC_MESSAGES. */ #define HAVE_LC_MESSAGES 1 /* Define to 1 if you have the `m' library (-lm). */ #define HAVE_LIBM 1 /* Define to 1 if you have the <locale.h> header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if you have the `mallinfo' function. */ #define HAVE_MALLINFO 1 /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have a working `mmap' system call. */ #define HAVE_MMAP 1 /* Define to 1 if you have the `nearbyint' function. */ #define HAVE_NEARBYINT 1 /* Define to 1 if libpapi available */ /* #undef HAVE_PAPI */ /* Define to 1 if you have the <pwd.h> header file. */ #define HAVE_PWD_H 1 /* Have the Xrandr extension library */ #define HAVE_RANDR 1 /* Define to 1 if you have the `rint' function. */ #define HAVE_RINT 1 /* Define to 1 if you have the `round' function. */ #define HAVE_ROUND 1 /* Have the sockaddr_un.sun_len member */ /* #undef HAVE_SOCKADDR_UN_SUN_LEN */ /* Define to 1 if solaris xinerama is available */ /* #undef HAVE_SOLARIS_XINERAMA */ /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the <sys/mman.h> header file. */ #define HAVE_SYS_MMAN_H 1 /* Define to 1 if you have the <sys/param.h> header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the <sys/stat.h> header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if sys/sysinfo.h is available */ #define HAVE_SYS_SYSINFO_H 1 /* Define to 1 if sys/systeminfo.h is available */ /* #undef HAVE_SYS_SYSTEMINFO_H */ /* Define to 1 if you have the <sys/time.h> header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the <sys/types.h> header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 /* Have the XCOMPOSITE X extension */ #define HAVE_XCOMPOSITE 1 /* Have the Xcursor library */ #define HAVE_XCURSOR 1 /* Have the XDAMAGE X extension */ #define HAVE_XDAMAGE 1 /* Have the XFIXES X extension */ #define HAVE_XFIXES 1 /* Define to 1 if XFree Xinerama is available */ #define HAVE_XFREE_XINERAMA 1 /* Have XGenericEvent */ #define HAVE_XGENERICEVENTS 1 /* Define to 1 if xinerama is available */ #define HAVE_XINERAMA 1 /* Define to use XKB extension */ #define HAVE_XKB 1 /* Have the SYNC extension library */ #define HAVE_XSYNC 1 /* Define if _NL_MEASUREMENT_MEASUREMENT is available */ #define HAVE__NL_MEASUREMENT_MEASUREMENT 1 /* Define if _NL_PAPER_HEIGHT is available */ #define HAVE__NL_PAPER_HEIGHT 1 /* Define if _NL_PAPER_WIDTH is available */ #define HAVE__NL_PAPER_WIDTH 1 /* Define if _NL_TIME_FIRST_WEEKDAY is available */ #define HAVE__NL_TIME_FIRST_WEEKDAY 1 /* Define to 1 if you have the `_NSGetEnviron' function. */ /* #undef HAVE__NSGETENVIRON */ /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #define LT_OBJDIR ".libs/" /* Define if <X11/extensions/XIproto.h> needed for xReply */ /* #undef NEED_XIPROTO_H_FOR_XREPLY */ /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B" /* Define to the full name of this package. */ #define PACKAGE_NAME "gtk+" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "gtk+ 3.12.1" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gtk+" /* Define to the home page for this package. */ #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "3.12.1" /* Use NSBundle functions to determine load paths for libraries, translations, etc. */ /* #undef QUARTZ_RELOCATION */ /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if gmodule works and should be used */ #define USE_GMODULE 1 /* Define to 1 if XInput 2.0 is available */ #define XINPUT_2 1 /* Define to 1 if XInput 2.2 is available */ #define XINPUT_2_2 1 /* Define to 1 if the X Window System is missing or not being used. */ /* #undef X_DISPLAY_MISSING */ /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 #endif /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* defines how to decorate public symbols while building */ #define _GDK_EXTERN __attribute__((visibility("default"))) extern /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to `int' if <sys/types.h> doesn't define. */ /* #undef gid_t */ /* Define to `int' if <sys/types.h> doesn't define. */ /* #undef uid_t */
39.84
184
(translation_unit) "/* config.h. Generated from config.h.in by configure. */\n/* config.h.in. Generated from configure.ac by autoheader. */\n\n/* always defined to indicate that i18n is enabled */\n#define ENABLE_NLS 1\n\n/* The prefix for our gettext translation domains. */\n#define GETTEXT_PACKAGE "gtk30"\n\n/* Disable deprecation warnings from glib */\n#define GLIB_DISABLE_DEPRECATION_WARNINGS 1\n\n/* Define if debugging is enabled */\n#define GTK_COMPILED_WITH_DEBUGGING "minimum"\n\n/* Define the location where the catalogs will be installed */\n#define GTK_LOCALEDIR "/usr/local/share/locale"\n\n/* Define to 1 if you have the `bind_textdomain_codeset' function. */\n#define HAVE_BIND_TEXTDOMAIN_CODESET 1\n\n/* Define to 1 if you have the `cairo_surface_set_device_scale' function. */\n#define HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE 1\n\n/* define if we have colord */\n/* #undef HAVE_COLORD */\n\n/* Define to 1 if you have the <crt_externs.h> header file. */\n/* #undef HAVE_CRT_EXTERNS_H */\n\n/* Define to 1 if CUPS 1.6 API is available */\n/* #undef HAVE_CUPS_API_1_6 */\n\n/* Define to 1 if you have the `dcgettext' function. */\n#define HAVE_DCGETTEXT 1\n\n/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.\n */\n#define HAVE_DECL_ISINF 1\n\n/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.\n */\n#define HAVE_DECL_ISNAN 1\n\n/* Define to 1 if you have the <dlfcn.h> header file. */\n#define HAVE_DLFCN_H 1\n\n/* Define to 1 if you have the <ftw.h> header file. */\n#define HAVE_FTW_H 1\n\n/* Define to 1 if you have the `getpagesize' function. */\n#define HAVE_GETPAGESIZE 1\n\n/* Define to 1 if you have the `getresuid' function. */\n#define HAVE_GETRESUID 1\n\n/* Define if the GNU gettext() function is already present or preinstalled. */\n#define HAVE_GETTEXT 1\n\n/* Define if gio-unix is available */\n#define HAVE_GIO_UNIX 1\n\n/* Have GNU ftw */\n#define HAVE_GNU_FTW 1\n\n/* Define to 1 if you have the `httpGetAuthString' function. */\n/* #undef HAVE_HTTPGETAUTHSTRING */\n\n/* Define if cups http_t authstring field is accessible */\n/* #undef HAVE_HTTP_AUTHSTRING */\n\n/* Define to 1 if you have the <inttypes.h> header file. */\n#define HAVE_INTTYPES_H 1\n\n/* Define to 1 if the system has the type `IPrintDialogCallback'. */\n/* #undef HAVE_IPRINTDIALOGCALLBACK */\n\n/* Define if your <locale.h> file defines LC_MESSAGES. */\n#define HAVE_LC_MESSAGES 1\n\n/* Define to 1 if you have the `m' library (-lm). */\n#define HAVE_LIBM 1\n\n/* Define to 1 if you have the <locale.h> header file. */\n#define HAVE_LOCALE_H 1\n\n/* Define to 1 if you have the `localtime_r' function. */\n#define HAVE_LOCALTIME_R 1\n\n/* Define to 1 if you have the `lstat' function. */\n#define HAVE_LSTAT 1\n\n/* Define to 1 if you have the `mallinfo' function. */\n#define HAVE_MALLINFO 1\n\n/* Define to 1 if you have the <memory.h> header file. */\n#define HAVE_MEMORY_H 1\n\n/* Define to 1 if you have the `mkstemp' function. */\n#define HAVE_MKSTEMP 1\n\n/* Define to 1 if you have a working `mmap' system call. */\n#define HAVE_MMAP 1\n\n/* Define to 1 if you have the `nearbyint' function. */\n#define HAVE_NEARBYINT 1\n\n/* Define to 1 if libpapi available */\n/* #undef HAVE_PAPI */\n\n/* Define to 1 if you have the <pwd.h> header file. */\n#define HAVE_PWD_H 1\n\n/* Have the Xrandr extension library */\n#define HAVE_RANDR 1\n\n/* Define to 1 if you have the `rint' function. */\n#define HAVE_RINT 1\n\n/* Define to 1 if you have the `round' function. */\n#define HAVE_ROUND 1\n\n/* Have the sockaddr_un.sun_len member */\n/* #undef HAVE_SOCKADDR_UN_SUN_LEN */\n\n/* Define to 1 if solaris xinerama is available */\n/* #undef HAVE_SOLARIS_XINERAMA */\n\n/* Define to 1 if you have the <stdint.h> header file. */\n#define HAVE_STDINT_H 1\n\n/* Define to 1 if you have the <stdlib.h> header file. */\n#define HAVE_STDLIB_H 1\n\n/* Define to 1 if you have the <strings.h> header file. */\n#define HAVE_STRINGS_H 1\n\n/* Define to 1 if you have the <string.h> header file. */\n#define HAVE_STRING_H 1\n\n/* Define to 1 if you have the <sys/mman.h> header file. */\n#define HAVE_SYS_MMAN_H 1\n\n/* Define to 1 if you have the <sys/param.h> header file. */\n#define HAVE_SYS_PARAM_H 1\n\n/* Define to 1 if you have the <sys/stat.h> header file. */\n#define HAVE_SYS_STAT_H 1\n\n/* Define to 1 if sys/sysinfo.h is available */\n#define HAVE_SYS_SYSINFO_H 1\n\n/* Define to 1 if sys/systeminfo.h is available */\n/* #undef HAVE_SYS_SYSTEMINFO_H */\n\n/* Define to 1 if you have the <sys/time.h> header file. */\n#define HAVE_SYS_TIME_H 1\n\n/* Define to 1 if you have the <sys/types.h> header file. */\n#define HAVE_SYS_TYPES_H 1\n\n/* Define to 1 if you have the <unistd.h> header file. */\n#define HAVE_UNISTD_H 1\n\n/* Have the XCOMPOSITE X extension */\n#define HAVE_XCOMPOSITE 1\n\n/* Have the Xcursor library */\n#define HAVE_XCURSOR 1\n\n/* Have the XDAMAGE X extension */\n#define HAVE_XDAMAGE 1\n\n/* Have the XFIXES X extension */\n#define HAVE_XFIXES 1\n\n/* Define to 1 if XFree Xinerama is available */\n#define HAVE_XFREE_XINERAMA 1\n\n/* Have XGenericEvent */\n#define HAVE_XGENERICEVENTS 1\n\n/* Define to 1 if xinerama is available */\n#define HAVE_XINERAMA 1\n\n/* Define to use XKB extension */\n#define HAVE_XKB 1\n\n/* Have the SYNC extension library */\n#define HAVE_XSYNC 1\n\n/* Define if _NL_MEASUREMENT_MEASUREMENT is available */\n#define HAVE__NL_MEASUREMENT_MEASUREMENT 1\n\n/* Define if _NL_PAPER_HEIGHT is available */\n#define HAVE__NL_PAPER_HEIGHT 1\n\n/* Define if _NL_PAPER_WIDTH is available */\n#define HAVE__NL_PAPER_WIDTH 1\n\n/* Define if _NL_TIME_FIRST_WEEKDAY is available */\n#define HAVE__NL_TIME_FIRST_WEEKDAY 1\n\n/* Define to 1 if you have the `_NSGetEnviron' function. */\n/* #undef HAVE__NSGETENVIRON */\n\n/* Define to the sub-directory in which libtool stores uninstalled libraries.\n */\n#define LT_OBJDIR ".libs/"\n\n/* Define if <X11/extensions/XIproto.h> needed for xReply */\n/* #undef NEED_XIPROTO_H_FOR_XREPLY */\n\n/* Define to 1 if your C compiler doesn't accept -c and -o together. */\n/* #undef NO_MINUS_C_MINUS_O */\n\n/* Define to the address where bug reports for this package should be sent. */\n#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B"\n\n/* Define to the full name of this package. */\n#define PACKAGE_NAME "gtk+"\n\n/* Define to the full name and version of this package. */\n#define PACKAGE_STRING "gtk+ 3.12.1"\n\n/* Define to the one symbol short name of this package. */\n#define PACKAGE_TARNAME "gtk+"\n\n/* Define to the home page for this package. */\n#define PACKAGE_URL ""\n\n/* Define to the version of this package. */\n#define PACKAGE_VERSION "3.12.1"\n\n/* Use NSBundle functions to determine load paths for libraries, translations,\n etc. */\n/* #undef QUARTZ_RELOCATION */\n\n/* Define to 1 if you have the ANSI C header files. */\n#define STDC_HEADERS 1\n\n/* Define to 1 if gmodule works and should be used */\n#define USE_GMODULE 1\n\n/* Define to 1 if XInput 2.0 is available */\n#define XINPUT_2 1\n\n/* Define to 1 if XInput 2.2 is available */\n#define XINPUT_2_2 1\n\n/* Define to 1 if the X Window System is missing or not being used. */\n/* #undef X_DISPLAY_MISSING */\n\n/* Enable large inode numbers on Mac OS X 10.5. */\n#ifndef _DARWIN_USE_64_BIT_INODE\n# define _DARWIN_USE_64_BIT_INODE 1\n#endif\n\n/* Number of bits in a file offset, on hosts where this is settable. */\n/* #undef _FILE_OFFSET_BITS */\n\n/* defines how to decorate public symbols while building */\n#define _GDK_EXTERN __attribute__((visibility("default"))) extern\n\n/* Define for large files, on AIX-style hosts. */\n/* #undef _LARGE_FILES */\n\n/* Define to `int' if <sys/types.h> doesn't define. */\n/* #undef gid_t */\n\n/* Define to `int' if <sys/types.h> doesn't define. */\n/* #undef uid_t */\n" (comment) "/* config.h. Generated from config.h.in by configure. */" (comment) "/* config.h.in. Generated from configure.ac by autoheader. */" (comment) "/* always defined to indicate that i18n is enabled */" (preproc_def) "#define ENABLE_NLS 1\n" (#define) "#define" (identifier) "ENABLE_NLS" (preproc_arg) "1" (comment) "/* The prefix for our gettext translation domains. */" (preproc_def) "#define GETTEXT_PACKAGE "gtk30"\n" (#define) "#define" (identifier) "GETTEXT_PACKAGE" (preproc_arg) ""gtk30"" (comment) "/* Disable deprecation warnings from glib */" (preproc_def) "#define GLIB_DISABLE_DEPRECATION_WARNINGS 1\n" (#define) "#define" (identifier) "GLIB_DISABLE_DEPRECATION_WARNINGS" (preproc_arg) "1" (comment) "/* Define if debugging is enabled */" (preproc_def) "#define GTK_COMPILED_WITH_DEBUGGING "minimum"\n" (#define) "#define" (identifier) "GTK_COMPILED_WITH_DEBUGGING" (preproc_arg) ""minimum"" (comment) "/* Define the location where the catalogs will be installed */" (preproc_def) "#define GTK_LOCALEDIR "/usr/local/share/locale"\n" (#define) "#define" (identifier) "GTK_LOCALEDIR" (preproc_arg) ""/usr/local/share/locale"" (comment) "/* Define to 1 if you have the `bind_textdomain_codeset' function. */" (preproc_def) "#define HAVE_BIND_TEXTDOMAIN_CODESET 1\n" (#define) "#define" (identifier) "HAVE_BIND_TEXTDOMAIN_CODESET" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `cairo_surface_set_device_scale' function. */" (preproc_def) "#define HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE 1\n" (#define) "#define" (identifier) "HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE" (preproc_arg) "1" (comment) "/* define if we have colord */" (comment) "/* #undef HAVE_COLORD */" (comment) "/* Define to 1 if you have the <crt_externs.h> header file. */" (comment) "/* #undef HAVE_CRT_EXTERNS_H */" (comment) "/* Define to 1 if CUPS 1.6 API is available */" (comment) "/* #undef HAVE_CUPS_API_1_6 */" (comment) "/* Define to 1 if you have the `dcgettext' function. */" (preproc_def) "#define HAVE_DCGETTEXT 1\n" (#define) "#define" (identifier) "HAVE_DCGETTEXT" (preproc_arg) "1" (comment) "/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.\n */" (preproc_def) "#define HAVE_DECL_ISINF 1\n" (#define) "#define" (identifier) "HAVE_DECL_ISINF" (preproc_arg) "1" (comment) "/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.\n */" (preproc_def) "#define HAVE_DECL_ISNAN 1\n" (#define) "#define" (identifier) "HAVE_DECL_ISNAN" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <dlfcn.h> header file. */" (preproc_def) "#define HAVE_DLFCN_H 1\n" (#define) "#define" (identifier) "HAVE_DLFCN_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <ftw.h> header file. */" (preproc_def) "#define HAVE_FTW_H 1\n" (#define) "#define" (identifier) "HAVE_FTW_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `getpagesize' function. */" (preproc_def) "#define HAVE_GETPAGESIZE 1\n" (#define) "#define" (identifier) "HAVE_GETPAGESIZE" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `getresuid' function. */" (preproc_def) "#define HAVE_GETRESUID 1\n" (#define) "#define" (identifier) "HAVE_GETRESUID" (preproc_arg) "1" (comment) "/* Define if the GNU gettext() function is already present or preinstalled. */" (preproc_def) "#define HAVE_GETTEXT 1\n" (#define) "#define" (identifier) "HAVE_GETTEXT" (preproc_arg) "1" (comment) "/* Define if gio-unix is available */" (preproc_def) "#define HAVE_GIO_UNIX 1\n" (#define) "#define" (identifier) "HAVE_GIO_UNIX" (preproc_arg) "1" (comment) "/* Have GNU ftw */" (preproc_def) "#define HAVE_GNU_FTW 1\n" (#define) "#define" (identifier) "HAVE_GNU_FTW" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `httpGetAuthString' function. */" (comment) "/* #undef HAVE_HTTPGETAUTHSTRING */" (comment) "/* Define if cups http_t authstring field is accessible */" (comment) "/* #undef HAVE_HTTP_AUTHSTRING */" (comment) "/* Define to 1 if you have the <inttypes.h> header file. */" (preproc_def) "#define HAVE_INTTYPES_H 1\n" (#define) "#define" (identifier) "HAVE_INTTYPES_H" (preproc_arg) "1" (comment) "/* Define to 1 if the system has the type `IPrintDialogCallback'. */" (comment) "/* #undef HAVE_IPRINTDIALOGCALLBACK */" (comment) "/* Define if your <locale.h> file defines LC_MESSAGES. */" (preproc_def) "#define HAVE_LC_MESSAGES 1\n" (#define) "#define" (identifier) "HAVE_LC_MESSAGES" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `m' library (-lm). */" (preproc_def) "#define HAVE_LIBM 1\n" (#define) "#define" (identifier) "HAVE_LIBM" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <locale.h> header file. */" (preproc_def) "#define HAVE_LOCALE_H 1\n" (#define) "#define" (identifier) "HAVE_LOCALE_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `localtime_r' function. */" (preproc_def) "#define HAVE_LOCALTIME_R 1\n" (#define) "#define" (identifier) "HAVE_LOCALTIME_R" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `lstat' function. */" (preproc_def) "#define HAVE_LSTAT 1\n" (#define) "#define" (identifier) "HAVE_LSTAT" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `mallinfo' function. */" (preproc_def) "#define HAVE_MALLINFO 1\n" (#define) "#define" (identifier) "HAVE_MALLINFO" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <memory.h> header file. */" (preproc_def) "#define HAVE_MEMORY_H 1\n" (#define) "#define" (identifier) "HAVE_MEMORY_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `mkstemp' function. */" (preproc_def) "#define HAVE_MKSTEMP 1\n" (#define) "#define" (identifier) "HAVE_MKSTEMP" (preproc_arg) "1" (comment) "/* Define to 1 if you have a working `mmap' system call. */" (preproc_def) "#define HAVE_MMAP 1\n" (#define) "#define" (identifier) "HAVE_MMAP" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `nearbyint' function. */" (preproc_def) "#define HAVE_NEARBYINT 1\n" (#define) "#define" (identifier) "HAVE_NEARBYINT" (preproc_arg) "1" (comment) "/* Define to 1 if libpapi available */" (comment) "/* #undef HAVE_PAPI */" (comment) "/* Define to 1 if you have the <pwd.h> header file. */" (preproc_def) "#define HAVE_PWD_H 1\n" (#define) "#define" (identifier) "HAVE_PWD_H" (preproc_arg) "1" (comment) "/* Have the Xrandr extension library */" (preproc_def) "#define HAVE_RANDR 1\n" (#define) "#define" (identifier) "HAVE_RANDR" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `rint' function. */" (preproc_def) "#define HAVE_RINT 1\n" (#define) "#define" (identifier) "HAVE_RINT" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `round' function. */" (preproc_def) "#define HAVE_ROUND 1\n" (#define) "#define" (identifier) "HAVE_ROUND" (preproc_arg) "1" (comment) "/* Have the sockaddr_un.sun_len member */" (comment) "/* #undef HAVE_SOCKADDR_UN_SUN_LEN */" (comment) "/* Define to 1 if solaris xinerama is available */" (comment) "/* #undef HAVE_SOLARIS_XINERAMA */" (comment) "/* Define to 1 if you have the <stdint.h> header file. */" (preproc_def) "#define HAVE_STDINT_H 1\n" (#define) "#define" (identifier) "HAVE_STDINT_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <stdlib.h> header file. */" (preproc_def) "#define HAVE_STDLIB_H 1\n" (#define) "#define" (identifier) "HAVE_STDLIB_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <strings.h> header file. */" (preproc_def) "#define HAVE_STRINGS_H 1\n" (#define) "#define" (identifier) "HAVE_STRINGS_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <string.h> header file. */" (preproc_def) "#define HAVE_STRING_H 1\n" (#define) "#define" (identifier) "HAVE_STRING_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <sys/mman.h> header file. */" (preproc_def) "#define HAVE_SYS_MMAN_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_MMAN_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <sys/param.h> header file. */" (preproc_def) "#define HAVE_SYS_PARAM_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_PARAM_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <sys/stat.h> header file. */" (preproc_def) "#define HAVE_SYS_STAT_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_STAT_H" (preproc_arg) "1" (comment) "/* Define to 1 if sys/sysinfo.h is available */" (preproc_def) "#define HAVE_SYS_SYSINFO_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_SYSINFO_H" (preproc_arg) "1" (comment) "/* Define to 1 if sys/systeminfo.h is available */" (comment) "/* #undef HAVE_SYS_SYSTEMINFO_H */" (comment) "/* Define to 1 if you have the <sys/time.h> header file. */" (preproc_def) "#define HAVE_SYS_TIME_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_TIME_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <sys/types.h> header file. */" (preproc_def) "#define HAVE_SYS_TYPES_H 1\n" (#define) "#define" (identifier) "HAVE_SYS_TYPES_H" (preproc_arg) "1" (comment) "/* Define to 1 if you have the <unistd.h> header file. */" (preproc_def) "#define HAVE_UNISTD_H 1\n" (#define) "#define" (identifier) "HAVE_UNISTD_H" (preproc_arg) "1" (comment) "/* Have the XCOMPOSITE X extension */" (preproc_def) "#define HAVE_XCOMPOSITE 1\n" (#define) "#define" (identifier) "HAVE_XCOMPOSITE" (preproc_arg) "1" (comment) "/* Have the Xcursor library */" (preproc_def) "#define HAVE_XCURSOR 1\n" (#define) "#define" (identifier) "HAVE_XCURSOR" (preproc_arg) "1" (comment) "/* Have the XDAMAGE X extension */" (preproc_def) "#define HAVE_XDAMAGE 1\n" (#define) "#define" (identifier) "HAVE_XDAMAGE" (preproc_arg) "1" (comment) "/* Have the XFIXES X extension */" (preproc_def) "#define HAVE_XFIXES 1\n" (#define) "#define" (identifier) "HAVE_XFIXES" (preproc_arg) "1" (comment) "/* Define to 1 if XFree Xinerama is available */" (preproc_def) "#define HAVE_XFREE_XINERAMA 1\n" (#define) "#define" (identifier) "HAVE_XFREE_XINERAMA" (preproc_arg) "1" (comment) "/* Have XGenericEvent */" (preproc_def) "#define HAVE_XGENERICEVENTS 1\n" (#define) "#define" (identifier) "HAVE_XGENERICEVENTS" (preproc_arg) "1" (comment) "/* Define to 1 if xinerama is available */" (preproc_def) "#define HAVE_XINERAMA 1\n" (#define) "#define" (identifier) "HAVE_XINERAMA" (preproc_arg) "1" (comment) "/* Define to use XKB extension */" (preproc_def) "#define HAVE_XKB 1\n" (#define) "#define" (identifier) "HAVE_XKB" (preproc_arg) "1" (comment) "/* Have the SYNC extension library */" (preproc_def) "#define HAVE_XSYNC 1\n" (#define) "#define" (identifier) "HAVE_XSYNC" (preproc_arg) "1" (comment) "/* Define if _NL_MEASUREMENT_MEASUREMENT is available */" (preproc_def) "#define HAVE__NL_MEASUREMENT_MEASUREMENT 1\n" (#define) "#define" (identifier) "HAVE__NL_MEASUREMENT_MEASUREMENT" (preproc_arg) "1" (comment) "/* Define if _NL_PAPER_HEIGHT is available */" (preproc_def) "#define HAVE__NL_PAPER_HEIGHT 1\n" (#define) "#define" (identifier) "HAVE__NL_PAPER_HEIGHT" (preproc_arg) "1" (comment) "/* Define if _NL_PAPER_WIDTH is available */" (preproc_def) "#define HAVE__NL_PAPER_WIDTH 1\n" (#define) "#define" (identifier) "HAVE__NL_PAPER_WIDTH" (preproc_arg) "1" (comment) "/* Define if _NL_TIME_FIRST_WEEKDAY is available */" (preproc_def) "#define HAVE__NL_TIME_FIRST_WEEKDAY 1\n" (#define) "#define" (identifier) "HAVE__NL_TIME_FIRST_WEEKDAY" (preproc_arg) "1" (comment) "/* Define to 1 if you have the `_NSGetEnviron' function. */" (comment) "/* #undef HAVE__NSGETENVIRON */" (comment) "/* Define to the sub-directory in which libtool stores uninstalled libraries.\n */" (preproc_def) "#define LT_OBJDIR ".libs/"\n" (#define) "#define" (identifier) "LT_OBJDIR" (preproc_arg) "".libs/"" (comment) "/* Define if <X11/extensions/XIproto.h> needed for xReply */" (comment) "/* #undef NEED_XIPROTO_H_FOR_XREPLY */" (comment) "/* Define to 1 if your C compiler doesn't accept -c and -o together. */" (comment) "/* #undef NO_MINUS_C_MINUS_O */" (comment) "/* Define to the address where bug reports for this package should be sent. */" (preproc_def) "#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B"\n" (#define) "#define" (identifier) "PACKAGE_BUGREPORT" (preproc_arg) ""http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B"" (comment) "/* Define to the full name of this package. */" (preproc_def) "#define PACKAGE_NAME "gtk+"\n" (#define) "#define" (identifier) "PACKAGE_NAME" (preproc_arg) ""gtk+"" (comment) "/* Define to the full name and version of this package. */" (preproc_def) "#define PACKAGE_STRING "gtk+ 3.12.1"\n" (#define) "#define" (identifier) "PACKAGE_STRING" (preproc_arg) ""gtk+ 3.12.1"" (comment) "/* Define to the one symbol short name of this package. */" (preproc_def) "#define PACKAGE_TARNAME "gtk+"\n" (#define) "#define" (identifier) "PACKAGE_TARNAME" (preproc_arg) ""gtk+"" (comment) "/* Define to the home page for this package. */" (preproc_def) "#define PACKAGE_URL ""\n" (#define) "#define" (identifier) "PACKAGE_URL" (preproc_arg) """" (comment) "/* Define to the version of this package. */" (preproc_def) "#define PACKAGE_VERSION "3.12.1"\n" (#define) "#define" (identifier) "PACKAGE_VERSION" (preproc_arg) ""3.12.1"" (comment) "/* Use NSBundle functions to determine load paths for libraries, translations,\n etc. */" (comment) "/* #undef QUARTZ_RELOCATION */" (comment) "/* Define to 1 if you have the ANSI C header files. */" (preproc_def) "#define STDC_HEADERS 1\n" (#define) "#define" (identifier) "STDC_HEADERS" (preproc_arg) "1" (comment) "/* Define to 1 if gmodule works and should be used */" (preproc_def) "#define USE_GMODULE 1\n" (#define) "#define" (identifier) "USE_GMODULE" (preproc_arg) "1" (comment) "/* Define to 1 if XInput 2.0 is available */" (preproc_def) "#define XINPUT_2 1\n" (#define) "#define" (identifier) "XINPUT_2" (preproc_arg) "1" (comment) "/* Define to 1 if XInput 2.2 is available */" (preproc_def) "#define XINPUT_2_2 1\n" (#define) "#define" (identifier) "XINPUT_2_2" (preproc_arg) "1" (comment) "/* Define to 1 if the X Window System is missing or not being used. */" (comment) "/* #undef X_DISPLAY_MISSING */" (comment) "/* Enable large inode numbers on Mac OS X 10.5. */" (preproc_ifdef) "#ifndef _DARWIN_USE_64_BIT_INODE\n# define _DARWIN_USE_64_BIT_INODE 1\n#endif" (#ifndef) "#ifndef" (identifier) "_DARWIN_USE_64_BIT_INODE" (preproc_def) "# define _DARWIN_USE_64_BIT_INODE 1\n" (#define) "# define" (identifier) "_DARWIN_USE_64_BIT_INODE" (preproc_arg) "1" (#endif) "#endif" (comment) "/* Number of bits in a file offset, on hosts where this is settable. */" (comment) "/* #undef _FILE_OFFSET_BITS */" (comment) "/* defines how to decorate public symbols while building */" (preproc_def) "#define _GDK_EXTERN __attribute__((visibility("default"))) extern\n" (#define) "#define" (identifier) "_GDK_EXTERN" (preproc_arg) "__attribute__((visibility("default"))) extern" (comment) "/* Define for large files, on AIX-style hosts. */" (comment) "/* #undef _LARGE_FILES */" (comment) "/* Define to `int' if <sys/types.h> doesn't define. */" (comment) "/* #undef gid_t */" (comment) "/* Define to `int' if <sys/types.h> doesn't define. */" (comment) "/* #undef uid_t */"
390
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 39.84, "nodes": 280, "errors": 0, "source_hash": "9f80b3d37dcea6b832b9976d6f690a587c520e8603623e7af9bc2538f1868901", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ENABLE_NLS 1\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "ENABLE_NLS", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 18}}, {"id": 3, "type": "preproc_arg", "text": "1", "parent": 0, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 20}}, {"id": 4, "type": "preproc_def", "text": "#define GETTEXT_PACKAGE \"gtk30\"\n", "parent": null, "children": [5, 6, 7], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 6, "type": "identifier", "text": "GETTEXT_PACKAGE", "parent": 4, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 7, "type": "preproc_arg", "text": "\"gtk30\"", "parent": 4, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 31}}, {"id": 8, "type": "preproc_def", "text": "#define GLIB_DISABLE_DEPRECATION_WARNINGS 1\n", "parent": null, "children": [9, 10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 10, "type": "identifier", "text": "GLIB_DISABLE_DEPRECATION_WARNINGS", "parent": 8, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 41}}, {"id": 11, "type": "preproc_arg", "text": "1", "parent": 8, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 43}}, {"id": 12, "type": "preproc_def", "text": "#define GTK_COMPILED_WITH_DEBUGGING \"minimum\"\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 14, "type": "identifier", "text": "GTK_COMPILED_WITH_DEBUGGING", "parent": 12, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 35}}, {"id": 15, "type": "preproc_arg", "text": "\"minimum\"", "parent": 12, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 45}}, {"id": 16, "type": "preproc_def", "text": "#define GTK_LOCALEDIR \"/usr/local/share/locale\"\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 18, "type": "identifier", "text": "GTK_LOCALEDIR", "parent": 16, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 21}}, {"id": 19, "type": "preproc_arg", "text": "\"/usr/local/share/locale\"", "parent": 16, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 47}}, {"id": 20, "type": "preproc_def", "text": "#define HAVE_BIND_TEXTDOMAIN_CODESET 1\n", "parent": null, "children": [21, 22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 22, "type": "identifier", "text": "HAVE_BIND_TEXTDOMAIN_CODESET", "parent": 20, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 36}}, {"id": 23, "type": "preproc_arg", "text": "1", "parent": 20, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 24, "type": "preproc_def", "text": "#define HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE 1\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 26, "type": "identifier", "text": "HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE", "parent": 24, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 43}}, {"id": 27, "type": "preproc_arg", "text": "1", "parent": 24, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 45}}, {"id": 28, "type": "preproc_def", "text": "#define HAVE_DCGETTEXT 1\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 30, "type": "identifier", "text": "HAVE_DCGETTEXT", "parent": 28, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 22}}, {"id": 31, "type": "preproc_arg", "text": "1", "parent": 28, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 24}}, {"id": 32, "type": "preproc_def", "text": "#define HAVE_DECL_ISINF 1\n", "parent": null, "children": [33, 34, 35], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 34, "type": "identifier", "text": "HAVE_DECL_ISINF", "parent": 32, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 23}}, {"id": 35, "type": "preproc_arg", "text": "1", "parent": 32, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 36, "type": "preproc_def", "text": "#define HAVE_DECL_ISNAN 1\n", "parent": null, "children": [37, 38, 39], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 38, "type": "identifier", "text": "HAVE_DECL_ISNAN", "parent": 36, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 23}}, {"id": 39, "type": "preproc_arg", "text": "1", "parent": 36, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 25}}, {"id": 40, "type": "preproc_def", "text": "#define HAVE_DLFCN_H 1\n", "parent": null, "children": [41, 42, 43], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 42, "type": "identifier", "text": "HAVE_DLFCN_H", "parent": 40, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 20}}, {"id": 43, "type": "preproc_arg", "text": "1", "parent": 40, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 22}}, {"id": 44, "type": "preproc_def", "text": "#define HAVE_FTW_H 1\n", "parent": null, "children": [45, 46, 47], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 46, "type": "identifier", "text": "HAVE_FTW_H", "parent": 44, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 47, "type": "preproc_arg", "text": "1", "parent": 44, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 48, "type": "preproc_def", "text": "#define HAVE_GETPAGESIZE 1\n", "parent": null, "children": [49, 50, 51], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 50, "type": "identifier", "text": "HAVE_GETPAGESIZE", "parent": 48, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 24}}, {"id": 51, "type": "preproc_arg", "text": "1", "parent": 48, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 26}}, {"id": 52, "type": "preproc_def", "text": "#define HAVE_GETRESUID 1\n", "parent": null, "children": [53, 54, 55], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 54, "type": "identifier", "text": "HAVE_GETRESUID", "parent": 52, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 22}}, {"id": 55, "type": "preproc_arg", "text": "1", "parent": 52, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 24}}, {"id": 56, "type": "preproc_def", "text": "#define HAVE_GETTEXT 1\n", "parent": null, "children": [57, 58, 59], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 58, "type": "identifier", "text": "HAVE_GETTEXT", "parent": 56, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 20}}, {"id": 59, "type": "preproc_arg", "text": "1", "parent": 56, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 60, "type": "preproc_def", "text": "#define HAVE_GIO_UNIX 1\n", "parent": null, "children": [61, 62, 63], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 62, "type": "identifier", "text": "HAVE_GIO_UNIX", "parent": 60, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 21}}, {"id": 63, "type": "preproc_arg", "text": "1", "parent": 60, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 64, "type": "preproc_def", "text": "#define HAVE_GNU_FTW 1\n", "parent": null, "children": [65, 66, 67], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 66, "type": "identifier", "text": "HAVE_GNU_FTW", "parent": 64, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 20}}, {"id": 67, "type": "preproc_arg", "text": "1", "parent": 64, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 22}}, {"id": 68, "type": "preproc_def", "text": "#define HAVE_INTTYPES_H 1\n", "parent": null, "children": [69, 70, 71], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 70, "type": "identifier", "text": "HAVE_INTTYPES_H", "parent": 68, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 23}}, {"id": 71, "type": "preproc_arg", "text": "1", "parent": 68, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 25}}, {"id": 72, "type": "preproc_def", "text": "#define HAVE_LC_MESSAGES 1\n", "parent": null, "children": [73, 74, 75], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 7}}, {"id": 74, "type": "identifier", "text": "HAVE_LC_MESSAGES", "parent": 72, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 24}}, {"id": 75, "type": "preproc_arg", "text": "1", "parent": 72, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 26}}, {"id": 76, "type": "preproc_def", "text": "#define HAVE_LIBM 1\n", "parent": null, "children": [77, 78, 79], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 7}}, {"id": 78, "type": "identifier", "text": "HAVE_LIBM", "parent": 76, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 17}}, {"id": 79, "type": "preproc_arg", "text": "1", "parent": 76, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 80, "type": "preproc_def", "text": "#define HAVE_LOCALE_H 1\n", "parent": null, "children": [81, 82, 83], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 85, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 82, "type": "identifier", "text": "HAVE_LOCALE_H", "parent": 80, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 21}}, {"id": 83, "type": "preproc_arg", "text": "1", "parent": 80, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 23}}, {"id": 84, "type": "preproc_def", "text": "#define HAVE_LOCALTIME_R 1\n", "parent": null, "children": [85, 86, 87], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 86, "type": "identifier", "text": "HAVE_LOCALTIME_R", "parent": 84, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 24}}, {"id": 87, "type": "preproc_arg", "text": "1", "parent": 84, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 26}}, {"id": 88, "type": "preproc_def", "text": "#define HAVE_LSTAT 1\n", "parent": null, "children": [89, 90, 91], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 7}}, {"id": 90, "type": "identifier", "text": "HAVE_LSTAT", "parent": 88, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 18}}, {"id": 91, "type": "preproc_arg", "text": "1", "parent": 88, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 20}}, {"id": 92, "type": "preproc_def", "text": "#define HAVE_MALLINFO 1\n", "parent": null, "children": [93, 94, 95], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 93, "type": "#define", "text": "#define", "parent": 92, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 94, "type": "identifier", "text": "HAVE_MALLINFO", "parent": 92, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 21}}, {"id": 95, "type": "preproc_arg", "text": "1", "parent": 92, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 23}}, {"id": 96, "type": "preproc_def", "text": "#define HAVE_MEMORY_H 1\n", "parent": null, "children": [97, 98, 99], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 97, "type": "#define", "text": "#define", "parent": 96, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 98, "type": "identifier", "text": "HAVE_MEMORY_H", "parent": 96, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 21}}, {"id": 99, "type": "preproc_arg", "text": "1", "parent": 96, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 23}}, {"id": 100, "type": "preproc_def", "text": "#define HAVE_MKSTEMP 1\n", "parent": null, "children": [101, 102, 103], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 0}}, {"id": 101, "type": "#define", "text": "#define", "parent": 100, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 7}}, {"id": 102, "type": "identifier", "text": "HAVE_MKSTEMP", "parent": 100, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 20}}, {"id": 103, "type": "preproc_arg", "text": "1", "parent": 100, "children": [], "start_point": {"row": 99, "column": 21}, "end_point": {"row": 99, "column": 22}}, {"id": 104, "type": "preproc_def", "text": "#define HAVE_MMAP 1\n", "parent": null, "children": [105, 106, 107], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 105, "type": "#define", "text": "#define", "parent": 104, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 106, "type": "identifier", "text": "HAVE_MMAP", "parent": 104, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 17}}, {"id": 107, "type": "preproc_arg", "text": "1", "parent": 104, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 19}}, {"id": 108, "type": "preproc_def", "text": "#define HAVE_NEARBYINT 1\n", "parent": null, "children": [109, 110, 111], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 109, "type": "#define", "text": "#define", "parent": 108, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 110, "type": "identifier", "text": "HAVE_NEARBYINT", "parent": 108, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 111, "type": "preproc_arg", "text": "1", "parent": 108, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 24}}, {"id": 112, "type": "preproc_def", "text": "#define HAVE_PWD_H 1\n", "parent": null, "children": [113, 114, 115], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 0}}, {"id": 113, "type": "#define", "text": "#define", "parent": 112, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 114, "type": "identifier", "text": "HAVE_PWD_H", "parent": 112, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 18}}, {"id": 115, "type": "preproc_arg", "text": "1", "parent": 112, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 20}}, {"id": 116, "type": "preproc_def", "text": "#define HAVE_RANDR 1\n", "parent": null, "children": [117, 118, 119], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 115, "column": 0}}, {"id": 117, "type": "#define", "text": "#define", "parent": 116, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 7}}, {"id": 118, "type": "identifier", "text": "HAVE_RANDR", "parent": 116, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 18}}, {"id": 119, "type": "preproc_arg", "text": "1", "parent": 116, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 20}}, {"id": 120, "type": "preproc_def", "text": "#define HAVE_RINT 1\n", "parent": null, "children": [121, 122, 123], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 121, "type": "#define", "text": "#define", "parent": 120, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 122, "type": "identifier", "text": "HAVE_RINT", "parent": 120, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 17}}, {"id": 123, "type": "preproc_arg", "text": "1", "parent": 120, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 19}}, {"id": 124, "type": "preproc_def", "text": "#define HAVE_ROUND 1\n", "parent": null, "children": [125, 126, 127], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 126, "type": "identifier", "text": "HAVE_ROUND", "parent": 124, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 18}}, {"id": 127, "type": "preproc_arg", "text": "1", "parent": 124, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 20}}, {"id": 128, "type": "preproc_def", "text": "#define HAVE_STDINT_H 1\n", "parent": null, "children": [129, 130, 131], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 130, "column": 0}}, {"id": 129, "type": "#define", "text": "#define", "parent": 128, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 130, "type": "identifier", "text": "HAVE_STDINT_H", "parent": 128, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 21}}, {"id": 131, "type": "preproc_arg", "text": "1", "parent": 128, "children": [], "start_point": {"row": 129, "column": 22}, "end_point": {"row": 129, "column": 23}}, {"id": 132, "type": "preproc_def", "text": "#define HAVE_STDLIB_H 1\n", "parent": null, "children": [133, 134, 135], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 133, "column": 0}}, {"id": 133, "type": "#define", "text": "#define", "parent": 132, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 134, "type": "identifier", "text": "HAVE_STDLIB_H", "parent": 132, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 21}}, {"id": 135, "type": "preproc_arg", "text": "1", "parent": 132, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 23}}, {"id": 136, "type": "preproc_def", "text": "#define HAVE_STRINGS_H 1\n", "parent": null, "children": [137, 138, 139], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 137, "type": "#define", "text": "#define", "parent": 136, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 138, "type": "identifier", "text": "HAVE_STRINGS_H", "parent": 136, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 22}}, {"id": 139, "type": "preproc_arg", "text": "1", "parent": 136, "children": [], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 24}}, {"id": 140, "type": "preproc_def", "text": "#define HAVE_STRING_H 1\n", "parent": null, "children": [141, 142, 143], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 139, "column": 0}}, {"id": 141, "type": "#define", "text": "#define", "parent": 140, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 7}}, {"id": 142, "type": "identifier", "text": "HAVE_STRING_H", "parent": 140, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 21}}, {"id": 143, "type": "preproc_arg", "text": "1", "parent": 140, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 23}}, {"id": 144, "type": "preproc_def", "text": "#define HAVE_SYS_MMAN_H 1\n", "parent": null, "children": [145, 146, 147], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 0}}, {"id": 145, "type": "#define", "text": "#define", "parent": 144, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 146, "type": "identifier", "text": "HAVE_SYS_MMAN_H", "parent": 144, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 23}}, {"id": 147, "type": "preproc_arg", "text": "1", "parent": 144, "children": [], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 25}}, {"id": 148, "type": "preproc_def", "text": "#define HAVE_SYS_PARAM_H 1\n", "parent": null, "children": [149, 150, 151], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 145, "column": 0}}, {"id": 149, "type": "#define", "text": "#define", "parent": 148, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 7}}, {"id": 150, "type": "identifier", "text": "HAVE_SYS_PARAM_H", "parent": 148, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 24}}, {"id": 151, "type": "preproc_arg", "text": "1", "parent": 148, "children": [], "start_point": {"row": 144, "column": 25}, "end_point": {"row": 144, "column": 26}}, {"id": 152, "type": "preproc_def", "text": "#define HAVE_SYS_STAT_H 1\n", "parent": null, "children": [153, 154, 155], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 148, "column": 0}}, {"id": 153, "type": "#define", "text": "#define", "parent": 152, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 7}}, {"id": 154, "type": "identifier", "text": "HAVE_SYS_STAT_H", "parent": 152, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 23}}, {"id": 155, "type": "preproc_arg", "text": "1", "parent": 152, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 25}}, {"id": 156, "type": "preproc_def", "text": "#define HAVE_SYS_SYSINFO_H 1\n", "parent": null, "children": [157, 158, 159], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 151, "column": 0}}, {"id": 157, "type": "#define", "text": "#define", "parent": 156, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 7}}, {"id": 158, "type": "identifier", "text": "HAVE_SYS_SYSINFO_H", "parent": 156, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 26}}, {"id": 159, "type": "preproc_arg", "text": "1", "parent": 156, "children": [], "start_point": {"row": 150, "column": 27}, "end_point": {"row": 150, "column": 28}}, {"id": 160, "type": "preproc_def", "text": "#define HAVE_SYS_TIME_H 1\n", "parent": null, "children": [161, 162, 163], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 157, "column": 0}}, {"id": 161, "type": "#define", "text": "#define", "parent": 160, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 7}}, {"id": 162, "type": "identifier", "text": "HAVE_SYS_TIME_H", "parent": 160, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 23}}, {"id": 163, "type": "preproc_arg", "text": "1", "parent": 160, "children": [], "start_point": {"row": 156, "column": 24}, "end_point": {"row": 156, "column": 25}}, {"id": 164, "type": "preproc_def", "text": "#define HAVE_SYS_TYPES_H 1\n", "parent": null, "children": [165, 166, 167], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 160, "column": 0}}, {"id": 165, "type": "#define", "text": "#define", "parent": 164, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 7}}, {"id": 166, "type": "identifier", "text": "HAVE_SYS_TYPES_H", "parent": 164, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 24}}, {"id": 167, "type": "preproc_arg", "text": "1", "parent": 164, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 26}}, {"id": 168, "type": "preproc_def", "text": "#define HAVE_UNISTD_H 1\n", "parent": null, "children": [169, 170, 171], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 163, "column": 0}}, {"id": 169, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 7}}, {"id": 170, "type": "identifier", "text": "HAVE_UNISTD_H", "parent": 168, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 21}}, {"id": 171, "type": "preproc_arg", "text": "1", "parent": 168, "children": [], "start_point": {"row": 162, "column": 22}, "end_point": {"row": 162, "column": 23}}, {"id": 172, "type": "preproc_def", "text": "#define HAVE_XCOMPOSITE 1\n", "parent": null, "children": [173, 174, 175], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 166, "column": 0}}, {"id": 173, "type": "#define", "text": "#define", "parent": 172, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 7}}, {"id": 174, "type": "identifier", "text": "HAVE_XCOMPOSITE", "parent": 172, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 23}}, {"id": 175, "type": "preproc_arg", "text": "1", "parent": 172, "children": [], "start_point": {"row": 165, "column": 24}, "end_point": {"row": 165, "column": 25}}, {"id": 176, "type": "preproc_def", "text": "#define HAVE_XCURSOR 1\n", "parent": null, "children": [177, 178, 179], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 169, "column": 0}}, {"id": 177, "type": "#define", "text": "#define", "parent": 176, "children": [], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 168, "column": 7}}, {"id": 178, "type": "identifier", "text": "HAVE_XCURSOR", "parent": 176, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 20}}, {"id": 179, "type": "preproc_arg", "text": "1", "parent": 176, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 22}}, {"id": 180, "type": "preproc_def", "text": "#define HAVE_XDAMAGE 1\n", "parent": null, "children": [181, 182, 183], "start_point": {"row": 171, "column": 0}, "end_point": {"row": 172, "column": 0}}, {"id": 181, "type": "#define", "text": "#define", "parent": 180, "children": [], "start_point": {"row": 171, "column": 0}, "end_point": {"row": 171, "column": 7}}, {"id": 182, "type": "identifier", "text": "HAVE_XDAMAGE", "parent": 180, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 20}}, {"id": 183, "type": "preproc_arg", "text": "1", "parent": 180, "children": [], "start_point": {"row": 171, "column": 21}, "end_point": {"row": 171, "column": 22}}, {"id": 184, "type": "preproc_def", "text": "#define HAVE_XFIXES 1\n", "parent": null, "children": [185, 186, 187], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 175, "column": 0}}, {"id": 185, "type": "#define", "text": "#define", "parent": 184, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 7}}, {"id": 186, "type": "identifier", "text": "HAVE_XFIXES", "parent": 184, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 19}}, {"id": 187, "type": "preproc_arg", "text": "1", "parent": 184, "children": [], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 21}}, {"id": 188, "type": "preproc_def", "text": "#define HAVE_XFREE_XINERAMA 1\n", "parent": null, "children": [189, 190, 191], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 178, "column": 0}}, {"id": 189, "type": "#define", "text": "#define", "parent": 188, "children": [], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 7}}, {"id": 190, "type": "identifier", "text": "HAVE_XFREE_XINERAMA", "parent": 188, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 27}}, {"id": 191, "type": "preproc_arg", "text": "1", "parent": 188, "children": [], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 29}}, {"id": 192, "type": "preproc_def", "text": "#define HAVE_XGENERICEVENTS 1\n", "parent": null, "children": [193, 194, 195], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 181, "column": 0}}, {"id": 193, "type": "#define", "text": "#define", "parent": 192, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 7}}, {"id": 194, "type": "identifier", "text": "HAVE_XGENERICEVENTS", "parent": 192, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 27}}, {"id": 195, "type": "preproc_arg", "text": "1", "parent": 192, "children": [], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 29}}, {"id": 196, "type": "preproc_def", "text": "#define HAVE_XINERAMA 1\n", "parent": null, "children": [197, 198, 199], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 184, "column": 0}}, {"id": 197, "type": "#define", "text": "#define", "parent": 196, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 7}}, {"id": 198, "type": "identifier", "text": "HAVE_XINERAMA", "parent": 196, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 21}}, {"id": 199, "type": "preproc_arg", "text": "1", "parent": 196, "children": [], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 23}}, {"id": 200, "type": "preproc_def", "text": "#define HAVE_XKB 1\n", "parent": null, "children": [201, 202, 203], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 187, "column": 0}}, {"id": 201, "type": "#define", "text": "#define", "parent": 200, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 7}}, {"id": 202, "type": "identifier", "text": "HAVE_XKB", "parent": 200, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 16}}, {"id": 203, "type": "preproc_arg", "text": "1", "parent": 200, "children": [], "start_point": {"row": 186, "column": 17}, "end_point": {"row": 186, "column": 18}}, {"id": 204, "type": "preproc_def", "text": "#define HAVE_XSYNC 1\n", "parent": null, "children": [205, 206, 207], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 190, "column": 0}}, {"id": 205, "type": "#define", "text": "#define", "parent": 204, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 7}}, {"id": 206, "type": "identifier", "text": "HAVE_XSYNC", "parent": 204, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 18}}, {"id": 207, "type": "preproc_arg", "text": "1", "parent": 204, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 208, "type": "preproc_def", "text": "#define HAVE__NL_MEASUREMENT_MEASUREMENT 1\n", "parent": null, "children": [209, 210, 211], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 0}}, {"id": 209, "type": "#define", "text": "#define", "parent": 208, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 7}}, {"id": 210, "type": "identifier", "text": "HAVE__NL_MEASUREMENT_MEASUREMENT", "parent": 208, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 40}}, {"id": 211, "type": "preproc_arg", "text": "1", "parent": 208, "children": [], "start_point": {"row": 192, "column": 41}, "end_point": {"row": 192, "column": 42}}, {"id": 212, "type": "preproc_def", "text": "#define HAVE__NL_PAPER_HEIGHT 1\n", "parent": null, "children": [213, 214, 215], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 196, "column": 0}}, {"id": 213, "type": "#define", "text": "#define", "parent": 212, "children": [], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 7}}, {"id": 214, "type": "identifier", "text": "HAVE__NL_PAPER_HEIGHT", "parent": 212, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 29}}, {"id": 215, "type": "preproc_arg", "text": "1", "parent": 212, "children": [], "start_point": {"row": 195, "column": 30}, "end_point": {"row": 195, "column": 31}}, {"id": 216, "type": "preproc_def", "text": "#define HAVE__NL_PAPER_WIDTH 1\n", "parent": null, "children": [217, 218, 219], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 199, "column": 0}}, {"id": 217, "type": "#define", "text": "#define", "parent": 216, "children": [], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 7}}, {"id": 218, "type": "identifier", "text": "HAVE__NL_PAPER_WIDTH", "parent": 216, "children": [], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 28}}, {"id": 219, "type": "preproc_arg", "text": "1", "parent": 216, "children": [], "start_point": {"row": 198, "column": 29}, "end_point": {"row": 198, "column": 30}}, {"id": 220, "type": "preproc_def", "text": "#define HAVE__NL_TIME_FIRST_WEEKDAY 1\n", "parent": null, "children": [221, 222, 223], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 202, "column": 0}}, {"id": 221, "type": "#define", "text": "#define", "parent": 220, "children": [], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 201, "column": 7}}, {"id": 222, "type": "identifier", "text": "HAVE__NL_TIME_FIRST_WEEKDAY", "parent": 220, "children": [], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 35}}, {"id": 223, "type": "preproc_arg", "text": "1", "parent": 220, "children": [], "start_point": {"row": 201, "column": 36}, "end_point": {"row": 201, "column": 37}}, {"id": 224, "type": "preproc_def", "text": "#define LT_OBJDIR \".libs/\"\n", "parent": null, "children": [225, 226, 227], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 209, "column": 0}}, {"id": 225, "type": "#define", "text": "#define", "parent": 224, "children": [], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 208, "column": 7}}, {"id": 226, "type": "identifier", "text": "LT_OBJDIR", "parent": 224, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 17}}, {"id": 227, "type": "preproc_arg", "text": "\".libs/\"", "parent": 224, "children": [], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 26}}, {"id": 228, "type": "preproc_def", "text": "#define PACKAGE_BUGREPORT \"http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B\"\n", "parent": null, "children": [229, 230, 231], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 218, "column": 0}}, {"id": 229, "type": "#define", "text": "#define", "parent": 228, "children": [], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 217, "column": 7}}, {"id": 230, "type": "identifier", "text": "PACKAGE_BUGREPORT", "parent": 228, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 25}}, {"id": 231, "type": "preproc_arg", "text": "\"http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B\"", "parent": 228, "children": [], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 82}}, {"id": 232, "type": "preproc_def", "text": "#define PACKAGE_NAME \"gtk+\"\n", "parent": null, "children": [233, 234, 235], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 221, "column": 0}}, {"id": 233, "type": "#define", "text": "#define", "parent": 232, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 7}}, {"id": 234, "type": "identifier", "text": "PACKAGE_NAME", "parent": 232, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 20}}, {"id": 235, "type": "preproc_arg", "text": "\"gtk+\"", "parent": 232, "children": [], "start_point": {"row": 220, "column": 21}, "end_point": {"row": 220, "column": 27}}, {"id": 236, "type": "preproc_def", "text": "#define PACKAGE_STRING \"gtk+ 3.12.1\"\n", "parent": null, "children": [237, 238, 239], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 224, "column": 0}}, {"id": 237, "type": "#define", "text": "#define", "parent": 236, "children": [], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 7}}, {"id": 238, "type": "identifier", "text": "PACKAGE_STRING", "parent": 236, "children": [], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 22}}, {"id": 239, "type": "preproc_arg", "text": "\"gtk+ 3.12.1\"", "parent": 236, "children": [], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 36}}, {"id": 240, "type": "preproc_def", "text": "#define PACKAGE_TARNAME \"gtk+\"\n", "parent": null, "children": [241, 242, 243], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 227, "column": 0}}, {"id": 241, "type": "#define", "text": "#define", "parent": 240, "children": [], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 7}}, {"id": 242, "type": "identifier", "text": "PACKAGE_TARNAME", "parent": 240, "children": [], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 23}}, {"id": 243, "type": "preproc_arg", "text": "\"gtk+\"", "parent": 240, "children": [], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 30}}, {"id": 244, "type": "preproc_def", "text": "#define PACKAGE_URL \"\"\n", "parent": null, "children": [245, 246, 247], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 230, "column": 0}}, {"id": 245, "type": "#define", "text": "#define", "parent": 244, "children": [], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 7}}, {"id": 246, "type": "identifier", "text": "PACKAGE_URL", "parent": 244, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 19}}, {"id": 247, "type": "preproc_arg", "text": "\"\"", "parent": 244, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 22}}, {"id": 248, "type": "preproc_def", "text": "#define PACKAGE_VERSION \"3.12.1\"\n", "parent": null, "children": [249, 250, 251], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 233, "column": 0}}, {"id": 249, "type": "#define", "text": "#define", "parent": 248, "children": [], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 232, "column": 7}}, {"id": 250, "type": "identifier", "text": "PACKAGE_VERSION", "parent": 248, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 23}}, {"id": 251, "type": "preproc_arg", "text": "\"3.12.1\"", "parent": 248, "children": [], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 32}}, {"id": 252, "type": "preproc_def", "text": "#define STDC_HEADERS 1\n", "parent": null, "children": [253, 254, 255], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 240, "column": 0}}, {"id": 253, "type": "#define", "text": "#define", "parent": 252, "children": [], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 7}}, {"id": 254, "type": "identifier", "text": "STDC_HEADERS", "parent": 252, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 20}}, {"id": 255, "type": "preproc_arg", "text": "1", "parent": 252, "children": [], "start_point": {"row": 239, "column": 21}, "end_point": {"row": 239, "column": 22}}, {"id": 256, "type": "preproc_def", "text": "#define USE_GMODULE 1\n", "parent": null, "children": [257, 258, 259], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 243, "column": 0}}, {"id": 257, "type": "#define", "text": "#define", "parent": 256, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 7}}, {"id": 258, "type": "identifier", "text": "USE_GMODULE", "parent": 256, "children": [], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 19}}, {"id": 259, "type": "preproc_arg", "text": "1", "parent": 256, "children": [], "start_point": {"row": 242, "column": 20}, "end_point": {"row": 242, "column": 21}}, {"id": 260, "type": "preproc_def", "text": "#define XINPUT_2 1\n", "parent": null, "children": [261, 262, 263], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 246, "column": 0}}, {"id": 261, "type": "#define", "text": "#define", "parent": 260, "children": [], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 7}}, {"id": 262, "type": "identifier", "text": "XINPUT_2", "parent": 260, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 16}}, {"id": 263, "type": "preproc_arg", "text": "1", "parent": 260, "children": [], "start_point": {"row": 245, "column": 17}, "end_point": {"row": 245, "column": 18}}, {"id": 264, "type": "preproc_def", "text": "#define XINPUT_2_2 1\n", "parent": null, "children": [265, 266, 267], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 249, "column": 0}}, {"id": 265, "type": "#define", "text": "#define", "parent": 264, "children": [], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 248, "column": 7}}, {"id": 266, "type": "identifier", "text": "XINPUT_2_2", "parent": 264, "children": [], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 18}}, {"id": 267, "type": "preproc_arg", "text": "1", "parent": 264, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 20}}, {"id": 268, "type": "preproc_ifdef", "text": "#ifndef _DARWIN_USE_64_BIT_INODE\n# define _DARWIN_USE_64_BIT_INODE 1\n#endif", "parent": null, "children": [269, 270, 271, 275], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 256, "column": 6}}, {"id": 269, "type": "#ifndef", "text": "#ifndef", "parent": 268, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 7}}, {"id": 270, "type": "identifier", "text": "_DARWIN_USE_64_BIT_INODE", "parent": 268, "children": [], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 32}}, {"id": 271, "type": "preproc_def", "text": "# define _DARWIN_USE_64_BIT_INODE 1\n", "parent": 268, "children": [272, 273, 274], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 256, "column": 0}}, {"id": 272, "type": "#define", "text": "# define", "parent": 271, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 8}}, {"id": 273, "type": "identifier", "text": "_DARWIN_USE_64_BIT_INODE", "parent": 271, "children": [], "start_point": {"row": 255, "column": 9}, "end_point": {"row": 255, "column": 33}}, {"id": 274, "type": "preproc_arg", "text": "1", "parent": 271, "children": [], "start_point": {"row": 255, "column": 34}, "end_point": {"row": 255, "column": 35}}, {"id": 275, "type": "#endif", "text": "#endif", "parent": 268, "children": [], "start_point": {"row": 256, "column": 0}, "end_point": {"row": 256, "column": 6}}, {"id": 276, "type": "preproc_def", "text": "#define _GDK_EXTERN __attribute__((visibility(\"default\"))) extern\n", "parent": null, "children": [277, 278, 279], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 263, "column": 0}}, {"id": 277, "type": "#define", "text": "#define", "parent": 276, "children": [], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 262, "column": 7}}, {"id": 278, "type": "identifier", "text": "_GDK_EXTERN", "parent": 276, "children": [], "start_point": {"row": 262, "column": 8}, "end_point": {"row": 262, "column": 19}}, {"id": 279, "type": "preproc_arg", "text": "__attribute__((visibility(\"default\"))) extern", "parent": 276, "children": [], "start_point": {"row": 262, "column": 20}, "end_point": {"row": 262, "column": 65}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 218, 222, 226, 230, 234, 238, 242, 246, 250, 254, 258, 262, 266, 268, 269, 270, 273, 275, 278], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* config.h. Generated from config.h.in by configure. */\n/* config.h.in. Generated from configure.ac by autoheader. */\n\n/* always defined to indicate that i18n is enabled */\n#define ENABLE_NLS 1\n\n/* The prefix for our gettext translation domains. */\n#define GETTEXT_PACKAGE \"gtk30\"\n\n/* Disable deprecation warnings from glib */\n#define GLIB_DISABLE_DEPRECATION_WARNINGS 1\n\n/* Define if debugging is enabled */\n#define GTK_COMPILED_WITH_DEBUGGING \"minimum\"\n\n/* Define the location where the catalogs will be installed */\n#define GTK_LOCALEDIR \"/usr/local/share/locale\"\n\n/* Define to 1 if you have the `bind_textdomain_codeset' function. */\n#define HAVE_BIND_TEXTDOMAIN_CODESET 1\n\n/* Define to 1 if you have the `cairo_surface_set_device_scale' function. */\n#define HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE 1\n\n/* define if we have colord */\n/* #undef HAVE_COLORD */\n\n/* Define to 1 if you have the <crt_externs.h> header file. */\n/* #undef HAVE_CRT_EXTERNS_H */\n\n/* Define to 1 if CUPS 1.6 API is available */\n/* #undef HAVE_CUPS_API_1_6 */\n\n/* Define to 1 if you have the `dcgettext' function. */\n#define HAVE_DCGETTEXT 1\n\n/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.\n */\n#define HAVE_DECL_ISINF 1\n\n/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.\n */\n#define HAVE_DECL_ISNAN 1\n\n/* Define to 1 if you have the <dlfcn.h> header file. */\n#define HAVE_DLFCN_H 1\n\n/* Define to 1 if you have the <ftw.h> header file. */\n#define HAVE_FTW_H 1\n\n/* Define to 1 if you have the `getpagesize' function. */\n#define HAVE_GETPAGESIZE 1\n\n/* Define to 1 if you have the `getresuid' function. */\n#define HAVE_GETRESUID 1\n\n/* Define if the GNU gettext() function is already present or preinstalled. */\n#define HAVE_GETTEXT 1\n\n/* Define if gio-unix is available */\n#define HAVE_GIO_UNIX 1\n\n/* Have GNU ftw */\n#define HAVE_GNU_FTW 1\n\n/* Define to 1 if you have the `httpGetAuthString' function. */\n/* #undef HAVE_HTTPGETAUTHSTRING */\n\n/* Define if cups http_t authstring field is accessible */\n/* #undef HAVE_HTTP_AUTHSTRING */\n\n/* Define to 1 if you have the <inttypes.h> header file. */\n#define HAVE_INTTYPES_H 1\n\n/* Define to 1 if the system has the type `IPrintDialogCallback'. */\n/* #undef HAVE_IPRINTDIALOGCALLBACK */\n\n/* Define if your <locale.h> file defines LC_MESSAGES. */\n#define HAVE_LC_MESSAGES 1\n\n/* Define to 1 if you have the `m' library (-lm). */\n#define HAVE_LIBM 1\n\n/* Define to 1 if you have the <locale.h> header file. */\n#define HAVE_LOCALE_H 1\n\n/* Define to 1 if you have the `localtime_r' function. */\n#define HAVE_LOCALTIME_R 1\n\n/* Define to 1 if you have the `lstat' function. */\n#define HAVE_LSTAT 1\n\n/* Define to 1 if you have the `mallinfo' function. */\n#define HAVE_MALLINFO 1\n\n/* Define to 1 if you have the <memory.h> header file. */\n#define HAVE_MEMORY_H 1\n\n/* Define to 1 if you have the `mkstemp' function. */\n#define HAVE_MKSTEMP 1\n\n/* Define to 1 if you have a working `mmap' system call. */\n#define HAVE_MMAP 1\n\n/* Define to 1 if you have the `nearbyint' function. */\n#define HAVE_NEARBYINT 1\n\n/* Define to 1 if libpapi available */\n/* #undef HAVE_PAPI */\n\n/* Define to 1 if you have the <pwd.h> header file. */\n#define HAVE_PWD_H 1\n\n/* Have the Xrandr extension library */\n#define HAVE_RANDR 1\n\n/* Define to 1 if you have the `rint' function. */\n#define HAVE_RINT 1\n\n/* Define to 1 if you have the `round' function. */\n#define HAVE_ROUND 1\n\n/* Have the sockaddr_un.sun_len member */\n/* #undef HAVE_SOCKADDR_UN_SUN_LEN */\n\n/* Define to 1 if solaris xinerama is available */\n/* #undef HAVE_SOLARIS_XINERAMA */\n\n/* Define to 1 if you have the <stdint.h> header file. */\n#define HAVE_STDINT_H 1\n\n/* Define to 1 if you have the <stdlib.h> header file. */\n#define HAVE_STDLIB_H 1\n\n/* Define to 1 if you have the <strings.h> header file. */\n#define HAVE_STRINGS_H 1\n\n/* Define to 1 if you have the <string.h> header file. */\n#define HAVE_STRING_H 1\n\n/* Define to 1 if you have the <sys/mman.h> header file. */\n#define HAVE_SYS_MMAN_H 1\n\n/* Define to 1 if you have the <sys/param.h> header file. */\n#define HAVE_SYS_PARAM_H 1\n\n/* Define to 1 if you have the <sys/stat.h> header file. */\n#define HAVE_SYS_STAT_H 1\n\n/* Define to 1 if sys/sysinfo.h is available */\n#define HAVE_SYS_SYSINFO_H 1\n\n/* Define to 1 if sys/systeminfo.h is available */\n/* #undef HAVE_SYS_SYSTEMINFO_H */\n\n/* Define to 1 if you have the <sys/time.h> header file. */\n#define HAVE_SYS_TIME_H 1\n\n/* Define to 1 if you have the <sys/types.h> header file. */\n#define HAVE_SYS_TYPES_H 1\n\n/* Define to 1 if you have the <unistd.h> header file. */\n#define HAVE_UNISTD_H 1\n\n/* Have the XCOMPOSITE X extension */\n#define HAVE_XCOMPOSITE 1\n\n/* Have the Xcursor library */\n#define HAVE_XCURSOR 1\n\n/* Have the XDAMAGE X extension */\n#define HAVE_XDAMAGE 1\n\n/* Have the XFIXES X extension */\n#define HAVE_XFIXES 1\n\n/* Define to 1 if XFree Xinerama is available */\n#define HAVE_XFREE_XINERAMA 1\n\n/* Have XGenericEvent */\n#define HAVE_XGENERICEVENTS 1\n\n/* Define to 1 if xinerama is available */\n#define HAVE_XINERAMA 1\n\n/* Define to use XKB extension */\n#define HAVE_XKB 1\n\n/* Have the SYNC extension library */\n#define HAVE_XSYNC 1\n\n/* Define if _NL_MEASUREMENT_MEASUREMENT is available */\n#define HAVE__NL_MEASUREMENT_MEASUREMENT 1\n\n/* Define if _NL_PAPER_HEIGHT is available */\n#define HAVE__NL_PAPER_HEIGHT 1\n\n/* Define if _NL_PAPER_WIDTH is available */\n#define HAVE__NL_PAPER_WIDTH 1\n\n/* Define if _NL_TIME_FIRST_WEEKDAY is available */\n#define HAVE__NL_TIME_FIRST_WEEKDAY 1\n\n/* Define to 1 if you have the `_NSGetEnviron' function. */\n/* #undef HAVE__NSGETENVIRON */\n\n/* Define to the sub-directory in which libtool stores uninstalled libraries.\n */\n#define LT_OBJDIR \".libs/\"\n\n/* Define if <X11/extensions/XIproto.h> needed for xReply */\n/* #undef NEED_XIPROTO_H_FOR_XREPLY */\n\n/* Define to 1 if your C compiler doesn't accept -c and -o together. */\n/* #undef NO_MINUS_C_MINUS_O */\n\n/* Define to the address where bug reports for this package should be sent. */\n#define PACKAGE_BUGREPORT \"http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B\"\n\n/* Define to the full name of this package. */\n#define PACKAGE_NAME \"gtk+\"\n\n/* Define to the full name and version of this package. */\n#define PACKAGE_STRING \"gtk+ 3.12.1\"\n\n/* Define to the one symbol short name of this package. */\n#define PACKAGE_TARNAME \"gtk+\"\n\n/* Define to the home page for this package. */\n#define PACKAGE_URL \"\"\n\n/* Define to the version of this package. */\n#define PACKAGE_VERSION \"3.12.1\"\n\n/* Use NSBundle functions to determine load paths for libraries, translations,\n etc. */\n/* #undef QUARTZ_RELOCATION */\n\n/* Define to 1 if you have the ANSI C header files. */\n#define STDC_HEADERS 1\n\n/* Define to 1 if gmodule works and should be used */\n#define USE_GMODULE 1\n\n/* Define to 1 if XInput 2.0 is available */\n#define XINPUT_2 1\n\n/* Define to 1 if XInput 2.2 is available */\n#define XINPUT_2_2 1\n\n/* Define to 1 if the X Window System is missing or not being used. */\n/* #undef X_DISPLAY_MISSING */\n\n/* Enable large inode numbers on Mac OS X 10.5. */\n#ifndef _DARWIN_USE_64_BIT_INODE\n# define _DARWIN_USE_64_BIT_INODE 1\n#endif\n\n/* Number of bits in a file offset, on hosts where this is settable. */\n/* #undef _FILE_OFFSET_BITS */\n\n/* defines how to decorate public symbols while building */\n#define _GDK_EXTERN __attribute__((visibility(\"default\"))) extern\n\n/* Define for large files, on AIX-style hosts. */\n/* #undef _LARGE_FILES */\n\n/* Define to `int' if <sys/types.h> doesn't define. */\n/* #undef gid_t */\n\n/* Define to `int' if <sys/types.h> doesn't define. */\n/* #undef uid_t */\n"}
81,091
c
/** @file @brief セクション初期化 @date 2007.07.14 @author <NAME> */ extern int *BSS_START; extern int *BSS_END; extern int *DATAROM_START; extern int *DATARAM_START; extern int *DATARAM_END; void init_sect(void) { int *s, *d; for(d=BSS_START; d<BSS_END; d++) { *d = 0; } for(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) { *d = *s; } }
17.15
20
(translation_unit) "/** @file\n @brief セクション初期化\n\n @date 2007.07.14\n @author <NAME>\n*/\n\nextern int *BSS_START;\nextern int *BSS_END;\nextern int *DATAROM_START;\nextern int *DATARAM_START;\nextern int *DATARAM_END;\n\nvoid init_sect(void)\n{\n int *s, *d;\n\n for(d=BSS_START; d<BSS_END; d++) {\n *d = 0;\n }\n\n for(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n *d = *s;\n }\n}\n" (comment) "/** @file\n @brief セクション初期化\n\n @date 2007.07.14\n @author <NAME>\n*/\n\nextern int *BS" (declaration) "START;\nextern int *BSS" (storage_class_specifier) "START;" (extern) "START;" (primitive_type) "ext" (pointer_declarator) "rn int *BS" (*) "r" (identifier) "n int *BS" (;) "S" (declaration) "END;\nextern int *DAT" (storage_class_specifier) "END;\ne" (extern) "END;\ne" (primitive_type) "ter" (pointer_declarator) " int *DA" (*) " " (identifier) "int *DA" (;) "T" (declaration) "ROM_START;\nextern int *DAT" (storage_class_specifier) "ROM_ST" (extern) "ROM_ST" (primitive_type) "RT;" (pointer_declarator) "extern int *DA" (*) "e" (identifier) "xtern int *DA" (;) "T" (declaration) "RAM_START;\nextern int *DAT" (storage_class_specifier) "RAM_ST" (extern) "RAM_ST" (primitive_type) "RT;" (pointer_declarator) "extern int *DA" (*) "e" (identifier) "xtern int *DA" (;) "T" (declaration) "RAM_END;\n\nvoid init_sect" (storage_class_specifier) "RAM_EN" (extern) "RAM_EN" (primitive_type) ";\n\n" (pointer_declarator) "oid init_sec" (*) "o" (identifier) "id init_sec" (;) "t" (function_definition) "oid)\n{\n int *s, *d;\n\n for(d=BSS_START; d<BSS_END; d++) {\n *d = 0;\n }\n\n for(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n *d = *s;\n }\n}\n" (primitive_type) "oid)" (function_declarator) "{\n int *s, *d;\n" (identifier) "{\n int *s" (parameter_list) ", *d;\n" (() "," (parameter_declaration) " *d;" (primitive_type) " *d;" ()) "\n" (compound_statement) " for(d=BSS_START; d<BSS_END; d++) {\n *d = 0;\n }\n\n for(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n *d = *s;\n }\n}\n" ({) " " (declaration) "r(d=BSS_STA" (primitive_type) "r(d" (pointer_declarator) "BS" (*) "B" (identifier) "S" (,) "S" (pointer_declarator) "ST" (*) "S" (identifier) "T" (;) "A" (for_statement) " d<BSS_END; d++) {\n *d = 0;\n }\n\n for(s=DATAROM" (for) " d<" (() "B" (assignment_expression) "SS_END; d++" (identifier) "S" (=) "S" (identifier) "_END; d++" (;) ")" (binary_expression) "{\n *d = " (identifier) "{" (<) "\n" (identifier) " *d = " (;) "0" (update_expression) "\n }" (identifier) "\n" (++) " }" ()) "\n" (compound_statement) " for(s=DATAROM" ({) " " (expression_statement) "(s=DATA" (assignment_expression) "(s=DAT" (pointer_expression) "(s" (*) "(" (identifier) "s" (=) "D" (number_literal) "T" (;) "A" (}) "M" (for_statement) "ART, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n *d = *s;\n }\n}\n" (for) "ART" (() "," (comma_expression) " d=DATARAM_START; d<DATARAM_END;" (assignment_expression) " d=DATARAM_STAR" (identifier) " " (=) "d" (identifier) "=DATARAM_STAR" (,) "T" (assignment_expression) " d<DATARAM_END;" (identifier) " " (=) "d" (identifier) "<DATARAM_END;" (;) " " (binary_expression) "++, d++) {\n " (identifier) "+" (<) "+" (identifier) ", d++) {\n " (;) "*" (comma_expression) " = *s;\n " (update_expression) " = " (identifier) " " (++) "= " (,) "*" (update_expression) ";\n " (identifier) ";" (++) "\n " ()) "}" (compound_statement) "}\n" ({) "}" (expression_statement) "" (assignment_expression) "" (pointer_expression) "" (*) "" (identifier) "" (=) "" (pointer_expression) "" (*) "" (identifier) "" (;) "" (}) "" (}) ""
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.15, "nodes": 90, "errors": 0, "source_hash": "7ce38493880810b31af3ced47c6f0c653a6106f8bfbdd8a7ac77c39d31fd54e3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "START;\nextern int *BSS", "parent": null, "children": [1, 3, 4], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 22}}, {"id": 1, "type": "storage_class_specifier", "text": "START;", "parent": 0, "children": [2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 2, "type": "extern", "text": "START;", "parent": 1, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 3, "type": "primitive_type", "text": "ext", "parent": 0, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 10}}, {"id": 4, "type": "pointer_declarator", "text": "rn int *BS", "parent": 0, "children": [5, 6], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 21}}, {"id": 5, "type": "*", "text": "r", "parent": 4, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 6, "type": "identifier", "text": "n int *BS", "parent": 4, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 21}}, {"id": 7, "type": "declaration", "text": "END;\nextern int *DAT", "parent": null, "children": [8, 10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 20}}, {"id": 8, "type": "storage_class_specifier", "text": "END;\ne", "parent": 7, "children": [9], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 9, "type": "extern", "text": "END;\ne", "parent": 8, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 10, "type": "primitive_type", "text": "ter", "parent": 7, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 10}}, {"id": 11, "type": "pointer_declarator", "text": " int *DA", "parent": 7, "children": [12, 13], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 19}}, {"id": 12, "type": "*", "text": " ", "parent": 11, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 13, "type": "identifier", "text": "int *DA", "parent": 11, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 19}}, {"id": 14, "type": "declaration", "text": "ROM_START;\nextern int *DAT", "parent": null, "children": [15, 17, 18], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 26}}, {"id": 15, "type": "storage_class_specifier", "text": "ROM_ST", "parent": 14, "children": [16], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 16, "type": "extern", "text": "ROM_ST", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 17, "type": "primitive_type", "text": "RT;", "parent": 14, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 10}}, {"id": 18, "type": "pointer_declarator", "text": "extern int *DA", "parent": 14, "children": [19, 20], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 25}}, {"id": 19, "type": "*", "text": "e", "parent": 18, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 20, "type": "identifier", "text": "xtern int *DA", "parent": 18, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 25}}, {"id": 21, "type": "declaration", "text": "RAM_START;\nextern int *DAT", "parent": null, "children": [22, 24, 25], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 26}}, {"id": 22, "type": "storage_class_specifier", "text": "RAM_ST", "parent": 21, "children": [23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 23, "type": "extern", "text": "RAM_ST", "parent": 22, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 24, "type": "primitive_type", "text": "RT;", "parent": 21, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 10}}, {"id": 25, "type": "pointer_declarator", "text": "extern int *DA", "parent": 21, "children": [26, 27], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 26, "type": "*", "text": "e", "parent": 25, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 27, "type": "identifier", "text": "xtern int *DA", "parent": 25, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 25}}, {"id": 28, "type": "declaration", "text": "RAM_END;\n\nvoid init_sect", "parent": null, "children": [29, 31], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 24}}, {"id": 29, "type": "storage_class_specifier", "text": "RAM_EN", "parent": 28, "children": [30], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 30, "type": "extern", "text": "RAM_EN", "parent": 29, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 31, "type": "pointer_declarator", "text": "oid init_sec", "parent": 28, "children": [32, 33], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 23}}, {"id": 32, "type": "*", "text": "o", "parent": 31, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 33, "type": "identifier", "text": "id init_sec", "parent": 31, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 23}}, {"id": 34, "type": "function_definition", "text": "oid)\n{\n\tint *s, *d;\n\n\tfor(d=BSS_START; d<BSS_END; d++) {\n\t\t*d = 0;\n\t}\n\n\tfor(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n\t\t*d = *s;\n\t}\n}\n", "parent": null, "children": [35, 36], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "oid)", "parent": 34, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 36, "type": "function_declarator", "text": "{\n\tint *s, *d;\n", "parent": 34, "children": [37, 38], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 20}}, {"id": 37, "type": "identifier", "text": "{\n\tint *s", "parent": 36, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 14}}, {"id": 38, "type": "parameter_list", "text": ", *d;\n", "parent": 36, "children": [39], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 20}}, {"id": 39, "type": "parameter_declaration", "text": " *d;", "parent": 38, "children": [40], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 19}}, {"id": 40, "type": "primitive_type", "text": " *d;", "parent": 39, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 19}}, {"id": 41, "type": "declaration", "text": "r(d=BSS_STA", "parent": 34, "children": [42, 43, 46], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 12}}, {"id": 42, "type": "primitive_type", "text": "r(d", "parent": 41, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 43, "type": "pointer_declarator", "text": "BS", "parent": 41, "children": [44, 45], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 7}}, {"id": 44, "type": "*", "text": "B", "parent": 43, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 6}}, {"id": 45, "type": "identifier", "text": "S", "parent": 43, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 7}}, {"id": 46, "type": "pointer_declarator", "text": "ST", "parent": 41, "children": [47, 48], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 11}}, {"id": 47, "type": "*", "text": "S", "parent": 46, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 48, "type": "identifier", "text": "T", "parent": 46, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}, {"id": 49, "type": "for_statement", "text": " d<BSS_END; d++) {\n\t\t*d = 0;\n\t}\n\n\tfor(s=DATAROM", "parent": 34, "children": [50, 54], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 19, "column": 2}}, {"id": 50, "type": "assignment_expression", "text": "SS_END; d++", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 16}}, {"id": 51, "type": "identifier", "text": "S", "parent": 50, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 6}}, {"id": 52, "type": "=", "text": "S", "parent": 50, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 7}}, {"id": 53, "type": "identifier", "text": "_END; d++", "parent": 50, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 54, "type": "binary_expression", "text": "{\n\t\t*d = ", "parent": 49, "children": [55, 56], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 55, "type": "<", "text": "\n", "parent": 54, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 20}}, {"id": 56, "type": "identifier", "text": "\t\t*d = ", "parent": 54, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 27}}, {"id": 57, "type": "identifier", "text": "\n", "parent": 49, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 30}}, {"id": 58, "type": "assignment_expression", "text": "(s=DAT", "parent": 49, "children": [59, 61, 62], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 8}}, {"id": 59, "type": "pointer_expression", "text": "(s", "parent": 58, "children": [60], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 4}}, {"id": 60, "type": "identifier", "text": "s", "parent": 59, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 4}}, {"id": 61, "type": "=", "text": "D", "parent": 58, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 6}}, {"id": 62, "type": "number_literal", "text": "T", "parent": 58, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 8}}, {"id": 63, "type": "for_statement", "text": "ART, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n\t\t*d = *s;\n\t}\n}\n", "parent": 34, "children": [64, 73, 77], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 23, "column": 2}}, {"id": 64, "type": "comma_expression", "text": " d=DATARAM_START; d<DATARAM_END;", "parent": 63, "children": [65, 69], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 37}}, {"id": 65, "type": "assignment_expression", "text": " d=DATARAM_STAR", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 20}}, {"id": 66, "type": "identifier", "text": " ", "parent": 65, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 6}}, {"id": 67, "type": "=", "text": "d", "parent": 65, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 68, "type": "identifier", "text": "=DATARAM_STAR", "parent": 65, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 20}}, {"id": 69, "type": "assignment_expression", "text": " d<DATARAM_END;", "parent": 64, "children": [70, 71, 72], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 37}}, {"id": 70, "type": "identifier", "text": " ", "parent": 69, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 71, "type": "=", "text": "d", "parent": 69, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 24}}, {"id": 72, "type": "identifier", "text": "<DATARAM_END;", "parent": 69, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 37}}, {"id": 73, "type": "binary_expression", "text": "++, d++) {\n\t\t", "parent": 63, "children": [74, 75, 76], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 52}}, {"id": 74, "type": "identifier", "text": "+", "parent": 73, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 75, "type": "<", "text": "+", "parent": 73, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 41}}, {"id": 76, "type": "identifier", "text": ", d++) {\n\t\t", "parent": 73, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 52}}, {"id": 77, "type": "comma_expression", "text": " = *s;\n\t", "parent": 63, "children": [78], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 62}}, {"id": 78, "type": "update_expression", "text": " = ", "parent": 77, "children": [79, 80], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 57}}, {"id": 79, "type": "identifier", "text": " ", "parent": 78, "children": [], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 55}}, {"id": 80, "type": "++", "text": "= ", "parent": 78, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 57}}, {"id": 81, "type": "++", "text": "\n\t", "parent": 77, "children": [], "start_point": {"row": 21, "column": 60}, "end_point": {"row": 21, "column": 62}}, {"id": 82, "type": "assignment_expression", "text": "", "parent": 63, "children": [83, 86, 87], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 83, "type": "pointer_expression", "text": "", "parent": 82, "children": [84, 85], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 4}}, {"id": 84, "type": "*", "text": "", "parent": 83, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 3}}, {"id": 85, "type": "identifier", "text": "", "parent": 83, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 4}}, {"id": 86, "type": "=", "text": "", "parent": 82, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 6}}, {"id": 87, "type": "pointer_expression", "text": "", "parent": 82, "children": [88, 89], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 9}}, {"id": 88, "type": "*", "text": "", "parent": 87, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 8}}, {"id": 89, "type": "identifier", "text": "", "parent": 87, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}]}, "node_categories": {"declarations": {"functions": [34, 36], "variables": [0, 7, 14, 21, 28, 39, 41], "classes": [1, 8, 15, 22, 29], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [54, 59, 64, 73, 77, 78, 83, 87], "assignments": [50, 58, 65, 69, 82], "loops": [49, 63], "conditionals": [6, 13, 20, 27, 33, 37, 45, 48, 51, 53, 56, 57, 60, 66, 68, 70, 72, 74, 76, 79, 85, 89], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [62], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "*s,", "text_snippet": "oid)\n{\n\tint *s, *d;\n\n\tfor(d=BSS_START; d<BSS_END; d++) {\n\t\t*d = 0;\n\t}\n\n\tfor(s=DATAROM_START, d=DATAR"}, {"node_id": 36, "universal_type": "function", "name": "*s,", "text_snippet": "{\n\tint *s, *d;\n"}], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "START;"}, {"node_id": 8, "universal_type": "class", "name": "unknown", "text_snippet": "END;\ne"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "ROM_ST"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "RAM_ST"}, {"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "RAM_EN"}], "import_statements": []}, "original_source_code": "/** @file\n @brief\t\u30bb\u30af\u30b7\u30e7\u30f3\u521d\u671f\u5316\n\n @date\t2007.07.14\n @author\t<NAME>\n*/\n\nextern int *BSS_START;\nextern int *BSS_END;\nextern int *DATAROM_START;\nextern int *DATARAM_START;\nextern int *DATARAM_END;\n\nvoid init_sect(void)\n{\n\tint *s, *d;\n\n\tfor(d=BSS_START; d<BSS_END; d++) {\n\t\t*d = 0;\n\t}\n\n\tfor(s=DATAROM_START, d=DATARAM_START; d<DATARAM_END; s++, d++) {\n\t\t*d = *s;\n\t}\n}\n"}
81,092
c
#pragma once #include "Type.h" namespace BinSearch { namespace Details { // Differences with original algorithm // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral) // 2) swap > and < operators (cost neutral) // 3) at the end subtract from n-1 template <typename T> struct AlgoScalarBase<T, MorinBranchy> { AlgoScalarBase(const T* x, const uint32 _n) : xi(new T[_n]) , n(_n) { // invert array X for (uint32 i = 0, e = _n - 1; i < _n; ++i) xi[i] = x[e - i]; } FORCE_INLINE uint32 scalar(T z) const { typedef uint32 I; I lo = 0; I hi = n; I nm = n - 1; const T *a = xi; while (lo < hi) { I m = (lo + hi) / 2; if (z > *(a+m)) hi = m; else if (z < *(a+m)) lo = m + 1; else return nm-m; } return nm-hi; } protected: T *xi; uint32 n; }; } // namespace Details } // namespace BinSearch
21.62
47
(translation_unit) "#pragma once\n\n#include "Type.h"\n\nnamespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n};\n\n\n\n} // namespace Details\n} // namespace BinSearch\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Type.h"\n" (#include) "#include" (string_literal) ""Type.h"" (") """ (string_content) "Type.h" (") """ (function_definition) "namespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n};\n\n\n\n}" (type_identifier) "namespace" (identifier) "BinSearch" (compound_statement) "{\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n};\n\n\n\n}" ({) "{" (function_definition) "namespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n}" (type_identifier) "namespace" (identifier) "Details" (compound_statement) "{\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n}" ({) "{" (comment) "// Differences with original algorithm" (comment) "// 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)" (comment) "// 2) swap > and < operators (cost neutral)" (comment) "// 3) at the end subtract from n-1" (ERROR) "template <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)" (comma_expression) "template <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)" (binary_expression) "template <typename T>\nstruct AlgoScalarBase<T" (binary_expression) "template <typename T>\nstruct AlgoScalarBase" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "struct" (identifier) "struct" (identifier) "AlgoScalarBase" (<) "<" (identifier) "T" (,) "," (binary_expression) "MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)" (identifier) "MorinBranchy" (>) ">" (ERROR) "{" ({) "{" (call_expression) "AlgoScalarBase(const T* x, const uint32 _n)" (identifier) "AlgoScalarBase" (argument_list) "(const T* x, const uint32 _n)" (() "(" (binary_expression) "const T* x" (identifier) "const" (ERROR) "T" (identifier) "T" (*) "*" (identifier) "x" (,) "," (identifier) "const" (ERROR) "uint32 _n" (identifier) "uint32" (identifier) "_n" ()) ")" (:) ":" (identifier) "xi" (() "(" (identifier) "new" (comma_expression) "T[_n])\n , n(_n)" (subscript_expression) "T[_n]" (identifier) "T" ([) "[" (identifier) "_n" (]) "]" (ERROR) ")" ()) ")" (,) "," (call_expression) "n(_n)" (identifier) "n" (argument_list) "(_n)" (() "(" (identifier) "_n" ()) ")" (compound_statement) "{\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }" ({) "{" (comment) "// invert array X" (for_statement) "for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];" (for) "for" (() "(" (declaration) "uint32 i = 0, e = _n - 1;" (type_identifier) "uint32" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (,) "," (init_declarator) "e = _n - 1" (identifier) "e" (=) "=" (binary_expression) "_n - 1" (identifier) "_n" (-) "-" (number_literal) "1" (;) ";" (binary_expression) "i < _n" (identifier) "i" (<) "<" (identifier) "_n" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (expression_statement) "xi[i] = x[e - i];" (assignment_expression) "xi[i] = x[e - i]" (subscript_expression) "xi[i]" (identifier) "xi" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "x[e - i]" (identifier) "x" ([) "[" (binary_expression) "e - i" (identifier) "e" (-) "-" (identifier) "i" (]) "]" (;) ";" (}) "}" (function_definition) "FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }" (type_identifier) "FORCE_INLINE" (ERROR) "uint32" (identifier) "uint32" (function_declarator) "scalar(T z) const" (identifier) "scalar" (parameter_list) "(T z)" (() "(" (parameter_declaration) "T z" (type_identifier) "T" (identifier) "z" ()) ")" (identifier) "const" (compound_statement) "{\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }" ({) "{" (type_definition) "typedef uint32 I;" (typedef) "typedef" (type_identifier) "uint32" (type_identifier) "I" (;) ";" (declaration) "I lo = 0;" (type_identifier) "I" (init_declarator) "lo = 0" (identifier) "lo" (=) "=" (number_literal) "0" (;) ";" (declaration) "I hi = n;" (type_identifier) "I" (init_declarator) "hi = n" (identifier) "hi" (=) "=" (identifier) "n" (;) ";" (declaration) "I nm = n - 1;" (type_identifier) "I" (init_declarator) "nm = n - 1" (identifier) "nm" (=) "=" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" (;) ";" (declaration) "const T *a = xi;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (init_declarator) "*a = xi" (pointer_declarator) "*a" (*) "*" (identifier) "a" (=) "=" (identifier) "xi" (;) ";" (while_statement) "while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }" (while) "while" (parenthesized_expression) "(lo < hi)" (() "(" (binary_expression) "lo < hi" (identifier) "lo" (<) "<" (identifier) "hi" ()) ")" (compound_statement) "{\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }" ({) "{" (declaration) "I m = (lo + hi) / 2;" (type_identifier) "I" (init_declarator) "m = (lo + hi) / 2" (identifier) "m" (=) "=" (binary_expression) "(lo + hi) / 2" (parenthesized_expression) "(lo + hi)" (() "(" (binary_expression) "lo + hi" (identifier) "lo" (+) "+" (identifier) "hi" ()) ")" (/) "/" (number_literal) "2" (;) ";" (if_statement) "if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;" (if) "if" (parenthesized_expression) "(z > *(a+m))" (() "(" (binary_expression) "z > *(a+m)" (identifier) "z" (>) ">" (pointer_expression) "*(a+m)" (*) "*" (parenthesized_expression) "(a+m)" (() "(" (binary_expression) "a+m" (identifier) "a" (+) "+" (identifier) "m" ()) ")" ()) ")" (expression_statement) "hi = m;" (assignment_expression) "hi = m" (identifier) "hi" (=) "=" (identifier) "m" (;) ";" (else_clause) "else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;" (else) "else" (if_statement) "if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;" (if) "if" (parenthesized_expression) "(z < *(a+m))" (() "(" (binary_expression) "z < *(a+m)" (identifier) "z" (<) "<" (pointer_expression) "*(a+m)" (*) "*" (parenthesized_expression) "(a+m)" (() "(" (binary_expression) "a+m" (identifier) "a" (+) "+" (identifier) "m" ()) ")" ()) ")" (expression_statement) "lo = m + 1;" (assignment_expression) "lo = m + 1" (identifier) "lo" (=) "=" (binary_expression) "m + 1" (identifier) "m" (+) "+" (number_literal) "1" (;) ";" (else_clause) "else\n return nm-m;" (else) "else" (return_statement) "return nm-m;" (return) "return" (binary_expression) "nm-m" (identifier) "nm" (-) "-" (identifier) "m" (;) ";" (}) "}" (return_statement) "return nm-hi;" (return) "return" (binary_expression) "nm-hi" (identifier) "nm" (-) "-" (identifier) "hi" (;) ";" (}) "}" (labeled_statement) "protected:\n T *xi;" (statement_identifier) "protected" (:) ":" (declaration) "T *xi;" (type_identifier) "T" (pointer_declarator) "*xi" (*) "*" (identifier) "xi" (;) ";" (declaration) "uint32 n;" (type_identifier) "uint32" (identifier) "n" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace Details" (ERROR) "}" (}) "}" (comment) "// namespace BinSearch"
301
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 21.62, "nodes": 201, "errors": 0, "source_hash": "3fafd03ade6e101a86b1d9f0d4e945dbdbf09b520e1bdec3ae20646493bfecaa", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"Type.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"Type.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 6, "type": "function_definition", "text": "namespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n};\n\n\n\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 8, "type": "identifier", "text": "BinSearch", "parent": 6, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 19}}, {"id": 9, "type": "function_definition", "text": "namespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 9}}, {"id": 11, "type": "identifier", "text": "Details", "parent": 9, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 17}}, {"id": 12, "type": "ERROR", "text": "template <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)", "parent": 9, "children": [13, 42, 43], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 17, "column": 15}}, {"id": 13, "type": "comma_expression", "text": "template <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)", "parent": 12, "children": [14, 28], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 47}}, {"id": 14, "type": "binary_expression", "text": "template <typename T>\nstruct AlgoScalarBase<T", "parent": 13, "children": [15, 26, 27], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 23}}, {"id": 15, "type": "binary_expression", "text": "template <typename T>\nstruct AlgoScalarBase", "parent": 14, "children": [16, 20, 22, 23, 25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 21}}, {"id": 16, "type": "binary_expression", "text": "template <typename", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 18}}, {"id": 17, "type": "identifier", "text": "template", "parent": 16, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 18, "type": "<", "text": "<", "parent": 16, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 19, "type": "identifier", "text": "typename", "parent": 16, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 18}}, {"id": 20, "type": "ERROR", "text": "T", "parent": 15, "children": [21], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 21, "type": "identifier", "text": "T", "parent": 20, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 22, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 21}}, {"id": 23, "type": "ERROR", "text": "struct", "parent": 15, "children": [24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 24, "type": "identifier", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 25, "type": "identifier", "text": "AlgoScalarBase", "parent": 15, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 21}}, {"id": 26, "type": "<", "text": "<", "parent": 14, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 27, "type": "identifier", "text": "T", "parent": 14, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 28, "type": "binary_expression", "text": "MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)", "parent": 13, "children": [29, 30, 31], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 15, "column": 47}}, {"id": 29, "type": "identifier", "text": "MorinBranchy", "parent": 28, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 37}}, {"id": 30, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 38}}, {"id": 31, "type": "call_expression", "text": "AlgoScalarBase(const T* x, const uint32 _n)", "parent": 28, "children": [32, 33], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 47}}, {"id": 32, "type": "identifier", "text": "AlgoScalarBase", "parent": 31, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 18}}, {"id": 33, "type": "argument_list", "text": "(const T* x, const uint32 _n)", "parent": 31, "children": [34, 39], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 47}}, {"id": 34, "type": "binary_expression", "text": "const T* x", "parent": 33, "children": [35, 37, 38], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 29}}, {"id": 35, "type": "ERROR", "text": "T", "parent": 34, "children": [36], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 36, "type": "identifier", "text": "T", "parent": 35, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 37, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 27}}, {"id": 38, "type": "identifier", "text": "x", "parent": 34, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 29}}, {"id": 39, "type": "ERROR", "text": "uint32 _n", "parent": 33, "children": [40, 41], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 46}}, {"id": 40, "type": "identifier", "text": "uint32", "parent": 39, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 43}}, {"id": 41, "type": "identifier", "text": "_n", "parent": 39, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 46}}, {"id": 42, "type": "identifier", "text": "xi", "parent": 12, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 12}}, {"id": 43, "type": "comma_expression", "text": "T[_n])\n , n(_n)", "parent": 12, "children": [44, 47], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 17, "column": 15}}, {"id": 44, "type": "subscript_expression", "text": "T[_n]", "parent": 43, "children": [45, 46], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 22}}, {"id": 45, "type": "identifier", "text": "T", "parent": 44, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 46, "type": "identifier", "text": "_n", "parent": 44, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 21}}, {"id": 47, "type": "call_expression", "text": "n(_n)", "parent": 43, "children": [48, 49], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 15}}, {"id": 48, "type": "identifier", "text": "n", "parent": 47, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 49, "type": "argument_list", "text": "(_n)", "parent": 47, "children": [50], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 50, "type": "identifier", "text": "_n", "parent": 49, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 14}}, {"id": 51, "type": "for_statement", "text": "for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];", "parent": 9, "children": [52, 65, 69], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 21, "column": 29}}, {"id": 52, "type": "declaration", "text": "uint32 i = 0, e = _n - 1;", "parent": 51, "children": [53, 54, 58], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 38}}, {"id": 53, "type": "type_identifier", "text": "uint32", "parent": 52, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 19}}, {"id": 54, "type": "init_declarator", "text": "i = 0", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 25}}, {"id": 55, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 57, "type": "number_literal", "text": "0", "parent": 54, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 58, "type": "init_declarator", "text": "e = _n - 1", "parent": 52, "children": [59, 60, 61], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 37}}, {"id": 59, "type": "identifier", "text": "e", "parent": 58, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 28}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 30}}, {"id": 61, "type": "binary_expression", "text": "_n - 1", "parent": 58, "children": [62, 63, 64], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 37}}, {"id": 62, "type": "identifier", "text": "_n", "parent": 61, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 33}}, {"id": 63, "type": "-", "text": "-", "parent": 61, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 35}}, {"id": 64, "type": "number_literal", "text": "1", "parent": 61, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 37}}, {"id": 65, "type": "binary_expression", "text": "i < _n", "parent": 51, "children": [66, 67, 68], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 45}}, {"id": 66, "type": "identifier", "text": "i", "parent": 65, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 40}}, {"id": 67, "type": "<", "text": "<", "parent": 65, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 68, "type": "identifier", "text": "_n", "parent": 65, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 45}}, {"id": 69, "type": "update_expression", "text": "++i", "parent": 51, "children": [70, 71], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 70, "type": "++", "text": "++", "parent": 69, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 49}}, {"id": 71, "type": "identifier", "text": "i", "parent": 69, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 50}}, {"id": 72, "type": "assignment_expression", "text": "xi[i] = x[e - i]", "parent": 51, "children": [73, 76, 77], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 28}}, {"id": 73, "type": "subscript_expression", "text": "xi[i]", "parent": 72, "children": [74, 75], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 17}}, {"id": 74, "type": "identifier", "text": "xi", "parent": 73, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 14}}, {"id": 75, "type": "identifier", "text": "i", "parent": 73, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 76, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 77, "type": "subscript_expression", "text": "x[e - i]", "parent": 72, "children": [78, 79], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 28}}, {"id": 78, "type": "identifier", "text": "x", "parent": 77, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 21}}, {"id": 79, "type": "binary_expression", "text": "e - i", "parent": 77, "children": [80, 81, 82], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 27}}, {"id": 80, "type": "identifier", "text": "e", "parent": 79, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 81, "type": "-", "text": "-", "parent": 79, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 82, "type": "identifier", "text": "i", "parent": 79, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 83, "type": "function_definition", "text": "FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }", "parent": 9, "children": [84, 85, 87], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 43, "column": 5}}, {"id": 84, "type": "type_identifier", "text": "FORCE_INLINE", "parent": 83, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 16}}, {"id": 85, "type": "ERROR", "text": "uint32", "parent": 83, "children": [86], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 86, "type": "identifier", "text": "uint32", "parent": 85, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 87, "type": "function_declarator", "text": "scalar(T z) const", "parent": 83, "children": [88, 89], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 28}}, {"id": 88, "type": "identifier", "text": "scalar", "parent": 87, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 89, "type": "parameter_list", "text": "(T z)", "parent": 87, "children": [90], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 22}}, {"id": 90, "type": "parameter_declaration", "text": "T z", "parent": 89, "children": [91, 92], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 21}}, {"id": 91, "type": "type_identifier", "text": "T", "parent": 90, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 92, "type": "identifier", "text": "z", "parent": 90, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 21}}, {"id": 93, "type": "type_definition", "text": "typedef uint32 I;", "parent": 83, "children": [94, 95, 96], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 25}}, {"id": 94, "type": "typedef", "text": "typedef", "parent": 93, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 15}}, {"id": 95, "type": "type_identifier", "text": "uint32", "parent": 93, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 22}}, {"id": 96, "type": "type_identifier", "text": "I", "parent": 93, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 97, "type": "declaration", "text": "I lo = 0;", "parent": 83, "children": [98, 99], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 17}}, {"id": 98, "type": "type_identifier", "text": "I", "parent": 97, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 99, "type": "init_declarator", "text": "lo = 0", "parent": 97, "children": [100, 101, 102], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 16}}, {"id": 100, "type": "identifier", "text": "lo", "parent": 99, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 12}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 103, "type": "declaration", "text": "I hi = n;", "parent": 83, "children": [104, 105], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 17}}, {"id": 104, "type": "type_identifier", "text": "I", "parent": 103, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 105, "type": "init_declarator", "text": "hi = n", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 16}}, {"id": 106, "type": "identifier", "text": "hi", "parent": 105, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 12}}, {"id": 107, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 108, "type": "identifier", "text": "n", "parent": 105, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 16}}, {"id": 109, "type": "declaration", "text": "I nm = n - 1;", "parent": 83, "children": [110, 111], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 21}}, {"id": 110, "type": "type_identifier", "text": "I", "parent": 109, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 111, "type": "init_declarator", "text": "nm = n - 1", "parent": 109, "children": [112, 113, 114], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 20}}, {"id": 112, "type": "identifier", "text": "nm", "parent": 111, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 12}}, {"id": 113, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 114, "type": "binary_expression", "text": "n - 1", "parent": 111, "children": [115, 116, 117], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 20}}, {"id": 115, "type": "identifier", "text": "n", "parent": 114, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 116, "type": "-", "text": "-", "parent": 114, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 18}}, {"id": 117, "type": "number_literal", "text": "1", "parent": 114, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 20}}, {"id": 118, "type": "declaration", "text": "const T *a = xi;", "parent": 83, "children": [119, 120], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 24}}, {"id": 119, "type": "type_identifier", "text": "T", "parent": 118, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 120, "type": "init_declarator", "text": "*a = xi", "parent": 118, "children": [121, 124, 125], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 23}}, {"id": 121, "type": "pointer_declarator", "text": "*a", "parent": 120, "children": [122, 123], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 18}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 123, "type": "identifier", "text": "a", "parent": 121, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 124, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 125, "type": "identifier", "text": "xi", "parent": 120, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 23}}, {"id": 126, "type": "while_statement", "text": "while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }", "parent": 83, "children": [127], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 127, "type": "parenthesized_expression", "text": "(lo < hi)", "parent": 126, "children": [128], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 23}}, {"id": 128, "type": "binary_expression", "text": "lo < hi", "parent": 127, "children": [129, 130, 131], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 22}}, {"id": 129, "type": "identifier", "text": "lo", "parent": 128, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 17}}, {"id": 130, "type": "<", "text": "<", "parent": 128, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 19}}, {"id": 131, "type": "identifier", "text": "hi", "parent": 128, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 22}}, {"id": 132, "type": "declaration", "text": "I m = (lo + hi) / 2;", "parent": 126, "children": [133, 134], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 32}}, {"id": 133, "type": "type_identifier", "text": "I", "parent": 132, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 134, "type": "init_declarator", "text": "m = (lo + hi) / 2", "parent": 132, "children": [135, 136, 137], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 31}}, {"id": 135, "type": "identifier", "text": "m", "parent": 134, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 137, "type": "binary_expression", "text": "(lo + hi) / 2", "parent": 134, "children": [138, 143, 144], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 31}}, {"id": 138, "type": "parenthesized_expression", "text": "(lo + hi)", "parent": 137, "children": [139], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 27}}, {"id": 139, "type": "binary_expression", "text": "lo + hi", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 26}}, {"id": 140, "type": "identifier", "text": "lo", "parent": 139, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 21}}, {"id": 141, "type": "+", "text": "+", "parent": 139, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 23}}, {"id": 142, "type": "identifier", "text": "hi", "parent": 139, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 26}}, {"id": 143, "type": "/", "text": "/", "parent": 137, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 29}}, {"id": 144, "type": "number_literal", "text": "2", "parent": 137, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 31}}, {"id": 145, "type": "if_statement", "text": "if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;", "parent": 126, "children": [146, 161], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 40, "column": 28}}, {"id": 146, "type": "parenthesized_expression", "text": "(z > *(a+m))", "parent": 145, "children": [147], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 27}}, {"id": 147, "type": "binary_expression", "text": "z > *(a+m)", "parent": 146, "children": [148, 149, 150], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 26}}, {"id": 148, "type": "identifier", "text": "z", "parent": 147, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 149, "type": ">", "text": ">", "parent": 147, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 150, "type": "pointer_expression", "text": "*(a+m)", "parent": 147, "children": [151, 152], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 26}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 152, "type": "parenthesized_expression", "text": "(a+m)", "parent": 150, "children": [153], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 26}}, {"id": 153, "type": "binary_expression", "text": "a+m", "parent": 152, "children": [154, 155, 156], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 25}}, {"id": 154, "type": "identifier", "text": "a", "parent": 153, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 23}}, {"id": 155, "type": "+", "text": "+", "parent": 153, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 156, "type": "identifier", "text": "m", "parent": 153, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 157, "type": "assignment_expression", "text": "hi = m", "parent": 145, "children": [158, 159, 160], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 22}}, {"id": 158, "type": "identifier", "text": "hi", "parent": 157, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 18}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 20}}, {"id": 160, "type": "identifier", "text": "m", "parent": 157, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 161, "type": "else_clause", "text": "else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;", "parent": 145, "children": [162], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 40, "column": 28}}, {"id": 162, "type": "if_statement", "text": "if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;", "parent": 161, "children": [163, 181], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 40, "column": 28}}, {"id": 163, "type": "parenthesized_expression", "text": "(z < *(a+m))", "parent": 162, "children": [164], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 32}}, {"id": 164, "type": "binary_expression", "text": "z < *(a+m)", "parent": 163, "children": [165, 166, 167], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 31}}, {"id": 165, "type": "identifier", "text": "z", "parent": 164, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 166, "type": "<", "text": "<", "parent": 164, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 24}}, {"id": 167, "type": "pointer_expression", "text": "*(a+m)", "parent": 164, "children": [168, 169], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 31}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 26}}, {"id": 169, "type": "parenthesized_expression", "text": "(a+m)", "parent": 167, "children": [170], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 31}}, {"id": 170, "type": "binary_expression", "text": "a+m", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 30}}, {"id": 171, "type": "identifier", "text": "a", "parent": 170, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 28}}, {"id": 172, "type": "+", "text": "+", "parent": 170, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 29}}, {"id": 173, "type": "identifier", "text": "m", "parent": 170, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 30}}, {"id": 174, "type": "assignment_expression", "text": "lo = m + 1", "parent": 162, "children": [175, 176, 177], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 26}}, {"id": 175, "type": "identifier", "text": "lo", "parent": 174, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 18}}, {"id": 176, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 177, "type": "binary_expression", "text": "m + 1", "parent": 174, "children": [178, 179, 180], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 26}}, {"id": 178, "type": "identifier", "text": "m", "parent": 177, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 22}}, {"id": 179, "type": "+", "text": "+", "parent": 177, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 180, "type": "number_literal", "text": "1", "parent": 177, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 26}}, {"id": 181, "type": "else_clause", "text": "else\n return nm-m;", "parent": 162, "children": [182], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 40, "column": 28}}, {"id": 182, "type": "return_statement", "text": "return nm-m;", "parent": 181, "children": [183], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 28}}, {"id": 183, "type": "binary_expression", "text": "nm-m", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 27}}, {"id": 184, "type": "identifier", "text": "nm", "parent": 183, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 25}}, {"id": 185, "type": "-", "text": "-", "parent": 183, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 26}}, {"id": 186, "type": "identifier", "text": "m", "parent": 183, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 27}}, {"id": 187, "type": "return_statement", "text": "return nm-hi;", "parent": 83, "children": [188], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 21}}, {"id": 188, "type": "binary_expression", "text": "nm-hi", "parent": 187, "children": [189, 190, 191], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 20}}, {"id": 189, "type": "identifier", "text": "nm", "parent": 188, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 17}}, {"id": 190, "type": "-", "text": "-", "parent": 188, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 18}}, {"id": 191, "type": "identifier", "text": "hi", "parent": 188, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 20}}, {"id": 192, "type": "labeled_statement", "text": "protected:\n T *xi;", "parent": 9, "children": [193], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 10}}, {"id": 193, "type": "declaration", "text": "T *xi;", "parent": 192, "children": [194, 195], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 194, "type": "type_identifier", "text": "T", "parent": 193, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 195, "type": "pointer_declarator", "text": "*xi", "parent": 193, "children": [196, 197], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 9}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 197, "type": "identifier", "text": "xi", "parent": 195, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 9}}, {"id": 198, "type": "declaration", "text": "uint32 n;", "parent": 9, "children": [199, 200], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 199, "type": "type_identifier", "text": "uint32", "parent": 198, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 10}}, {"id": 200, "type": "identifier", "text": "n", "parent": 198, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 9, 83, 87], "variables": [52, 90, 93, 97, 103, 109, 118, 132, 193, 198], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [13, 14, 15, 16, 28, 31, 34, 43, 44, 47, 61, 65, 69, 73, 77, 79, 114, 127, 128, 137, 138, 139, 146, 147, 150, 152, 153, 163, 164, 167, 169, 170, 177, 183, 188], "assignments": [72, 157, 174], "loops": [51, 126], "conditionals": [7, 8, 10, 11, 17, 19, 21, 24, 25, 27, 29, 32, 36, 38, 40, 41, 42, 45, 46, 48, 50, 53, 55, 59, 62, 66, 68, 71, 74, 75, 78, 80, 82, 84, 86, 88, 91, 92, 95, 96, 98, 100, 104, 106, 108, 110, 112, 115, 119, 123, 125, 129, 131, 133, 135, 140, 142, 145, 148, 154, 156, 158, 160, 162, 165, 171, 173, 175, 178, 184, 186, 189, 191, 194, 197, 199, 200], "returns": [182, 187], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 57, 64, 102, 117, 144, 180], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "AlgoScalarBase<T,", "text_snippet": "namespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use rev"}, {"node_id": 9, "universal_type": "function", "name": "AlgoScalarBase<T,", "text_snippet": "namespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *("}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "scalar(T z) const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"Type.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"Type.h\"\n\nnamespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplate <typename T>\nstruct AlgoScalarBase<T, MorinBranchy>\n{\n AlgoScalarBase(const T* x, const uint32 _n)\n : xi(new T[_n])\n , n(_n)\n {\n // invert array X\n for (uint32 i = 0, e = _n - 1; i < _n; ++i)\n xi[i] = x[e - i];\n }\n\n FORCE_INLINE\n uint32 scalar(T z) const\n {\n typedef uint32 I;\n \n I lo = 0;\n I hi = n;\n I nm = n - 1;\n const T *a = xi;\n while (lo < hi) {\n I m = (lo + hi) / 2;\n if (z > *(a+m))\n hi = m;\n else if (z < *(a+m))\n lo = m + 1;\n else\n return nm-m;\n }\n return nm-hi;\n }\n\nprotected:\n T *xi;\n uint32 n;\n};\n\n\n\n} // namespace Details\n} // namespace BinSearch\n"}
81,093
c
#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_ #define VALHALLA_SIF_MOTORSCOOTERCOST_H_ #include <cstdint> #include <valhalla/sif/dynamiccost.h> #include <boost/property_tree/ptree.hpp> namespace valhalla { namespace sif { /** * Create motor scooter cost method. This is derived from auto costing and * uses the same rules except for some different access restrictions * and the tendency to avoid hills */ cost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config); } } #endif // VALHALLA_SIF_MOTORSCOOTERCOST_H_
32.12
16
(translation_unit) "#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_\n#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n\n#include <cstdint>\n\n#include <valhalla/sif/dynamiccost.h>\n#include <boost/property_tree/ptree.hpp>\n\nnamespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}\n\n#endif // VALHALLA_SIF_MOTORSCOOTERCOST_H_\n" (preproc_ifdef) "#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_\n#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n\n#include <cstdint>\n\n#include <valhalla/sif/dynamiccost.h>\n#include <boost/property_tree/ptree.hpp>\n\nnamespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "VALHALLA_SIF_MOTORSCOOTERCOST_H_" (preproc_def) "#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n" (#define) "#define" (identifier) "VALHALLA_SIF_MOTORSCOOTERCOST_H_" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <valhalla/sif/dynamiccost.h>\n" (#include) "#include" (system_lib_string) "<valhalla/sif/dynamiccost.h>" (preproc_include) "#include <boost/property_tree/ptree.hpp>\n" (#include) "#include" (system_lib_string) "<boost/property_tree/ptree.hpp>" (function_definition) "namespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}" (type_identifier) "namespace" (identifier) "valhalla" (compound_statement) "{\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}" ({) "{" (function_definition) "namespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}" (type_identifier) "namespace" (identifier) "sif" (compound_statement) "{\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}" ({) "{" (comment) "/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */" (declaration) "cost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);" (type_identifier) "cost_ptr_t" (function_declarator) "CreateMotorScooterCost(const boost::property_tree::ptree& config)" (identifier) "CreateMotorScooterCost" (parameter_list) "(const boost::property_tree::ptree& config)" (() "(" (parameter_declaration) "const boost::property_tree::ptree& config" (type_qualifier) "const" (const) "const" (type_identifier) "boost" (ERROR) "::property_tree::ptree&" (:) ":" (:) ":" (identifier) "property_tree" (:) ":" (:) ":" (identifier) "ptree" (&) "&" (identifier) "config" ()) ")" (;) ";" (}) "}" (}) "}" (#endif) "#endif" (comment) "// VALHALLA_SIF_MOTORSCOOTERCOST_H_"
52
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.12, "nodes": 33, "errors": 0, "source_hash": "10d75cff87200eeb0226628cd11c171c73d053b203a91e8c6948ec826048d1b4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_\n#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n\n#include <cstdint>\n\n#include <valhalla/sif/dynamiccost.h>\n#include <boost/property_tree/ptree.hpp>\n\nnamespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 32], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "VALHALLA_SIF_MOTORSCOOTERCOST_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 40}}, {"id": 3, "type": "preproc_def", "text": "#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "VALHALLA_SIF_MOTORSCOOTERCOST_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include <cstdint>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<cstdint>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <valhalla/sif/dynamiccost.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<valhalla/sif/dynamiccost.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include <boost/property_tree/ptree.hpp>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<boost/property_tree/ptree.hpp>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 40}}, {"id": 15, "type": "function_definition", "text": "namespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 17, "type": "identifier", "text": "valhalla", "parent": 15, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 18}}, {"id": 18, "type": "function_definition", "text": "namespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}", "parent": 15, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 20, "type": "identifier", "text": "sif", "parent": 18, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 21, "type": "declaration", "text": "cost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);", "parent": 18, "children": [22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 77}}, {"id": 22, "type": "type_identifier", "text": "cost_ptr_t", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 10}}, {"id": 23, "type": "function_declarator", "text": "CreateMotorScooterCost(const boost::property_tree::ptree& config)", "parent": 21, "children": [24, 25], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 76}}, {"id": 24, "type": "identifier", "text": "CreateMotorScooterCost", "parent": 23, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 33}}, {"id": 25, "type": "parameter_list", "text": "(const boost::property_tree::ptree& config)", "parent": 23, "children": [26], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 76}}, {"id": 26, "type": "parameter_declaration", "text": "const boost::property_tree::ptree& config", "parent": 25, "children": [27, 28, 31], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 75}}, {"id": 27, "type": "type_identifier", "text": "boost", "parent": 26, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 45}}, {"id": 28, "type": "ERROR", "text": "::property_tree::ptree&", "parent": 26, "children": [29, 30], "start_point": {"row": 16, "column": 45}, "end_point": {"row": 16, "column": 68}}, {"id": 29, "type": "identifier", "text": "property_tree", "parent": 28, "children": [], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 60}}, {"id": 30, "type": "identifier", "text": "ptree", "parent": 28, "children": [], "start_point": {"row": 16, "column": 62}, "end_point": {"row": 16, "column": 67}}, {"id": 31, "type": "identifier", "text": "config", "parent": 26, "children": [], "start_point": {"row": 16, "column": 69}, "end_point": {"row": 16, "column": 75}}, {"id": 32, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 23], "variables": [21, 26], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 22, 24, 27, 29, 30, 31, 32], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "namespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from "}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "namespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * u"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "CreateMotorScooterCost(const boost::property_tree::ptree& config)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <cstdint>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <valhalla/sif/dynamiccost.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <boost/property_tree/ptree.hpp>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_\n#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n\n#include <cstdint>\n\n#include <valhalla/sif/dynamiccost.h>\n#include <boost/property_tree/ptree.hpp>\n\nnamespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto costing and\n * uses the same rules except for some different access restrictions\n * and the tendency to avoid hills\n */\ncost_ptr_t CreateMotorScooterCost(const boost::property_tree::ptree& config);\n\n}\n}\n\n#endif // VALHALLA_SIF_MOTORSCOOTERCOST_H_\n"}
81,094
c
// // Bridging-Header.h // PinkBook // // Created by 徐浩博 on 2021/10/5. // #ifndef Bridging_Header_h #define Bridging_Header_h #import "MBProgressHUD.h" #import <AMapFoundationKit/AMapFoundationKit.h> #import <AMapLocationKit/AMapLocationKit.h> #import <AMapSearchKit/AMapSearchKit.h> #import "MJRefresh.h" #import "JVERIFICATIONService.h" #import <AlipaySDK/AlipaySDK.h> #import "APRSASigner.h" #endif /* Bridging_Header_h */
24.24
17
(translation_unit) "//\n// Bridging-Header.h\n// PinkBook\n//\n// Created by 徐浩博 on 2021/10/5.\n//\n\n#ifndef Bridging_Header_h\n#define Bridging_Header_h\n\n#import "MBProgressHUD.h"\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import <AMapLocationKit/AMapLocationKit.h>\n#import <AMapSearchKit/AMapSearchKit.h>\n#import "MJRefresh.h"\n#import "JVERIFICATIONService.h"\n#import <AlipaySDK/AlipaySDK.h>\n#import "APRSASigner.h"\n\n#endif /* Bridging_Header_h */\n" (comment) "//" (comment) "// Bridging-Header.h" (comment) "// PinkBook" (comment) "//" (comment) "// Created by 徐浩博 on 2021/10/5.\n//\n\n#" (comment) "fn" (preproc_ifdef) "f Bridging_Header_h\n#define Bridging_Header_h\n\n#import "MBProgressHUD.h"\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import <AMapLocationKit/AMapLocationKit.h>\n#import <AMapSearchKit/AMapSearchKit.h>\n#import "MJRefresh.h"\n#import "JVERIFICATIONService.h"\n#import <AlipaySDK/AlipaySDK.h>\n#import "APRSASigner.h"\n\n#endif /* Br" (#ifndef) "f Bridg" (identifier) "ng_Header_h\n#defi" (preproc_def) "e Bridging_Header_h\n\n#impo" (#define) "e Bridg" (identifier) "ng_Header_h\n\n#imp" (preproc_call) "t "MBProgressHUD.h"\n#impor" (preproc_directive) "t "MBPr" (preproc_arg) "gressHUD.h"\n#impo" (preproc_call) "t <AMapFoundationKit/AMapFoundationKit.h>\n#impor" (preproc_directive) "t <AMap" (preproc_arg) "oundationKit/AMapFoundationKit.h>\n#impo" (preproc_call) "t <AMapLocationKit/AMapLocationKit.h>\n#impor" (preproc_directive) "t <AMap" (preproc_arg) "ocationKit/AMapLocationKit.h>\n#impo" (preproc_call) "t <AMapSearchKit/AMapSearchKit.h>\n#impor" (preproc_directive) "t <AMap" (preproc_arg) "earchKit/AMapSearchKit.h>\n#impo" (preproc_call) "t "MJRefresh.h"\n#impor" (preproc_directive) "t "MJRe" (preproc_arg) "resh.h"\n#impo" (preproc_call) "t "JVERIFICATIONService.h"\n#impor" (preproc_directive) "t "JVER" (preproc_arg) "FICATIONService.h"\n#impo" (preproc_call) "t <AlipaySDK/AlipaySDK.h>\n#impor" (preproc_directive) "t <Alip" (preproc_arg) "ySDK/AlipaySDK.h>\n#impo" (preproc_call) "t "APRSASigner.h"\n\n#endi" (preproc_directive) "t "APRS" (preproc_arg) "Signer.h"\n\n#end" (#endif) " /* Br" (comment) "dging_Header_h */\n"
39
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.24, "nodes": 31, "errors": 0, "source_hash": "c4145d4cb40b54f007b654fe8fa8e2b2a87d60a57e5639e06a1538fc8697a887", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f Bridging_Header_h\n#define Bridging_Header_h\n\n#import \"MBProgressHUD.h\"\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import <AMapLocationKit/AMapLocationKit.h>\n#import <AMapSearchKit/AMapSearchKit.h>\n#import \"MJRefresh.h\"\n#import \"JVERIFICATIONService.h\"\n#import <AlipaySDK/AlipaySDK.h>\n#import \"APRSASigner.h\"\n\n#endif /* Br", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "f Bridg", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "ng_Header_h\n#defi", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "e Bridging_Header_h\n\n#impo", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "e Bridg", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "ng_Header_h\n\n#imp", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 6, "type": "preproc_call", "text": "t \"MBProgressHUD.h\"\n#impor", "parent": 0, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "t \"MBPr", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "gressHUD.h\"\n#impo", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 25}}, {"id": 9, "type": "preproc_call", "text": "t <AMapFoundationKit/AMapFoundationKit.h>\n#impor", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "t <AMap", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "oundationKit/AMapFoundationKit.h>\n#impo", "parent": 9, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 47}}, {"id": 12, "type": "preproc_call", "text": "t <AMapLocationKit/AMapLocationKit.h>\n#impor", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "t <AMap", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "ocationKit/AMapLocationKit.h>\n#impo", "parent": 12, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 43}}, {"id": 15, "type": "preproc_call", "text": "t <AMapSearchKit/AMapSearchKit.h>\n#impor", "parent": 0, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "t <AMap", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 17, "type": "preproc_arg", "text": "earchKit/AMapSearchKit.h>\n#impo", "parent": 15, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 39}}, {"id": 18, "type": "preproc_call", "text": "t \"MJRefresh.h\"\n#impor", "parent": 0, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "preproc_directive", "text": "t \"MJRe", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 20, "type": "preproc_arg", "text": "resh.h\"\n#impo", "parent": 18, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 21}}, {"id": 21, "type": "preproc_call", "text": "t \"JVERIFICATIONService.h\"\n#impor", "parent": 0, "children": [22, 23], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 22, "type": "preproc_directive", "text": "t \"JVER", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 23, "type": "preproc_arg", "text": "FICATIONService.h\"\n#impo", "parent": 21, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 32}}, {"id": 24, "type": "preproc_call", "text": "t <AlipaySDK/AlipaySDK.h>\n#impor", "parent": 0, "children": [25, 26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 25, "type": "preproc_directive", "text": "t <Alip", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 26, "type": "preproc_arg", "text": "ySDK/AlipaySDK.h>\n#impo", "parent": 24, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 31}}, {"id": 27, "type": "preproc_call", "text": "t \"APRSASigner.h\"\n\n#endi", "parent": 0, "children": [28, 29], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 28, "type": "preproc_directive", "text": "t \"APRS", "parent": 27, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 29, "type": "preproc_arg", "text": "Signer.h\"\n\n#end", "parent": 27, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 23}}, {"id": 30, "type": "#endif", "text": " /* Br", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 30], "returns": [], "exceptions": []}, "expressions": {"calls": [6, 9, 12, 15, 18, 21, 24, 27], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Bridging-Header.h\n// PinkBook\n//\n// Created by \u5f90\u6d69\u535a on 2021/10/5.\n//\n\n#ifndef Bridging_Header_h\n#define Bridging_Header_h\n\n#import \"MBProgressHUD.h\"\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import <AMapLocationKit/AMapLocationKit.h>\n#import <AMapSearchKit/AMapSearchKit.h>\n#import \"MJRefresh.h\"\n#import \"JVERIFICATIONService.h\"\n#import <AlipaySDK/AlipaySDK.h>\n#import \"APRSASigner.h\"\n\n#endif /* Bridging_Header_h */\n"}
81,095
c
#ifndef EZHNO_AST_FUNCTION_H #define EZHNO_AST_FUNCTION_H #include "ezhno/AST/Decl.h" namespace ezhno { class Function : Decl { Type& T; Name& N; Arg* Args; unsigned LenOfArgs; Body& B; public: }; } #endif /* EZHNO_AST_FUNCTION_H */
16.36
14
(translation_unit) "#ifndef EZHNO_AST_FUNCTION_H\n#define EZHNO_AST_FUNCTION_H\n#include "ezhno/AST/Decl.h"\nnamespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}\n#endif /* EZHNO_AST_FUNCTION_H */\n" (preproc_ifdef) "#ifndef EZHNO_AST_FUNCTION_H\n#define EZHNO_AST_FUNCTION_H\n#include "ezhno/AST/Decl.h"\nnamespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}\n#endif" (#ifndef) "#ifndef" (identifier) "EZHNO_AST_FUNCTION_H" (preproc_def) "#define EZHNO_AST_FUNCTION_H\n" (#define) "#define" (identifier) "EZHNO_AST_FUNCTION_H" (preproc_include) "#include "ezhno/AST/Decl.h"\n" (#include) "#include" (string_literal) ""ezhno/AST/Decl.h"" (") """ (string_content) "ezhno/AST/Decl.h" (") """ (function_definition) "namespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}" (type_identifier) "namespace" (identifier) "ezhno" (compound_statement) "{\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}" ({) "{" (function_definition) "class Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n}" (type_identifier) "class" (identifier) "Function" (ERROR) ": Decl" (:) ":" (identifier) "Decl" (compound_statement) "{\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n}" ({) "{" (expression_statement) "Type& T;" (binary_expression) "Type& T" (identifier) "Type" (&) "&" (identifier) "T" (;) ";" (expression_statement) "Name& N;" (binary_expression) "Name& N" (identifier) "Name" (&) "&" (identifier) "N" (;) ";" (declaration) "Arg* Args;" (type_identifier) "Arg" (pointer_declarator) "* Args" (*) "*" (identifier) "Args" (;) ";" (declaration) "unsigned LenOfArgs;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "LenOfArgs" (;) ";" (expression_statement) "Body& B;" (binary_expression) "Body& B" (identifier) "Body" (&) "&" (identifier) "B" (;) ";" (labeled_statement) "public:" (statement_identifier) "public" (:) ":" (expression_statement) "" (;) "" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* EZHNO_AST_FUNCTION_H */"
66
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.36, "nodes": 36, "errors": 0, "source_hash": "fe13caa4fc3881a138dc3a0fd49b13213504944ec4fd89ee4d21b18b3078503d", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EZHNO_AST_FUNCTION_H\n#define EZHNO_AST_FUNCTION_H\n#include \"ezhno/AST/Decl.h\"\nnamespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 35], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "EZHNO_AST_FUNCTION_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define EZHNO_AST_FUNCTION_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "EZHNO_AST_FUNCTION_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"ezhno/AST/Decl.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"ezhno/AST/Decl.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 27}}, {"id": 9, "type": "function_definition", "text": "namespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 9}}, {"id": 11, "type": "identifier", "text": "ezhno", "parent": 9, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 15}}, {"id": 12, "type": "function_definition", "text": "class Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 13, "type": "identifier", "text": "Function", "parent": 12, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 14}}, {"id": 14, "type": "ERROR", "text": ": Decl", "parent": 12, "children": [15], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 21}}, {"id": 15, "type": "identifier", "text": "Decl", "parent": 14, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 21}}, {"id": 16, "type": "binary_expression", "text": "Type& T", "parent": 12, "children": [17, 18], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 9}}, {"id": 17, "type": "identifier", "text": "Type", "parent": 16, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 6}}, {"id": 18, "type": "identifier", "text": "T", "parent": 16, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 9}}, {"id": 19, "type": "binary_expression", "text": "Name& N", "parent": 12, "children": [20, 21], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 9}}, {"id": 20, "type": "identifier", "text": "Name", "parent": 19, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 6}}, {"id": 21, "type": "identifier", "text": "N", "parent": 19, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 9}}, {"id": 22, "type": "declaration", "text": "Arg* Args;", "parent": 12, "children": [23, 24], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 12}}, {"id": 23, "type": "type_identifier", "text": "Arg", "parent": 22, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 5}}, {"id": 24, "type": "pointer_declarator", "text": "* Args", "parent": 22, "children": [25, 26], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 11}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 6}}, {"id": 26, "type": "identifier", "text": "Args", "parent": 24, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 27, "type": "declaration", "text": "unsigned LenOfArgs;", "parent": 12, "children": [28, 30], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 21}}, {"id": 28, "type": "sized_type_specifier", "text": "unsigned", "parent": 27, "children": [29], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 10}}, {"id": 29, "type": "unsigned", "text": "unsigned", "parent": 28, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 10}}, {"id": 30, "type": "identifier", "text": "LenOfArgs", "parent": 27, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 20}}, {"id": 31, "type": "binary_expression", "text": "Body& B", "parent": 12, "children": [32, 33], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 9}}, {"id": 32, "type": "identifier", "text": "Body", "parent": 31, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 6}}, {"id": 33, "type": "identifier", "text": "B", "parent": 31, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 34, "type": "labeled_statement", "text": "public:", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 35, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12], "variables": [22, 27], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [16, 19, 31], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 15, 17, 18, 20, 21, 23, 26, 28, 30, 32, 33, 35], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Function", "text_snippet": "namespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n "}, {"node_id": 12, "universal_type": "function", "name": "Function", "text_snippet": "class Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"ezhno/AST/Decl.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef EZHNO_AST_FUNCTION_H\n#define EZHNO_AST_FUNCTION_H\n#include \"ezhno/AST/Decl.h\"\nnamespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}\n#endif /* EZHNO_AST_FUNCTION_H */\n"}
81,096
c
#pragma once #include "Tiger/Core.h" #include "Event.h" namespace Tiger { class TIGER_API WindowResizedEvent : public Tiger::Event { public: WindowResizedEvent(int width, int height) : width(width), height(height) {} ~WindowResizedEvent() = default; inline int getWidth() const { return width; } inline int getHeight() const { return height; } inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; } EVENT_TYPE(EVENT_TYPE_WINDOW) EVENT_ID(EventID::EVENT_WINDOW_RESIZED) private: int width, height; }; class TIGER_API WindowCloseEvent : public Tiger::Event { public: WindowCloseEvent() = default; ~WindowCloseEvent() = default; inline virtual std::string toString() const override { return "WindowCloseEvent"; } EVENT_TYPE(EVENT_TYPE_WINDOW) EVENT_ID(EventID::EVENT_WINDOW_CLOSED) }; }
34.23
26
(translation_unit) "#pragma once\n\n#include "Tiger/Core.h"\n\n#include "Event.h"\n\nnamespace Tiger {\n\n class TIGER_API WindowResizedEvent : public Tiger::Event {\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() const { return width; }\n inline int getHeight() const { return height; }\n inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:\n int width, height;\n };\n\n class TIGER_API WindowCloseEvent : public Tiger::Event {\n public:\n WindowCloseEvent() = default;\n ~WindowCloseEvent() = default;\n\n inline virtual std::string toString() const override { return "WindowCloseEvent"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n };\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Tiger/Core.h"\n" (#include) "#include" (string_literal) ""Tiger/Core.h"" (") """ (string_content) "Tiger/Core.h" (") """ (preproc_include) "#include "Event.h"\n" (#include) "#include" (string_literal) ""Event.h"" (") """ (string_content) "Event.h" (") """ (function_definition) "namespace Tiger {\n\n class TIGER_API WindowResizedEvent : public Tiger::Event {\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() const { return width; }\n inline int getHeight() const { return height; }\n inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:\n int width, height;\n };\n\n class TIGER_API WindowCloseEvent : public Tiger::Event {\n public:\n WindowCloseEvent() = default;\n ~WindowCloseEvent() = default;\n\n inline virtual std::string toString() const override { return "WindowCloseEvent"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n };\n\n}" (type_identifier) "namespace" (identifier) "Tiger" (compound_statement) "{\n\n class TIGER_API WindowResizedEvent : public Tiger::Event {\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() const { return width; }\n inline int getHeight() const { return height; }\n inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:\n int width, height;\n };\n\n class TIGER_API WindowCloseEvent : public Tiger::Event {\n public:\n WindowCloseEvent() = default;\n ~WindowCloseEvent() = default;\n\n inline virtual std::string toString() const override { return "WindowCloseEvent"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n };\n\n}" ({) "{" (declaration) "class TIGER_API" (type_identifier) "class" (identifier) "TIGER_API" (;) "" (labeled_statement) "WindowResizedEvent : public Tiger::Event {\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() const { return width; }\n inline int getHeight() const { return height; }\n inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:\n int width, height;\n }" (statement_identifier) "WindowResizedEvent" (:) ":" (ERROR) "public Tiger::Event" (type_identifier) "public" (identifier) "Tiger" (:) ":" (:) ":" (identifier) "Event" (compound_statement) "{\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() const { return width; }\n inline int getHeight() const { return height; }\n inline virtual std::string toString() const override { return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:\n int width, height;\n }" ({) "{" (labeled_statement) "public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;" (statement_identifier) "public" (:) ":" (declaration) "WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;" (macro_type_specifier) "WindowResizedEvent(int" (identifier) "WindowResizedEvent" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "width" (,) "," (ERROR) "int height) :" (identifier) "int" (identifier) "height" ()) ")" (:) ":" (function_declarator) "width(width)" (identifier) "width" (parameter_list) "(width)" (() "(" (parameter_declaration) "width" (type_identifier) "width" ()) ")" (,) "," (ERROR) "height(height) {}\n ~" (function_declarator) "height(height)" (identifier) "height" (parameter_list) "(height)" (() "(" (parameter_declaration) "height" (type_identifier) "height" ()) ")" ({) "{" (}) "}" (~) "~" (init_declarator) "WindowResizedEvent() = default" (function_declarator) "WindowResizedEvent()" (identifier) "WindowResizedEvent" (parameter_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (ERROR) "inline int getWidth() const" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "getWidth()" (identifier) "getWidth" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return width; }" ({) "{" (return_statement) "return width;" (return) "return" (identifier) "width" (;) ";" (}) "}" (ERROR) "inline int getHeight() const" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "getHeight()" (identifier) "getHeight" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return height; }" ({) "{" (return_statement) "return height;" (return) "return" (identifier) "height" (;) ";" (}) "}" (ERROR) "inline virtual std::string toString() const override" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "virtual" (ERROR) "std::string" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "toString()" (identifier) "toString" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "override" (compound_statement) "{ return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")"; }" ({) "{" (return_statement) "return "WindowResizedEvent: (" + std::to_string(width) + ", " + std::to_string(height) + ")";" (return) "return" (ERROR) ""WindowResizedEvent: (" + std::to_string(width) + ", " + std::" (binary_expression) ""WindowResizedEvent: (" + std" (string_literal) ""WindowResizedEvent: ("" (") """ (string_content) "WindowResizedEvent: (" (") """ (+) "+" (identifier) "std" (:) ":" (:) ":" (binary_expression) "to_string(width) + ", " + std" (binary_expression) "to_string(width) + ", "" (call_expression) "to_string(width)" (identifier) "to_string" (argument_list) "(width)" (() "(" (identifier) "width" ()) ")" (+) "+" (string_literal) "", "" (") """ (string_content) ", " (") """ (+) "+" (identifier) "std" (:) ":" (:) ":" (binary_expression) "to_string(height) + ")"" (call_expression) "to_string(height)" (identifier) "to_string" (argument_list) "(height)" (() "(" (identifier) "height" ()) ")" (+) "+" (string_literal) "")"" (") """ (string_content) ")" (") """ (;) ";" (}) "}" (ERROR) "EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private:" (macro_type_specifier) "EVENT_TYPE(EVENT_TYPE_WINDOW)" (identifier) "EVENT_TYPE" (() "(" (type_descriptor) "EVENT_TYPE_WINDOW" (type_identifier) "EVENT_TYPE_WINDOW" ()) ")" (function_declarator) "EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n private" (identifier) "EVENT_ID" (parameter_list) "(EventID::EVENT_WINDOW_RESIZED)" (() "(" (parameter_declaration) "EventID::EVENT_WINDOW_RESIZED" (type_identifier) "EventID" (ERROR) "::" (:) ":" (:) ":" (identifier) "EVENT_WINDOW_RESIZED" ()) ")" (identifier) "private" (:) ":" (declaration) "int width, height;" (primitive_type) "int" (identifier) "width" (,) "," (identifier) "height" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "class TIGER_API" (type_identifier) "class" (identifier) "TIGER_API" (;) "" (labeled_statement) "WindowCloseEvent : public Tiger::Event {\n public:\n WindowCloseEvent() = default;\n ~WindowCloseEvent() = default;\n\n inline virtual std::string toString() const override { return "WindowCloseEvent"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n }" (statement_identifier) "WindowCloseEvent" (:) ":" (ERROR) "public Tiger::Event" (type_identifier) "public" (identifier) "Tiger" (:) ":" (:) ":" (identifier) "Event" (compound_statement) "{\n public:\n WindowCloseEvent() = default;\n ~WindowCloseEvent() = default;\n\n inline virtual std::string toString() const override { return "WindowCloseEvent"; }\n EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n }" ({) "{" (labeled_statement) "public:\n WindowCloseEvent() = default;" (statement_identifier) "public" (:) ":" (expression_statement) "WindowCloseEvent() = default;" (assignment_expression) "WindowCloseEvent() = default" (call_expression) "WindowCloseEvent()" (identifier) "WindowCloseEvent" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (expression_statement) "~WindowCloseEvent() = default;" (unary_expression) "~WindowCloseEvent() = default" (~) "~" (assignment_expression) "WindowCloseEvent() = default" (call_expression) "WindowCloseEvent()" (identifier) "WindowCloseEvent" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (ERROR) "inline virtual std::string toString() const override" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "virtual" (ERROR) "std::string" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "toString()" (identifier) "toString" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "override" (compound_statement) "{ return "WindowCloseEvent"; }" ({) "{" (return_statement) "return "WindowCloseEvent";" (return) "return" (string_literal) ""WindowCloseEvent"" (") """ (string_content) "WindowCloseEvent" (") """ (;) ";" (}) "}" (declaration) "EVENT_TYPE(EVENT_TYPE_WINDOW)\n EVENT_ID(EventID::EVENT_WINDOW_CLOSED)" (macro_type_specifier) "EVENT_TYPE(EVENT_TYPE_WINDOW)" (identifier) "EVENT_TYPE" (() "(" (type_descriptor) "EVENT_TYPE_WINDOW" (type_identifier) "EVENT_TYPE_WINDOW" ()) ")" (function_declarator) "EVENT_ID(EventID::EVENT_WINDOW_CLOSED)" (identifier) "EVENT_ID" (parameter_list) "(EventID::EVENT_WINDOW_CLOSED)" (() "(" (parameter_declaration) "EventID::EVENT_WINDOW_CLOSED" (type_identifier) "EventID" (ERROR) "::" (:) ":" (:) ":" (identifier) "EVENT_WINDOW_CLOSED" ()) ")" (;) "" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
298
14
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 34.23, "nodes": 160, "errors": 0, "source_hash": "252d6bac33bc6589dfb2b139b94841f1e4d6e074ee029dd8ccd79f42165bb25d", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"Tiger/Core.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"Tiger/Core.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"Event.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Event.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 9, "type": "function_definition", "text": "namespace Tiger {\n\n\tclass TIGER_API WindowResizedEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowResizedEvent(int width, int height) : width(width), height(height) {}\n\t\t~WindowResizedEvent() = default;\n\t\t\n\t\tinline int getWidth() const { return width; }\n\t\tinline int getHeight() const { return height; }\n\t\tinline virtual std::string toString() const override { return \"WindowResizedEvent: (\" + std::to_string(width) + \", \" + std::to_string(height) + \")\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate:\n\t\tint width, height;\n\t};\n\n\tclass TIGER_API WindowCloseEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowCloseEvent() = default;\n\t\t~WindowCloseEvent() = default;\n\n\t\tinline virtual std::string toString() const override { return \"WindowCloseEvent\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n\t};\n\n}", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 11, "type": "identifier", "text": "Tiger", "parent": 9, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 15}}, {"id": 12, "type": "declaration", "text": "class TIGER_API", "parent": 9, "children": [13], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 16}}, {"id": 13, "type": "identifier", "text": "TIGER_API", "parent": 12, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 16}}, {"id": 14, "type": "labeled_statement", "text": "WindowResizedEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowResizedEvent(int width, int height) : width(width), height(height) {}\n\t\t~WindowResizedEvent() = default;\n\t\t\n\t\tinline int getWidth() const { return width; }\n\t\tinline int getHeight() const { return height; }\n\t\tinline virtual std::string toString() const override { return \"WindowResizedEvent: (\" + std::to_string(width) + \", \" + std::to_string(height) + \")\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate:\n\t\tint width, height;\n\t}", "parent": 9, "children": [15, 16], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 20, "column": 2}}, {"id": 15, "type": "statement_identifier", "text": "WindowResizedEvent", "parent": 14, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 35}}, {"id": 16, "type": "ERROR", "text": "public Tiger::Event", "parent": 14, "children": [17, 18], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 57}}, {"id": 17, "type": "identifier", "text": "Tiger", "parent": 16, "children": [], "start_point": {"row": 8, "column": 45}, "end_point": {"row": 8, "column": 50}}, {"id": 18, "type": "identifier", "text": "Event", "parent": 16, "children": [], "start_point": {"row": 8, "column": 52}, "end_point": {"row": 8, "column": 57}}, {"id": 19, "type": "labeled_statement", "text": "public:\n\t\tWindowResizedEvent(int width, int height) : width(width), height(height) {}\n\t\t~WindowResizedEvent() = default;", "parent": 14, "children": [20], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 11, "column": 34}}, {"id": 20, "type": "declaration", "text": "WindowResizedEvent(int width, int height) : width(width), height(height) {}\n\t\t~WindowResizedEvent() = default;", "parent": 19, "children": [21, 25, 26, 29, 34, 41], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 34}}, {"id": 21, "type": "macro_type_specifier", "text": "WindowResizedEvent(int", "parent": 20, "children": [22, 23], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 24}}, {"id": 22, "type": "identifier", "text": "WindowResizedEvent", "parent": 21, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 20}}, {"id": 23, "type": "type_descriptor", "text": "int", "parent": 21, "children": [24], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 24}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 24}}, {"id": 25, "type": "identifier", "text": "width", "parent": 20, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 30}}, {"id": 26, "type": "ERROR", "text": "int height) :", "parent": 20, "children": [27, 28], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 45}}, {"id": 27, "type": "identifier", "text": "int", "parent": 26, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 35}}, {"id": 28, "type": "identifier", "text": "height", "parent": 26, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 42}}, {"id": 29, "type": "function_declarator", "text": "width(width)", "parent": 20, "children": [30, 31], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 58}}, {"id": 30, "type": "identifier", "text": "width", "parent": 29, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 51}}, {"id": 31, "type": "parameter_list", "text": "(width)", "parent": 29, "children": [32], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 58}}, {"id": 32, "type": "parameter_declaration", "text": "width", "parent": 31, "children": [33], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 57}}, {"id": 33, "type": "type_identifier", "text": "width", "parent": 32, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 57}}, {"id": 34, "type": "ERROR", "text": "height(height) {}\n\t\t~", "parent": 20, "children": [35, 40], "start_point": {"row": 10, "column": 60}, "end_point": {"row": 11, "column": 3}}, {"id": 35, "type": "function_declarator", "text": "height(height)", "parent": 34, "children": [36, 37], "start_point": {"row": 10, "column": 60}, "end_point": {"row": 10, "column": 74}}, {"id": 36, "type": "identifier", "text": "height", "parent": 35, "children": [], "start_point": {"row": 10, "column": 60}, "end_point": {"row": 10, "column": 66}}, {"id": 37, "type": "parameter_list", "text": "(height)", "parent": 35, "children": [38], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 74}}, {"id": 38, "type": "parameter_declaration", "text": "height", "parent": 37, "children": [39], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 73}}, {"id": 39, "type": "type_identifier", "text": "height", "parent": 38, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 73}}, {"id": 40, "type": "~", "text": "~", "parent": 34, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 3}}, {"id": 41, "type": "init_declarator", "text": "WindowResizedEvent() = default", "parent": 20, "children": [42, 45, 46], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 33}}, {"id": 42, "type": "function_declarator", "text": "WindowResizedEvent()", "parent": 41, "children": [43, 44], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 23}}, {"id": 43, "type": "identifier", "text": "WindowResizedEvent", "parent": 42, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 21}}, {"id": 44, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 23}}, {"id": 45, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 46, "type": "identifier", "text": "default", "parent": 41, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 33}}, {"id": 47, "type": "ERROR", "text": "inline int getWidth() const", "parent": 14, "children": [48, 50, 51], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 29}}, {"id": 48, "type": "storage_class_specifier", "text": "inline", "parent": 47, "children": [49], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 49, "type": "inline", "text": "inline", "parent": 48, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 12}}, {"id": 51, "type": "function_declarator", "text": "getWidth()", "parent": 47, "children": [52, 53], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 23}}, {"id": 52, "type": "identifier", "text": "getWidth", "parent": 51, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 21}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 23}}, {"id": 54, "type": "return_statement", "text": "return width;", "parent": 14, "children": [55], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 45}}, {"id": 55, "type": "identifier", "text": "width", "parent": 54, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 44}}, {"id": 56, "type": "ERROR", "text": "inline int getHeight() const", "parent": 14, "children": [57, 59, 60], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 30}}, {"id": 57, "type": "storage_class_specifier", "text": "inline", "parent": 56, "children": [58], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 58, "type": "inline", "text": "inline", "parent": 57, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 56, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 60, "type": "function_declarator", "text": "getHeight()", "parent": 56, "children": [61, 62], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 24}}, {"id": 61, "type": "identifier", "text": "getHeight", "parent": 60, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 22}}, {"id": 62, "type": "parameter_list", "text": "()", "parent": 60, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 24}}, {"id": 63, "type": "return_statement", "text": "return height;", "parent": 14, "children": [64], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 47}}, {"id": 64, "type": "identifier", "text": "height", "parent": 63, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 46}}, {"id": 65, "type": "ERROR", "text": "inline virtual std::string toString() const override", "parent": 14, "children": [66, 68, 69, 72, 75], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 54}}, {"id": 66, "type": "storage_class_specifier", "text": "inline", "parent": 65, "children": [67], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 67, "type": "inline", "text": "inline", "parent": 66, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 68, "type": "type_identifier", "text": "virtual", "parent": 65, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 16}}, {"id": 69, "type": "ERROR", "text": "std::string", "parent": 65, "children": [70, 71], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 28}}, {"id": 70, "type": "identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 20}}, {"id": 71, "type": "identifier", "text": "string", "parent": 69, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 28}}, {"id": 72, "type": "function_declarator", "text": "toString()", "parent": 65, "children": [73, 74], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 39}}, {"id": 73, "type": "identifier", "text": "toString", "parent": 72, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 37}}, {"id": 74, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 39}}, {"id": 75, "type": "type_identifier", "text": "override", "parent": 65, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 54}}, {"id": 76, "type": "return_statement", "text": "return \"WindowResizedEvent: (\" + std::to_string(width) + \", \" + std::to_string(height) + \")\";", "parent": 14, "children": [77, 92], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 150}}, {"id": 77, "type": "ERROR", "text": "\"WindowResizedEvent: (\" + std::to_string(width) + \", \" + std::", "parent": 76, "children": [78, 82], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 126}}, {"id": 78, "type": "binary_expression", "text": "\"WindowResizedEvent: (\" + std", "parent": 77, "children": [79, 80, 81], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 93}}, {"id": 79, "type": "string_literal", "text": "\"WindowResizedEvent: (\"", "parent": 78, "children": [], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 87}}, {"id": 80, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 15, "column": 88}, "end_point": {"row": 15, "column": 89}}, {"id": 81, "type": "identifier", "text": "std", "parent": 78, "children": [], "start_point": {"row": 15, "column": 90}, "end_point": {"row": 15, "column": 93}}, {"id": 82, "type": "binary_expression", "text": "to_string(width) + \", \" + std", "parent": 77, "children": [83, 90, 91], "start_point": {"row": 15, "column": 95}, "end_point": {"row": 15, "column": 124}}, {"id": 83, "type": "binary_expression", "text": "to_string(width) + \", \"", "parent": 82, "children": [84, 88, 89], "start_point": {"row": 15, "column": 95}, "end_point": {"row": 15, "column": 118}}, {"id": 84, "type": "call_expression", "text": "to_string(width)", "parent": 83, "children": [85, 86], "start_point": {"row": 15, "column": 95}, "end_point": {"row": 15, "column": 111}}, {"id": 85, "type": "identifier", "text": "to_string", "parent": 84, "children": [], "start_point": {"row": 15, "column": 95}, "end_point": {"row": 15, "column": 104}}, {"id": 86, "type": "argument_list", "text": "(width)", "parent": 84, "children": [87], "start_point": {"row": 15, "column": 104}, "end_point": {"row": 15, "column": 111}}, {"id": 87, "type": "identifier", "text": "width", "parent": 86, "children": [], "start_point": {"row": 15, "column": 105}, "end_point": {"row": 15, "column": 110}}, {"id": 88, "type": "+", "text": "+", "parent": 83, "children": [], "start_point": {"row": 15, "column": 112}, "end_point": {"row": 15, "column": 113}}, {"id": 89, "type": "string_literal", "text": "\", \"", "parent": 83, "children": [], "start_point": {"row": 15, "column": 114}, "end_point": {"row": 15, "column": 118}}, {"id": 90, "type": "+", "text": "+", "parent": 82, "children": [], "start_point": {"row": 15, "column": 119}, "end_point": {"row": 15, "column": 120}}, {"id": 91, "type": "identifier", "text": "std", "parent": 82, "children": [], "start_point": {"row": 15, "column": 121}, "end_point": {"row": 15, "column": 124}}, {"id": 92, "type": "binary_expression", "text": "to_string(height) + \")\"", "parent": 76, "children": [93, 97, 98], "start_point": {"row": 15, "column": 126}, "end_point": {"row": 15, "column": 149}}, {"id": 93, "type": "call_expression", "text": "to_string(height)", "parent": 92, "children": [94, 95], "start_point": {"row": 15, "column": 126}, "end_point": {"row": 15, "column": 143}}, {"id": 94, "type": "identifier", "text": "to_string", "parent": 93, "children": [], "start_point": {"row": 15, "column": 126}, "end_point": {"row": 15, "column": 135}}, {"id": 95, "type": "argument_list", "text": "(height)", "parent": 93, "children": [96], "start_point": {"row": 15, "column": 135}, "end_point": {"row": 15, "column": 143}}, {"id": 96, "type": "identifier", "text": "height", "parent": 95, "children": [], "start_point": {"row": 15, "column": 136}, "end_point": {"row": 15, "column": 142}}, {"id": 97, "type": "+", "text": "+", "parent": 92, "children": [], "start_point": {"row": 15, "column": 144}, "end_point": {"row": 15, "column": 145}}, {"id": 98, "type": "string_literal", "text": "\")\"", "parent": 92, "children": [], "start_point": {"row": 15, "column": 146}, "end_point": {"row": 15, "column": 149}}, {"id": 99, "type": "ERROR", "text": "EVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate:", "parent": 14, "children": [100, 104], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 100, "type": "macro_type_specifier", "text": "EVENT_TYPE(EVENT_TYPE_WINDOW)", "parent": 99, "children": [101, 102], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 31}}, {"id": 101, "type": "identifier", "text": "EVENT_TYPE", "parent": 100, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 12}}, {"id": 102, "type": "type_descriptor", "text": "EVENT_TYPE_WINDOW", "parent": 100, "children": [103], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 30}}, {"id": 103, "type": "type_identifier", "text": "EVENT_TYPE_WINDOW", "parent": 102, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 30}}, {"id": 104, "type": "function_declarator", "text": "EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate", "parent": 99, "children": [105, 106], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 18, "column": 8}}, {"id": 105, "type": "identifier", "text": "EVENT_ID", "parent": 104, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 10}}, {"id": 106, "type": "parameter_list", "text": "(EventID::EVENT_WINDOW_RESIZED)", "parent": 104, "children": [107], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 41}}, {"id": 107, "type": "parameter_declaration", "text": "EventID::EVENT_WINDOW_RESIZED", "parent": 106, "children": [108, 109], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 40}}, {"id": 108, "type": "type_identifier", "text": "EventID", "parent": 107, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 18}}, {"id": 109, "type": "identifier", "text": "EVENT_WINDOW_RESIZED", "parent": 107, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 40}}, {"id": 110, "type": "declaration", "text": "int width, height;", "parent": 14, "children": [111, 112, 113], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 20}}, {"id": 111, "type": "primitive_type", "text": "int", "parent": 110, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 5}}, {"id": 112, "type": "identifier", "text": "width", "parent": 110, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 11}}, {"id": 113, "type": "identifier", "text": "height", "parent": 110, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 19}}, {"id": 114, "type": "declaration", "text": "class TIGER_API", "parent": 9, "children": [115], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 16}}, {"id": 115, "type": "identifier", "text": "TIGER_API", "parent": 114, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 16}}, {"id": 116, "type": "labeled_statement", "text": "WindowCloseEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowCloseEvent() = default;\n\t\t~WindowCloseEvent() = default;\n\n\t\tinline virtual std::string toString() const override { return \"WindowCloseEvent\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n\t}", "parent": 9, "children": [117, 118], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 30, "column": 2}}, {"id": 117, "type": "statement_identifier", "text": "WindowCloseEvent", "parent": 116, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 33}}, {"id": 118, "type": "ERROR", "text": "public Tiger::Event", "parent": 116, "children": [119, 120], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 55}}, {"id": 119, "type": "identifier", "text": "Tiger", "parent": 118, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 48}}, {"id": 120, "type": "identifier", "text": "Event", "parent": 118, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 55}}, {"id": 121, "type": "labeled_statement", "text": "public:\n\t\tWindowCloseEvent() = default;", "parent": 116, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 24, "column": 31}}, {"id": 122, "type": "assignment_expression", "text": "WindowCloseEvent() = default", "parent": 121, "children": [123, 126, 127], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 30}}, {"id": 123, "type": "call_expression", "text": "WindowCloseEvent()", "parent": 122, "children": [124, 125], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 20}}, {"id": 124, "type": "identifier", "text": "WindowCloseEvent", "parent": 123, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 18}}, {"id": 125, "type": "argument_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 126, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 22}}, {"id": 127, "type": "identifier", "text": "default", "parent": 122, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 128, "type": "unary_expression", "text": "~WindowCloseEvent() = default", "parent": 116, "children": [129, 130], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 31}}, {"id": 129, "type": "~", "text": "~", "parent": 128, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 130, "type": "assignment_expression", "text": "WindowCloseEvent() = default", "parent": 128, "children": [131, 134, 135], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 31}}, {"id": 131, "type": "call_expression", "text": "WindowCloseEvent()", "parent": 130, "children": [132, 133], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 21}}, {"id": 132, "type": "identifier", "text": "WindowCloseEvent", "parent": 131, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 19}}, {"id": 133, "type": "argument_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 21}}, {"id": 134, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 23}}, {"id": 135, "type": "identifier", "text": "default", "parent": 130, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 31}}, {"id": 136, "type": "ERROR", "text": "inline virtual std::string toString() const override", "parent": 116, "children": [137, 139, 140, 143, 146], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 54}}, {"id": 137, "type": "storage_class_specifier", "text": "inline", "parent": 136, "children": [138], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 8}}, {"id": 138, "type": "inline", "text": "inline", "parent": 137, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 8}}, {"id": 139, "type": "type_identifier", "text": "virtual", "parent": 136, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 16}}, {"id": 140, "type": "ERROR", "text": "std::string", "parent": 136, "children": [141, 142], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 28}}, {"id": 141, "type": "identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 20}}, {"id": 142, "type": "identifier", "text": "string", "parent": 140, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 28}}, {"id": 143, "type": "function_declarator", "text": "toString()", "parent": 136, "children": [144, 145], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 39}}, {"id": 144, "type": "identifier", "text": "toString", "parent": 143, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 37}}, {"id": 145, "type": "parameter_list", "text": "()", "parent": 143, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 39}}, {"id": 146, "type": "type_identifier", "text": "override", "parent": 136, "children": [], "start_point": {"row": 27, "column": 46}, "end_point": {"row": 27, "column": 54}}, {"id": 147, "type": "return_statement", "text": "return \"WindowCloseEvent\";", "parent": 116, "children": [148], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 83}}, {"id": 148, "type": "string_literal", "text": "\"WindowCloseEvent\"", "parent": 147, "children": [], "start_point": {"row": 27, "column": 64}, "end_point": {"row": 27, "column": 82}}, {"id": 149, "type": "declaration", "text": "EVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_CLOSED)", "parent": 116, "children": [150, 154], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 29, "column": 40}}, {"id": 150, "type": "macro_type_specifier", "text": "EVENT_TYPE(EVENT_TYPE_WINDOW)", "parent": 149, "children": [151, 152], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 31}}, {"id": 151, "type": "identifier", "text": "EVENT_TYPE", "parent": 150, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 12}}, {"id": 152, "type": "type_descriptor", "text": "EVENT_TYPE_WINDOW", "parent": 150, "children": [153], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 30}}, {"id": 153, "type": "type_identifier", "text": "EVENT_TYPE_WINDOW", "parent": 152, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 30}}, {"id": 154, "type": "function_declarator", "text": "EVENT_ID(EventID::EVENT_WINDOW_CLOSED)", "parent": 149, "children": [155, 156], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 40}}, {"id": 155, "type": "identifier", "text": "EVENT_ID", "parent": 154, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 156, "type": "parameter_list", "text": "(EventID::EVENT_WINDOW_CLOSED)", "parent": 154, "children": [157], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 40}}, {"id": 157, "type": "parameter_declaration", "text": "EventID::EVENT_WINDOW_CLOSED", "parent": 156, "children": [158, 159], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 39}}, {"id": 158, "type": "type_identifier", "text": "EventID", "parent": 157, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 18}}, {"id": 159, "type": "identifier", "text": "EVENT_WINDOW_CLOSED", "parent": 157, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 39}}]}, "node_categories": {"declarations": {"functions": [9, 29, 35, 42, 51, 60, 72, 104, 143, 154], "variables": [12, 20, 32, 38, 107, 110, 114, 149, 157], "classes": [48, 57, 66, 137], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [78, 82, 83, 84, 92, 93, 123, 128, 131], "assignments": [122, 130], "loops": [], "conditionals": [10, 11, 13, 15, 17, 18, 21, 22, 25, 27, 28, 30, 33, 36, 39, 43, 46, 52, 55, 61, 64, 68, 70, 71, 73, 75, 81, 85, 87, 91, 94, 96, 100, 101, 103, 105, 108, 109, 112, 113, 115, 117, 119, 120, 124, 127, 132, 135, 139, 141, 142, 144, 146, 150, 151, 153, 155, 158, 159], "returns": [54, 63, 76, 147], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 79, 89, 98, 148], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "TIGER_API", "text_snippet": "namespace Tiger {\n\n\tclass TIGER_API WindowResizedEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowResi"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "width(width)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "height(height)"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "WindowResizedEvent()"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "getWidth()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "getHeight()"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "toString()"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "EVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "toString()"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "EVENT_ID(EventID::EVENT_WINDOW_CLOSED)"}], "class_declarations": [{"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 137, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 3, "text": "#include \"Tiger/Core.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Event.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"Tiger/Core.h\"\n\n#include \"Event.h\"\n\nnamespace Tiger {\n\n\tclass TIGER_API WindowResizedEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowResizedEvent(int width, int height) : width(width), height(height) {}\n\t\t~WindowResizedEvent() = default;\n\t\t\n\t\tinline int getWidth() const { return width; }\n\t\tinline int getHeight() const { return height; }\n\t\tinline virtual std::string toString() const override { return \"WindowResizedEvent: (\" + std::to_string(width) + \", \" + std::to_string(height) + \")\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_RESIZED)\n\tprivate:\n\t\tint width, height;\n\t};\n\n\tclass TIGER_API WindowCloseEvent : public Tiger::Event {\n\tpublic:\n\t\tWindowCloseEvent() = default;\n\t\t~WindowCloseEvent() = default;\n\n\t\tinline virtual std::string toString() const override { return \"WindowCloseEvent\"; }\n\t\tEVENT_TYPE(EVENT_TYPE_WINDOW)\n\t\tEVENT_ID(EventID::EVENT_WINDOW_CLOSED)\n\t};\n\n}"}
81,097
c
//------------------------------------------------------------------------------ // Copyright (c) 2016-2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. //------------------------------------------------------------------------------ #ifndef SELECTOR_ITEM_H #define SELECTOR_ITEM_H #include <cctype> #include <cstdlib> #include <vector> #include "Item.h" class SelectorItem : public Item { public: SelectorItem(Owner* owner, unsigned row_, unsigned col_, const std::string& text_, const std::string& choices_, const std::string& unit_ = "") : Item(owner, row_,col_, text_) , unit(unit_) { // First choice, no selection, is a aingle space choice_list.push_back(" "); std::string choice; for(const auto& ch : choices_) { if (ch == ',') { choice_list.push_back(choice); choice = ""; } else { choice += ch; } } choice_list.push_back(choice); } const std::string& get() const { return choice_list.at(index); } signed getInt() const { return atoi(get().c_str()); } void set(const std::string& value) { for(size_t i = 0; i < choice_list.size(); i++) { if (choice_list[i] == value) { index = i; break; } } } void setInt(signed value) { set(std::to_string(value)); } private: virtual void draw(TRM::Curses& curses, bool active) override { curses.attron(TRM::A_BOLD); Item::draw(curses, active); curses.attroff(TRM::A_BOLD); curses.addstr(" : "); if (active) { curses.attron(TRM::A_REVERSE); } curses.addstr(choice_list.at(index).c_str()); if ((unit != "") && isdigit(choice_list[index][0])) { curses.addch(' '); curses.addstr(unit.c_str()); } if (active) { curses.attroff(TRM::A_REVERSE); } } virtual bool select(std::string& cmd, std::string& value) override { index++; if (index == choice_list.size()) index = 1; cmd = text; value = choice_list.at(index); return true; } const std::string unit; std::vector<std::string> choice_list; size_t index{0}; }; #endif
29.53
114
(translation_unit) "//------------------------------------------------------------------------------\n// Copyright (c) 2016-2019 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n//------------------------------------------------------------------------------\n\n#ifndef SELECTOR_ITEM_H\n#define SELECTOR_ITEM_H\n\n#include <cctype>\n#include <cstdlib>\n#include <vector>\n\n#include "Item.h"\n\nclass SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(" ");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n};\n\n#endif\n" (comment) "//------------------------------------------------------------------------------" (comment) "// Copyright (c) 2016-2019 <NAME>" (comment) "//" (comment) "// Permission is hereby granted, free of charge, to any person obtaining a copy" (comment) "// of this software and associated documentation files (the "Software"), to deal" (comment) "// in the Software without restriction, including without limitation the rights" (comment) "// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" (comment) "// copies of the Software, and to permit persons to whom the Software is" (comment) "// furnished to do so, subject to the following conditions:" (comment) "//" (comment) "// The above copyright notice and this permission notice shall be included in" (comment) "// all copies or substantial portions of the Software." (comment) "//" (comment) "// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" (comment) "// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," (comment) "// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" (comment) "// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" (comment) "// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," (comment) "// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE" (comment) "// SOFTWARE." (comment) "//------------------------------------------------------------------------------" (preproc_ifdef) "#ifndef SELECTOR_ITEM_H\n#define SELECTOR_ITEM_H\n\n#include <cctype>\n#include <cstdlib>\n#include <vector>\n\n#include "Item.h"\n\nclass SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(" ");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "SELECTOR_ITEM_H" (preproc_def) "#define SELECTOR_ITEM_H\n" (#define) "#define" (identifier) "SELECTOR_ITEM_H" (preproc_include) "#include <cctype>\n" (#include) "#include" (system_lib_string) "<cctype>" (preproc_include) "#include <cstdlib>\n" (#include) "#include" (system_lib_string) "<cstdlib>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include "Item.h"\n" (#include) "#include" (string_literal) ""Item.h"" (") """ (string_content) "Item.h" (") """ (function_definition) "class SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(" ");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n}" (type_identifier) "class" (identifier) "SelectorItem" (ERROR) ": public Item" (:) ":" (identifier) "public" (identifier) "Item" (compound_statement) "{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(" ");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n}" ({) "{" (labeled_statement) "public:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")\n : Item(owner, row_,col_, text_)\n , unit(unit_)" (statement_identifier) "public" (ERROR) ":\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")" (:) ":" (call_expression) "SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")" (identifier) "SelectorItem" (argument_list) "(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = "")" (() "(" (binary_expression) "Owner* owner" (identifier) "Owner" (*) "*" (identifier) "owner" (,) "," (identifier) "unsigned" (ERROR) "row_" (identifier) "row_" (,) "," (identifier) "unsigned" (ERROR) "col_" (identifier) "col_" (,) "," (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& text_" (identifier) "string" (&) "&" (identifier) "text_" (,) "," (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& choices_" (identifier) "string" (&) "&" (identifier) "choices_" (,) "," (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& unit_ = """ (identifier) "string" (&) "&" (assignment_expression) "unit_ = """ (identifier) "unit_" (=) "=" (string_literal) """" (") """ (") """ ()) ")" (:) ":" (expression_statement) "Item(owner, row_,col_, text_)\n , unit(unit_)" (comma_expression) "Item(owner, row_,col_, text_)\n , unit(unit_)" (call_expression) "Item(owner, row_,col_, text_)" (identifier) "Item" (argument_list) "(owner, row_,col_, text_)" (() "(" (identifier) "owner" (,) "," (identifier) "row_" (,) "," (identifier) "col_" (,) "," (identifier) "text_" ()) ")" (,) "," (call_expression) "unit(unit_)" (identifier) "unit" (argument_list) "(unit_)" (() "(" (identifier) "unit_" ()) ")" (;) "" (compound_statement) "{\n // First choice, no selection, is a aingle space\n choice_list.push_back(" ");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }" ({) "{" (comment) "// First choice, no selection, is a aingle space" (expression_statement) "choice_list.push_back(" ");" (call_expression) "choice_list.push_back(" ")" (field_expression) "choice_list.push_back" (identifier) "choice_list" (.) "." (field_identifier) "push_back" (argument_list) "(" ")" (() "(" (string_literal) "" "" (") """ (string_content) " " (") """ ()) ")" (;) ";" (labeled_statement) "std::string choice;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string choice;" (type_identifier) "string" (identifier) "choice" (;) ";" (for_statement) "for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = "";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }" (for) "for" (() "(" (declaration) "const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);" (type_qualifier) "const" (const) "const" (storage_class_specifier) "auto" (auto) "auto" (ERROR) "&" (&) "&" (type_identifier) "ch" (ERROR) ": choices_)\n {\n if (ch == ',')\n {\n choice_list." (:) ":" (function_declarator) "choices_)\n {\n if (ch == ',')" (identifier) "choices_" (ERROR) ")\n {\n if" ()) ")" ({) "{" (if) "if" (parameter_list) "(ch == ',')" (() "(" (parameter_declaration) "ch" (type_identifier) "ch" (ERROR) "== ','" (==) "==" (') "'" (,) "," (') "'" ()) ")" ({) "{" (identifier) "choice_list" (.) "." (function_declarator) "push_back(choice)" (identifier) "push_back" (parameter_list) "(choice)" (() "(" (parameter_declaration) "choice" (type_identifier) "choice" ()) ")" (;) ";" (assignment_expression) "choice = """ (identifier) "choice" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (ERROR) "}\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size();" (}) "}" (else) "else" ({) "{" (assignment_expression) "choice += ch" (identifier) "choice" (+=) "+=" (identifier) "ch" (;) ";" (}) "}" (}) "}" (call_expression) "choice_list.push_back(choice)" (field_expression) "choice_list.push_back" (identifier) "choice_list" (.) "." (field_identifier) "push_back" (argument_list) "(choice)" (() "(" (identifier) "choice" ()) ")" (;) ";" (}) "}" (const) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& get() const\n {\n return choice_list.at(index)" (identifier) "string" (&) "&" (ERROR) "get() const\n {\n return" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (call_expression) "choice_list.at(index)" (field_expression) "choice_list.at" (identifier) "choice_list" (.) "." (field_identifier) "at" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (;) ";" (}) "}" (signed) "signed" (call_expression) "getInt()" (identifier) "getInt" (argument_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (call_expression) "atoi(get().c_str())" (identifier) "atoi" (argument_list) "(get().c_str())" (() "(" (call_expression) "get().c_str()" (field_expression) "get().c_str" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (primitive_type) "void" (call_expression) "set(const std::string& value)" (identifier) "set" (argument_list) "(const std::string& value)" (() "(" (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& value" (identifier) "string" (&) "&" (identifier) "value" ()) ")" ({) "{" (for) "for" (() "(" (primitive_type) "size_t" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < choice_list.size()" (identifier) "i" (<) "<" (call_expression) "choice_list.size()" (field_expression) "choice_list.size" (identifier) "choice_list" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }" ({) "{" (if_statement) "if (choice_list[i] == value)\n {\n index = i;\n break;\n }" (if) "if" (parenthesized_expression) "(choice_list[i] == value)" (() "(" (binary_expression) "choice_list[i] == value" (subscript_expression) "choice_list[i]" (identifier) "choice_list" ([) "[" (identifier) "i" (]) "]" (==) "==" (identifier) "value" ()) ")" (compound_statement) "{\n index = i;\n break;\n }" ({) "{" (expression_statement) "index = i;" (assignment_expression) "index = i" (identifier) "index" (=) "=" (identifier) "i" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "void setInt(signed value)\n {\n set(std::to_string(value));\n }" (primitive_type) "void" (function_declarator) "setInt(signed value)" (identifier) "setInt" (parameter_list) "(signed value)" (() "(" (parameter_declaration) "signed value" (sized_type_specifier) "signed" (signed) "signed" (identifier) "value" ()) ")" (compound_statement) "{\n set(std::to_string(value));\n }" ({) "{" (macro_type_specifier) "set(std::to_string(value))" (identifier) "set" (() "(" (ERROR) "std::" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (type_descriptor) "to_string(value)" (type_identifier) "to_string" (abstract_function_declarator) "(value)" (parameter_list) "(value)" (() "(" (parameter_declaration) "value" (type_identifier) "value" ()) ")" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }" (statement_identifier) "private" (:) ":" (ERROR) "virtual void draw(TRM::Curses& curses, bool active) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "draw(TRM::Curses& curses, bool active) override" (identifier) "draw" (parameter_list) "(TRM::Curses& curses, bool active)" (() "(" (parameter_declaration) "TRM::Curses& curses" (type_identifier) "TRM" (ERROR) "::Curses&" (:) ":" (:) ":" (identifier) "Curses" (&) "&" (identifier) "curses" (,) "," (parameter_declaration) "bool active" (primitive_type) "bool" (identifier) "active" ()) ")" (identifier) "override" (compound_statement) "{\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(" : ");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }" ({) "{" (expression_statement) "curses.attron(TRM::A_BOLD);" (call_expression) "curses.attron(TRM::A_BOLD)" (field_expression) "curses.attron" (identifier) "curses" (.) "." (field_identifier) "attron" (argument_list) "(TRM::A_BOLD)" (() "(" (ERROR) "TRM::" (identifier) "TRM" (:) ":" (:) ":" (identifier) "A_BOLD" ()) ")" (;) ";" (labeled_statement) "Item::draw(curses, active);" (statement_identifier) "Item" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "draw(curses, active);" (call_expression) "draw(curses, active)" (identifier) "draw" (argument_list) "(curses, active)" (() "(" (identifier) "curses" (,) "," (identifier) "active" ()) ")" (;) ";" (expression_statement) "curses.attroff(TRM::A_BOLD);" (call_expression) "curses.attroff(TRM::A_BOLD)" (field_expression) "curses.attroff" (identifier) "curses" (.) "." (field_identifier) "attroff" (argument_list) "(TRM::A_BOLD)" (() "(" (ERROR) "TRM::" (identifier) "TRM" (:) ":" (:) ":" (identifier) "A_BOLD" ()) ")" (;) ";" (expression_statement) "curses.addstr(" : ");" (call_expression) "curses.addstr(" : ")" (field_expression) "curses.addstr" (identifier) "curses" (.) "." (field_identifier) "addstr" (argument_list) "(" : ")" (() "(" (string_literal) "" : "" (") """ (string_content) " : " (") """ ()) ")" (;) ";" (if_statement) "if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }" (if) "if" (parenthesized_expression) "(active)" (() "(" (identifier) "active" ()) ")" (compound_statement) "{\n curses.attron(TRM::A_REVERSE);\n }" ({) "{" (expression_statement) "curses.attron(TRM::A_REVERSE);" (call_expression) "curses.attron(TRM::A_REVERSE)" (field_expression) "curses.attron" (identifier) "curses" (.) "." (field_identifier) "attron" (argument_list) "(TRM::A_REVERSE)" (() "(" (ERROR) "TRM::" (identifier) "TRM" (:) ":" (:) ":" (identifier) "A_REVERSE" ()) ")" (;) ";" (}) "}" (expression_statement) "curses.addstr(choice_list.at(index).c_str());" (call_expression) "curses.addstr(choice_list.at(index).c_str())" (field_expression) "curses.addstr" (identifier) "curses" (.) "." (field_identifier) "addstr" (argument_list) "(choice_list.at(index).c_str())" (() "(" (call_expression) "choice_list.at(index).c_str()" (field_expression) "choice_list.at(index).c_str" (call_expression) "choice_list.at(index)" (field_expression) "choice_list.at" (identifier) "choice_list" (.) "." (field_identifier) "at" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (if_statement) "if ((unit != "") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }" (if) "if" (parenthesized_expression) "((unit != "") && isdigit(choice_list[index][0]))" (() "(" (binary_expression) "(unit != "") && isdigit(choice_list[index][0])" (parenthesized_expression) "(unit != "")" (() "(" (binary_expression) "unit != """ (identifier) "unit" (!=) "!=" (string_literal) """" (") """ (") """ ()) ")" (&&) "&&" (call_expression) "isdigit(choice_list[index][0])" (identifier) "isdigit" (argument_list) "(choice_list[index][0])" (() "(" (subscript_expression) "choice_list[index][0]" (subscript_expression) "choice_list[index]" (identifier) "choice_list" ([) "[" (identifier) "index" (]) "]" ([) "[" (number_literal) "0" (]) "]" ()) ")" ()) ")" (compound_statement) "{\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }" ({) "{" (expression_statement) "curses.addch(' ');" (call_expression) "curses.addch(' ')" (field_expression) "curses.addch" (identifier) "curses" (.) "." (field_identifier) "addch" (argument_list) "(' ')" (() "(" (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (;) ";" (expression_statement) "curses.addstr(unit.c_str());" (call_expression) "curses.addstr(unit.c_str())" (field_expression) "curses.addstr" (identifier) "curses" (.) "." (field_identifier) "addstr" (argument_list) "(unit.c_str())" (() "(" (call_expression) "unit.c_str()" (field_expression) "unit.c_str" (identifier) "unit" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (if_statement) "if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }" (if) "if" (parenthesized_expression) "(active)" (() "(" (identifier) "active" ()) ")" (compound_statement) "{\n curses.attroff(TRM::A_REVERSE);\n }" ({) "{" (expression_statement) "curses.attroff(TRM::A_REVERSE);" (call_expression) "curses.attroff(TRM::A_REVERSE)" (field_expression) "curses.attroff" (identifier) "curses" (.) "." (field_identifier) "attroff" (argument_list) "(TRM::A_REVERSE)" (() "(" (ERROR) "TRM::" (identifier) "TRM" (:) ":" (:) ":" (identifier) "A_REVERSE" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "select(std::string& cmd, std::string& value) override" (identifier) "select" (parameter_list) "(std::string& cmd, std::string& value)" (() "(" (parameter_declaration) "std::string& cmd" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "cmd" (,) "," (parameter_declaration) "std::string& value" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "value" ()) ")" (identifier) "override" (compound_statement) "{\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }" ({) "{" (expression_statement) "index++;" (update_expression) "index++" (identifier) "index" (++) "++" (;) ";" (if_statement) "if (index == choice_list.size()) index = 1;" (if) "if" (parenthesized_expression) "(index == choice_list.size())" (() "(" (binary_expression) "index == choice_list.size()" (identifier) "index" (==) "==" (call_expression) "choice_list.size()" (field_expression) "choice_list.size" (identifier) "choice_list" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (expression_statement) "index = 1;" (assignment_expression) "index = 1" (identifier) "index" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "cmd = text;" (assignment_expression) "cmd = text" (identifier) "cmd" (=) "=" (identifier) "text" (;) ";" (expression_statement) "value = choice_list.at(index);" (assignment_expression) "value = choice_list.at(index)" (identifier) "value" (=) "=" (call_expression) "choice_list.at(index)" (field_expression) "choice_list.at" (identifier) "choice_list" (.) "." (field_identifier) "at" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (declaration) "const std::string unit;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "unit" (;) ";" (labeled_statement) "std::vector<std::string> choice_list;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> choice_list;" (binary_expression) "string> choice_list" (identifier) "string" (>) ">" (identifier) "choice_list" (;) ";" (function_definition) "size_t index{0}" (primitive_type) "size_t" (identifier) "index" (compound_statement) "{0}" ({) "{" (ERROR) "0" (number_literal) "0" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
730
30
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 29.53, "nodes": 392, "errors": 0, "source_hash": "75cd7a890e1f7623ff47beee6ea168f0f0bdb6cfa4bebae9564bb0bbbf138652", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SELECTOR_ITEM_H\n#define SELECTOR_ITEM_H\n\n#include <cctype>\n#include <cstdlib>\n#include <vector>\n\n#include \"Item.h\"\n\nclass SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(\" \");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = \"\";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(\" : \");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != \"\") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 391], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 132, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 2, "type": "identifier", "text": "SELECTOR_ITEM_H", "parent": 0, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 23}}, {"id": 3, "type": "preproc_def", "text": "#define SELECTOR_ITEM_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 5, "type": "identifier", "text": "SELECTOR_ITEM_H", "parent": 3, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include <cctype>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<cctype>", "parent": 6, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <cstdlib>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<cstdlib>", "parent": 9, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<vector>", "parent": 12, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include \"Item.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"Item.h\"", "parent": 15, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 17}}, {"id": 18, "type": "function_definition", "text": "class SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(\" \");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = \"\";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(\" : \");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != \"\") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 130, "column": 1}}, {"id": 19, "type": "identifier", "text": "SelectorItem", "parent": 18, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 18}}, {"id": 20, "type": "ERROR", "text": ": public Item", "parent": 18, "children": [21], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 32}}, {"id": 21, "type": "identifier", "text": "Item", "parent": 20, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 32}}, {"id": 22, "type": "labeled_statement", "text": "public:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")\n : Item(owner, row_,col_, text_)\n , unit(unit_)", "parent": 18, "children": [23], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 41, "column": 19}}, {"id": 23, "type": "ERROR", "text": ":\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")", "parent": 22, "children": [24], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 39, "column": 46}}, {"id": 24, "type": "call_expression", "text": "SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")", "parent": 23, "children": [25, 26], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 39, "column": 46}}, {"id": 25, "type": "identifier", "text": "SelectorItem", "parent": 24, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 15}}, {"id": 26, "type": "argument_list", "text": "(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")", "parent": 24, "children": [27, 31, 32, 34, 35, 37, 39, 42, 44, 47, 49], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 39, "column": 46}}, {"id": 27, "type": "binary_expression", "text": "Owner* owner", "parent": 26, "children": [28, 29, 30], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 40}}, {"id": 28, "type": "identifier", "text": "Owner", "parent": 27, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 21}}, {"id": 29, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 30, "type": "identifier", "text": "owner", "parent": 27, "children": [], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 40}}, {"id": 31, "type": "identifier", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 24}}, {"id": 32, "type": "ERROR", "text": "row_", "parent": 26, "children": [33], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 39}}, {"id": 33, "type": "identifier", "text": "row_", "parent": 32, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 39}}, {"id": 34, "type": "identifier", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 24}}, {"id": 35, "type": "ERROR", "text": "col_", "parent": 26, "children": [36], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 39}}, {"id": 36, "type": "identifier", "text": "col_", "parent": 35, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 39}}, {"id": 37, "type": "ERROR", "text": "const std::", "parent": 26, "children": [38], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 27}}, {"id": 38, "type": "identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 25}}, {"id": 39, "type": "binary_expression", "text": "string& text_", "parent": 26, "children": [40, 41], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 40}}, {"id": 40, "type": "identifier", "text": "string", "parent": 39, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 33}}, {"id": 41, "type": "identifier", "text": "text_", "parent": 39, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 40}}, {"id": 42, "type": "ERROR", "text": "const std::", "parent": 26, "children": [43], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 27}}, {"id": 43, "type": "identifier", "text": "std", "parent": 42, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 25}}, {"id": 44, "type": "binary_expression", "text": "string& choices_", "parent": 26, "children": [45, 46], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 43}}, {"id": 45, "type": "identifier", "text": "string", "parent": 44, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 33}}, {"id": 46, "type": "identifier", "text": "choices_", "parent": 44, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 43}}, {"id": 47, "type": "ERROR", "text": "const std::", "parent": 26, "children": [48], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 27}}, {"id": 48, "type": "identifier", "text": "std", "parent": 47, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 25}}, {"id": 49, "type": "binary_expression", "text": "string& unit_ = \"\"", "parent": 26, "children": [50, 51], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 45}}, {"id": 50, "type": "identifier", "text": "string", "parent": 49, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 33}}, {"id": 51, "type": "assignment_expression", "text": "unit_ = \"\"", "parent": 49, "children": [52, 53, 54], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 45}}, {"id": 52, "type": "identifier", "text": "unit_", "parent": 51, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 40}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 42}}, {"id": 54, "type": "string_literal", "text": "\"\"", "parent": 51, "children": [], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 45}}, {"id": 55, "type": "comma_expression", "text": "Item(owner, row_,col_, text_)\n , unit(unit_)", "parent": 22, "children": [56, 63], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 56, "type": "call_expression", "text": "Item(owner, row_,col_, text_)", "parent": 55, "children": [57, 58], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 37}}, {"id": 57, "type": "identifier", "text": "Item", "parent": 56, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 58, "type": "argument_list", "text": "(owner, row_,col_, text_)", "parent": 56, "children": [59, 60, 61, 62], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 37}}, {"id": 59, "type": "identifier", "text": "owner", "parent": 58, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 18}}, {"id": 60, "type": "identifier", "text": "row_", "parent": 58, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 24}}, {"id": 61, "type": "identifier", "text": "col_", "parent": 58, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 29}}, {"id": 62, "type": "identifier", "text": "text_", "parent": 58, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 36}}, {"id": 63, "type": "call_expression", "text": "unit(unit_)", "parent": 55, "children": [64, 65], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 64, "type": "identifier", "text": "unit", "parent": 63, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 65, "type": "argument_list", "text": "(unit_)", "parent": 63, "children": [66], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 19}}, {"id": 66, "type": "identifier", "text": "unit_", "parent": 65, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 18}}, {"id": 67, "type": "call_expression", "text": "choice_list.push_back(\" \")", "parent": 18, "children": [68, 71], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 32}}, {"id": 68, "type": "field_expression", "text": "choice_list.push_back", "parent": 67, "children": [69, 70], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 27}}, {"id": 69, "type": "identifier", "text": "choice_list", "parent": 68, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 17}}, {"id": 70, "type": "field_identifier", "text": "push_back", "parent": 68, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 27}}, {"id": 71, "type": "argument_list", "text": "(\" \")", "parent": 67, "children": [72], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 32}}, {"id": 72, "type": "string_literal", "text": "\" \"", "parent": 71, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 31}}, {"id": 73, "type": "labeled_statement", "text": "std::string choice;", "parent": 18, "children": [74, 75], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 25}}, {"id": 74, "type": "statement_identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 9}}, {"id": 75, "type": "declaration", "text": "string choice;", "parent": 73, "children": [76, 77], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 25}}, {"id": 76, "type": "type_identifier", "text": "string", "parent": 75, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 17}}, {"id": 77, "type": "identifier", "text": "choice", "parent": 75, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 24}}, {"id": 78, "type": "for_statement", "text": "for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = \"\";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }", "parent": 18, "children": [79, 100, 104, 164], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 81, "column": 7}}, {"id": 79, "type": "declaration", "text": "const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);", "parent": 78, "children": [80, 82, 83, 95], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 51, "column": 42}}, {"id": 80, "type": "storage_class_specifier", "text": "auto", "parent": 79, "children": [81], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 81, "type": "auto", "text": "auto", "parent": 80, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 82, "type": "type_identifier", "text": "ch", "parent": 79, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 24}}, {"id": 83, "type": "ERROR", "text": ": choices_)\n {\n if (ch == ',')\n {\n choice_list.", "parent": 79, "children": [84, 94], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 51, "column": 24}}, {"id": 84, "type": "function_declarator", "text": "choices_)\n {\n if (ch == ',')", "parent": 83, "children": [85, 86, 87], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 49, "column": 23}}, {"id": 85, "type": "identifier", "text": "choices_", "parent": 84, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 35}}, {"id": 86, "type": "ERROR", "text": ")\n {\n if", "parent": 84, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 49, "column": 11}}, {"id": 87, "type": "parameter_list", "text": "(ch == ',')", "parent": 84, "children": [88, 90], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 23}}, {"id": 88, "type": "parameter_declaration", "text": "ch", "parent": 87, "children": [89], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 15}}, {"id": 89, "type": "type_identifier", "text": "ch", "parent": 88, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 15}}, {"id": 90, "type": "ERROR", "text": "== ','", "parent": 87, "children": [91, 92, 93], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 22}}, {"id": 91, "type": "==", "text": "==", "parent": 90, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 18}}, {"id": 92, "type": "'", "text": "'", "parent": 90, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 93, "type": "'", "text": "'", "parent": 90, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 94, "type": "identifier", "text": "choice_list", "parent": 83, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 23}}, {"id": 95, "type": "function_declarator", "text": "push_back(choice)", "parent": 79, "children": [96, 97], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 41}}, {"id": 96, "type": "identifier", "text": "push_back", "parent": 95, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 33}}, {"id": 97, "type": "parameter_list", "text": "(choice)", "parent": 95, "children": [98], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 41}}, {"id": 98, "type": "parameter_declaration", "text": "choice", "parent": 97, "children": [99], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 40}}, {"id": 99, "type": "type_identifier", "text": "choice", "parent": 98, "children": [], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 40}}, {"id": 100, "type": "assignment_expression", "text": "choice = \"\"", "parent": 78, "children": [101, 102, 103], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 23}}, {"id": 101, "type": "identifier", "text": "choice", "parent": 100, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 18}}, {"id": 102, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 20}}, {"id": 103, "type": "string_literal", "text": "\"\"", "parent": 100, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 23}}, {"id": 104, "type": "ERROR", "text": "}\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size();", "parent": 78, "children": [105, 109, 115, 116, 128, 129, 132, 142, 143, 151, 152, 156], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 74, "column": 47}}, {"id": 105, "type": "assignment_expression", "text": "choice += ch", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 24}}, {"id": 106, "type": "identifier", "text": "choice", "parent": 105, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 18}}, {"id": 107, "type": "+=", "text": "+=", "parent": 105, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 21}}, {"id": 108, "type": "identifier", "text": "ch", "parent": 105, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 24}}, {"id": 109, "type": "call_expression", "text": "choice_list.push_back(choice)", "parent": 104, "children": [110, 113], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 35}}, {"id": 110, "type": "field_expression", "text": "choice_list.push_back", "parent": 109, "children": [111, 112], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 27}}, {"id": 111, "type": "identifier", "text": "choice_list", "parent": 110, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 17}}, {"id": 112, "type": "field_identifier", "text": "push_back", "parent": 110, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 27}}, {"id": 113, "type": "argument_list", "text": "(choice)", "parent": 109, "children": [114], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 35}}, {"id": 114, "type": "identifier", "text": "choice", "parent": 113, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 34}}, {"id": 115, "type": "identifier", "text": "std", "parent": 104, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 12}}, {"id": 116, "type": "binary_expression", "text": "string& get() const\n {\n return choice_list.at(index)", "parent": 104, "children": [117, 118, 122], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 64, "column": 34}}, {"id": 117, "type": "identifier", "text": "string", "parent": 116, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 20}}, {"id": 118, "type": "ERROR", "text": "get() const\n {\n return", "parent": 116, "children": [119], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 64, "column": 12}}, {"id": 119, "type": "call_expression", "text": "get()", "parent": 118, "children": [120, 121], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 27}}, {"id": 120, "type": "identifier", "text": "get", "parent": 119, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 25}}, {"id": 121, "type": "argument_list", "text": "()", "parent": 119, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 27}}, {"id": 122, "type": "call_expression", "text": "choice_list.at(index)", "parent": 116, "children": [123, 126], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 34}}, {"id": 123, "type": "field_expression", "text": "choice_list.at", "parent": 122, "children": [124, 125], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 27}}, {"id": 124, "type": "identifier", "text": "choice_list", "parent": 123, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 24}}, {"id": 125, "type": "field_identifier", "text": "at", "parent": 123, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 27}}, {"id": 126, "type": "argument_list", "text": "(index)", "parent": 122, "children": [127], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 34}}, {"id": 127, "type": "identifier", "text": "index", "parent": 126, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 33}}, {"id": 128, "type": "signed", "text": "signed", "parent": 104, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 9}}, {"id": 129, "type": "call_expression", "text": "getInt()", "parent": 104, "children": [130, 131], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 18}}, {"id": 130, "type": "identifier", "text": "getInt", "parent": 129, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 16}}, {"id": 131, "type": "argument_list", "text": "()", "parent": 129, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 18}}, {"id": 132, "type": "call_expression", "text": "atoi(get().c_str())", "parent": 104, "children": [133, 134], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 32}}, {"id": 133, "type": "identifier", "text": "atoi", "parent": 132, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 134, "type": "argument_list", "text": "(get().c_str())", "parent": 132, "children": [135], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 32}}, {"id": 135, "type": "call_expression", "text": "get().c_str()", "parent": 134, "children": [136, 141], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 31}}, {"id": 136, "type": "field_expression", "text": "get().c_str", "parent": 135, "children": [137, 140], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 29}}, {"id": 137, "type": "call_expression", "text": "get()", "parent": 136, "children": [138, 139], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 23}}, {"id": 138, "type": "identifier", "text": "get", "parent": 137, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 21}}, {"id": 139, "type": "argument_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 23}}, {"id": 140, "type": "field_identifier", "text": "c_str", "parent": 136, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 29}}, {"id": 141, "type": "argument_list", "text": "()", "parent": 135, "children": [], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 31}}, {"id": 142, "type": "primitive_type", "text": "void", "parent": 104, "children": [], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 7}}, {"id": 143, "type": "call_expression", "text": "set(const std::string& value)", "parent": 104, "children": [144, 145], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 37}}, {"id": 144, "type": "identifier", "text": "set", "parent": 143, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 11}}, {"id": 145, "type": "argument_list", "text": "(const std::string& value)", "parent": 143, "children": [146, 148], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 37}}, {"id": 146, "type": "ERROR", "text": "const std::", "parent": 145, "children": [147], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 23}}, {"id": 147, "type": "identifier", "text": "std", "parent": 146, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 21}}, {"id": 148, "type": "binary_expression", "text": "string& value", "parent": 145, "children": [149, 150], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 36}}, {"id": 149, "type": "identifier", "text": "string", "parent": 148, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 29}}, {"id": 150, "type": "identifier", "text": "value", "parent": 148, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 36}}, {"id": 151, "type": "primitive_type", "text": "size_t", "parent": 104, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 16}}, {"id": 152, "type": "assignment_expression", "text": "i = 0", "parent": 104, "children": [153, 154, 155], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 22}}, {"id": 153, "type": "identifier", "text": "i", "parent": 152, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 155, "type": "number_literal", "text": "0", "parent": 152, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 156, "type": "binary_expression", "text": "i < choice_list.size()", "parent": 104, "children": [157, 158, 159], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 46}}, {"id": 157, "type": "identifier", "text": "i", "parent": 156, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 25}}, {"id": 158, "type": "<", "text": "<", "parent": 156, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 27}}, {"id": 159, "type": "call_expression", "text": "choice_list.size()", "parent": 156, "children": [160, 163], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 46}}, {"id": 160, "type": "field_expression", "text": "choice_list.size", "parent": 159, "children": [161, 162], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 44}}, {"id": 161, "type": "identifier", "text": "choice_list", "parent": 160, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 39}}, {"id": 162, "type": "field_identifier", "text": "size", "parent": 160, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 44}}, {"id": 163, "type": "argument_list", "text": "()", "parent": 159, "children": [], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 46}}, {"id": 164, "type": "update_expression", "text": "i++", "parent": 78, "children": [165, 166], "start_point": {"row": 74, "column": 48}, "end_point": {"row": 74, "column": 51}}, {"id": 165, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 74, "column": 48}, "end_point": {"row": 74, "column": 49}}, {"id": 166, "type": "++", "text": "++", "parent": 164, "children": [], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 51}}, {"id": 167, "type": "if_statement", "text": "if (choice_list[i] == value)\n {\n index = i;\n break;\n }", "parent": 78, "children": [168], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 80, "column": 10}}, {"id": 168, "type": "parenthesized_expression", "text": "(choice_list[i] == value)", "parent": 167, "children": [169], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 37}}, {"id": 169, "type": "binary_expression", "text": "choice_list[i] == value", "parent": 168, "children": [170, 173, 174], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 36}}, {"id": 170, "type": "subscript_expression", "text": "choice_list[i]", "parent": 169, "children": [171, 172], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 27}}, {"id": 171, "type": "identifier", "text": "choice_list", "parent": 170, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 24}}, {"id": 172, "type": "identifier", "text": "i", "parent": 170, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 26}}, {"id": 173, "type": "==", "text": "==", "parent": 169, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 30}}, {"id": 174, "type": "identifier", "text": "value", "parent": 169, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 36}}, {"id": 175, "type": "assignment_expression", "text": "index = i", "parent": 167, "children": [176, 177, 178], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 21}}, {"id": 176, "type": "identifier", "text": "index", "parent": 175, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 17}}, {"id": 177, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 19}}, {"id": 178, "type": "identifier", "text": "i", "parent": 175, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 21}}, {"id": 179, "type": "break_statement", "text": "break;", "parent": 167, "children": [180], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 18}}, {"id": 180, "type": "break", "text": "break", "parent": 179, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 17}}, {"id": 181, "type": "function_definition", "text": "void setInt(signed value)\n {\n set(std::to_string(value));\n }", "parent": 18, "children": [182, 183], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 87, "column": 4}}, {"id": 182, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 7}}, {"id": 183, "type": "function_declarator", "text": "setInt(signed value)", "parent": 181, "children": [184, 185], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 28}}, {"id": 184, "type": "identifier", "text": "setInt", "parent": 183, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 14}}, {"id": 185, "type": "parameter_list", "text": "(signed value)", "parent": 183, "children": [186], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 28}}, {"id": 186, "type": "parameter_declaration", "text": "signed value", "parent": 185, "children": [187, 189], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 27}}, {"id": 187, "type": "sized_type_specifier", "text": "signed", "parent": 186, "children": [188], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 21}}, {"id": 188, "type": "signed", "text": "signed", "parent": 187, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 21}}, {"id": 189, "type": "identifier", "text": "value", "parent": 186, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 27}}, {"id": 190, "type": "macro_type_specifier", "text": "set(std::to_string(value))", "parent": 181, "children": [191, 192, 195], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 32}}, {"id": 191, "type": "identifier", "text": "set", "parent": 190, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 9}}, {"id": 192, "type": "ERROR", "text": "std::", "parent": 190, "children": [193], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 15}}, {"id": 193, "type": "type_descriptor", "text": "std", "parent": 192, "children": [194], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 13}}, {"id": 194, "type": "type_identifier", "text": "std", "parent": 193, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 13}}, {"id": 195, "type": "type_descriptor", "text": "to_string(value)", "parent": 190, "children": [196, 197], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 31}}, {"id": 196, "type": "type_identifier", "text": "to_string", "parent": 195, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 24}}, {"id": 197, "type": "abstract_function_declarator", "text": "(value)", "parent": 195, "children": [198], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 31}}, {"id": 198, "type": "parameter_list", "text": "(value)", "parent": 197, "children": [199], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 31}}, {"id": 199, "type": "parameter_declaration", "text": "value", "parent": 198, "children": [200], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 30}}, {"id": 200, "type": "type_identifier", "text": "value", "parent": 199, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 30}}, {"id": 201, "type": "labeled_statement", "text": "private:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(\" : \");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != \"\") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }", "parent": 18, "children": [202], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 115, "column": 4}}, {"id": 202, "type": "ERROR", "text": "virtual void draw(TRM::Curses& curses, bool active) override", "parent": 201, "children": [203, 204, 206], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 63}}, {"id": 203, "type": "type_identifier", "text": "virtual", "parent": 202, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 10}}, {"id": 204, "type": "ERROR", "text": "void", "parent": 202, "children": [205], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 15}}, {"id": 205, "type": "identifier", "text": "void", "parent": 204, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 15}}, {"id": 206, "type": "function_declarator", "text": "draw(TRM::Curses& curses, bool active) override", "parent": 202, "children": [207, 208, 217], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 63}}, {"id": 207, "type": "identifier", "text": "draw", "parent": 206, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 20}}, {"id": 208, "type": "parameter_list", "text": "(TRM::Curses& curses, bool active)", "parent": 206, "children": [209, 214], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 54}}, {"id": 209, "type": "parameter_declaration", "text": "TRM::Curses& curses", "parent": 208, "children": [210, 211, 213], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 40}}, {"id": 210, "type": "type_identifier", "text": "TRM", "parent": 209, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 24}}, {"id": 211, "type": "ERROR", "text": "::Curses&", "parent": 209, "children": [212], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 33}}, {"id": 212, "type": "identifier", "text": "Curses", "parent": 211, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 32}}, {"id": 213, "type": "identifier", "text": "curses", "parent": 209, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 40}}, {"id": 214, "type": "parameter_declaration", "text": "bool active", "parent": 208, "children": [215, 216], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 53}}, {"id": 215, "type": "primitive_type", "text": "bool", "parent": 214, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 46}}, {"id": 216, "type": "identifier", "text": "active", "parent": 214, "children": [], "start_point": {"row": 90, "column": 47}, "end_point": {"row": 90, "column": 53}}, {"id": 217, "type": "identifier", "text": "override", "parent": 206, "children": [], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 63}}, {"id": 218, "type": "call_expression", "text": "curses.attron(TRM::A_BOLD)", "parent": 201, "children": [219, 222], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 32}}, {"id": 219, "type": "field_expression", "text": "curses.attron", "parent": 218, "children": [220, 221], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 19}}, {"id": 220, "type": "identifier", "text": "curses", "parent": 219, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 12}}, {"id": 221, "type": "field_identifier", "text": "attron", "parent": 219, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 19}}, {"id": 222, "type": "argument_list", "text": "(TRM::A_BOLD)", "parent": 218, "children": [223, 225], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 32}}, {"id": 223, "type": "ERROR", "text": "TRM::", "parent": 222, "children": [224], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 25}}, {"id": 224, "type": "identifier", "text": "TRM", "parent": 223, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 23}}, {"id": 225, "type": "identifier", "text": "A_BOLD", "parent": 222, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 31}}, {"id": 226, "type": "labeled_statement", "text": "Item::draw(curses, active);", "parent": 201, "children": [227], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 33}}, {"id": 227, "type": "statement_identifier", "text": "Item", "parent": 226, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 10}}, {"id": 228, "type": "call_expression", "text": "draw(curses, active)", "parent": 226, "children": [229, 230], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 32}}, {"id": 229, "type": "identifier", "text": "draw", "parent": 228, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 230, "type": "argument_list", "text": "(curses, active)", "parent": 228, "children": [231, 232], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 32}}, {"id": 231, "type": "identifier", "text": "curses", "parent": 230, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 23}}, {"id": 232, "type": "identifier", "text": "active", "parent": 230, "children": [], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 31}}, {"id": 233, "type": "call_expression", "text": "curses.attroff(TRM::A_BOLD)", "parent": 201, "children": [234, 237], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 33}}, {"id": 234, "type": "field_expression", "text": "curses.attroff", "parent": 233, "children": [235, 236], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 20}}, {"id": 235, "type": "identifier", "text": "curses", "parent": 234, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 12}}, {"id": 236, "type": "field_identifier", "text": "attroff", "parent": 234, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 20}}, {"id": 237, "type": "argument_list", "text": "(TRM::A_BOLD)", "parent": 233, "children": [238, 240], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 33}}, {"id": 238, "type": "ERROR", "text": "TRM::", "parent": 237, "children": [239], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 26}}, {"id": 239, "type": "identifier", "text": "TRM", "parent": 238, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 24}}, {"id": 240, "type": "identifier", "text": "A_BOLD", "parent": 237, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 32}}, {"id": 241, "type": "call_expression", "text": "curses.addstr(\" : \")", "parent": 201, "children": [242, 245], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 26}}, {"id": 242, "type": "field_expression", "text": "curses.addstr", "parent": 241, "children": [243, 244], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 19}}, {"id": 243, "type": "identifier", "text": "curses", "parent": 242, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 12}}, {"id": 244, "type": "field_identifier", "text": "addstr", "parent": 242, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 19}}, {"id": 245, "type": "argument_list", "text": "(\" : \")", "parent": 241, "children": [246], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 26}}, {"id": 246, "type": "string_literal", "text": "\" : \"", "parent": 245, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 25}}, {"id": 247, "type": "if_statement", "text": "if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }", "parent": 201, "children": [248], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 101, "column": 7}}, {"id": 248, "type": "parenthesized_expression", "text": "(active)", "parent": 247, "children": [249], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 17}}, {"id": 249, "type": "identifier", "text": "active", "parent": 248, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 16}}, {"id": 250, "type": "call_expression", "text": "curses.attron(TRM::A_REVERSE)", "parent": 247, "children": [251, 254], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 38}}, {"id": 251, "type": "field_expression", "text": "curses.attron", "parent": 250, "children": [252, 253], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 22}}, {"id": 252, "type": "identifier", "text": "curses", "parent": 251, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 15}}, {"id": 253, "type": "field_identifier", "text": "attron", "parent": 251, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 22}}, {"id": 254, "type": "argument_list", "text": "(TRM::A_REVERSE)", "parent": 250, "children": [255, 257], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 38}}, {"id": 255, "type": "ERROR", "text": "TRM::", "parent": 254, "children": [256], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 28}}, {"id": 256, "type": "identifier", "text": "TRM", "parent": 255, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 26}}, {"id": 257, "type": "identifier", "text": "A_REVERSE", "parent": 254, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 37}}, {"id": 258, "type": "call_expression", "text": "curses.addstr(choice_list.at(index).c_str())", "parent": 201, "children": [259, 262], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 50}}, {"id": 259, "type": "field_expression", "text": "curses.addstr", "parent": 258, "children": [260, 261], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 19}}, {"id": 260, "type": "identifier", "text": "curses", "parent": 259, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 12}}, {"id": 261, "type": "field_identifier", "text": "addstr", "parent": 259, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 19}}, {"id": 262, "type": "argument_list", "text": "(choice_list.at(index).c_str())", "parent": 258, "children": [263], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 50}}, {"id": 263, "type": "call_expression", "text": "choice_list.at(index).c_str()", "parent": 262, "children": [264, 272], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 49}}, {"id": 264, "type": "field_expression", "text": "choice_list.at(index).c_str", "parent": 263, "children": [265, 271], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 47}}, {"id": 265, "type": "call_expression", "text": "choice_list.at(index)", "parent": 264, "children": [266, 269], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 41}}, {"id": 266, "type": "field_expression", "text": "choice_list.at", "parent": 265, "children": [267, 268], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 34}}, {"id": 267, "type": "identifier", "text": "choice_list", "parent": 266, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 31}}, {"id": 268, "type": "field_identifier", "text": "at", "parent": 266, "children": [], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 34}}, {"id": 269, "type": "argument_list", "text": "(index)", "parent": 265, "children": [270], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 41}}, {"id": 270, "type": "identifier", "text": "index", "parent": 269, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 40}}, {"id": 271, "type": "field_identifier", "text": "c_str", "parent": 264, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 47}}, {"id": 272, "type": "argument_list", "text": "()", "parent": 263, "children": [], "start_point": {"row": 103, "column": 47}, "end_point": {"row": 103, "column": 49}}, {"id": 273, "type": "if_statement", "text": "if ((unit != \"\") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }", "parent": 201, "children": [274], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 109, "column": 7}}, {"id": 274, "type": "parenthesized_expression", "text": "((unit != \"\") && isdigit(choice_list[index][0]))", "parent": 273, "children": [275], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 57}}, {"id": 275, "type": "binary_expression", "text": "(unit != \"\") && isdigit(choice_list[index][0])", "parent": 274, "children": [276, 281, 282], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 56}}, {"id": 276, "type": "parenthesized_expression", "text": "(unit != \"\")", "parent": 275, "children": [277], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 22}}, {"id": 277, "type": "binary_expression", "text": "unit != \"\"", "parent": 276, "children": [278, 279, 280], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 21}}, {"id": 278, "type": "identifier", "text": "unit", "parent": 277, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 15}}, {"id": 279, "type": "!=", "text": "!=", "parent": 277, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 18}}, {"id": 280, "type": "string_literal", "text": "\"\"", "parent": 277, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 21}}, {"id": 281, "type": "&&", "text": "&&", "parent": 275, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 25}}, {"id": 282, "type": "call_expression", "text": "isdigit(choice_list[index][0])", "parent": 275, "children": [283, 284], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 56}}, {"id": 283, "type": "identifier", "text": "isdigit", "parent": 282, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 33}}, {"id": 284, "type": "argument_list", "text": "(choice_list[index][0])", "parent": 282, "children": [285], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 56}}, {"id": 285, "type": "subscript_expression", "text": "choice_list[index][0]", "parent": 284, "children": [286, 289], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 55}}, {"id": 286, "type": "subscript_expression", "text": "choice_list[index]", "parent": 285, "children": [287, 288], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 52}}, {"id": 287, "type": "identifier", "text": "choice_list", "parent": 286, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 45}}, {"id": 288, "type": "identifier", "text": "index", "parent": 286, "children": [], "start_point": {"row": 105, "column": 46}, "end_point": {"row": 105, "column": 51}}, {"id": 289, "type": "number_literal", "text": "0", "parent": 285, "children": [], "start_point": {"row": 105, "column": 53}, "end_point": {"row": 105, "column": 54}}, {"id": 290, "type": "call_expression", "text": "curses.addch(' ')", "parent": 273, "children": [291, 294], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 26}}, {"id": 291, "type": "field_expression", "text": "curses.addch", "parent": 290, "children": [292, 293], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 21}}, {"id": 292, "type": "identifier", "text": "curses", "parent": 291, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 15}}, {"id": 293, "type": "field_identifier", "text": "addch", "parent": 291, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 21}}, {"id": 294, "type": "argument_list", "text": "(' ')", "parent": 290, "children": [295], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 26}}, {"id": 295, "type": "char_literal", "text": "' '", "parent": 294, "children": [296, 297, 298], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 25}}, {"id": 296, "type": "'", "text": "'", "parent": 295, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 23}}, {"id": 297, "type": "character", "text": " ", "parent": 295, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 24}}, {"id": 298, "type": "'", "text": "'", "parent": 295, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 25}}, {"id": 299, "type": "call_expression", "text": "curses.addstr(unit.c_str())", "parent": 273, "children": [300, 303], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 36}}, {"id": 300, "type": "field_expression", "text": "curses.addstr", "parent": 299, "children": [301, 302], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 22}}, {"id": 301, "type": "identifier", "text": "curses", "parent": 300, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 15}}, {"id": 302, "type": "field_identifier", "text": "addstr", "parent": 300, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 22}}, {"id": 303, "type": "argument_list", "text": "(unit.c_str())", "parent": 299, "children": [304], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 36}}, {"id": 304, "type": "call_expression", "text": "unit.c_str()", "parent": 303, "children": [305, 308], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 35}}, {"id": 305, "type": "field_expression", "text": "unit.c_str", "parent": 304, "children": [306, 307], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 33}}, {"id": 306, "type": "identifier", "text": "unit", "parent": 305, "children": [], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 27}}, {"id": 307, "type": "field_identifier", "text": "c_str", "parent": 305, "children": [], "start_point": {"row": 108, "column": 28}, "end_point": {"row": 108, "column": 33}}, {"id": 308, "type": "argument_list", "text": "()", "parent": 304, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 35}}, {"id": 309, "type": "if_statement", "text": "if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }", "parent": 201, "children": [310], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 114, "column": 7}}, {"id": 310, "type": "parenthesized_expression", "text": "(active)", "parent": 309, "children": [311], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 17}}, {"id": 311, "type": "identifier", "text": "active", "parent": 310, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 16}}, {"id": 312, "type": "call_expression", "text": "curses.attroff(TRM::A_REVERSE)", "parent": 309, "children": [313, 316], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 39}}, {"id": 313, "type": "field_expression", "text": "curses.attroff", "parent": 312, "children": [314, 315], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 23}}, {"id": 314, "type": "identifier", "text": "curses", "parent": 313, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 15}}, {"id": 315, "type": "field_identifier", "text": "attroff", "parent": 313, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 23}}, {"id": 316, "type": "argument_list", "text": "(TRM::A_REVERSE)", "parent": 312, "children": [317, 319], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 39}}, {"id": 317, "type": "ERROR", "text": "TRM::", "parent": 316, "children": [318], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 29}}, {"id": 318, "type": "identifier", "text": "TRM", "parent": 317, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 27}}, {"id": 319, "type": "identifier", "text": "A_REVERSE", "parent": 316, "children": [], "start_point": {"row": 113, "column": 29}, "end_point": {"row": 113, "column": 38}}, {"id": 320, "type": "function_definition", "text": "virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }", "parent": 18, "children": [321, 322, 324], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 125, "column": 4}}, {"id": 321, "type": "type_identifier", "text": "virtual", "parent": 320, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 10}}, {"id": 322, "type": "ERROR", "text": "bool", "parent": 320, "children": [323], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 15}}, {"id": 323, "type": "identifier", "text": "bool", "parent": 322, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 15}}, {"id": 324, "type": "function_declarator", "text": "select(std::string& cmd, std::string& value) override", "parent": 320, "children": [325, 326, 337], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 69}}, {"id": 325, "type": "identifier", "text": "select", "parent": 324, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 22}}, {"id": 326, "type": "parameter_list", "text": "(std::string& cmd, std::string& value)", "parent": 324, "children": [327, 332], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 60}}, {"id": 327, "type": "parameter_declaration", "text": "std::string& cmd", "parent": 326, "children": [328, 329, 331], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 39}}, {"id": 328, "type": "type_identifier", "text": "std", "parent": 327, "children": [], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 26}}, {"id": 329, "type": "ERROR", "text": "::string&", "parent": 327, "children": [330], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 35}}, {"id": 330, "type": "identifier", "text": "string", "parent": 329, "children": [], "start_point": {"row": 117, "column": 28}, "end_point": {"row": 117, "column": 34}}, {"id": 331, "type": "identifier", "text": "cmd", "parent": 327, "children": [], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 39}}, {"id": 332, "type": "parameter_declaration", "text": "std::string& value", "parent": 326, "children": [333, 334, 336], "start_point": {"row": 117, "column": 41}, "end_point": {"row": 117, "column": 59}}, {"id": 333, "type": "type_identifier", "text": "std", "parent": 332, "children": [], "start_point": {"row": 117, "column": 41}, "end_point": {"row": 117, "column": 44}}, {"id": 334, "type": "ERROR", "text": "::string&", "parent": 332, "children": [335], "start_point": {"row": 117, "column": 44}, "end_point": {"row": 117, "column": 53}}, {"id": 335, "type": "identifier", "text": "string", "parent": 334, "children": [], "start_point": {"row": 117, "column": 46}, "end_point": {"row": 117, "column": 52}}, {"id": 336, "type": "identifier", "text": "value", "parent": 332, "children": [], "start_point": {"row": 117, "column": 54}, "end_point": {"row": 117, "column": 59}}, {"id": 337, "type": "identifier", "text": "override", "parent": 324, "children": [], "start_point": {"row": 117, "column": 61}, "end_point": {"row": 117, "column": 69}}, {"id": 338, "type": "update_expression", "text": "index++", "parent": 320, "children": [339, 340], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 13}}, {"id": 339, "type": "identifier", "text": "index", "parent": 338, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 11}}, {"id": 340, "type": "++", "text": "++", "parent": 338, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 13}}, {"id": 341, "type": "if_statement", "text": "if (index == choice_list.size()) index = 1;", "parent": 320, "children": [342], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 49}}, {"id": 342, "type": "parenthesized_expression", "text": "(index == choice_list.size())", "parent": 341, "children": [343], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 38}}, {"id": 343, "type": "binary_expression", "text": "index == choice_list.size()", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 37}}, {"id": 344, "type": "identifier", "text": "index", "parent": 343, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 15}}, {"id": 345, "type": "==", "text": "==", "parent": 343, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 18}}, {"id": 346, "type": "call_expression", "text": "choice_list.size()", "parent": 343, "children": [347, 350], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 37}}, {"id": 347, "type": "field_expression", "text": "choice_list.size", "parent": 346, "children": [348, 349], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 35}}, {"id": 348, "type": "identifier", "text": "choice_list", "parent": 347, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 30}}, {"id": 349, "type": "field_identifier", "text": "size", "parent": 347, "children": [], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 35}}, {"id": 350, "type": "argument_list", "text": "()", "parent": 346, "children": [], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 37}}, {"id": 351, "type": "assignment_expression", "text": "index = 1", "parent": 341, "children": [352, 353, 354], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 48}}, {"id": 352, "type": "identifier", "text": "index", "parent": 351, "children": [], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 44}}, {"id": 353, "type": "=", "text": "=", "parent": 351, "children": [], "start_point": {"row": 120, "column": 45}, "end_point": {"row": 120, "column": 46}}, {"id": 354, "type": "number_literal", "text": "1", "parent": 351, "children": [], "start_point": {"row": 120, "column": 47}, "end_point": {"row": 120, "column": 48}}, {"id": 355, "type": "assignment_expression", "text": "cmd = text", "parent": 320, "children": [356, 357, 358], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 16}}, {"id": 356, "type": "identifier", "text": "cmd", "parent": 355, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 9}}, {"id": 357, "type": "=", "text": "=", "parent": 355, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 358, "type": "identifier", "text": "text", "parent": 355, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 16}}, {"id": 359, "type": "assignment_expression", "text": "value = choice_list.at(index)", "parent": 320, "children": [360, 361, 362], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 35}}, {"id": 360, "type": "identifier", "text": "value", "parent": 359, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 11}}, {"id": 361, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 362, "type": "call_expression", "text": "choice_list.at(index)", "parent": 359, "children": [363, 366], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 35}}, {"id": 363, "type": "field_expression", "text": "choice_list.at", "parent": 362, "children": [364, 365], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 28}}, {"id": 364, "type": "identifier", "text": "choice_list", "parent": 363, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 25}}, {"id": 365, "type": "field_identifier", "text": "at", "parent": 363, "children": [], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 28}}, {"id": 366, "type": "argument_list", "text": "(index)", "parent": 362, "children": [367], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 35}}, {"id": 367, "type": "identifier", "text": "index", "parent": 366, "children": [], "start_point": {"row": 123, "column": 29}, "end_point": {"row": 123, "column": 34}}, {"id": 368, "type": "return_statement", "text": "return true;", "parent": 320, "children": [369], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 18}}, {"id": 369, "type": "true", "text": "true", "parent": 368, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 17}}, {"id": 370, "type": "declaration", "text": "const std::string unit;", "parent": 18, "children": [371, 372, 374], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 33}}, {"id": 371, "type": "type_identifier", "text": "std", "parent": 370, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 12}}, {"id": 372, "type": "ERROR", "text": "::string", "parent": 370, "children": [373], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 20}}, {"id": 373, "type": "identifier", "text": "string", "parent": 372, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 20}}, {"id": 374, "type": "identifier", "text": "unit", "parent": 370, "children": [], "start_point": {"row": 127, "column": 28}, "end_point": {"row": 127, "column": 32}}, {"id": 375, "type": "labeled_statement", "text": "std::vector<std::string> choice_list;", "parent": 18, "children": [376, 377], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 40}}, {"id": 376, "type": "statement_identifier", "text": "std", "parent": 375, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 6}}, {"id": 377, "type": "ERROR", "text": "::vector<std:", "parent": 375, "children": [378], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 19}}, {"id": 378, "type": "binary_expression", "text": "vector<std", "parent": 377, "children": [379, 380, 381], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 18}}, {"id": 379, "type": "identifier", "text": "vector", "parent": 378, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 14}}, {"id": 380, "type": "<", "text": "<", "parent": 378, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 15}}, {"id": 381, "type": "identifier", "text": "std", "parent": 378, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 18}}, {"id": 382, "type": "binary_expression", "text": "string> choice_list", "parent": 375, "children": [383, 384, 385], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 39}}, {"id": 383, "type": "identifier", "text": "string", "parent": 382, "children": [], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 26}}, {"id": 384, "type": ">", "text": ">", "parent": 382, "children": [], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 128, "column": 27}}, {"id": 385, "type": "identifier", "text": "choice_list", "parent": 382, "children": [], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 39}}, {"id": 386, "type": "function_definition", "text": "size_t index{0}", "parent": 18, "children": [387, 388], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 36}}, {"id": 387, "type": "primitive_type", "text": "size_t", "parent": 386, "children": [], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 9}}, {"id": 388, "type": "identifier", "text": "index", "parent": 386, "children": [], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 33}}, {"id": 389, "type": "ERROR", "text": "0", "parent": 386, "children": [390], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 35}}, {"id": 390, "type": "number_literal", "text": "0", "parent": 389, "children": [], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 35}}, {"id": 391, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 84, 95, 181, 183, 197, 206, 320, 324, 386], "variables": [75, 79, 88, 98, 186, 199, 209, 214, 327, 332, 370], "classes": [80], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [24, 27, 39, 44, 49, 55, 56, 63, 67, 68, 109, 110, 116, 119, 122, 123, 129, 132, 135, 136, 137, 143, 148, 156, 159, 160, 164, 168, 169, 170, 218, 219, 228, 233, 234, 241, 242, 248, 250, 251, 258, 259, 263, 264, 265, 266, 274, 275, 276, 277, 282, 285, 286, 290, 291, 299, 300, 304, 305, 310, 312, 313, 338, 342, 343, 346, 347, 362, 363, 378, 382], "assignments": [51, 100, 105, 152, 175, 351, 355, 359], "loops": [78], "conditionals": [0, 1, 2, 5, 19, 21, 25, 28, 30, 31, 33, 34, 36, 38, 40, 41, 43, 45, 46, 48, 50, 52, 57, 59, 60, 61, 62, 64, 66, 69, 70, 74, 76, 77, 82, 85, 89, 94, 96, 99, 101, 106, 108, 111, 112, 114, 115, 117, 120, 124, 125, 127, 130, 133, 138, 140, 144, 147, 149, 150, 153, 157, 161, 162, 165, 167, 171, 172, 174, 176, 178, 184, 187, 189, 190, 191, 194, 196, 200, 203, 205, 207, 210, 212, 213, 216, 217, 220, 221, 224, 225, 227, 229, 231, 232, 235, 236, 239, 240, 243, 244, 247, 249, 252, 253, 256, 257, 260, 261, 267, 268, 270, 271, 273, 278, 283, 287, 288, 292, 293, 301, 302, 306, 307, 309, 311, 314, 315, 318, 319, 321, 323, 325, 328, 330, 331, 333, 335, 336, 337, 339, 341, 344, 348, 349, 352, 356, 358, 360, 364, 365, 367, 371, 373, 374, 376, 379, 381, 383, 385, 388, 391], "returns": [368], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 54, 72, 103, 155, 246, 280, 289, 295, 354, 390], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "SelectorItem", "text_snippet": "class SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n "}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "choices_)\n {\n if (ch == ',')"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "push_back(choice)"}, {"node_id": 181, "universal_type": "function", "name": "setInt", "text_snippet": "void setInt(signed value)\n {\n set(std::to_string(value));\n }"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "setInt(signed value)"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "(value)"}, {"node_id": 206, "universal_type": "function", "name": "active)", "text_snippet": "draw(TRM::Curses& curses, bool active) override"}, {"node_id": 320, "universal_type": "function", "name": "select", "text_snippet": "virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (ind"}, {"node_id": 324, "universal_type": "function", "name": "unknown", "text_snippet": "select(std::string& cmd, std::string& value) override"}, {"node_id": 386, "universal_type": "function", "name": "unknown", "text_snippet": "size_t index{0}"}], "class_declarations": [{"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include <cctype>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <cstdlib>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vector>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"Item.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "//------------------------------------------------------------------------------\n// Copyright (c) 2016-2019 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n//------------------------------------------------------------------------------\n\n#ifndef SELECTOR_ITEM_H\n#define SELECTOR_ITEM_H\n\n#include <cctype>\n#include <cstdlib>\n#include <vector>\n\n#include \"Item.h\"\n\nclass SelectorItem : public Item\n{\npublic:\n SelectorItem(Owner* owner,\n unsigned row_,\n unsigned col_,\n const std::string& text_,\n const std::string& choices_,\n const std::string& unit_ = \"\")\n : Item(owner, row_,col_, text_)\n , unit(unit_)\n {\n // First choice, no selection, is a aingle space\n choice_list.push_back(\" \");\n\n std::string choice;\n for(const auto& ch : choices_)\n {\n if (ch == ',')\n {\n choice_list.push_back(choice);\n choice = \"\";\n }\n else\n {\n choice += ch;\n }\n }\n choice_list.push_back(choice);\n }\n\n const std::string& get() const\n {\n return choice_list.at(index);\n }\n\n signed getInt() const\n {\n return atoi(get().c_str());\n }\n\n void set(const std::string& value)\n {\n for(size_t i = 0; i < choice_list.size(); i++)\n {\n if (choice_list[i] == value)\n {\n index = i;\n break;\n }\n }\n }\n\n void setInt(signed value)\n {\n set(std::to_string(value));\n }\n\nprivate:\n virtual void draw(TRM::Curses& curses, bool active) override\n {\n curses.attron(TRM::A_BOLD);\n Item::draw(curses, active);\n curses.attroff(TRM::A_BOLD);\n\n curses.addstr(\" : \");\n\n if (active)\n {\n curses.attron(TRM::A_REVERSE);\n }\n\n curses.addstr(choice_list.at(index).c_str());\n\n if ((unit != \"\") && isdigit(choice_list[index][0]))\n {\n curses.addch(' ');\n curses.addstr(unit.c_str());\n }\n\n if (active)\n {\n curses.attroff(TRM::A_REVERSE);\n }\n }\n\n virtual bool select(std::string& cmd, std::string& value) override\n {\n index++;\n if (index == choice_list.size()) index = 1;\n\n cmd = text;\n value = choice_list.at(index);\n return true;\n }\n\n const std::string unit;\n std::vector<std::string> choice_list;\n size_t index{0};\n};\n\n#endif\n"}
81,098
c
/** @file Guid of a NV Variable which store the information about the FD/HD/CD/NET/BEV order. Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__ #define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__ /// /// Name and Guid of a NV Variable which stores the information about the /// FD/HD/CD/NET/BEV order /// #define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \ { \ 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \ } typedef UINT8 BBS_TYPE; #pragma pack(1) typedef struct { BBS_TYPE BbsType; /// /// Length = sizeof (UINT16) + sizeof (Data) /// UINT16 Length; UINT16 Data[1]; } LEGACY_DEV_ORDER_ENTRY; #pragma pack() #define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder" extern EFI_GUID gEfiLegacyDevOrderVariableGuid; #endif
34.21
28
(translation_unit) "/** @file\n Guid of a NV Variable which store the information about the\n FD/HD/CD/NET/BEV order.\n\nCopyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n\n///\n/// Name and Guid of a NV Variable which stores the information about the\n/// FD/HD/CD/NET/BEV order\n///\n#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\n { \\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\n }\n\ntypedef UINT8 BBS_TYPE;\n\n#pragma pack(1)\ntypedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;\n#pragma pack()\n\n#define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder"\n\nextern EFI_GUID gEfiLegacyDevOrderVariableGuid;\n\n#endif\n" (comment) "/** @file\n Guid of a NV Variable which store the information about the\n FD/HD/CD/NET/BEV order.\n\nCopyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/" (preproc_ifdef) "#ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n\n///\n/// Name and Guid of a NV Variable which stores the information about the\n/// FD/HD/CD/NET/BEV order\n///\n#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\n { \\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\n }\n\ntypedef UINT8 BBS_TYPE;\n\n#pragma pack(1)\ntypedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;\n#pragma pack()\n\n#define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder"\n\nextern EFI_GUID gEfiLegacyDevOrderVariableGuid;\n\n#endif" (#ifndef) "#ifndef" (identifier) "__LEGACY_DEV_ORDER_VARIABLE_GUID_H__" (preproc_def) "#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n" (#define) "#define" (identifier) "__LEGACY_DEV_ORDER_VARIABLE_GUID_H__" (comment) "///" (comment) "/// Name and Guid of a NV Variable which stores the information about the" (comment) "/// FD/HD/CD/NET/BEV order" (comment) "///" (preproc_def) "#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\n { \\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\n }\n" (#define) "#define" (identifier) "EFI_LEGACY_DEV_ORDER_VARIABLE_GUID" (preproc_arg) "{ \\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\n }" (type_definition) "typedef UINT8 BBS_TYPE;" (typedef) "typedef" (type_identifier) "UINT8" (type_identifier) "BBS_TYPE" (;) ";" (preproc_call) "#pragma pack(1)\n" (preproc_directive) "#pragma" (preproc_arg) "pack(1)" (type_definition) "typedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;" (typedef) "typedef" (struct_specifier) "struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n}" (struct) "struct" (field_declaration_list) "{\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n}" ({) "{" (field_declaration) "BBS_TYPE BbsType;" (type_identifier) "BBS_TYPE" (field_identifier) "BbsType" (;) ";" (comment) "///" (comment) "/// Length = sizeof (UINT16) + sizeof (Data)" (comment) "///" (field_declaration) "UINT16 Length;" (type_identifier) "UINT16" (field_identifier) "Length" (;) ";" (field_declaration) "UINT16 Data[1];" (type_identifier) "UINT16" (array_declarator) "Data[1]" (field_identifier) "Data" ([) "[" (number_literal) "1" (]) "]" (;) ";" (}) "}" (type_identifier) "LEGACY_DEV_ORDER_ENTRY" (;) ";" (preproc_call) "#pragma pack()\n" (preproc_directive) "#pragma" (preproc_arg) "pack()" (preproc_def) "#define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder"\n" (#define) "#define" (identifier) "VAR_LEGACY_DEV_ORDER" (preproc_arg) "L"LegacyDevOrder"" (declaration) "extern EFI_GUID gEfiLegacyDevOrderVariableGuid;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "EFI_GUID" (identifier) "gEfiLegacyDevOrderVariableGuid" (;) ";" (#endif) "#endif"
66
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.21, "nodes": 46, "errors": 0, "source_hash": "26c636321f229e389a1e96f92d78fc99fc1a53a56b1ede61326168d647815d5f", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n\n///\n/// Name and Guid of a NV Variable which stores the information about the\n/// FD/HD/CD/NET/BEV order\n///\n#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\\n { \\\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\\n }\n\ntypedef UINT8 BBS_TYPE;\n\n#pragma pack(1)\ntypedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;\n#pragma pack()\n\n#define VAR_LEGACY_DEV_ORDER L\"LegacyDevOrder\"\n\nextern EFI_GUID gEfiLegacyDevOrderVariableGuid;\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 17, 33, 36, 40, 45], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "identifier", "text": "__LEGACY_DEV_ORDER_VARIABLE_GUID_H__", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 44}}, {"id": 3, "type": "preproc_def", "text": "#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 5, "type": "identifier", "text": "__LEGACY_DEV_ORDER_VARIABLE_GUID_H__", "parent": 3, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 44}}, {"id": 6, "type": "preproc_def", "text": "#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\\n { \\\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\\n }\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 8, "type": "identifier", "text": "EFI_LEGACY_DEV_ORDER_VARIABLE_GUID", "parent": 6, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 42}}, {"id": 9, "type": "preproc_arg", "text": "{ \\\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\\n }", "parent": 6, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 19, "column": 3}}, {"id": 10, "type": "type_definition", "text": "typedef UINT8 BBS_TYPE;", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 23}}, {"id": 11, "type": "typedef", "text": "typedef", "parent": 10, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 12, "type": "type_identifier", "text": "UINT8", "parent": 10, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 13, "type": "type_identifier", "text": "BBS_TYPE", "parent": 10, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 22}}, {"id": 14, "type": "preproc_call", "text": "#pragma pack(1)\n", "parent": 0, "children": [15, 16], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 15, "type": "preproc_directive", "text": "#pragma", "parent": 14, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 16, "type": "preproc_arg", "text": "pack(1)", "parent": 14, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 15}}, {"id": 17, "type": "type_definition", "text": "typedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;", "parent": 0, "children": [18, 19, 32], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 31, "column": 25}}, {"id": 18, "type": "typedef", "text": "typedef", "parent": 17, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 19, "type": "struct_specifier", "text": "struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n}", "parent": 17, "children": [20], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 31, "column": 1}}, {"id": 20, "type": "struct", "text": "struct", "parent": 19, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 14}}, {"id": 21, "type": "field_declaration", "text": "BBS_TYPE BbsType;", "parent": 19, "children": [22, 23], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 20}}, {"id": 22, "type": "type_identifier", "text": "BBS_TYPE", "parent": 21, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 23, "type": "field_identifier", "text": "BbsType", "parent": 21, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 19}}, {"id": 24, "type": "field_declaration", "text": "UINT16 Length;", "parent": 19, "children": [25, 26], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 19}}, {"id": 25, "type": "type_identifier", "text": "UINT16", "parent": 24, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 8}}, {"id": 26, "type": "field_identifier", "text": "Length", "parent": 24, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 18}}, {"id": 27, "type": "field_declaration", "text": "UINT16 Data[1];", "parent": 19, "children": [28, 29], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 20}}, {"id": 28, "type": "type_identifier", "text": "UINT16", "parent": 27, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 29, "type": "array_declarator", "text": "Data[1]", "parent": 27, "children": [30, 31], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 19}}, {"id": 30, "type": "field_identifier", "text": "Data", "parent": 29, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 16}}, {"id": 31, "type": "number_literal", "text": "1", "parent": 29, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 32, "type": "type_identifier", "text": "LEGACY_DEV_ORDER_ENTRY", "parent": 17, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 24}}, {"id": 33, "type": "preproc_call", "text": "#pragma pack()\n", "parent": 0, "children": [34, 35], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 34, "type": "preproc_directive", "text": "#pragma", "parent": 33, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 35, "type": "preproc_arg", "text": "pack()", "parent": 33, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 14}}, {"id": 36, "type": "preproc_def", "text": "#define VAR_LEGACY_DEV_ORDER L\"LegacyDevOrder\"\n", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 38, "type": "identifier", "text": "VAR_LEGACY_DEV_ORDER", "parent": 36, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 28}}, {"id": 39, "type": "preproc_arg", "text": "L\"LegacyDevOrder\"", "parent": 36, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 46}}, {"id": 40, "type": "declaration", "text": "extern EFI_GUID gEfiLegacyDevOrderVariableGuid;", "parent": 0, "children": [41, 43, 44], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 47}}, {"id": 41, "type": "storage_class_specifier", "text": "extern", "parent": 40, "children": [42], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 42, "type": "extern", "text": "extern", "parent": 41, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 43, "type": "type_identifier", "text": "EFI_GUID", "parent": 40, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 15}}, {"id": 44, "type": "identifier", "text": "gEfiLegacyDevOrderVariableGuid", "parent": 40, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 46}}, {"id": 45, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [10, 17, 21, 24, 27, 40], "classes": [19, 20, 41], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 13, 22, 23, 25, 26, 28, 30, 32, 38, 43, 44, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [14, 33], "literals": [31], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 19, "universal_type": "class", "name": "{", "text_snippet": "struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 "}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/** @file\n Guid of a NV Variable which store the information about the\n FD/HD/CD/NET/BEV order.\n\nCopyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n#define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n\n///\n/// Name and Guid of a NV Variable which stores the information about the\n/// FD/HD/CD/NET/BEV order\n///\n#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \\\n { \\\n 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \\\n }\n\ntypedef UINT8 BBS_TYPE;\n\n#pragma pack(1)\ntypedef struct {\n BBS_TYPE BbsType;\n ///\n /// Length = sizeof (UINT16) + sizeof (Data)\n ///\n UINT16 Length;\n UINT16 Data[1];\n} LEGACY_DEV_ORDER_ENTRY;\n#pragma pack()\n\n#define VAR_LEGACY_DEV_ORDER L\"LegacyDevOrder\"\n\nextern EFI_GUID gEfiLegacyDevOrderVariableGuid;\n\n#endif\n"}
81,099